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 Daniel Rosenberg <da...@mawell.com> on 2007/11/08 20:24:54 UTC
Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Hi,
I'm trying to use the Latin Modern Type 1 fonts (v1.010) to generate a
PDF file with FOP 0.20.5. Generating font metrics with PFMReader works
fine (I guess), and the fonts get embedded into the PDF document. But,
every time the PDF document is opened in Adobe Reader (v7.0.8 on
Gentoo Linux) I get a warning saying "The font 'LMSans10-Bold'
contains bad /Flags". Any ideas of what the problem is?
Thanks,
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
On Tue, 2007-11-27 at 15:54 +0100, Jeremias Maerki wrote:
> On 27.11.2007 15:24:44 Daniel Rosenberg wrote:
> > Ok, so this is perhaps rather uncommon. I guess the reason would be to
> > improve readability and aesthetics -- it should be easy to read the
> > text and it should look as good as possible.
> >
> > I do not see the way the operating system is involved, at least not if
> > the fonts are embedded.
>
> I meant it this way: Install the Latin Modern fonts in your operating
> system. Does a word processor then automatically choose the right
> variant depending on the font size? Not really. It actually shows you
> each font separately in the font list because it gets all the fonts from
> the operating system. Maybe some extremely sophisticated desktop
> publishing application might bring its own font subsystem that would let
> you do something like that, but not without a lot of manual
> configuration, because the embedded information on how to interpret the
> individual font files is most likely insufficient for Type 1 and
> TrueType fonts.
>
> > If the feature is supported by the PDF
> > standard it should be supported by the PDF reader. Am i right? But
> > perhaps there could be problems if the fonts are not embedded?
>
> PDF doesn't directly support it but it the job of the producing
> application to select the font to use for each character. So if FOP had
> this functionality it could be made to work. But you could run into problems
> if the fonts were not embedded, yes.
>
> Look, if you absolutely want this feature, you'll have to look into it
> yourself and submit a patch. Otherwise, you simply have to use the
> work-around shown earlier.
Well, I just wanted to know whether this could be done with FOP, and
gain some font/FOP/PDF knowledge, which you have supplied. Thank you
Jeremias and Vincent for this!
/ Daniel
>
>
> Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 27.11.2007 15:24:44 Daniel Rosenberg wrote:
> Ok, so this is perhaps rather uncommon. I guess the reason would be to
> improve readability and aesthetics -- it should be easy to read the
> text and it should look as good as possible.
>
> I do not see the way the operating system is involved, at least not if
> the fonts are embedded.
I meant it this way: Install the Latin Modern fonts in your operating
system. Does a word processor then automatically choose the right
variant depending on the font size? Not really. It actually shows you
each font separately in the font list because it gets all the fonts from
the operating system. Maybe some extremely sophisticated desktop
publishing application might bring its own font subsystem that would let
you do something like that, but not without a lot of manual
configuration, because the embedded information on how to interpret the
individual font files is most likely insufficient for Type 1 and
TrueType fonts.
> If the feature is supported by the PDF
> standard it should be supported by the PDF reader. Am i right? But
> perhaps there could be problems if the fonts are not embedded?
PDF doesn't directly support it but it the job of the producing
application to select the font to use for each character. So if FOP had
this functionality it could be made to work. But you could run into problems
if the fonts were not embedded, yes.
Look, if you absolutely want this feature, you'll have to look into it
yourself and submit a patch. Otherwise, you simply have to use the
work-around shown earlier.
Jeremias Maerki
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: What about 'maximum-repeats'? RE: Is it possible to limit FOP transformation output (PDF) onyl to several pages?
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
No, the spec defines that the implementation should reuse the last
page-master if there's more content but no more page-masters. There's
nothing built into FOP that allows you to do that. I've explained to you
the options that are available right now. Everything else involves
hacking FOP.
Jeremias Maerki
On 27.11.2007 16:35:42 Andrejus Chaliapinas wrote:
> > There's nothing in XSLT or FO that lets you do that. But you can go
>
> Found described here:
> http://www.cafeconleche.org/books/bible2/chapters/ch18.html
>
> <fo:page-sequence-master master-name="contents">
> <fo:repeatable-page-master-reference master-reference="A4"
> maximum-repeats="10"/>
> </fo:page-sequence-master>
>
> Will it work if I change value to 2 (for my test case of 2 initial document
> pages)?
>
> Andrejus
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
What about 'maximum-repeats'? RE: Is it possible to limit FOP transformation output (PDF) onyl to several pages?
Posted by Andrejus Chaliapinas <a....@infosana.com>.
> There's nothing in XSLT or FO that lets you do that. But you can go
Found described here:
http://www.cafeconleche.org/books/bible2/chapters/ch18.html
<fo:page-sequence-master master-name="contents">
<fo:repeatable-page-master-reference master-reference="A4"
maximum-repeats="10"/>
</fo:page-sequence-master>
Will it work if I change value to 2 (for my test case of 2 initial document
pages)?
Andrejus
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Is it possible to limit FOP transformation output (PDF) onyl to several pages?
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
There's nothing in XSLT or FO that lets you do that. But you can go
through FOP's intermediate format [1] because there you have each page
separately as an XML file which you can easily cut down to two pages.
Still, the whole document will be layouted. The alternative is to use a
PDF library to extract the first two pages from the full PDF file.
[1] http://xmlgraphics.apache.org/fop/stable/intermediate.html
Jeremias Maerki
On 27.11.2007 15:58:30 Andrejus Chaliapinas wrote:
> Hi,
>
> Is it possible to achieve via usage of fo:page-sequence-master or
> fo:page-sequence or combining fo:page-number into some xsl logic? While big
> documents may have one special front page and all the same layout rest pages
> - for testing purposes only 2 first document pages are required.
>
> Any help would be appreciated.
>
> Andrejus
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Is it possible to limit FOP transformation output (PDF) onyl to several pages?
Posted by Andrejus Chaliapinas <a....@infosana.com>.
Hi,
Is it possible to achieve via usage of fo:page-sequence-master or
fo:page-sequence or combining fo:page-number into some xsl logic? While big
documents may have one special front page and all the same layout rest pages
- for testing purposes only 2 first document pages are required.
Any help would be appreciated.
Andrejus
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Daniel Rosenberg wrote:
> Ok, so this is perhaps rather uncommon. I guess the reason would be to
> improve readability and aesthetics -- it should be easy to read the
> text and it should look as good as possible.
Yes. The rationale is that small text is more readable if the glyphs are
wider, whereas it’s not necessary for large text (on the contrary, you
want to put a decent number of glyphs on a same line). The Latin Modern
fonts are all from the same family (they all look similar), but the
glyphs have been slightly adjusted and widened for the small sizes. The
difference is obvious when displaying the same text at the same size
with the several fonts.
This is really the same concern as having a dedicated font for small
caps, or for different stretches. Only, this puts the level a bit
higher.
And this is orthogonal to the format used to describe the font. In this
case the vectorial format is not so much used to be able to display the
font at different sizes, as to allow glyphs to be reproduced with a good
precision at all resolutions (screen, low/high quality printer...).
I’m sure typographists from the pre-numeric era were used that concept.
> I do not see the way the operating system is involved, at least not if
> the fonts are embedded. If the feature is supported by the PDF
> standard it should be supported by the PDF reader. Am i right? But
> perhaps there could be problems if the fonts are not embedded?
Well, the question shouldn’t be formulated that way. PDF does not know
anything about font resolution. All it knows is displaying some text
with some given font at a given size.
Operating systems could be able to select the right font for the right
size, but they simply don’t implement (to my knowledge) that feature
which is relevant to high-level typography. So you have to do it
yourself, or use a high-quality publishing application that does it for
you. Unfortunately FOP isn’t one of them yet...
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Ok, so this is perhaps rather uncommon. I guess the reason would be to
improve readability and aesthetics -- it should be easy to read the
text and it should look as good as possible.
I do not see the way the operating system is involved, at least not if
the fonts are embedded. If the feature is supported by the PDF
standard it should be supported by the PDF reader. Am i right? But
perhaps there could be problems if the fonts are not embedded?
/ Daniel
On Tue, 2007-11-27 at 13:55 +0100, Jeremias Maerki wrote:
> Does your operating system support it? I bet it doesn't. At any rate,
> I've never seen this with scalable fonts. I'm sure there's a reason why
> the Latin Modern fonts were designed this way, but it's the first set
> I've seen of that kind.
>
> Jeremias Maerki
>
>
>
> On 27.11.2007 13:44:57 Daniel Rosenberg wrote:
> > Ok, thanks, now I know the status of this. Is this 'multi sized' font
> > design unusual perhaps?
> >
> > / Daniel
> >
> >
> > On Tue, 2007-11-27 at 11:50 +0100, Jeremias Maerki wrote:
> > > No, it wouldn't be that easy (i.e. not a two hour job) and if we change
> > > something there, we should also handle font-stretch, font-variant and
> > > font substitution properly at the same time, which IMO are more
> > > important (font-stretch anyway). At any rate, it's possible, but to my
> > > knowledge Daniel is the first user to ask for font-size-dependent font
> > > selection.
> > >
> > > Jeremias Maerki
> > >
> > >
> > >
> > > On 27.11.2007 11:28:20 Vincent Hennebert wrote:
> > > > Daniel Rosenberg wrote:
> > > > > Ok, so I can have only one entry for each unique font triplet? Is this
> > > > > due to a shortcoming in FOP, or due to limitations in PDF?
> > > >
> > > > It’s a shortcoming of FOP I’m afraid. Ideally, each time the font size
> > > > changes it should check if there is a font from the same family designed
> > > > for that size.
> > > >
> > > > The font sub-system has evolved quite a bit recently and I didn’t follow
> > > > the changes in detail, but I don’t believe this is something FOP is
> > > > doing, and I’m not even sure the current design can easily handle that.
> > > > Maybe font specialists will be able to provide more details.
> > > >
> > > > Vincent
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
Does your operating system support it? I bet it doesn't. At any rate,
I've never seen this with scalable fonts. I'm sure there's a reason why
the Latin Modern fonts were designed this way, but it's the first set
I've seen of that kind.
Jeremias Maerki
On 27.11.2007 13:44:57 Daniel Rosenberg wrote:
> Ok, thanks, now I know the status of this. Is this 'multi sized' font
> design unusual perhaps?
>
> / Daniel
>
>
> On Tue, 2007-11-27 at 11:50 +0100, Jeremias Maerki wrote:
> > No, it wouldn't be that easy (i.e. not a two hour job) and if we change
> > something there, we should also handle font-stretch, font-variant and
> > font substitution properly at the same time, which IMO are more
> > important (font-stretch anyway). At any rate, it's possible, but to my
> > knowledge Daniel is the first user to ask for font-size-dependent font
> > selection.
> >
> > Jeremias Maerki
> >
> >
> >
> > On 27.11.2007 11:28:20 Vincent Hennebert wrote:
> > > Daniel Rosenberg wrote:
> > > > Ok, so I can have only one entry for each unique font triplet? Is this
> > > > due to a shortcoming in FOP, or due to limitations in PDF?
> > >
> > > It’s a shortcoming of FOP I’m afraid. Ideally, each time the font size
> > > changes it should check if there is a font from the same family designed
> > > for that size.
> > >
> > > The font sub-system has evolved quite a bit recently and I didn’t follow
> > > the changes in detail, but I don’t believe this is something FOP is
> > > doing, and I’m not even sure the current design can easily handle that.
> > > Maybe font specialists will be able to provide more details.
> > >
> > > Vincent
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Ok, thanks, now I know the status of this. Is this 'multi sized' font
design unusual perhaps?
/ Daniel
On Tue, 2007-11-27 at 11:50 +0100, Jeremias Maerki wrote:
> No, it wouldn't be that easy (i.e. not a two hour job) and if we change
> something there, we should also handle font-stretch, font-variant and
> font substitution properly at the same time, which IMO are more
> important (font-stretch anyway). At any rate, it's possible, but to my
> knowledge Daniel is the first user to ask for font-size-dependent font
> selection.
>
> Jeremias Maerki
>
>
>
> On 27.11.2007 11:28:20 Vincent Hennebert wrote:
> > Daniel Rosenberg wrote:
> > > Ok, so I can have only one entry for each unique font triplet? Is this
> > > due to a shortcoming in FOP, or due to limitations in PDF?
> >
> > It’s a shortcoming of FOP I’m afraid. Ideally, each time the font size
> > changes it should check if there is a font from the same family designed
> > for that size.
> >
> > The font sub-system has evolved quite a bit recently and I didn’t follow
> > the changes in detail, but I don’t believe this is something FOP is
> > doing, and I’m not even sure the current design can easily handle that.
> > Maybe font specialists will be able to provide more details.
> >
> > Vincent
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
No, it wouldn't be that easy (i.e. not a two hour job) and if we change
something there, we should also handle font-stretch, font-variant and
font substitution properly at the same time, which IMO are more
important (font-stretch anyway). At any rate, it's possible, but to my
knowledge Daniel is the first user to ask for font-size-dependent font
selection.
Jeremias Maerki
On 27.11.2007 11:28:20 Vincent Hennebert wrote:
> Daniel Rosenberg wrote:
> > Ok, so I can have only one entry for each unique font triplet? Is this
> > due to a shortcoming in FOP, or due to limitations in PDF?
>
> It’s a shortcoming of FOP I’m afraid. Ideally, each time the font size
> changes it should check if there is a font from the same family designed
> for that size.
>
> The font sub-system has evolved quite a bit recently and I didn’t follow
> the changes in detail, but I don’t believe this is something FOP is
> doing, and I’m not even sure the current design can easily handle that.
> Maybe font specialists will be able to provide more details.
>
> Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Daniel Rosenberg wrote:
> Ok, so I can have only one entry for each unique font triplet? Is this
> due to a shortcoming in FOP, or due to limitations in PDF?
It’s a shortcoming of FOP I’m afraid. Ideally, each time the font size
changes it should check if there is a font from the same family designed
for that size.
The font sub-system has evolved quite a bit recently and I didn’t follow
the changes in detail, but I don’t believe this is something FOP is
doing, and I’m not even sure the current design can easily handle that.
Maybe font specialists will be able to provide more details.
Vincent
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Ok, so I can have only one entry for each unique font triplet? Is this
due to a shortcoming in FOP, or due to limitations in PDF?
/ Daniel
On Mon, 2007-11-26 at 14:56 +0000, Vincent Hennebert wrote:
> Hi Daniel,
>
> Daniel Rosenberg wrote:
> > Yes,
> >
> > but isn't this characteristics of 'differently sized' fonts there to
> > optimize readability and aesthetics of a font when typesetted in
> > different sizes?
>
> You’re right. Those numbers are indeed sizes and correspond to an
> optimal point size at which the font looks best. Even if, being
> described in a vectorial format, they can be scaled to any size.
>
> I don’t think the way you did will work, although that would be the most
> desirable one. I believe the only way is to “cheat” by hard-coding the
> font size in the family name:
> <font kerning="yes" metrics-file="lmr12.xml" embed-file="lmr12.pfb">
> <font-triplet name="LMRoman-12" style="normal" weight="normal"/>
> </font>
>
> In your FO document, you would change the font family in addition to
> changing the font size:
> <fo:block font-family="LMRoman-12" font-size="12pt"...
>
> That may be an easy change depending on the way you generate your FO
> files.
>
> HTH,
> Vincent
>
>
> > Scaling works fine, but I guess the result will be
> > even better if all availabe fonts are utilized?
> >
> > / Daniel
> >
> >
> > On Mon, 2007-11-26 at 09:25 +0100, Jeremias Maerki wrote:
> >> I think you've got that wrong. The numbers behind the font names are not
> >> sizes. I don't know the English word for the typography term, but in
> >> this font family: the lower the number, the wider the individual
> >> characters and the character spacing.
> >>
> >> Type 1 fonts are scalable, so you don't need different fonts for
> >> different sizes.
> >>
> >> Jeremias Maerki
> >>
> >>
> >>
> >> On 25.11.2007 02:17:30 Daniel Rosenberg wrote:
> >>> Hi, I have another question. The Latin Modern fonts have different
> >>> versions of different sizes of fonts. Can I utilize this in my
> >>> generated PDF document?
> >>>
> >>> For example, I'd like to include something like
> >>>
> >>> <font metrics-file="type1/public/lm/lmr10.xml" kerning="yes"
> >>> embed-file="type1/public/lm/lmr10.pfb">
> >>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> >>> </font>
> >>> <font metrics-file="type1/public/lm/lmr12.xml" kerning="yes"
> >>> embed-file="type1/public/lm/lmr12.pfb">
> >>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> >>> </font>
> >>> <font metrics-file="type1/public/lm/lmr17.xml" kerning="yes"
> >>> embed-file="type1/public/lm/lmr17.pfb">
> >>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> >>> </font>
> >>>
> >>> in my userconfig.xml and then (in some way) switch between the
> >>> differently sized fonts.
> >>>
> >>> / Daniel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Vincent Hennebert <vi...@anyware-tech.com>.
Hi Daniel,
Daniel Rosenberg wrote:
> Yes,
>
> but isn't this characteristics of 'differently sized' fonts there to
> optimize readability and aesthetics of a font when typesetted in
> different sizes?
You’re right. Those numbers are indeed sizes and correspond to an
optimal point size at which the font looks best. Even if, being
described in a vectorial format, they can be scaled to any size.
I don’t think the way you did will work, although that would be the most
desirable one. I believe the only way is to “cheat” by hard-coding the
font size in the family name:
<font kerning="yes" metrics-file="lmr12.xml" embed-file="lmr12.pfb">
<font-triplet name="LMRoman-12" style="normal" weight="normal"/>
</font>
In your FO document, you would change the font family in addition to
changing the font size:
<fo:block font-family="LMRoman-12" font-size="12pt"...
That may be an easy change depending on the way you generate your FO
files.
HTH,
Vincent
> Scaling works fine, but I guess the result will be
> even better if all availabe fonts are utilized?
>
> / Daniel
>
>
> On Mon, 2007-11-26 at 09:25 +0100, Jeremias Maerki wrote:
>> I think you've got that wrong. The numbers behind the font names are not
>> sizes. I don't know the English word for the typography term, but in
>> this font family: the lower the number, the wider the individual
>> characters and the character spacing.
>>
>> Type 1 fonts are scalable, so you don't need different fonts for
>> different sizes.
>>
>> Jeremias Maerki
>>
>>
>>
>> On 25.11.2007 02:17:30 Daniel Rosenberg wrote:
>>> Hi, I have another question. The Latin Modern fonts have different
>>> versions of different sizes of fonts. Can I utilize this in my
>>> generated PDF document?
>>>
>>> For example, I'd like to include something like
>>>
>>> <font metrics-file="type1/public/lm/lmr10.xml" kerning="yes"
>>> embed-file="type1/public/lm/lmr10.pfb">
>>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
>>> </font>
>>> <font metrics-file="type1/public/lm/lmr12.xml" kerning="yes"
>>> embed-file="type1/public/lm/lmr12.pfb">
>>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
>>> </font>
>>> <font metrics-file="type1/public/lm/lmr17.xml" kerning="yes"
>>> embed-file="type1/public/lm/lmr17.pfb">
>>> <font-triplet name="LMRoman" style="normal" weight="normal"/>
>>> </font>
>>>
>>> in my userconfig.xml and then (in some way) switch between the
>>> differently sized fonts.
>>>
>>> / Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Yes,
but isn't this characteristics of 'differently sized' fonts there to
optimize readability and aesthetics of a font when typesetted in
different sizes? Scaling works fine, but I guess the result will be
even better if all availabe fonts are utilized?
/ Daniel
On Mon, 2007-11-26 at 09:25 +0100, Jeremias Maerki wrote:
> I think you've got that wrong. The numbers behind the font names are not
> sizes. I don't know the English word for the typography term, but in
> this font family: the lower the number, the wider the individual
> characters and the character spacing.
>
> Type 1 fonts are scalable, so you don't need different fonts for
> different sizes.
>
> Jeremias Maerki
>
>
>
> On 25.11.2007 02:17:30 Daniel Rosenberg wrote:
> > Hi, I have another question. The Latin Modern fonts have different
> > versions of different sizes of fonts. Can I utilize this in my
> > generated PDF document?
> >
> > For example, I'd like to include something like
> >
> > <font metrics-file="type1/public/lm/lmr10.xml" kerning="yes"
> > embed-file="type1/public/lm/lmr10.pfb">
> > <font-triplet name="LMRoman" style="normal" weight="normal"/>
> > </font>
> > <font metrics-file="type1/public/lm/lmr12.xml" kerning="yes"
> > embed-file="type1/public/lm/lmr12.pfb">
> > <font-triplet name="LMRoman" style="normal" weight="normal"/>
> > </font>
> > <font metrics-file="type1/public/lm/lmr17.xml" kerning="yes"
> > embed-file="type1/public/lm/lmr17.pfb">
> > <font-triplet name="LMRoman" style="normal" weight="normal"/>
> > </font>
> >
> > in my userconfig.xml and then (in some way) switch between the
> > differently sized fonts.
> >
> > / Daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
I think you've got that wrong. The numbers behind the font names are not
sizes. I don't know the English word for the typography term, but in
this font family: the lower the number, the wider the individual
characters and the character spacing.
Type 1 fonts are scalable, so you don't need different fonts for
different sizes.
Jeremias Maerki
On 25.11.2007 02:17:30 Daniel Rosenberg wrote:
> Hi, I have another question. The Latin Modern fonts have different
> versions of different sizes of fonts. Can I utilize this in my
> generated PDF document?
>
> For example, I'd like to include something like
>
> <font metrics-file="type1/public/lm/lmr10.xml" kerning="yes"
> embed-file="type1/public/lm/lmr10.pfb">
> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> </font>
> <font metrics-file="type1/public/lm/lmr12.xml" kerning="yes"
> embed-file="type1/public/lm/lmr12.pfb">
> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> </font>
> <font metrics-file="type1/public/lm/lmr17.xml" kerning="yes"
> embed-file="type1/public/lm/lmr17.pfb">
> <font-triplet name="LMRoman" style="normal" weight="normal"/>
> </font>
>
> in my userconfig.xml and then (in some way) switch between the
> differently sized fonts.
>
> / Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Good!
Modifying the flags worked fine.
Thanks / Daniel
On Tue, 2007-11-13 at 16:21 +0100, Jeremias Maerki wrote:
> This should now be fixed in FOP Trunk.
>
> On FOP 0.20.5 you can try setting <flags>34</flags> in the XML metric
> file. Use <flags>98<flags> for the italic variants.
>
> Jeremias Maerki
>
>
>
> On 08.11.2007 20:24:54 Daniel Rosenberg wrote:
> > Hi,
> >
> > I'm trying to use the Latin Modern Type 1 fonts (v1.010) to generate a
> > PDF file with FOP 0.20.5. Generating font metrics with PFMReader works
> > fine (I guess), and the fonts get embedded into the PDF document. But,
> > every time the PDF document is opened in Adobe Reader (v7.0.8 on
> > Gentoo Linux) I get a warning saying "The font 'LMSans10-Bold'
> > contains bad /Flags". Any ideas of what the problem is?
> >
> > Thanks,
> >
> > Daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Daniel Rosenberg <da...@mawell.com>.
Hi, I have another question. The Latin Modern fonts have different
versions of different sizes of fonts. Can I utilize this in my
generated PDF document?
For example, I'd like to include something like
<font metrics-file="type1/public/lm/lmr10.xml" kerning="yes"
embed-file="type1/public/lm/lmr10.pfb">
<font-triplet name="LMRoman" style="normal" weight="normal"/>
</font>
<font metrics-file="type1/public/lm/lmr12.xml" kerning="yes"
embed-file="type1/public/lm/lmr12.pfb">
<font-triplet name="LMRoman" style="normal" weight="normal"/>
</font>
<font metrics-file="type1/public/lm/lmr17.xml" kerning="yes"
embed-file="type1/public/lm/lmr17.pfb">
<font-triplet name="LMRoman" style="normal" weight="normal"/>
</font>
in my userconfig.xml and then (in some way) switch between the
differently sized fonts.
/ Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
This should now be fixed in FOP Trunk.
On FOP 0.20.5 you can try setting <flags>34</flags> in the XML metric
file. Use <flags>98<flags> for the italic variants.
Jeremias Maerki
On 08.11.2007 20:24:54 Daniel Rosenberg wrote:
> Hi,
>
> I'm trying to use the Latin Modern Type 1 fonts (v1.010) to generate a
> PDF file with FOP 0.20.5. Generating font metrics with PFMReader works
> fine (I guess), and the fonts get embedded into the PDF document. But,
> every time the PDF document is opened in Adobe Reader (v7.0.8 on
> Gentoo Linux) I get a warning saying "The font 'LMSans10-Bold'
> contains bad /Flags". Any ideas of what the problem is?
>
> Thanks,
>
> Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org