|
-
Feb 1st, 2003, 05:42 AM
#1
Thread Starter
Fanatic Member
size in TextOut()
Ok, i am writing a program using C++, DirectX 8.0, and using the standard TextOut() API.
All i am doing is printing basic strings (like "health", "attack", "range" etc) to the screen in comic sans size 14 (i know, comic sans is bad, perhaps i'll use verdana)
My problem is this. On the 4 computers i tried it on, all had different size / different looking font on the screen. One was flattened so much it was almost illegible, while another was so big some things moved off the box the text was supposed to be in
What i was wondering was if there was a way to diplay info to the screen and have it the same size on all computers.
(Oh, screen resolution of the game is 640x480, and the comps. i tried it on had varying resolutions, if that helps)
If not, perhaps i will just make my own pics of words/numbers i need, and draw these to the screen instead.
Thanks
sql_lall 
-
Feb 5th, 2003, 08:52 AM
#2
New Member
Do other m/c have Comic font installed ???
-
Feb 6th, 2003, 03:44 AM
#3
Thread Starter
Fanatic Member
Yep
Yeah, all the computers have all the fonts i used, cos i myself installed them if they didn't.
What is weird is not only the size difference, but the difference in the 'gaps' like in the centre of 'O', 'D', 'a' etc.
What i was thinking it might be is the pixel drawing. Perhaps, due to different resolutions, and the fact that the game is in 640x480, that the pixels of each font letter fall off of actual drawn pixels to the screen, and so get drawn on the 'closest' pixel, which may vary.
I dunno though, it is kinda weird. And all of the text disappears every now and then.
sql_lall 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|