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
26302630
26312631 if (info->gpos)
26322632 xAdvance += stbtt__GetGlyphGPOSInfoAdvance(info, g1, g2);
2633− else if (info->kern)
2633+ if (info->kern && xAdvance == 0)
26342634 xAdvance += stbtt__GetGlyphKernInfoAdvance(info, g1, g2);
26352635
26362636 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