reportlab and custom fonts

Discussion in 'Python' started by Reinhold Birkenfeld, Aug 26, 2005.

  1. Hi,

    I'm trying to get reportlab working together with the Tahoma font
    (by Microsoft ;)

    So far it's up and running (converted the ttf with ttf2pt1), but the
    Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to
    show up in the final PDF.

    I investigated a bit and saw that in the afm (and pfb) the code point
    128 is called "uni20AC". That's okay in principle, since that Unicode
    character is the Euro sign, but it seems that reportlab likes the
    character to be named "Euro". Okay, renamed it in both files, still no
    luck.

    Has anyone experience with this problem?

    Reinhold
     
    Reinhold Birkenfeld, Aug 26, 2005
    #1
    1. Advertisements

  2. Reinhold Birkenfeld wrote:
    > Hi,
    >
    > I'm trying to get reportlab working together with the Tahoma font
    > (by Microsoft ;)
    >
    > So far it's up and running (converted the ttf with ttf2pt1), but the
    > Euro sign (which is in position 0x80 in the WinAnsiEncoding) fails to
    > show up in the final PDF.
    >
    > I investigated a bit and saw that in the afm (and pfb) the code point
    > 128 is called "uni20AC". That's okay in principle, since that Unicode
    > character is the Euro sign, but it seems that reportlab likes the
    > character to be named "Euro". Okay, renamed it in both files, still no
    > luck.
    >
    > Has anyone experience with this problem?


    Never mind, I overlooked one occurence of "uni20AC" in my .t1a file.

    Reinhold
     
    Reinhold Birkenfeld, Aug 26, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Boy Howdy

    Web design/custom fonts question

    Boy Howdy, Nov 17, 2004, in forum: HTML
    Replies:
    6
    Views:
    4,835
    Titus A Ducksass - AKA broken-record
    Nov 19, 2004
  2. Josh

    Reportlab and Barcodes

    Josh, Feb 8, 2005, in forum: Python
    Replies:
    8
    Views:
    7,643
  3. John J. Lee
    Replies:
    0
    Views:
    530
    John J. Lee
    Jun 1, 2006
  4. vasudevram
    Replies:
    1
    Views:
    614
    vasudevram
    Oct 4, 2009
  5. steph
    Replies:
    1
    Views:
    745
    steph
    Aug 27, 2010
  6. Beppe
    Replies:
    1
    Views:
    771
    Beppe
    Feb 25, 2011
  7. sam
    Replies:
    0
    Views:
    598
  8. Laszlo Nagy

    reportlab and python 3

    Laszlo Nagy, Sep 17, 2012, in forum: Python
    Replies:
    9
    Views:
    2,223
    Terry Reedy
    Sep 18, 2012
Loading...