Hi,

I'm trying to find a font that supports 𐌃, or Unicode Character 'OLD ITALIC LETTER DE' (U+10303). This should be available in the "Noto Sans Old Italic" font (https://www.google.com/get/noto/#sans-ital).

Yet, even though I successfully register the font in a fop configuration file, FOP-2.2 reports following warnings:

  INFO: Default page-width set to: 8.26in
  nov 28, 2017 4:37:49 PM org.apache.fop.fo.properties.CommonHyphenation 
getHyphChar
  WARNING: Substituted specified hyphenation character (0x2d) with 0x20 because 
the font doesn't have the specified hyphenation character: 
NotoSansOldItalic,normal,400
  nov 28, 2017 4:37:50 PM org.apache.fop.events.LoggingEventListener 
processEvent
  WARNING: Glyph "?" (0xd800) not available in font "NotoSansOldItalic".
  nov 28, 2017 4:37:50 PM org.apache.fop.events.LoggingEventListener 
processEvent
  WARNING: Glyph "?" (0xdf03) not available in font "NotoSansOldItalic".
  nov 28, 2017 4:37:50 PM org.apache.fop.events.LoggingEventListener 
processEvent
  INFO: Rendered page #1.

When inspecting the PDF file, instead of the character (ideally), or the substitution character # (fallback), I see "ï¿¿ï¿¿". Minimal XSL-FO test file and output PDF file attached.

When inspecting the Noto Sans Old Italic CMAP tables via the fonttools Python library (https://github.com/fonttools/fonttools), I noticed that the character is mapped in the "cmap_format_12" table. I'll attach the TTX XML representation of this font, generated via fonttools.

Now, given that I have successfully registered a font (Noto Sans Old Italic) which allegedly supports this character (OLD ITALIC LETTER DE), what else should I do in order to make FOP output the actual character?

Kind regards,

Ron


<?xml version="1.0" encoding="UTF-8"?> 
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
    <fo:layout-master-set>
        <fo:simple-page-master master-name="sample">
            <fo:region-body/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    <fo:page-sequence master-reference="sample">
        <fo:flow flow-name="xsl-region-body">
          <fo:block font-family="NotoSansOldItalic">𐌃</fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>

Attachment: test.pdf
Description: Adobe PDF document

<?xml version="1.0" encoding="UTF-8"?>
<ttFont sfntVersion="\x00\x01\x00\x00" ttLibVersion="3.15">

  <name>
    <namerecord nameID="0" platformID="3" platEncID="1" langID="0x409">
      Copyright 2012 Google Inc. All Rights Reserved.
    </namerecord>
    <namerecord nameID="1" platformID="3" platEncID="1" langID="0x409">
      Noto Sans Old Italic
    </namerecord>
    <namerecord nameID="2" platformID="3" platEncID="1" langID="0x409">
      Regular
    </namerecord>
    <namerecord nameID="3" platformID="3" platEncID="1" langID="0x409">
      Monotype Imaging - Noto Sans Old Italic
    </namerecord>
    <namerecord nameID="4" platformID="3" platEncID="1" langID="0x409">
      Noto Sans Old Italic
    </namerecord>
    <namerecord nameID="5" platformID="3" platEncID="1" langID="0x409">
      Version 1.02 uh
    </namerecord>
    <namerecord nameID="6" platformID="3" platEncID="1" langID="0x409">
      NotoSansOldItalic
    </namerecord>
    <namerecord nameID="7" platformID="3" platEncID="1" langID="0x409">
      Noto is a trademark of Google Inc.
    </namerecord>
    <namerecord nameID="8" platformID="3" platEncID="1" langID="0x409">
      Monotype Imaging Inc.
    </namerecord>
    <namerecord nameID="9" platformID="3" platEncID="1" langID="0x409">
      Monotype Design Team
    </namerecord>
    <namerecord nameID="10" platformID="3" platEncID="1" langID="0x409">
      Data unhinted. Designed by Monotype design team.
    </namerecord>
    <namerecord nameID="11" platformID="3" platEncID="1" langID="0x409">
      http://www.google.com/get/noto/
    </namerecord>
    <namerecord nameID="12" platformID="3" platEncID="1" langID="0x409">
      http://www.monotype.com/studio
    </namerecord>
    <namerecord nameID="13" platformID="3" platEncID="1" langID="0x409">
      This Font Software is licensed under the SIL Open Font License, Version 1.1. This Font Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the SIL Open Font License for the specific language, permissions and limitations governing your use of this Font Software.
    </namerecord>
    <namerecord nameID="14" platformID="3" platEncID="1" langID="0x409">
      http://scripts.sil.org/OFL
    </namerecord>
  </name>

  <cmap>
    <tableVersion version="0"/>
    <cmap_format_4 platformID="3" platEncID="1" language="0">
      <map code="0x0" name="uni0000"/><!-- ???? -->
      <map code="0xd" name="uni000D"/><!-- ???? -->
      <map code="0x20" name="space"/><!-- SPACE -->
      <map code="0xa0" name="space"/><!-- NO-BREAK SPACE -->
      <map code="0xfeff" name="uni0000"/><!-- ZERO WIDTH NO-BREAK SPACE -->
    </cmap_format_4>
    <cmap_format_12 platformID="3" platEncID="10" format="12" reserved="0" length="100" language="0" nGroups="7">
      <map code="0x0" name="uni0000"/><!-- ???? -->
      <map code="0xd" name="uni000D"/><!-- ???? -->
      <map code="0x20" name="space"/><!-- SPACE -->
      <map code="0xa0" name="space"/><!-- NO-BREAK SPACE -->
      <map code="0xfeff" name="uni0000"/><!-- ZERO WIDTH NO-BREAK SPACE -->
      <map code="0x10300" name="u10300"/><!-- OLD ITALIC LETTER A -->
      <map code="0x10301" name="u10301"/><!-- OLD ITALIC LETTER BE -->
      <map code="0x10302" name="u10302"/><!-- OLD ITALIC LETTER KE -->
      <map code="0x10303" name="u10303"/><!-- OLD ITALIC LETTER DE -->
      <map code="0x10304" name="u10304"/><!-- OLD ITALIC LETTER E -->
      <map code="0x10305" name="u10305"/><!-- OLD ITALIC LETTER VE -->
      <map code="0x10306" name="u10306"/><!-- OLD ITALIC LETTER ZE -->
      <map code="0x10307" name="u10307"/><!-- OLD ITALIC LETTER HE -->
      <map code="0x10308" name="u10308"/><!-- OLD ITALIC LETTER THE -->
      <map code="0x10309" name="u10309"/><!-- OLD ITALIC LETTER I -->
      <map code="0x1030a" name="u1030A"/><!-- OLD ITALIC LETTER KA -->
      <map code="0x1030b" name="u1030B"/><!-- OLD ITALIC LETTER EL -->
      <map code="0x1030c" name="u1030C"/><!-- OLD ITALIC LETTER EM -->
      <map code="0x1030d" name="u1030D"/><!-- OLD ITALIC LETTER EN -->
      <map code="0x1030e" name="u1030E"/><!-- OLD ITALIC LETTER ESH -->
      <map code="0x1030f" name="u1030F"/><!-- OLD ITALIC LETTER O -->
      <map code="0x10310" name="u10310"/><!-- OLD ITALIC LETTER PE -->
      <map code="0x10311" name="u10311"/><!-- OLD ITALIC LETTER SHE -->
      <map code="0x10312" name="u10312"/><!-- OLD ITALIC LETTER KU -->
      <map code="0x10313" name="u10313"/><!-- OLD ITALIC LETTER ER -->
      <map code="0x10314" name="u10314"/><!-- OLD ITALIC LETTER ES -->
      <map code="0x10315" name="u10315"/><!-- OLD ITALIC LETTER TE -->
      <map code="0x10316" name="u10316"/><!-- OLD ITALIC LETTER U -->
      <map code="0x10317" name="u10317"/><!-- OLD ITALIC LETTER EKS -->
      <map code="0x10318" name="u10318"/><!-- OLD ITALIC LETTER PHE -->
      <map code="0x10319" name="u10319"/><!-- OLD ITALIC LETTER KHE -->
      <map code="0x1031a" name="u1031A"/><!-- OLD ITALIC LETTER EF -->
      <map code="0x1031b" name="u1031B"/><!-- OLD ITALIC LETTER ERS -->
      <map code="0x1031c" name="u1031C"/><!-- OLD ITALIC LETTER CHE -->
      <map code="0x1031d" name="u1031D"/><!-- OLD ITALIC LETTER II -->
      <map code="0x1031e" name="u1031E"/><!-- OLD ITALIC LETTER UU -->
      <map code="0x10320" name="u10320"/><!-- OLD ITALIC NUMERAL ONE -->
      <map code="0x10321" name="u10321"/><!-- OLD ITALIC NUMERAL FIVE -->
      <map code="0x10322" name="u10322"/><!-- OLD ITALIC NUMERAL TEN -->
      <map code="0x10323" name="u10323"/><!-- OLD ITALIC NUMERAL FIFTY -->
    </cmap_format_12>
  </cmap>

</ttFont>

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

Reply via email to