Use better kerning information
opcon opened this issue · comments
Since the font files contain kerning information, we should probably use that instead of calculating our own.
This should be possible to do relatively easily with SharpFont, however it will only be implemented for loading font paths (which go through FreeTypeFont).
It won't work for system (installed) fonts since they are loaded through GDIFont and don't expose kerning information. If there was a cross-platform way to get the path to the font file then it would be possible to load them using FreeTypeFont instead, but I don't think a way exists.
Added in 33cf5f2, kerning information from FreeType is now used if the font object is a FreeTypeFont.