ICEpdf
  1. ICEpdf
  2. PDF-1329

Asian font substitution on unix

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3.3
    • Component/s: Core/Parsing, Font Engine
    • Labels:
      None
    • Environment:
      Linux or Mac OS systems

      Description

      A files has been submitted that does not correctly render on macOS. The gylphs in question are to be substituted using a STSong font. This normally works fin on windows systems as there are default STSong fonts mainly "STSong Light Acro" or "Adobe Song Std Acro". However this doesn't appear to be the case on unix systems.

      I was able to get the font to render correctly on my linux box but this required my to install a full "stsong" font and regenerate the system font list. Further research is needed to find out where macOS puts it's user installed fonts on the file system so we can insure the FontManager picks them up.

        Activity

        Patrick Corless created issue -
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #53130 Thu Dec 12 20:15:24 MST 2019 patrick.corless PDF-1329 initial linux cut for STSong font lookup in user's font folder
        as well as updates to font lookups for known Chinese fonts that will
        likely have correct glyphs.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/core-awt/src/main/java/org/icepdf/core/pobjects/fonts/FontManager.java
        Patrick Corless made changes -
        Field Original Value New Value
        Fix Version/s 6.3.3 [ 13282 ]
        Hide
        Patrick Corless added a comment -

        Added the font name 'stsong' as new font for simplified chinese font names. This particular font is free on linux and contains the needed glyphs.

        Also updated linux font search paths for ~/.local/share/fonts/ which should also help find more system fonts for substitution.

        Show
        Patrick Corless added a comment - Added the font name 'stsong' as new font for simplified chinese font names. This particular font is free on linux and contains the needed glyphs. Also updated linux font search paths for ~/.local/share/fonts/ which should also help find more system fonts for substitution.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: