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:13, 24 July 2007 (edit)
Rincewind (Talk | contribs)
(Categories added)
← Previous diff
Current revision (00:26, 29 December 2007) (edit) (undo)
Sandman (Talk | contribs)
m
 
Line 5: Line 5:
'''FontID''' '''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 [[Function|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]]().+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 [[Function|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 == == Notes ==

Current revision


[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