java.lang.IllegalArgumentException: font format not recognized

Icesoft | mstefarov | 12 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Bug: Loading OTF font causes "font format not recognized" exception

    Icesoft | 12 months ago | mstefarov
    java.lang.IllegalArgumentException: font format not recognized

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      font format not recognized

      at java.awt.Font.createFont0()
    2. Java RT
      Font.createFont
      1. java.awt.Font.createFont0(Font.java:905)
      2. java.awt.Font.createFont(Font.java:877)
      2 frames
    3. org.icepdf.core
      FontManager.readSystemFonts
      1. org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:235)
      2. org.icepdf.core.pobjects.fonts.FontFactory.createFontFile(FontFactory.java:209)
      3. org.icepdf.core.pobjects.fonts.FontManager.buildFont(FontManager.java:920)
      4. org.icepdf.core.pobjects.fonts.FontManager.buildFont(FontManager.java:894)
      5. org.icepdf.core.pobjects.fonts.FontManager.loadSystemFont(FontManager.java:468)
      6. org.icepdf.core.pobjects.fonts.FontManager.readSystemFonts(FontManager.java:427)
      7. org.icepdf.core.pobjects.fonts.FontManager.readSystemFonts(FontManager.java:448)
      7 frames
    4. org.icepdf.ri
      FontPropertiesManager.<init>
      1. org.icepdf.ri.util.FontPropertiesManager.readDefaulFontPaths(FontPropertiesManager.java:328)
      2. org.icepdf.ri.util.FontPropertiesManager.<init>(FontPropertiesManager.java:107)
      2 frames
    5. com.xxxxxx
      Main$1.run
      1. com.xxxxxx.Main$1.run(Main.java:37)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      2. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
      3. java.awt.EventQueue.access$500(EventQueue.java:97)
      4. java.awt.EventQueue$3.run(EventQueue.java:709)
      5. java.awt.EventQueue$3.run(EventQueue.java:703)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      8. java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      12. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      13. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      14. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      14 frames