Fixed AccessViolationException caused by custom fonts