History

someone on github had this fix for fonts without gpos

Sigrid Haflínudóttir committed 6 years ago

Commit f0e66b71 parent b6756c41 file · +1 −1Browse files

Unified · Split

stb_truetype.h+1−1
@@ -2630,7 +2630,7 @@ STBTT_DEF int stbtt_GetGlyphKernAdvance(const stbtt_fontinfo *info, int g1, int · 2629 unmodified lines
2630 2630
2631 if (info->gpos)2631 if (info->gpos)
2632 xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2);2632 xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2);
2633 else if (info->kern)2633 if (info->kern && xAdvance == 0)
2634 xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2);2634 xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2);
2635 2635
2636 return xAdvance;2636 return xAdvance;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t