About Text display on IPhone

edited May 2010 in Help request
I Create Text with config:
; --- Texts ---

[SingleText] ;============================
Graphic = SingleTextGraphic
Position = (0.0, 0.0, 0.0)
Scale = 2.0

[SingleTextGraphic] ;===============================
Text = SingleTextString
Color = (255, 0, 0)
Pivot = center

[SingleTextString] ;=========================
String = SingleTextString

But it looks weak(does not like the FPS).See attachment.
How the right way to display Text like FPS? Screen_shot_2010_05_12_at_10.png

Comments

  • edited May 2010
    The answer lies in CreationTemplate.ini ;)

    As I'm not a (too) sadistic person, here it is: Smoothing (aka antialiasing).

    First, in the Display section you can define what the default Smoothing will be (true/false).

    Then you can override for an object or a graphic resource.

    Try this:
    [SingleText]
    Smoothing = false
    

    You should then have something more like the FPS display. :)

    Also, I encourage you to use custom fonts as orx's default font is a very nice & free programmer font called Dina, but doesn't look that great for in-game display. ;)

    EDIT: Btw, tutorial #10 is about text localization if you're interested: http://orx-project.org/wiki/en/orx/tutorials/standalone
  • edited May 2010
    That works,Thank you.

    But I still don't know how to use user defined font after I read the tutorials.
  • edited May 2010
    Custom bitmap support has been added after 1.1 so there's no info on the wiki yet.
    However, in the iPhone-beta-1.2 package, the CreationTemplate.ini contains info about how to setup a custom bitmap font.
    I'll modify the tutorial #11 with custom font when releasing 1.2
  • edited May 2010
    OK,I will try it myself or wait for your tutorial.
Sign In or Register to comment.