xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Italic Tahoma
Date Wed, 07 May 2008 06:57:39 GMT
FOP does not yet support synthesized TrueType variant in PDF as
described in PDF 1.4, chapter 5.5.2 "TrueType Fonts". At the moment, you
have to use fonts that have all the bold and italic variants explicitely
as font files.

Font auto-detection is not enabled by default because it's a relatively
new feature and we needed to get some experience with it first. There
were some bugs, too. At some point, we can certainly enable that if
there's no explicit font configuration.

On 06.05.2008 12:26:54 Antti Karanta wrote:
> 
> 
>                     Hi!
> 
>    I tried using fo:inline element to produce italic text using Tahoma  
> font. It did not work. Here's what I did:
> 
> <fo:inline font-family="Tahoma" font-style="italic">italics</fo:inline>
> 
>    FOP said:
> 
> 6.5.2008 13:08:31 org.apache.fop.fonts.FontInfo notifyFontReplacement
> WARNING: Font 'Tahoma,italic,400' not found. Substituting with  
> 'Tahoma,normal,400'.
> 
> 
>    I dug around a bit and found out that Tahoma does not have an italic  
> variant (see e.g.  
> http://help.lockergnome.com/office/Tahoma-italic-ftopict705661.html). So,  
> I tried oblique instead:
> 
> 
> <fo:inline font-family="Tahoma" font-style="oblique">italics</fo:inline>
> 
>    FOP said:
> 
> 6.5.2008 12:16:54 org.apache.fop.fonts.FontInfo notifyFontReplacement
> WARNING: Font 'Tahoma,oblique,400' not found. Substituting with  
> 'Tahoma,normal,400'.
> 
> 
>    I consulted an XSL-FO reference (Definitive XSL-FO by G. Holman) and it  
> said about font-style attribute: "note that "italic" will match "oblique"  
> if no italic face is available in the font family", so no surprise that  
> the second try was no better.
> 
> 
>    Changing font-family="Tahoma" to font-family="Tahoma,Verdana" makes FOP  
> use Verdana's italic, which, at least to my eye looks good enough.
> 
> 
>    But the question is: is there a known way to have italic(ish) Tahoma?  
> E.g. MS Word somehow manages something that looks ok even if Tahoma Italic  
> does not really exist. I suppose it makes it using oblique Tahoma  
> (http://en.wikipedia.org/wiki/Oblique_type) - can FOP be made to perform  
> the same trick?
> 
> 
> 
>    Environment: windows xp sp2, java 1.5.0_15, fop 0.95 beta.
> 
> 
> 
>       -::Antti::-
> 
> 
> 
>    Ps. Naturally in my fop.xconf I have
> 
>    <renderers>
>      <renderer mime="application/pdf">
>        <fonts>
>          <auto-detect/>
>        </fonts>
> ...
> 
>    to make this work. BTW, what is the reason font auto-detection is not  
> enabled by default?
> 
> 



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message