mobilehunter Messages: 87 Registered: November 2006
Member
luzr wrote on Sun, 21 January 2007 20:24
gound -> found (typo)
In fact, what I am asking for is to replace 140 with page, but leave the loop there.
The purpose of the loop is to avoid any zero width in the array. Zero width means missing glyph.
What we really are trying to do here is to save memory for monospaced CJK glyphs. We need an array with all values equal to CJK "mono" width. Then we can check for CJK chars whether all characters have the same width (or zero for missing chars) and in that case we can avoid using separate array for the "page" and use single shared array with default widths.
Mirek
I replaced the 140 with 'page', and test with loop and no loop.
Here i attached the image.
On the left is with loop, and the right is without loop.
I think the right is better, but may be just coincidence.