Hi Sabine,
thanx a lot,
i'll try it this way.
do you know any class to render pdf2image? maybe i should try it this
way.
Kris
On Dec 13, 2006, at 2:02 PM, s.schwanitz wrote:
Hi,
i'm setting the font-base in my java app using
"fopFactory.setFontBaseURL("etc/fonts/")" (using fop trunk); Add
your current web/fonts folder to your classpath . Then the simple
reference to "calligra.ttf" should work.
I don't know anything about integrating fonts with images.
Sabine
Kris Wolff schrieb:
Ok,
font-base does not do anything in my project.... wonder why.
but this works:
<font metrics-url="/Users/kriswolff/Projects/PHYRE-dtp/build/web/
fonts/calligra.xml" kerning="yes" embed-url="file:///Users/
kriswolff/Projects/PHYRE-dtp/build/web/fonts/calligra.ttf">
<font-triplet name="Calligrapher" style="normal"
weight="normal"/>
</font>
How can i set the Path to the WEB-INF? Is there is any posibility
to abstract the config?
Thanx again.
On Dec 13, 2006, at 1:27 PM, Kris Wolff wrote:
Hi,
thanx, but this is not working for me. I set the font-base ans
strip down the font-tag, checked it, triesd with metrics-url and
metrcs file. tryed with the full path, and with /path_to_font and
file:///path_to_font,
always replacing to default-font.
i recreated the metrix with -enc ansi
I spezify the fo:block like you suggested.
>> WARNING: Font 'Calligrapher,normal,400' not found.
Substituting with default font.
Any othe idea?
On Dec 13, 2006, at 1:09 PM, s.schwanitz wrote:
Hi Kris,
try to set the font-base attribute in fo config file. It's right
under the root. You might need to specify font-weight and font-
style in directly your stylesheet, too so that it exactly
matches the config settings. e.g..
<fo:block font-family="Calligrapher" font-size="72pt" font-
weight="normal" font-style="normal">
<xsl:value-of select="text()"/>
</fo:block>
Good luck.
Sabine
Kris Wolff schrieb:
Hi folks,
i try very hard to enable a font but without any result. This
morning i went to bed and hoped it helps.. but today i stuck in
the same place. Font is not working.
Maybe you can help me.
I am using Fop 0.90 with Tomcat 5.5. on a Mac.
I graped a ttf font and build the xml:
--<
# java org.apache.fop.fonts.apps.TTFReader /tmp/calligra.ttf ./
calligra.xml
TTF Reader for Apache FOP SVN tags/fop-0_90-alpha1
Parsing font...
Reading /tmp/calligra.ttf...
Number of glyphs in font: 247
3 cmap tables
CMAP format: 4
Creating xml font file...
Creating CID encoded metrics...
Writing xml font file ./calligra.xml...
This font contains no embedding license restrictions.
XML font metrics file successfullly created.
<--
than i moved the font and the generated xml to a dir names /
fonts inside my Web-Tree.
I Edited the conf for FOP
Basedir ist the WEB-INF/classes directory.
in <renderer mime="application/pdf"> under <fonts> i build a
tag like:
-->
<font metrics-url="../../fonts/calligra.xml" kerning="yes"
embed-url="../../fonts/calligra.ttf">
<font-triplet name="Calligrapher" style="normal"
weight="normal"/>
</font>
<--
I edit the xsl:
-->
<fo:block font-family="Calligrapher" font-size="72pt">
<xsl:value-of select="text()"/>
</fo:block>
<--
I run the app and get:
-->
Dec 13, 2006 12:46:21 PM org.apache.fop.fonts.FontInfo
notifyFontReplacement
WARNING: Font 'Calligrapher,normal,400' not found. Substituting
with default font.
<--
Do i have somthing forgotten?
Thanks in advanced.
Kris
------------------------------------------------------------------
---
To unsubscribe, e-mail: fop-users-
[EMAIL PROTECTED]
For additional commands, e-mail: fop-users-
[EMAIL PROTECTED]
-------------------------------------------------------------------
--
To unsubscribe, e-mail: fop-users-
[EMAIL PROTECTED]
For additional commands, e-mail: fop-users-
[EMAIL PROTECTED]
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: fop-users-
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: fop-users-
[EMAIL PROTECTED]
---------------------------------------------------------------------
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]