New Forum | Previous | Next | (P-PDF) Developers
Topic: vertical writing and font attributes
Conf: (P-PDF) Developers, Msg: 133162
Date: 5/21/2005 02:30 PM
I'm trying to write some vertical text (CJK stuff) and trying to use wMode = 1, using Datalogic library dlpdffontcreatewithmetricsembedded(). However, when doing so, I eventually get a crash during TTMakeWidthArrayVert() deep inside dlpdfdoccomplete() on OSX. On windows, I don't crash, but I get a message from acrobat when it opens the file that the font has a bad "/Widths". if I leave wMode=0, I get no errors but text draws horizontally.
I am not putting anything else into the PDEFontAttrs object I'm passing to dlfpfontcreate...() and the widths parameter is NULL. I don't know how to go about getting proper width values for this font, either to fill in the width parameter to the create function, or to fill the width members of the PDEFontAttrs structure.
I don't have to feed width values for horizontal writing, why is it different for vertical writing?
Any pointers would be greatly appreciated.