Le Duy Nhac created FOP-2534:

             Summary: Gif images cannot display if its AFP file uses True Type 
                 Key: FOP-2534
                 URL: https://issues.apache.org/jira/browse/FOP-2534
             Project: FOP
          Issue Type: Bug
          Components: renderer/afp
    Affects Versions: trunk
         Environment: Operating System: Windows XP Service Pack 3
Platform: PC
            Reporter: Le Duy Nhac


In the latest FOP 2.0 Release, it does not support True Type fonts (ex: 
Trebuchet MS) in AFP and could not display special characters (ex: Euro sign ) 
or barcodes. Then we tried with FOP Trunk - a version more recent than the 
latest release - and it supports well True Type fonts and can display Euro sign 
character in AFP output. But this Trunk version throws the other issue: "Gif 
images cannot display if its AFP file uses True Type fonts".

Could you please have a look? and How can I work around this?

Thank you!

An example to reproduce the issue:
Run test: >fop -fo test.out.fo -afp test.out.afp -c fop_with_TrueTypeFonts.xconf

---Start: test.out.fo---
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; 
                <fo:simple-page-master page-width="209.90mm"
                        page-height="301.98mm" margin-top="4.59mm" 
                        margin-right="10mm" master-name="0">
                        <fo:region-body />
        <fo:page-sequence master-reference="0">
                <fo:flow flow-name="xsl-region-body">
                        <fo:block-container absolute-position="absolute"
                                left="10mm" top="19.91mm">
src="file:./bgimg72dpi.gif" />
                        <fo:block font-size="12pt"
                                font-family="Trebuchet MS">
                                <fo:block-container absolute-position="absolute"
                                        left="15.17mm" top="29.18mm">
                                        <fo:block text-align="center">
                                                <fo:inline>Euro Sign: 
---End: test.out.fo---

---Start: fop_with_TrueTypeFonts.xconf---
<renderer mime="application/x-afp">
              <!-- declare TrueType fonts: Trebuchet MS font family-->
                        <font kerning="yes" embed-url="file:./TREBUC.TTF" 
name="Trebuchet MS">
                            <font-triplet name="Trebuchet MS" style="normal" 
                        <font kerning="yes" embed-url="file:./TREBUCBD.TTF" 
name="Trebuchet MS Bold">
                            <font-triplet name="Trebuchet MS" style="normal" 
                        <font kerning="yes" embed-url="file:./TREBUCIT.TTF" 
name="Trebuchet MS Italic">
                            <font-triplet name="Trebuchet MS" style="italic" 
                        <font kerning="yes" embed-url="file:./TREBUCBI.TTF" 
name="Trebuchet MS Bold Italic">
                            <font-triplet name="Trebuchet MS" style="italic" 
---End: fop_with_TrueTypeFonts.xconf---

This message was sent by Atlassian JIRA

Reply via email to