New Forum | Previous | Next | (P-PDF) Developers
Topic: Calculating Font height
Conf: (P-PDF) Developers, Msg: 52082
Date: 5/29/2002 04:49 PM
I was wondering how I can compute font height for user space units. Lets say I have a font of New Times Roman at 12 point. Now how can I transform 12 into user space units so I can calculate line spacing? Or for that matter paragraph spacing? In the pdf spec it mentions that type 0 fonts are measured in units where 1000 units is equal to 1 unit in text space. But how do I take into affect a 12 point font or a 10 point font so I can calculate how much space I need in betweek lines? Do I have to get font information or something to do this conversion?
Thanks much in advance for any help on this subject!!!