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 Dennis Myrén <de...@greydigital.no> on 2002/11/12 21:36:20 UTC

PFM font embedding problems.

Hi.
I am with joy using the FOP processor to generate PDF documents
from XSL FO documents.
I now have to embed a third party Postscript based font(a PFM file).
I have experienced problems with this embedding inside the PDF document.
Could someone give me a deep explanation on how to achive this, step by step?
I would be so thankful.
I really cant get it to work I think.
When attempting to open the PDF in Adobe Acrobat Reader 5.0,
this message pops up:
"Unable to extract the embedded font 'StandardGroteskBSK-Regular'. 
Some characters may not display or print correctly."
It then defaults to Helvetica. "Using Helvetica instead"

When attempting to open the PDF in Adobe Illustrator 10 (choosing File->Open),
this message pops up:
"The PDF File Format is having difficulties." (or something like that)
I have not yet achieved to open a FOP generated PDF in Illustrator 10 using that method at all.
But, if I choose to create a new document first, and then choose
File->Place 
(or drag the file from the file explorer and drop it in this document area in Illustrator)
it succeeds and loads the content of the PDF.
When my PDF finally got into Illustrator, it actually showed the PDF with the correct fonts
(as the name "StandardGroteskBSK-Regular" in the font box)
So why do I get that
"Unable to extract the embedded font 'StandardGroteskBSK-Regular'. 
Some characters may not display or print correctly."
from Adobe Acrobat Reader 5.0 ?
But, now, cells in my tables existing within this PDF document running in Illustrator 10,
are not correctly aligned. I use very simple tables in this document.
Besides, I have tried this with other fonts, using the same PDF document. The result is then perfect.
Could that have something to do with the calculations in the 
"StandardGroteskBSK-Regular" XML font metrics file?
I have read that these calculations are only approximations of the actual values.
Do i have to manually alter this file then?
I am running Windows XP.
 
any help appreciated.
 
regards
Dennis, Grey Digital Oslo

Re: Borders with 0.5pt in size renders improperly (0.20.5)

Posted by mk...@exceldata.com.
Ok, thx

Is this a general AWT issue or something with FOP (the AWTRenderer)? 
(which perhaps is solved in 0.91?)

/Mikael


Med venlig hilsen / Best regards / Mit freundlichen Grüssen 

Mikael Andersen - Systemkonsulent 


Excel Data A/S - Merkurvej 801 - DK-7400 Herning - www.exceldata.com 
Tel.: +45 7214 4100 - Fax: +45 7214 4199 
Dir.: +45 7214 4145 
E-mail: mka@exceldata.com 



"J.Pietschmann" <j3...@yahoo.de> 
12-01-2006 21:56
Please respond to
fop-users@xmlgraphics.apache.org


To
fop-users@xmlgraphics.apache.org
cc

Subject
Re: Borders with 0.5pt in size renders improperly (0.20.5)






mka@exceldata.com wrote:
> This works nicely with the PDF renderer (i.e. the PDF looks good - 
borders 
> are thinner and complete), but the AWTRenderer (used for preview + 
print) 
> doesn't render it properly.
...
> Is this a known limitation of the AWT rendering

Yes.


J.Pietschmann.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



Re: Borders with 0.5pt in size renders improperly (0.20.5)

Posted by "J.Pietschmann" <j3...@yahoo.de>.
mka@exceldata.com wrote:
> This works nicely with the PDF renderer (i.e. the PDF looks good - borders 
> are thinner and complete), but the AWTRenderer (used for preview + print) 
> doesn't render it properly.
...
> Is this a known limitation of the AWT rendering

Yes.


J.Pietschmann.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Borders with 0.5pt in size renders improperly (0.20.5)

Posted by mk...@exceldata.com.
Hello,

I'm currently using FOP 0.20.5 (haven't had time to try out 0.90 / 0.91 
yet), to print tables. My FO consists of cells with the following 
structure:

<table-cell border-left-width="0.5pt" border-right-width="0.5pt" 
border-top-width="0.5pt" border-bottom-width="0.5pt" 
border-before-style="solid"   border-before-color="#000000" 
border-after-style="solid" border-after-color="#000000" 
border-start-style="solid"   border-start-color="#000000" 
border-end-style="solid" border-end-color="#000000" 
padding-top="0.6515805553926605mm" padding-bottom="0.6515805553926605mm" 
padding-left="0.6515805553926605mm" padding-right="0.6515805553926605mm" 
font-size="6.517pt" color="#000000" background-color="#B2C7DB" 
text-align="left" column-number="5">
<block>Johannes Mortensen</block>
</table-cell> 

To "fit" a table to a single page, some pre-FOP code executes, which 
determines FOP column-widths and font-size from an input table (in this 
case Swing) and reduces column-widths and font-sizes proportionally to 
make the table "fit-to-page". However when doing this the borders 
(previously of size 1pt) becomes very dominating (i.e. too thick), so I 
wanted to reduce the border-width to 0.5pt.

This works nicely with the PDF renderer (i.e. the PDF looks good - borders 
are thinner and complete), but the AWTRenderer (used for preview + print) 
doesn't render it properly. The top + left border is drawn "inside" the 
cell (i.e. part of cell background is visible on the outside of the 
border), and the left/right borders doesn't connect to the bottom border 
(on some cells).

Is this a known limitation of the AWT rendering or can anyone give me a 
hint as to what I'm doing wrong?

Med venlig hilsen / Best regards / Mit freundlichen Grüssen 

Mikael Andersen - Systemkonsulent 


Excel Data A/S - Merkurvej 801 - DK-7400 Herning - www.exceldata.com 
Tel.: +45 7214 4100 - Fax: +45 7214 4199 
Dir.: +45 7214 4145 
E-mail: mka@exceldata.com 

Re: PFM font embedding problems.

Posted by Gordon Flood <gx...@akc.org>.
> I have experienced problems with this embedding inside the PDF document.

> When attempting to open the PDF in Adobe Acrobat Reader 5.0,
> this message pops up:
> "Unable to extract the embedded font 'StandardGroteskBSK-Regular'. 
> Some characters may not display or print correctly."
> It then defaults to Helvetica. "Using Helvetica instead"
> 

I had the same problem with FOP 0.20.5 standalone. I hand-edited the xml font
metrics file to match the pfb and afm files for BoundBox etc. to no effect.

Not to suggest that this is always the cause, but I was passing the -noedit
parameter to FOP. When I removed the -noedit parameter and made no other change,
the font embedded correctly. When I added -noedit back, the font again failed to
embed.





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: PFM font embedding problems.

Posted by Jeremias Maerki <de...@greenmail.ch>.
Does Acrobat open the PDF without problems if you don't embed the font
(remove embed-file attribute)?

On Wed, 13 Nov 2002 11:08:09 +0100 Dennis Myrén wrote:
> Thank You for all help so far, with my PFM font embedding problem.
> I am very thankful.
> 
> My implementation in the userconfig.xml file looks like this (as childs of the <fonts> node):
> These are two declarations, one for the normal weighted font, and one with bold:

<snip/>

> The error i get when opening the generated PDF from Adobe Acrobat Reader 5.0:
> "Unable to extract the embedded font StandardGroteskBSK-Bold. Some characters may not display or print correctly."
> 
> The names displayed in the XML metrics files are:
> <font-name>StandardGroteskBSK-Regular</font-name>
> and
> <font-name>StandardGroteskBSK-Bold</font-name>
> 
> I have also tried to use these names without success.
> But when using SVG, i succeed to use this font, using the name:
> StandardGroteskBSK-Regular 
> for example: <text x="100" y="100" style="font-family:StandardGroteskBSK-Regular;">This is StandardGroteskBSK-Regular</text>
> or "StandardGroteskBSK-Bold" to get the bold one.
> 
> Which is the actual name here? I am a little bit confused about that.
> Sure its me doing something wrong here.
> If anyone has a clue, that's great, but I understand the complexity of my problems here. It is not very easy for you to recreate my problem and debug it.


Jeremias Maerki


Re: PFM font embedding problems.

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Dennis Myrén wrote:

> I am with joy using the FOP processor to generate PDF documents
> from XSL FO documents.
> I now have to embed a third party Postscript based font(a PFM file).
> I have experienced problems with this embedding inside the PDF document.
> Could someone give me a deep explanation on how to achive this, step by step?
Step-by-step instructions described at 
http://xml.apache.org/fop/fonts.html, but looks like you know it 
already. Show us the font definition in your userconfig.xml and check if 
FOP complains about anything in a debug trace.

-- 
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: PFM font embedding problems.

Posted by Jeremias Maerki <de...@greenmail.ch>.
Dennis,

an addition to Oleg's answer: I've posted a checklist a while ago that
describes how to tweak the values in the XML font metric file generated
by the PFM Reader. Yes, sometimes it's necessary to alter the generated
file. That will change when we have an AFM and an improved PFB parser.

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=fop-user@xml.apache.org&msgId=474801

On Tue, 12 Nov 2002 21:36:20 +0100 Dennis Myrén wrote:
> Could that have something to do with the calculations in the 
> "StandardGroteskBSK-Regular" XML font metrics file?
> I have read that these calculations are only approximations of the actual values.
> Do i have to manually alter this file then?


Jeremias Maerki