On 09/21/2011 01:39 PM, Nikita Egorov wrote: > off topic: I'm not sure the word "glyph" is a proper one in our case. > IIRC the "glyph" can be only part of character. A few glyphs can be at > one character cell and make up grapheme, symbol. So I'm interested in > how many character cells will be displayed.
The proper term for what you are finding is "Unicode code points". If you restrict yourself to printing Latin-1 you will approximately get what you think you want. I have also seen a (quite lengthy) piece of code that determines if a code, printed in monospace, takes 1, 2, or 0 cells. Not necessarily correct but it uses a huge table of ranges and supposedly agrees with the majority of monospace fonts in existence. All the combining accents and direction and language indicators are claimed to take 0. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
