New Forum | Previous | Next | (P-PDF) Developers
Topic: Units in AFMs?
Conf: (P-PDF) Developers, Msg: 131512
From: aandi
Date: 4/21/2005 11:32 PM
See section 3.2 "Units of measurement" in the AFM Specification.
Be very wary about using Windows API functions to get text metric sizes. These are rounded to pixels, and may include character tracking for legibility, neither of which happens in a PDF. Also, be sure you realise the difference between positive and negative arguments to CreateFont. If you must use these APIs, I suggest passing -1000 to CreateFont.