U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » Convert upp Font size to LOGFONT size
Re: Convert upp Font size to LOGFONT size [message #15161 is a reply to message #15151] Sun, 06 April 2008 05:29 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Why DotToPt?

Anyway, IMO, if you use what is used in

FontInfo Draw::Acquire(Font font, HDC hdc, int angle, int device)

you should get equal results (CreateFont is used there, but the formula for font height ougth to be the same).

That is:

font.GetHeight() ? -abs(font.GetHeight()) : -12, font.GetWidth()

(do not ask... Smile

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What about "::" in LoadIniFile?
Next Topic: [BUG] CommandLine() returns non-unicode arguments
Goto Forum:
  


Current Time: Tue Jun 23 08:10:23 GMT+2 2026

Total time taken to generate the page: 0.00627 seconds