forked from microsoft/WinObjC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable vertical pixel-snapping when drawing glyph runs
- Devices with vertical antialiasing would render text as blurry if rendered on a fractional vertical coordinate. - CGContext functions that draw glyphs do not necessarily use coordinates from our custom text renderer, which already has pixel snapping enabled. - As such, manually round the y-translation in CGContext::DrawGlyphRun() - Updated reference images for two drawing tests dealing with line height. Fixes microsoft#1594
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...tests/CoreGraphics.drawing/data/reference/TestImage.LineHeightMultiple.0.75.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions
4
...tests/CoreGraphics.drawing/data/reference/TestImage.LineHeightMultiple.1.25.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.