Results 1 to 5 of 5

Thread: Simple TextOut

  1. #1

    Simple TextOut

    Hello. When I used DelphiX, it was so easy just to write "DXDraw.canvas.textout", but in Asphyre, it seems to be that I should create something with the manager, and then load the stuff into TAsphyreFonts, and in the end, they are based on bitmaps..

    So, isn't there any way just to use one Windows fonts? Can't Asphyre do that? I just want simple text, not anything bigger. :/ It would be great if there were just a simple TextOut- procedure in Asphyre :(
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  2. #2

    Simple TextOut

    Asphyre is vry easy to make fonts ;]

    =( im having problems with SDL fonts



    Generate fonts with "fonttool" and add to the asdb file (the tool make that)

    then in form create

    [pascal]Fonts.LoadFromASDb(ASDb);
    Images.LoadFromASDb(ASDb);[/pascal]

    Use then like this
    [pascal]fonts.Items[0].TextOut(IntToStr(Timer.FrameRate) + ' : FPS', 40, 415, $FF46CC00, $FF00FFFF, fxBlend);[/pascal]
    From brazil (:

    Pascal pownz!

  3. #3

    Re: Simple TextOut

    Quote Originally Posted by Rojekti
    Hello. When I used DelphiX, it was so easy just to write "DXDraw.canvas.textout", but in Asphyre, it seems to be that I should create something with the manager, and then load the stuff into TAsphyreFonts, and in the end, they are based on bitmaps..

    So, isn't there any way just to use one Windows fonts? Can't Asphyre do that? I just want simple text, not anything bigger. :/ It would be great if there were just a simple TextOut- procedure in Asphyre
    What version of Asphyre do you use? Asphyre 4 supports both bitmap and Windows system fonts.

  4. #4

    Re: Simple TextOut

    Oh, again those ASDBs :(

    Hmm, don't remember which version I got.. maybe the Extreme, I'm not sure. I'll check it later today. A decent TextOut-system would really be nice, it's not very much fun (well, everything's not always fun, but..) to mess with the ASDB things.

    Or, maybe I should just accept ASDB. I already had problems when loading images straight from file, as BMPs etc., and everyone told me to use the ASDB, but I think it works a lot better when they are loaded straight from file.. wellwelllll.
    Making ultimate rpg with thousands of years and every time new random history, people, world....

  5. #5

    Re: Simple TextOut

    .. oh damn, I already had good TextOut- unit somewhere and now I found it. Excellent memory I have.

    Thanks anyway.
    Making ultimate rpg with thousands of years and every time new random history, people, world....

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
  •