Re: font size problem with pango



On Tue, 2003-07-22 at 08:16, Noah Levitt wrote:
> I was wondering the same thing today. Probably your best bet
> is to calculate the conversion using gdk_screen_get_height_mm ()
> something like
> 
> font_size_pt = font_size_px * (gdk_screen_get_height_mm/gdk_screen_get_height) * 72.27pt/1in * 1in/25.4mm

That works nicely. Thanks for help.

Unfortunately there are more problems with how openoffice handles text
sizes, but that's not related to excellent pango library. (btw, my app
is released at http://imposter.sf.net in case anyone interested with an
OO.org Impress viewer)





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]