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

FontID

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:11, 24 July 2007 (edit)
Rincewind (Talk | contribs)
(New Article)
← Previous diff
Revision as of 19:13, 24 July 2007 (edit) (undo)
Rincewind (Talk | contribs)
(Categories added)
Next diff →
Line 1: Line 1:
 +[[Category:general]]
 +[[Category:Texts]]
 +
== Definition == == Definition ==
'''FontID''' '''FontID'''

Revision as of 19:13, 24 July 2007


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().

Notes

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

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