This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use OVER operator for drawing text (#2908)
For opaque text, SOURCE is not any different from OVER. However, when drawing color glyphs (which consist of RGBA pixels instead of strokes) SOURCE's handling of alpha is not what we want. I stumbled across this because cairo 1.15.8 seems to clear the surface before drawing color emoji if the operator is SOURCE, deleting every- thing drawn before. Arguably, the area outside the glyph bounds should not be touched, but even if this is a cairo bug the problem of alpha within the glyph remains.
- Loading branch information