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 Peter Coppens <pc...@gmail.com> on 2007/11/07 16:51:54 UTC
Fop 0.94, png renderer and font
Gentlepeople
The fo below works just fine on 0.93 but gives a font substitution warning
on 0.94 (and trunk).
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns:ltml="http://www.luma.com/ltml">
<fo:layout-master-set>
<fo:simple-page-master page-width="1232.5511pt" page-height="883.8898pt"
master-name="Page1">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="Page1">
<fo:flow flow-name="xsl-region-body">
<fo:block-container width="100pt" top="10pt" overflow="hidden"
left="10pt" height="100pt" absolute-position="fixed">
<fo:block font-family="Futura Book" color="black"
font-size="10">Olala</fo:block>
</fo:block-container>
</fo:flow>
</fo:page-sequence>
</fo:root>
Putting single quotes around the font name does not make a difference.
Anyone any guidance?
Many thanks indeed!
Peter
--
View this message in context: http://www.nabble.com/Fop-0.94%2C-png-renderer-and-font-tf4765491.html#a13629650
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Fop 0.94, png renderer and font
Posted by Peter Coppens <pc...@gmail.com>.
Thanks Jeremias...back to the triplets it is I guess...as I have to deal with
type 1 and truetype fonts.
Peter
--
View this message in context: http://www.nabble.com/Fop-0.94%2C-png-renderer-and-font-tf4765491.html#a13633998
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Fop 0.94, png renderer and font
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
The problem all comes from the font-autodetection that we now have.
Before we had it, everyone could simply configure the fonts like he need
it. But now, the font names have to be exactly right in order to have a
match between what AWT offers and what our font library determines.
The work-around at the moment: Configure each font manually and provide
the desired name in the font triplet.
I'm looking into this issue and I've already figured out what has to be
changed. The problem: In the short term, I can only properly fix it for
TrueType but not for Type 1 since the so-called "full name" of the font
is not in the PFM file, only in the PFA or PFB. And we don't have a
parser for it. That is, Victor has one in his FOray font. :-)
Jeremias Maerki
On 07.11.2007 17:06:32 Peter Coppens wrote:
>
> So I started debugging....and it looks like in 0.94 and beyond the font is
> registered as Futura and not Futura Book.
>
> This is all very confusing.
>
> Actually, what I am looking for is a strategy where I can use the same fo
> file to render either using the pdf renderer (and autodetected fonts from a
> directory) or the png renderer (with system fonts...of course)
>
> It is all very confusing and I can't really seem to get hold of a clear
> explanation how font names are constructed from the font file and what the
> differences are in this respect between the pdf and png renderer. I have
> read the XMLGraphics font's page but unless I overlooked, that info is not
> there.
>
> Is there some information on font naming somewhere available?
>
> Does anyone have any guidance on how to use the same fo input for both pdf
> and png renderer without bumping ones head against the font hell?
>
> Thanks!
>
> Peter
> --
> View this message in context: http://www.nabble.com/Fop-0.94%2C-png-renderer-and-font-tf4765491.html#a13630139
> Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Fop 0.94, png renderer and font
Posted by Peter Coppens <pc...@gmail.com>.
So I started debugging....and it looks like in 0.94 and beyond the font is
registered as Futura and not Futura Book.
This is all very confusing.
Actually, what I am looking for is a strategy where I can use the same fo
file to render either using the pdf renderer (and autodetected fonts from a
directory) or the png renderer (with system fonts...of course)
It is all very confusing and I can't really seem to get hold of a clear
explanation how font names are constructed from the font file and what the
differences are in this respect between the pdf and png renderer. I have
read the XMLGraphics font's page but unless I overlooked, that info is not
there.
Is there some information on font naming somewhere available?
Does anyone have any guidance on how to use the same fo input for both pdf
and png renderer without bumping ones head against the font hell?
Thanks!
Peter
--
View this message in context: http://www.nabble.com/Fop-0.94%2C-png-renderer-and-font-tf4765491.html#a13630139
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org