Results 1 to 3 of 3

Thread: size in TextOut()

Hybrid View

  1. #1

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking 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

  2. #2
    New Member krishnaa's Avatar
    Join Date
    Feb 2003
    Location
    India , Pune
    Posts
    10
    Do other m/c have Comic font installed ???
    Hi , Havent seen me before ???
    Not Even on Codeguru ?

  3. #3

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking 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
  •  



Click Here to Expand Forum to Full Width