سؤال

In an iOS app I have problems with special characters like german umlauts and others when using a certain font, with wrong characters being displayed as the result.

The font name is "MetroflexUniMedium". I have tried ttf and otf format. The font originally came in "Font Suitcase" format, I converted it with FontXChange.

All other fonts I tried work, and I the problem also appears when using hard coded strings, so this should not be a problem with character encoding. Also the problem does not appear in other programs, e.g. in Photoshop I can use all the special characters I need with this font.

The problem appears on all iOS versions that support custom fonts.

هل كانت مفيدة؟

المحلول

I solved the problem. When converting the font to ttf for the first time, I did not set the encoding explicitly to utf8 so FontXChange selected a different encoding. So setting the encoding to utf8 in the preferences of FontXChange solved the issue.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top