Large Character Text
-
I've looked all over this site for controls or classes or anything to display text in a C++/MFC application. I would like to display characters that are at least 1 inch by 1 inch in size to be able to see them from wayyyyyyyyyy across the room. Anyone have any ideas???? Thank you in advance Pierre
-
I've looked all over this site for controls or classes or anything to display text in a C++/MFC application. I would like to display characters that are at least 1 inch by 1 inch in size to be able to see them from wayyyyyyyyyy across the room. Anyone have any ideas???? Thank you in advance Pierre
I would create a font the size you need it this steps i hope will help you The bellow is only if not on multiple monitors hdc = GetDC(NULL); nHeight = GetDeviceCaps(hdc, LOGPIXELSY); // returns the number of pixels per logical inch along the screen height. ReleaseDC(NULL,hdc); so you can create a font with the result of it wich should be exactly 1 in. hFont=CreateFont(nHeight,0,0,0,/*FW_BOLD*/0,0,0,0,0,0,0,0,0,"Georgia"); and then to draw it in a window use DrawText(.....); G_S
-
I would create a font the size you need it this steps i hope will help you The bellow is only if not on multiple monitors hdc = GetDC(NULL); nHeight = GetDeviceCaps(hdc, LOGPIXELSY); // returns the number of pixels per logical inch along the screen height. ReleaseDC(NULL,hdc); so you can create a font with the result of it wich should be exactly 1 in. hFont=CreateFont(nHeight,0,0,0,/*FW_BOLD*/0,0,0,0,0,0,0,0,0,"Georgia"); and then to draw it in a window use DrawText(.....); G_S
Almost... You'll need to use
-nHeight
, otherwise the height is specified in points, not pixels.Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"