> -----Original Message----- > From: Onur Senturk [mailto:[EMAIL PROTECTED] > Sent: Friday, September 08, 2006 10:56 AM > > When using turkish characters, do i also have to use > hyphenation?
Hyphenation does not depend on font file or chararacter set. It only depends on document language. Using hyphenation needs to: - define used language: see language property in fo:page-sequence - enable/disable hyphenation as you want: see hyphenate property, that applies only on fo:block or fo:character - make sure you have appropriate hyphenation file; AFAIK, greek is only available in a TEX format (see [1]) You'll propably need to transform it in a FOP comprehensive format. [1] http://marc.theaimsgroup.com/?l=fop-user&m=114424812107072&w=2 > Do i have to include other types of fonts or > embed them into the pdf file? You should include|embed all used fonts, depending on your font-family properties > On 8/31/06, Jeremias Maerki <[EMAIL PROTECTED]> wrote: > > Do you have to do it from Java code? Isn't it simpler > to do it from the > command-line? After all, for a font you only have to do > this once. > > Anyway, I'd remove the "-fn" parameter from the > command-line. I've never > needed that and I've never tested it, so I don't even > know what it does > exactly. Maybe that helps. > > On 31.08.2006 18:16:34 Onur Senturk wrote: > > I looked at the FOP website and tried to figure > things out. The first thing > > i tried was to generate an xml file from a true type > font(times new roman). > > But i couldn't. How am i supposed to generate it? > > > > i coded something like this first: > > > > PFMReader df = *new* PFMReader(); > > > > df.constructFontXML(df.loadPFM > > ("c:\\times.ttf"),"TimesNewRoman","","","c:\\times.xml"); > > > > but a fatal exception occured and i couldn't generate > the xml file. > > > > Next i tried to run this command: > > > > String[] st = *new* String[3]; > > > > *int* i=0; > > > > st[i++] = "-fn times_new"; > > > > st[i++] = "c:\\times.ttf"; > > > > st[i++] = "c:\\times.xml"; > > > > df.main(st); > > > > But nothing seemed to happen either. This message > appeared at the console: > > > > [INFO] PFM Reader v1.1 > > > > [INFO] > > > > [INFO] java org.apache.fop.fonts.apps.PFMReader > [options] metricfile.pfm > > xmlfile.xml > > > > [INFO] where options can be: > > > > [INFO] -fn <fontname> > > > > [INFO] default is to use the fontname in the .pfm file, but > > > > [INFO] you can override that name to make sure that the > > > > [INFO] embedded font is used (if you're embedding fonts) > > > > [INFO] instead of installed fonts when viewing > documents with Acrobat > > Reader. > > > > > > > > Now what should i do? I'm really stuck :( > > > > On 8/31/06, Jeremias Maerki < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > wrote: > > > > > Turkish characters are likely not to be supported > by the default fonts. > > > Have > > > you configured a font with FOP that contains all > the Turkish characters > > > you need? Please see the FOP website for details to > configure fonts > > > depending on the FOP version you use. > > > > > > On 31.08.2006 13:35:22 Onur Senturk wrote: > > > > Hi i'm trying to use the program called html2pdf > which uses apache's fop > > > to > > > > convert html to pdf, i mean fo to pdf. i can > create the pdf but I've got > > > > some problem with the turkish character support. > The pdf doesn't show > > > the > > > > turkish characters properly. What should i do? > How can you help me? > > > > > > > > -- > > > > Onur ªentürk > > Jeremias Maerki Pascal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]