Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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 +, 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [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]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
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 flags34/flags in the XML metric file. Use flags98flags 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem generating PDF with FOP 0.20.5 and Latin Modern fonts
This should now be fixed in FOP Trunk. On FOP 0.20.5 you can try setting flags34/flags in the XML metric file. Use flags98flags 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]