Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: d3d font and italics (clootie help?)

  1. #11

    d3d font and italics (clootie help?)

    That sounds rather promising. I will have a proper look at it in the next few days. When you say displacements are you saying that it is not fixed width? i.e. that the letter i takes less room than the w? That is exactly what I need.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  2. #12

    d3d font and italics (clootie help?)

    Also look here: http://www.clootie.ru/delphi/download_custom.html.
    There are 3 different samples using various font classes (all of them are running DirectX 8.0 or 8.1). May be one of them will handle italic styles well...
    Samples are: TextDot3.zip. NitroFont.zip, BitmapFont.zip.
    There are only 10 types of people in this world; those who understand binary and those who don't.

  3. #13

    d3d font and italics (clootie help?)

    Thanks for your help everyone.

    I will let you know how we get on. Dan is almost back from holidays and he knows his directx quite well. I will ask him to create a solution.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  4. #14

    d3d font and italics (clootie help?)

    Quote Originally Posted by czar
    That sounds rather promising. I will have a proper look at it in the next few days. When you say displacements are you saying that it is not fixed width? i.e. that the letter i takes less room than the w? That is exactly what I need.
    No, displacementes depends on letter size. For instance, "i" has smaller width than "W" and that's why LetterSizes array is provided. Although letter height is also provided, the letter height will most likely match the pattern height.

  5. #15

    d3d font and italics (clootie help?)

    Hi Lifepower, that is exactly what I was asking. Not fixed width, i.e. variable width. We are talking about the same thing.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  6. #16

    d3d font and italics (clootie help?)

    Just an update. I think we have found a good solution. We updated the project to use the dx9 version of Omega.

    Dan created a new omega class using ID3DXFont and we have been incorporating that into our program. I still wasn't 100% happy but I think I now have a solution.

    To get smooth fonts I am printing the text twice. I am using two variants of the font I create. The first is set to ANTIALIASED_QUALITY and the other is set to not antialiased.

    I draw the fatter ANTIALIASED_QUALITY font first with a low alpha (i.e. quite see through) and then draw the other font over the top (no alpha). The result is pretty good, the jaggies dissappear nicely. Good enough for what I want it for.

    When we are finished we can publish the new unit if anyone wants it to be incorporated into Omega.
    The views expressed on this programme are bloody good ones. - Fred Dagg

  7. #17

    d3d font and italics (clootie help?)

    Hi Czar,

    can you show us a screen of that smooth font?
    Will that new class also get into Dan's JetX components?

    Firle

  8. #18

    d3d font and italics (clootie help?)

    I think Dan will incorporate it into his DanJetX components

    http://www.dan.mirg.ru

    Here are the results, nothing spectacular but because this program is used for educational purposes I felt that it was important that the font used made for a pleasing and clear text. BTW I had to make my own font, I have about 5000 fonts to choose from and not one was what I needed



    I am pleased that the 'o' now looks round. Before it looked more like an octagon. The letters look smoother in general with this technique. However, still not as good as they do in Microsoft Word.

    Does GDI offer more possibilities for fonts?
    The views expressed on this programme are bloody good ones. - Fred Dagg

  9. #19

    d3d font and italics (clootie help?)

    "GDI on screen" can do better antialiasing, as it knows at what position on screen text will be outputted. And so can apply advanced technique 'Clear Type", taking in account LCD color cell interpositions
    There are only 10 types of people in this world; those who understand binary and those who don't.

  10. #20

    d3d font and italics (clootie help?)

    Looks very good to me

    Firle

Page 2 of 2 FirstFirst 12

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
  •