I concur with Jeremias, if you wish to view fonts so you can better diagnose these issues yourself a good tool is fontforge (http://fontforge.sourceforge.net/) which allows you to analyse individual glyphs. Also as part of the same package is a program called showttf which I've found invaluable in debugging font files.
Hope that helps Mehdi On 2 February 2011 08:30, Jeremias Maerki <[email protected]> wrote: > There are two fonts: arial*.ttf and arialuni.ttf. The latter has more > glyphs but only comes in one style. Word can display bold and italic for > ArialUni because it tells Windows to synthesize the derived styles. We > could theoretically do this, too, for PDF output, but that is not > currently implemented in Apache FOP. Anyway, I don't think such a > derived font can ever look really nice. And AFAIK, PDF is the only > output format (of the ones we support) that allows this font derivation. > > For reference: > - PDF 1.4 Spec, chapter 5.5.2 "TrueType Fonts" > > Using "ArialUni,Bold" instead of "ArialUni" in the /BaseFont entry > creates the synthesized font. > > On 02.02.2011 09:21:41 mehdi houshmand wrote: >> Hi Peder, >> >> What OS are you using? I just checked in Windows 7, and it's not >> obvious using the file system GUI, but there Arial is split up into >> arial.ttf, ariblk.ttf, ariali.ttf, arialbd.ttf and arialbi.ttf. >> However, when going into Windows\Fonts, it does appear to be a single >> file. In the Ubuntu flavour of linux, it's the same, arial is split up >> into it's constituent parts. >> >> So 2 questions really, firstly, what OS are you using? Secondly what >> version of FOP are you using? >> >> Thanks >> >> Mehdi >> >> 2011/2/2 Peet Kes <[email protected]>: >> > Hi Eric, >> > >> > But I only have one truetrype file for the ArialUnicodeMS font >> > I only have ARIALUNI.TTF and when I use this font in Word I can turn on >> > Bold >> > and Italic. >> > What do I have to do to get this working? >> > >> > Best regards, >> > >> > Peder >> > >> > 2011/2/1 Eric Douglas <[email protected]> >> >> >> >> You're referencing normal and bold triplets with one font file name. >> >> They're normally separate files. >> >> ________________________________ >> >> From: Peder [mailto:[email protected]] >> >> Sent: Tuesday, February 01, 2011 8:26 AM >> >> To: [email protected] >> >> Subject: Problem regarding font substitution >> >> >> >> Hi all, >> >> I ran across a problem regarding font substitution. >> >> I use font 'x' for my main output. Whenever I come across characters which >> >> are not included in my font 'x' I want to use the ArialUnicodeMS as >> >> catch-all. >> >> So on the fo:root element I specified: font-family="ArialUnicodeMS" >> >> But now when I come across the following fo:inline >> >> <fo:inline font-weight="bold">Kiºar Vari</fo:inline> >> >> The text does not appear bold in the PDF >> >> How come? >> >> In my fop configuration I specified the following entry for the >> >> ArialUnicodeMS font: >> >> <font metrics-url="/location to >> >> fonts/ARIALUNI.xml" kerning="true" >> >> embed-url="/location to fonts/ARIALUNI.TTF"> >> >> >> >> <font-triplet name="ArialUnicodeMS" style="normal" weight="normal"/> >> >> <font-triplet name="ArialUnicodeMS" style="normal" >> >> weight="bold"/> >> >> <font-triplet name="ArialUnicodeMS" style="italic" >> >> weight="normal"/> >> >> <font-triplet name="ArialUnicodeMS" style="italic" >> >> weight="bold"/> >> >> </font> >> >> Do I have to change my configuration? >> >> When I run the transformation I receive the following message: >> >> WARN Event >> >> groupId=org.apache.fop.fonts.FontEventProducer,id=org.apache.fop.fonts.FontEventProducer.fontSubstituted,key=fontSubstituted,params={requested=ArialUnicodeMS,normal,700, >> >> effective=ArialUnicodeMS,normal,400} >> >> How can I prevent this from happening and get the bolded name? >> >> Best regards, >> >> Peder >> >> >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > > > Jeremias Maerki > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
