Fix icon label isn't centered with the icon for CJK/local glyphy on iOS (#3108)
Co-authored-by: Yingfang <junew@microsoft.com>
This commit is contained in:
@@ -272,7 +272,7 @@ PremultipliedImage drawGlyphBitmap(GlyphID glyphID, CTFontRef font, GlyphMetrics
|
||||
|
||||
// Mimic glyph PBF metrics.
|
||||
metrics.left = Glyph::borderSize;
|
||||
metrics.top = 4;
|
||||
metrics.top = -Glyph::borderSize;
|
||||
|
||||
// Move the text upward to avoid clipping off descenders.
|
||||
CGFloat descent;
|
||||
|
||||
BIN
test/fixtures/local_glyphs/ping_fang/expected.png
vendored
BIN
test/fixtures/local_glyphs/ping_fang/expected.png
vendored
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 17 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user