Download Now
Forums

    Reference Codebot.Render.Fonts.pas

    Part of the Codebot Render package

    The Codebot.Render.Fonts unit gives you TFont, which loads a TrueType font and draws its glyphs at a fixed pixel size into a texture atlas holding the printable ASCII and Latin-1 characters. Ctx.Fonts holds fonts by name and loads them from the fonts folder of your assets. TTextBlock draws text with a font and only rebuilds its vertices when the text changes.

    For most text you will use the canvas of Codebot.Render.Graphics instead. These fonts are for drawing text directly with OpenGL.

    Items 43 items

    NameKindLine
    PFontGlyphpointer30
    TFontclass37
    AddTextprocedure68
    Createconstructor52
    CreateFromStreamconstructor54
    Destroydestructor55
    FindGlyphfunction58
    Kerningfunction60
    Measurefunction63
    Ascentproperty73
    Descentproperty75
    LineHeightproperty77
    Sizeproperty71
    Textureproperty79
    TFontCollectionclass86
    Createconstructor91
    DefaultFontproperty95
    Fontproperty93
    TFontExtensionhelper100
    Fontsfunction103
    TFontGlyphrecord22
    Advancefield25
    Codepointfield23
    Indexfield24
    S0field27
    S1field27
    T0field27
    T1field27
    X0field26
    X1field26
    Y0field26
    Y1field26
    TTextBlockclass111
    Createconstructor131
    Destroydestructor132
    Drawprocedure136
    Measurefunction134
    Colorproperty148
    Fontproperty138
    Scaleproperty146
    Textproperty140
    Xproperty142
    Yproperty144