|
From: | Dave Calkins |
Subject: | Re: [ft] font size error |
Date: | Tue, 19 Jan 2010 08:29:57 -0500 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
You can query this information using the windows api:http://msdn.microsoft.com/en-us/library/dd464660%28VS.85%29.aspx#getting_system_informationGood luck, Mickey
Thanks! I checked and, sure enough, on my system I am getting 96 dpi for the screen device LOGPIXELSX/Y.
I'm still confused, though, as to why some fonts work fine and others don't. Granted, I'm using FreeTypeGL which is in turn using FreeType, however, it seems to initialize that 72 by default and I'm not specifying the dpi for any fonts I use. So I guess one option would be to query for the dpi and specify that when creating the fonts. It just seems like there's something font specific not system specific since it doesn't fail for other fonts using the same inputs.
[Prev in Thread] | Current Thread | [Next in Thread] |