I am using the following method to determine a font:
The result surprises me:
Has anyone an idea why that could be the case ? Karl __________________________________________________________
|
Quick guess, without testing: you're using VariableCharacterAttributes, the size of which can change according to the platform and/or Locale. Try using plain CharacterAttributes.
Steve
-----Original Message-----
I
am using the following method to determine a font: The
result surprises me: Has anyone an idea why that could be the case ? Karl __________________________________________________________
|
In reply to this post by BREITH Karl-Albert (AREVA)
BREITH Karl-Albert FDEEC (AREVA NP GmbH) wrote:
> I am using the following method to determine a font: > bounds: the view's bounds >... > The result surprises me: > Having a calculated pixelSize of 8, the text results in bigger characters than having a pixelSize of 9. note: 1. the font lookup searches for a best match for the font description, which does not necessarily have the requested size (see #measureDistancesFrom:to:stopAt:) 2. I don't know if it has been fixed, but "Screen default resolution" always returns 75dpi on Windows plattforms, even though the default resolution is 96 dpi (and is also adjustable). in the Open Repository there's also a package named "Font-Lookup" which seems to fix some issues, I haven't used it yet though. |
In reply to this post by Steven Kelly
I have got some ideas form the VWNC group.
Thanks a lot.
I am going to try which idea works best for
me.
e.g. on Windows XP the fonts work fine, on
Linux and HP
not. And yes, I am using VariableCharacterAttributes.
Karl
__________________________________________________________
|
Free forum by Nabble | Edit this page |