Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 14266
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: Fri Jul 18 11:37:18 CEST 2025

Total time taken to generate the page: 0.04029 seconds