Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fontmetric()
Message
From
06/04/2008 13:14:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01308541
Message ID:
01308552
Views:
13
Hi Naomi,

This does not appear to help me. My screen is set to the default of 96 dpi. What does FONTMETRIC(7) give me? Max width of char in pixels? Why does a fontsize of 15 give a width in pixels of 53?

Jos



>>Hi All
>>
>>Related to my other post on fitting text within a label caption. I am looking at FONTMETRIC(). Why does FONTMETRIC return;
>>
>>
>>? FONTMETRIC( 7, "Arial", 15 )  && returns 53
>>? FONTMETRIC( 1, "Arial", 15 )  && returns 23
>>
>>
>>A letter in Arial font-size 15 is not 53 pixels wide or 23 pixels high, surely? What am I missing (besides my mind)?
>
>See http://spacefold.com/colin/posts/2005/12-01FONTMETRICandScreenD.html
>
>and
>
>http://msdn2.microsoft.com/en-us/library/fhfdf28k(VS.80).aspx
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform