opcon / QuickFont

A Modern OpenGL Font Rendering Library for OpenTK

Home Page:https://github.com/opcon/QuickFont

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Null Reference exception when loading fonts on OSX/Linux

opcon opened this issue · comments

Mono's MeasureString library does not return a very good estimate of the actual string size, which means that when the glyphs are measured precisely, the size is larger than the MeasureString size. This leads to glyphs not fitting on the texture page when they are packed, and so they are never assigned.