![]() |
Beware of font sizes! |
Post Reply
|
| Author | |
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Topic: Beware of font sizes!Posted: 01 March 2008 at 6:57am |
|
XTPDockingPanePaintManager.cpp (416):
pLogFont->lfHeight = pLogFont->lfHeight < 0 ? __min(-11, pLogFont->lfHeight) : pLogFont->lfHeight;
I believe -11 is dependent on logical units etc. A more safe method is:
int height = -MulDiv(lf.lfHeight, GetDeviceCaps(hDC, LOGPIXELSY), 72); I'm not 100% sure this is needed, but just to make sure...
The logic above is probably present in other files too.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2008 at 7:39am |
|
Its dessigned to be dependent on logical units and etc :)
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
znakeeye
Senior Member
Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
Quote Reply
Posted: 01 March 2008 at 8:32am |
|
Then why -11?
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |