I think you need to add a font definition to you fop.xconf.
Here's one I have in my config.
<renderers>
<renderer mime="application/pdf">
<fonts>
<font metrics-url="GillSansMTPro-Medium.xml" kerning="yes"
embed-url="GillSansMTPro-Medium.ttf">
<font-triplet name="GillSansMTPro" style="normal" weight="normal"/>
</font>
...
On 03/23/2011 09:24 AM, Zac Nichol wrote:
OK so since FOP cannot do style attribute of outline, I instead found
a font whose normal appearance looks like what you would call an
outline style. The font's name is "Swis721 BdOul BT" (I know this
because i open the file in Font Viewer on Ubuntu and that's waht it
says is the "Name") and it's in a file called "swissbo.ttf" and it's
saved at location /usr/share/fonts/swissbo.ttf. BUT now I just can't
seem to make it work. Here's what I'm doing in detail...
I've got my configuration file which contains the code like this:
...
<fonts>
<directory>/usr/share/fonts</directory>
</fonts>
...
and i'm calling FOP like this: fop -c fop.xconf template.fo output.pdf
inside template.fo I refer to the font like this:
...
<fo:block font-size="14pt" font="Swis721 BdOul BT"
text-align="center">some text</fo:block>
...
is this wrong? i've also tried doing "font-family=" instead of just
"font=" and it also doesn't work. It just prints it in Times New
Roman i think.
Any help is appreciated. THank you.
-Zac
On Tue, Mar 22, 2011 at 4:22 PM, Rob Sargent<[email protected]> wrote:
I suspect you either need to acquire a "outline" font or if you system has
one then you may need to set the option to look locally fonts using
"<auto-detect/>" in your fop_config.xml file. Either way you have to name
the font with 'font-family="your-outline-font"' in your fo. It is not a
font-style far as I know.
On 03/22/2011 12:30 PM, Zac Nichol wrote:
can fop do "outline" style font? how? if not is there some kind of
workaround?
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
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]