wpf DocumentViewer – get ITextPointer by GlyphRun and vice versa

I would recommend that you abandon this approach. Doing lots of private reflection like this is not something you should be basing production code on, its very brittle and downright forbidden in some contexts. Frankly, you’re better off finding a 3rd party control that suits your needs such as www.infragistics.com Or if that’s not an … Read more

Downsizing an .OTF font by removing glyphs

I’ve written a Python2 script with fontforge library does the following: Accepts a source font Accepts a file containing all characters to be used. It can be a translation file, string asset file, HTML file, etc. Output a font with characters that aren’t shown in the file removed Here is the code: #!/usr/bin/python2 import sys … Read more

Is there a list of characters that look similar to English letters?

This is probably both vastly more deep than you need, yet not wide enough to cover your use case, but the Unicode consortium have had to deal with attacks against internationalised domain names and came up with this list of homographs (characters with the same or similar rendering): http://www.unicode.org/Public/security/latest/confusables.txt Might make a starting point at … Read more

Core Text calculate letter frame in iOS

You did an impressive amount of work in your question and were so close on your own. The problem you were having comes from this line of code where you position the bounding boxes for each frame: _characterFrames[ic].origin = CGPointMake(startOffset, lineOrigin.y); The problem with it is that you are overriding whatever offset the frame already … Read more

Languages supported by “latin” vs “latin-extended” glyphs in fonts on Google Web Fonts?

Latin aka Unicode Latin1-Supplement (U+0080 to U+00FF) is meant to support primarily Western European languages (as you mentioned French, German, Spanish, also Portuguese, Italian, Irish, Icelandic, languages of Scandinavian countries and unintentionally also other languages mentioned in the list below). English is supported by standard ASCII. ASCII (first 127 chars, 95 of them are graphemes … Read more

tech