Menu

#214 itext pdf output ignores canvas font

nextrelease
closed-fixed
autoplot (426)
1
2023-11-23
2010-02-23
No

on a mac at least, pdf output ignores the canvas font. I have a funky font on the mac, and it prints to a pdf file with an ordinary font.

Discussion

  • Jeremy Faden

    Jeremy Faden - 2010-02-25
    • summary: pdf output ignores canvas font (on mac) --> pdf output ignores canvas font
     
  • Jeremy Faden

    Jeremy Faden - 2010-02-25

    This is also the case on Linux.

     
  • Jeremy Faden

    Jeremy Faden - 2011-01-27

    It does get the italics correct, but not the font.

     
  • Jeremy Faden

    Jeremy Faden - 2013-08-06

    Craig asked if I'd looked at embedding the font, and I'm sure I have, but I'll look into this again. Good thing I have the itext book checked out for another semester.

     
  • Jeremy Faden

    Jeremy Faden - 2013-08-06

    I've added GUI components allowing the user to specify if the font should be written out as curves.

     
  • Jeremy Faden

    Jeremy Faden - 2013-08-15

    Dan identified that itext provides the fontmapper class for this. It looks like this is available in the old itext1.2.

     
  • Jeremy Faden

    Jeremy Faden - 2013-08-15
    • summary: pdf output ignores canvas font --> itext pdf output ignores canvas font
    • Group: --> nextrelease
     
  • Jeremy Faden

    Jeremy Faden - 2013-08-18

    This is mostly implemented now. There's still a problem that italics is not supported.

     
  • Daniel Crawford

    Daniel Crawford - 2014-12-02
    • status: open --> open-fixed
     
  • Daniel Crawford

    Daniel Crawford - 2014-12-02

    Using getFontName() instead of getFamily(), which should embed correct font family and style. Tested on Windows and Linux.

     
  • Jeremy Faden

    Jeremy Faden - 2014-12-04

    This is still showing issues on a mac. I'm adding PdfGraphicsOutput.dumpMapToFile now to aid in debugging.

    from org.das2.util.awt import PdfGraphicsOutput
    from java.io import File
    PdfGraphicsOutput.resetFontToTtfMap()
    PdfGraphicsOutput.dumpMapToFile(File('/tmp/ap.PdfGraphicsOutput.fontmap.txt'))
    
     

    Last edit: Jeremy Faden 2014-12-04
  • Jeremy Faden

    Jeremy Faden - 2023-11-23
    • status: open-fixed --> closed-fixed
     
  • Jeremy Faden

    Jeremy Faden - 2023-11-23

    I verified this is fixed.

     
MongoDB Logo MongoDB