Click here to Skip to main content
15,908,843 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Parallel Port Pin
Johpoke31-May-07 1:52
Johpoke31-May-07 1:52 
QuestionFont size Pin
garfield18531-May-07 0:35
garfield18531-May-07 0:35 
AnswerRe: Font size Pin
CPallini31-May-07 0:47
mveCPallini31-May-07 0:47 
GeneralRe: Font size Pin
garfield18531-May-07 0:51
garfield18531-May-07 0:51 
GeneralRe: Font size Pin
Hamid_RT31-May-07 1:32
Hamid_RT31-May-07 1:32 
GeneralRe: Font size Pin
garfield18531-May-07 1:36
garfield18531-May-07 1:36 
GeneralRe: Font size Pin
CPallini31-May-07 1:49
mveCPallini31-May-07 1:49 
GeneralRe: Font size Pin
CPallini31-May-07 1:43
mveCPallini31-May-07 1:43 
garfield185 wrote:
I guess it is all about that line that I do not understand


You also have to be aware that the system matches your request again available fonts.


garfield185 wrote:
nHeight = -MulDiv(PointSize, GetDeviceCaps(hDC, LOGPIXELSY), 72);

Can you explain me what it means?


OK.
It simply states that nHeight isn't the pixel height of the font, but it is related with it by the factor
GetDeviceCaps(hDC, LOGPIXELSY)/72 that is system-dependant.

On my Laptop the factor is 1.33 meaning that I have to specify nHeight=27 (let's forget for the minus sign) to obtain a 20-point sized font (and nHeight=21 to obtain the 16-point one).

On your system maybe the difference between the requested font heights it's so small that the same font is choosen.

Hope that helps.
Smile | :)






If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

GeneralRe: Font size Pin
garfield18531-May-07 3:22
garfield18531-May-07 3:22 
GeneralRe: Font size Pin
CPallini31-May-07 3:43
mveCPallini31-May-07 3:43 
GeneralRe: Font size Pin
garfield18531-May-07 4:00
garfield18531-May-07 4:00 
GeneralRe: Font size Pin
CPallini31-May-07 5:11
mveCPallini31-May-07 5:11 
GeneralRe: Font size Pin
garfield18531-May-07 5:25
garfield18531-May-07 5:25 
GeneralRe: Font size Pin
David Crow31-May-07 4:12
David Crow31-May-07 4:12 
GeneralRe: Font size Pin
garfield18531-May-07 4:31
garfield18531-May-07 4:31 
QuestionCreating .h files using MATLAB Pin
Purushottama31-May-07 0:31
Purushottama31-May-07 0:31 
AnswerRe: Creating .h files using MATLAB Pin
Cedric Moonen31-May-07 1:31
Cedric Moonen31-May-07 1:31 
JokeRe: Creating .h files using MATLAB Pin
CPallini31-May-07 2:10
mveCPallini31-May-07 2:10 
QuestionMSVCRT.dll and _resetstkoflw() Win 2000 and XP Pin
jerome_data31-May-07 0:27
jerome_data31-May-07 0:27 
AnswerRe: MSVCRT.dll and _resetstkoflw() Win 2000 and XP Pin
Matthew Faithfull31-May-07 0:46
Matthew Faithfull31-May-07 0:46 
AnswerRe: MSVCRT.dll and _resetstkoflw() Win 2000 and XP Pin
David Crow31-May-07 4:15
David Crow31-May-07 4:15 
AnswerRe: MSVCRT.dll and _resetstkoflw() Win 2000 and XP Pin
Stephen Hewitt31-May-07 14:41
Stephen Hewitt31-May-07 14:41 
QuestionInsert a dialog inside SDI(Pls reply me) Pin
TobetheWinner31-May-07 0:23
TobetheWinner31-May-07 0:23 
AnswerRe: Insert a dialog inside SDI(Pls reply me) Pin
Roger Stoltz31-May-07 1:10
Roger Stoltz31-May-07 1:10 
AnswerRe: Insert a dialog inside SDI(Pls reply me) Pin
Rajkumar R31-May-07 2:37
Rajkumar R31-May-07 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.