Font Substitution and Missing Text
I recently found a bug in my work-in-progress-next-major-version of Counterparts Lite where text in certain languages was not showing up in the text editor.
[…]
It is important to know however that there’s a crucial difference between changing the font in
willProcessEdting
and indidProcessEditing
:
willProcessEditing
is called before font substitution. Any font you set while inwillProcessEditing
will get substituted with an appropriate font for characters not available in the font you choose.
didProcessEditing
is called after font substitution. If you change the font while indidProcessEditing
there will be no further font substitution, and thus you should make sure the font you set can display all the characters.