RE: [ft] IPA font baseline

2011-02-13 Thread Ling Xiaohan
Hi Werner, Thanks for your reply. A new question is that which API can I use to load a vertical glyph of a character such as '、' of Japanese is to be appear in top-right when vertical mode. -Original Message- The result you get is correct. Attached is the glyph `h' as shown in

Re: [ft] IPA font baseline

2011-02-13 Thread Werner LEMBERG
A new question is that which API can I use to load a vertical glyph of a character such as '、' of Japanese is to be appear in top-right when vertical mode. This is something FreeType doesn't support directly since it doesn't handle the `vert' OpenType feature for selecting vertical writing

Re: [ft] IPA font baseline

2011-02-10 Thread Werner LEMBERG
Ex. command line - example1.exe c:/ipam.ttf ahg The result of my PC is attached file 're.jpg'. example1.c was updated, please use the new attached one. The result you get is correct. Attached is the glyph `h' as shown in fontforge: All ASCII glyphs `float' above the base line instead of

RE: [ft] IPA font baseline

2011-02-10 Thread Ling Xiaohan
The result you get is correct. Attached is the glyph `h' as shown in fontforge: All ASCII glyphs `float' above the base line instead of touching it! If all ASCIIs float, 'a' touched the baseline of my result in 're.jpg'. So is it correct ? -Original Message- Ex. command line -

Re: [ft] IPA font baseline

2011-02-09 Thread Werner LEMBERG
I use FT2.3.1 to parse IPA fonts - IPA Minchao. This is more than three years old! The current FreeType version is 2.4.4... The last parameter of function FT_Load_Glyph() was set to FT_LOAD_DEFAULT, so that font glyph could be hinted before load out. But metrics of output glyph seems wrong

Re: [ft] IPA font baseline

2011-02-09 Thread Werner LEMBERG
Attached file is the example from FT. Which parameters shall I give the demo program? What output do you expect? Font file of IPA Minchao is too large, so download it self :( URL: http://www.langsci.ucl.ac.uk/ipa/ Which one? Please provide a more precise link. Werner

RE: [ft] IPA font baseline

2011-02-09 Thread Ling Xiaohan
Sorry ! URL of IPA Minchao font : http://ossipedia.ipa.go.jp/ipafont/ipam00302.php There is two parameters. The 1st one is font file's path, 2nd one is the string to be rendered. Ex. command line - example1.exe c:/ipam.ttf ahg The result of my PC is attached file 're.jpg'. example1.c was updated,

[ft] IPA font baseline

2011-02-08 Thread Ling Xiaohan
Hi everyone, I use FT2.3.1 to parse IPA fonts - IPA Minchao. The last parameter of function FT_Load_Glyph() was set to FT_LOAD_DEFAULT, so that font glyph could be hinted before load out. But metrics of output glyph seems wrong because characters do not arrange along the baseline. For example,