FOP embed font --> umlauts are not displayed
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Sun Mar 11, 2007 7:03 pm
FOP embed font --> umlauts are not displayed
Hi @all
I have the following problem on which, I hope, you can help me.
Im searching for an Solution for days
...
I have an xls-fo file which should use Helvetica & Helvetica Bold, so I created a PFM & a XML-Metrics file form a PFB-file.
The output-PDF looks good, and also the font was successfullly embed by FOP, but only umlauts are not displayed.
My xls-fo file looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.6in" margin-right="0.6in">
<fo:region-body margin-top="0.79in" margin-bottom="0.79in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="default-page" initial-page-number="1" format="1">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:inline font-family="Helvetica">Helvetica ÖÄÜ öäü</fo:inline>
<fo:block break-after="page">
</fo:block>
<fo:block id="SV_RefID_PageTotal"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
The font-reference in the FOP-config:
...
<font metrics-url="fonts/Helvetica/HVYU____/HVYU____.xml" kerning="yes" embed-url="fonts/Helvetica/HVYU____/HVYU____.pfb">
<font-triplet name="Helvetica" style="normal" weight="normal"/>
</font>
...
The PDF-File contents only
"Helvetia", and after that word 8 Whitespaces (1 Real, 1 for Ö, 1 for Ä and so on...)
When I mark the (ö) whitespace and copy & paste it into a notepad i can see these letters correctly.
What's wrong? I can't find it.
Here is the Metric-XML-File if it's usefull.
http://www.echtbruckner.at/HVYB____.xml
I have the following problem on which, I hope, you can help me.
Im searching for an Solution for days

I have an xls-fo file which should use Helvetica & Helvetica Bold, so I created a PFM & a XML-Metrics file form a PFB-file.
The output-PDF looks good, and also the font was successfullly embed by FOP, but only umlauts are not displayed.
My xls-fo file looks like the following:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xdt="http://www.w3.org/2005/xpath-datatypes" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<fo:layout-master-set>
<fo:simple-page-master master-name="default-page" page-height="11in" page-width="8.5in" margin-left="0.6in" margin-right="0.6in">
<fo:region-body margin-top="0.79in" margin-bottom="0.79in"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="default-page" initial-page-number="1" format="1">
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:inline font-family="Helvetica">Helvetica ÖÄÜ öäü</fo:inline>
<fo:block break-after="page">
</fo:block>
<fo:block id="SV_RefID_PageTotal"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
The font-reference in the FOP-config:
...
<font metrics-url="fonts/Helvetica/HVYU____/HVYU____.xml" kerning="yes" embed-url="fonts/Helvetica/HVYU____/HVYU____.pfb">
<font-triplet name="Helvetica" style="normal" weight="normal"/>
</font>
...
The PDF-File contents only
"Helvetia", and after that word 8 Whitespaces (1 Real, 1 for Ö, 1 for Ä and so on...)
When I mark the (ö) whitespace and copy & paste it into a notepad i can see these letters correctly.
What's wrong? I can't find it.
Here is the Metric-XML-File if it's usefull.
http://www.echtbruckner.at/HVYB____.xml
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Re: FOP embed font --> umlauts are not displayed
Post by sorin_ristache »
Hello,
Regards,
Sorin
It seems that paragraph of the PDF file does not use the Helvetica font. Are you sure Helvetica is embedded in the PDF file?lidl wrote:When I mark the (ö) whitespace and copy & paste it into a notepad i can see these letters correctly.
What's wrong? I can't find it.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service