You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Srinivasa, Raju (GEA, 064347)" <L0...@Exchange.appl.ge.com> on 2001/04/04 16:14:53 UTC
Help with adding a new font to FOP
I need to add POSTNET font to FOP. I tried to folow instructions on
xml.apache.org under "Font Support" section of FOP.
I have generated the font metrics xml file from .ttf file.
To register this font with FOP I believe I need to add the below lines to
userconfig.xml :
<font metrics-file="/fonts/postnet.xml" kerning="yes"
embed-file="/fonts/postnet.ttf"> <font-triplet name="postnet" style="normal"
weight="normal"> </font>
Here are my questions:
1. What is <font-triplet> tag ? Doesn't it need an end tag ?
2. Where exactly in userconfig.xml will I place these lines ? Instructions
say '"under fonts section", I do not see any font section. Also config.dtd
does not mention any font stuff.
I would greatly appreciate your help as I need to complete my project soon.
jeremias:
I tried to address this to you directly also as I saw a lot of your mails
answering similar questions. Please let me know if I should not have done
this.
Thanks,
Srinivasa Raju
GE Appliances
Louisville KY
Re: Help with adding a new font to FOP
Posted by Micah Blake McCurdy <mi...@hfx.eastlink.ca>.
On Wednesday 04 April 2001 11:14, you wrote:
> I need to add POSTNET font to FOP. I tried to folow instructions on
> xml.apache.org under "Font Support" section of FOP.
>
> I have generated the font metrics xml file from .ttf file.
>
> To register this font with FOP I believe I need to add the below lines to
> userconfig.xml :
> <font metrics-file="/fonts/postnet.xml" kerning="yes"
> embed-file="/fonts/postnet.ttf"> <font-triplet name="postnet"
> style="normal" weight="normal"> </font>
> Here are my questions:
> 1. What is <font-triplet> tag ? Doesn't it need an end tag ?
the font triplet specifies the font more precisely than merely it's name and
location: if you have bold text, it's postnet,bold,normal, ifyou have have
italic, it's postnet,italic,normal, you get the idea. It needs a closing
slash like everything else.
> 2. Where exactly in userconfig.xml will I place these lines ? Instructions
> say '"under fonts section", I do not see any font section. Also config.dtd
> does not mention any font stuff.
There should be a tag named <fonts>. If there isn't, create it, it goes under
the <configuration> element
> I would greatly appreciate your help as I need to complete my project
> soon. jeremias:
> I tried to address this to you directly also as I saw a lot of your mails
> answering similar questions. Please let me know if I should not have done
> this.
> Thanks,
> Srinivasa Raju
> GE Appliances
> Louisville KY
----------------------------------------
Content-Type: text/html; charset="iso-8859-1"; name="Attachment: 1"
Content-Transfer-Encoding: quoted-printable
Content-Description:
----------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org