Unified · Split
| @@ -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; |