Bug 49627 - Cannot print non-Latin 1 fonts, like Greek, only first page is accessed
Summary: Cannot print non-Latin 1 fonts, like Greek, only first page is accessed
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: fonts (show other bugs)
Version: 0.95
Hardware: All All
: P2 blocker
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-21 08:32 UTC by sjpapa
Modified: 2012-04-01 13:42 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sjpapa 2010-07-21 08:32:57 UTC
Hello,

I tried to embed new fonts, like DINRg, via userconfig.xml, the font seems installed, and I can display correctly all Latin, german umlaute, etc characters,
but cannot print Greek characters that do exist in the next page of this font. It seems that fop sees only the first 255 characters (first page) of the installed or embedded font.

Symbol, that has some of the Greek characters, misses all accents, and one cannot type mixed latin and greek in the same line. All accented Greek chars are displayed as # in Symbol.

Does any one have any idea on how to activate the full ISO-8859-7 codepage, or how to activate the second and following pages in UTF-8, so that fop uses the correct fist byte in UTF-8 to acces the correct page? Currently all pages but the first seem to be ignored.

userconfig.xml reads:

<fop version="1.0">
  <renderers>
    <renderer mime="application/pdf">
      <fonts>

      <font  metrics-url="file:///Users/sj/Triboni8090/ginkgo/fopFonts/DINRg.xml"  
               kerning="yes" 
               embed-url="file:///Users/sj/Triboni8090/ginkgo/fopFonts/DINRg.ttf">
          <font-triplet name="DINRg" style="normal" weight="normal"/>
        </font> 


      </fonts>
    <renderer>
   </renderers>
</fop>
Comment 1 Chris Bowditch 2010-07-23 05:23:54 UTC
Hello,

Please don't raise bugs to ask questions. Instead subscribe to FOP user mailing list abd ask question there: http://xmlgraphics.apache.org/fop/maillist.html#fop-user-subscribe

I believe the reason why you can only access the first 255 characters of the font is because you are using a metrics file. Since 0.95 metrics file is not required and in fact if you use a metrics file you run into limitations such as being restricted to ANSI code page.

Thanks,

Chris
Comment 2 Glenn Adams 2012-04-01 13:42:52 UTC
batch transition to closed for remaining resolved bugs