xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongsheng Song" <dongsheng.s...@gmail.com>
Subject Re: Font Selection Strategies ?
Date Wed, 07 Jan 2009 10:16:57 GMT
Thank you. I use 'font-family' via set *.font.family param in docbook xsl, e.g.:

<xsl:param name="monospace.font.family">Courier New,FangSong</xsl:param>

This works good ! but I have missing glyphs occasionally:
     [java] WARNING: Glyph "文" (0x6587) not available in font
"CourierNewPS-ItalicMT".
     [java] Jan 7, 2009 4:55:30 PM
org.apache.fop.events.LoggingEventListener processEvent
     [java] WARNING: Glyph "件" (0x4ef6) not available in font
"CourierNewPS-ItalicMT".
     [java] Jan 7, 2009 4:55:30 PM
org.apache.fop.events.LoggingEventListener processEvent
     [java] WARNING: Glyph "名" (0x540d) not available in font
"CourierNewPS-ItalicMT".
     [java] Jan 7, 2009 4:55:30 PM
org.apache.fop.events.LoggingEventListener processEvent
     [java] WARNING: Glyph "称" (0x79f0) not available in font
"CourierNewPS-ItalicMT".

From http://xmlgraphics.apache.org/fop/trunk/fonts.html#selection:
'Auto selected the first font from the list which is able to display
the most characters in a given word.'

How to distinguish 'word' ? If I want to treat one chinese
char/punctuation as a word,
how to crack the source ?

Thanks,

Dongsheng Song


2008/12/18 Jeremias Maerki <dev@jeremias-maerki.ch>:
> On 18.12.2008 09:20:21 Dongsheng Song wrote:
>> *)  Can I map font "any" to a custom font ?
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#Missing+Fonts
>
> Yes, you can define a font-triplet for "any". Example:
>
> <font embed-url="test\resources\fonts\glb12.ttf">
>  <font-triplet name="Gladiator" style="normal" weight="normal"/>
>  <font-triplet name="any" style="normal" weight="normal"/>
> </font>
>
>
>> *) Can I substitute by char range instead of weights ?
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#substitution
>
> No.
>
>> *) I have not found how to define font list:
>> http://xmlgraphics.apache.org/fop/trunk/fonts.html#selection
>
> See:
> http://www.w3.org/TR/xsl11/#font-family
>
> Example: font-family="Helvetica, Symbol"
>
>> Could some one give me a sample ?
>>
>>
>> Thanks,
>> Dongsheng Song
>>
>
>
>
> 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