Alexander Sun wrote: ken i wrote:
Alexander Sun wrote: using ICU or Pango?
pango, the size of icu is so hurge.
if you have any suggestion, please contact us.
thanks a lot.
when WPS port to Mac, how to support complex text layout? using Apple Type Services For Unicode Imaging?
Hmm...ICU is not so huge, i think...
It seems that you plan to write a wrapper class for uniscribe on windows, a wrapper class for pango on *nix, a wrapper class for ATSUI on Mac? Or use it directly without wrap?
Pango layout engine can be used with different font backends. linux(harfbuzz), windows(uniscribe), mac(coreText).
so, i don't need a wrapper class for it. but pango is not fully meet my requirements.
eg: some functions do not exist in pango, but exsting in uniscribe.
1. scriptIsComplex(uniscribe function) :
now, i write a function: check every char, if there is a char meet this expression(char->unicode()>=0x590), it returns true.
2. scriptGetFontProperties(uniscribe function) :
i don't konw how to get the properties of specified font(eg: blank, default, invalid, kashida).
3. ScriptGetProperties(uniscribe function) :
i don't know how to get SCRIPT_PROPERTIES of specified script(this structure contains many information about every script).
and pango's manual is incomplete.
do you konw the definition of cluster?
in uniscribe, the value of cluster indicate the index of glyph, so the number of cluster and unicode char are same.
but in pango, the value of cluster indicate the index of char. so the number of cluster and glyph are same.
is it right? or i got wrong?
do you have any suggestion?
thanks very much!!!