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:
wangyingfang
2024-12-30 20:19:18 +08:00
committed by GitHub
parent 8023e6dd3b
commit 525a313153
4 changed files with 1 additions and 1 deletions

View File

@@ -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;

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