Click here to get back home

Font Height

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Font Height Herojit 12-05-2006
Posted by Herojit on December 5, 2006, 4:42 am
Please log in for more thread options
Hi All,

I Create a FONT with a height of 8 units:

LOGFONT lf ;
HFONT hFont ;
;
;
lf.lfHeight = 8 ;

hFont = CreateFontIndirect(&lf);

Now I set this as the FONT for my window

SetWindowFont(hWnd, hFont, TRUE);

Then I check the height of the text in WM_PAINT of this window:

case WM_PAINT :
;
TEXTMETRIC tm ;
;
;
GetTextMetrics(hDC, &tm) ;


Hero
I find that tm.tmHeight is not 8.

Why is it so? How is the height mentioned while creating the font
related to the height
we obtained on calling GetTextMetrics? Please help.

Regards,
Herojit


Similar ThreadsPosted
Deleting a font February 16, 2007, 4:57 pm
Enlarge the font in phone book and caller display July 5, 2006, 5:40 am
Blackjack: Font size, vibration & caller ID photo March 12, 2007, 3:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap