TrueType Bit map FONT in rendering plugin

Discussion in 'Windows Vista Drivers' started by dhill, Apr 1, 2006.

  1. dhill

    dhill Guest


    I am working with a TrueType Bitmap FONT that I intended to download to a
    printer. I am have trouble figuring out how to calculate the dimension values
    used in the Format 20 Font Resolution Specified header. The values in
    particular are: Cell width, Cell Height, Pitch, Height, xHeight. The font is
    10 point and the printer resolution is 600 DPI. It seems like it should be a
    simple calculation but when I compare the header values generated by another
    printer driver I can’t figure out how they got their value. The values they
    get are:
    Cell width = 48
    Cell Height = 127
    Pitch = 6.25
    Height = 30.28
    xHeight = 62

    The other thing is I can't figure out how to get the bitmap code. I think I
    am calculating the glyph index correctly but when I go to the offset I don't
    see any data that makes sense (comparing the hex content of the .tff to the
    hex content of the PCL print output).

    Can someone please give me a few pointers here?

    dhill, Apr 1, 2006
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.