Jean-François El Fouly <[EMAIL PROTECTED]> wrote:
> Not sure Base-14 fonts are configured to support the full Unicode
> set. It looks dangerous to rely on default font settings when you want
> something special.
> I tried to specify a font-family (for which my system is properly
> configured !) and it works.
> . . .
Your answer led me to the solution. On debian, I installed
ttf-sil-charis, used the instructions on the website to generate
metrics:
for i in /usr/share/fonts/truetype/ttf-sil-charis/*.ttf; do java -cp
build/fop.jar:lib/avalon-framework-4.2.0.jar:lib/commons-logging-1.0.4.jar:lib/commons-io-1.3.1.jar
org.apache.fop.fonts.apps.TTFReader $i /tmp/${i:t}.xml; done
used this configuration:
<fop version="1.0">
<strict-configuration>true</strict-configuration>
<strict-validation>true</strict-validation>
<renderers>
<renderer mime="application/pdf">
<fonts>
<font metrics-url="file:///tmp/CharisSILR.ttf.xml"
embed-url="file:///usr/share/fonts/truetype/ttf-sil-charis/CharisSILR.ttf">
<font-triplet name="CharisSIL-Regular" style="normal" weight="normal"/>
</font>
<font metrics-url="file:///tmp/CharisSILB.ttf.xml"
embed-url="file:///usr/share/fonts/truetype/ttf-sil-charis/CharisSILB.ttf">
<font-triplet name="CharisSIL-Bold" style="normal" weight="bold"/>
</font>
<font metrics-url="file:///tmp/CharisSILI.ttf.xml"
embed-url="file:///usr/share/fonts/truetype/ttf-sil-charis/CharisSILI.ttf">
<font-triplet name="CharisSIL-Italic" style="italic" weight="normal"/>
</font>
<font metrics-url="file:///tmp/CharisSILBI.ttf.xml"
embed-url="file:///usr/share/fonts/truetype/ttf-sil-charis/CharisSILBI.ttf">
<font-triplet name="CharisSIL-Bold-Italic" style="italic" weight="bold"/>
</font>
<directory>/usr/share/fonts/truetype/ttf-sil-charis</directory>
<auto-detect/>
</fonts>
</renderer>
</renderers>
</fop>
and then set font-family="CharisSIL-Regular". After doing that,
everything worked.
Thanks for the help!
--
Jay Berkenbilt <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]