Results 1 to 3 of 3

Thread: DX Fonts?

  1. #1

    DX Fonts?

    Can anyone possibly give me a (or a link to) walk-through on using TDXFonts... Theres no documentation on it so im at a loss, but i do need it! Thanks
    I have a 2005 CRF 250 so <^>(>&lt<^>
    <br />http://www.gtrpg.com/

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    DX Fonts?

    Lets for a moment ignore TDXFonts - why? because I dont know it

    So how do we do fonts in DelphiX. There are two ways one is slow and easy the second is more difficult but definitly gives a massive performance improvement.

    The easy way is to use the canvas option (my syntax might be wrong) -

    [pascal]DXSurface1.Canvas.Font.Size := 20;
    DXSurface1.Canvas.TextOut(100,100,'This is big');[/pascal]

    The hard way (and the way that DXFont does it) is to create an image that contains all the charaters you want to be able to write. When you want to write text you copy parts of the image onto the screen character by character.

    Image1.CopyRect(Rect(0,0,10,16),Surface1,100,100) or something similar.


    Based on that you should be able to write your own DXFont object.
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    Re: DX Fonts?

    [quote="xGTx"]Can anyone possibly give me a (or a ]

    Are you still interested in TDxFont?
    I use it in my program, so if you still have questions, maybe I can help you.

    Greetings,
    Dirk
    <a href="http://www.greatgamesexperiment.com/game/Valgard/?utm_source=gge&amp;utm_medium=badge_game"><img border="0" alt="GGE" title="GGE" src="http://static.greatgamesexperiment.com/badge/game/valgard/gge400x56.png"></a>

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •