You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pascal Sancho <pa...@takoma.fr> on 2011/05/11 10:36:35 UTC
Re: Determine font names to use
Hi Theresa,
perhaps this link can help you:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#font-list
Le 11/05/2011 10:16, Theresa Jayne Forster a écrit :
> I am slowly getting through this minefield,
>
>
>
> For the AutoReg fonts, how do we determine the names to use in the XML
>
> I have been trying the following and am getting annoying and conflicting
> results.
>
>
>
> The text in the xsl is
>
> <fo:block font-family="FrutigerNormal" font-weight="normal"
> font-style="normal" font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
>
> </fo:block>
>
>
>
> Error is
>
> 2011-05-11 09:01:21,837 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "FrutigerNormal,normal,400" not found. Substituting with
> "any,normal,400".
>
>
>
> Next change.
>
>
>
> Text in the xsl is changed to
>
> <fo:block font-family="Frutiger" font-weight="normal"
> font-style="normal" font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect
> fonts</fo:block>
>
>
>
> FOP works fine,
>
>
>
> Adobe responds however with a large bullet on the page and the popup
> “Cannot find or create the font ‘FrutigerLight’. Some Characters may not
> display or print correctly.
>
>
>
> FOP log shows
>
> 2011-05-11 09:04:11,918 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> Frutiger,normal,200".
>
>
>
>
>
> Ok lets try it one more time…
>
> <fo:block font-family="Frutiger" font-weight="light" font-style="normal"
> font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
> </fo:block>
>
>
>
> Popup the same,
>
>
>
> Log the same
>
> 2011-05-11 09:07:31,919 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> "Frutiger,normal,200".
>
>
>
> Ok that’s strange its not accepting the font-weight param anymore (the
> old version of Fop worked fine.)
>
>
>
> Change the XSL to font-weight=”200” and there is no error in the FOP
> logs but still the same error on the PDF.
>
>
>
> So, how do we use these fonts and how do you find the names needed to
> use them properly ?
>
>
>
> The fopconfig.xml is as follows.
>
>
>
> <renderer mime="application/pdf">
>
> <fonts>
>
> <directory
> recursive="true">C:/Runtime/Fonts</directory>
>
> <auto-detect/>
>
> </fonts>
>
> </renderer>
>
>
>
> Kindest regards
>
>
>
>
> Theresa Forster
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
RE: Determine font names to use
Posted by Theresa Jayne Forster <th...@inbrand.co.uk>.
Thanks for the information but I am using FOP as an api within a tomcat app so while it may help as a standalone thing, I was hoping to be able to get the actual names programmatically so that I could generate a list in the app of installed fonts on the JS editor.
Theresa
-----Original Message-----
From: Pascal Sancho [mailto:pascal.sancho@takoma.fr]
Sent: 11 May 2011 09:37
To: fop-users@xmlgraphics.apache.org
Subject: Re: Determine font names to use
Hi Theresa,
perhaps this link can help you:
http://xmlgraphics.apache.org/fop/1.0/fonts.html#font-list
Le 11/05/2011 10:16, Theresa Jayne Forster a écrit :
> I am slowly getting through this minefield,
>
>
>
> For the AutoReg fonts, how do we determine the names to use in the XML
>
> I have been trying the following and am getting annoying and conflicting
> results.
>
>
>
> The text in the xsl is
>
> <fo:block font-family="FrutigerNormal" font-weight="normal"
> font-style="normal" font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
>
> </fo:block>
>
>
>
> Error is
>
> 2011-05-11 09:01:21,837 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "FrutigerNormal,normal,400" not found. Substituting with
> "any,normal,400".
>
>
>
> Next change.
>
>
>
> Text in the xsl is changed to
>
> <fo:block font-family="Frutiger" font-weight="normal"
> font-style="normal" font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect
> fonts</fo:block>
>
>
>
> FOP works fine,
>
>
>
> Adobe responds however with a large bullet on the page and the popup
> “Cannot find or create the font ‘FrutigerLight’. Some Characters may not
> display or print correctly.
>
>
>
> FOP log shows
>
> 2011-05-11 09:04:11,918 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> Frutiger,normal,200".
>
>
>
>
>
> Ok lets try it one more time…
>
> <fo:block font-family="Frutiger" font-weight="light" font-style="normal"
> font-size="15pt" text-align="left">
>
> This is supposed to be in Frutiger Normal to test the auto-detect fonts
> </fo:block>
>
>
>
> Popup the same,
>
>
>
> Log the same
>
> 2011-05-11 09:07:31,919 [main] WARN org.apache.fop.apps.FOUserAgent -
> Font "Frutiger,normal,400" not found. Substituting with
> "Frutiger,normal,200".
>
>
>
> Ok that’s strange its not accepting the font-weight param anymore (the
> old version of Fop worked fine.)
>
>
>
> Change the XSL to font-weight=”200” and there is no error in the FOP
> logs but still the same error on the PDF.
>
>
>
> So, how do we use these fonts and how do you find the names needed to
> use them properly ?
>
>
>
> The fopconfig.xml is as follows.
>
>
>
> <renderer mime="application/pdf">
>
> <fonts>
>
> <directory
> recursive="true">C:/Runtime/Fonts</directory>
>
> <auto-detect/>
>
> </fonts>
>
> </renderer>
>
>
>
> Kindest regards
>
>
>
>
> Theresa Forster
--
Pascal
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1325 / Virus Database: 1500/3628 - Release Date: 05/10/11
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org