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]> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Onur Şentürk