This wiki is out of date, use the continuation of this wiki instead

FontID

From FenixWiki

Jump to: navigation, search


[edit] Definition

FontID

A FontID is an identifier associated with a certain font. It is returned by functions that load fonts, for example load_fnt(). You can use the FontID in functions to specify the font used in the writing of texts like write(), write_int(), write_float(), write_string(), write_var() and write_in_map().

[edit] Notes

Font "0" is the built-in fenix font, and can be used in functions as well.

[edit] Example

Program test;
Global
    My_font;
Begin

    //Using the built-in Fenix font:
    My_font=0;
    Write(My_font,320/2,200/2,4,"Game programming is awesome!");

    Loop
        Frame;
    End
End

Used in example: write()

This will result in something like:
Image:FontID.png

Personal tools