New Forum | Previous | Next | (P-PDF) Developers
Topic: Font Height Problem
Conf: (P-PDF) Developers, Msg: 132603
Date: 5/12/2005 11:16 PM
I have a pdf with CMex10 font... the Font Dictionary has the ascent and Descent for the font as 0 ...
And i am using the following Formulas for the height that the font takes up :
YMin = CurrentY - font->getAscent() * fontSize
YMax = CurrentY - font->getDescent() * fontSize
nHeight = YMax - YMin
where getDescent() always returns a negative value.
But in this case the Height would come out to be zero since both YMax and YMin would be same.... so how do i caluculate the height for this text.
The PDF is showing the text ... with the correct height.
Thanks and regards