Open 3D Engine AtomLyIntegration Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::AtomNullFFont Class Reference

Inherits IFFont.

Public Types

using TextDrawContext = STextDrawContext
 

Public Member Functions

int32_t AddRef () override
 
int32_t Release () override
 
bool Load (const char *fontFilePath, unsigned int width, unsigned int height, unsigned int widthNumSlots, unsigned int heightNumSlots, unsigned int flags, float sizeRatio) override
 
bool Load (const char *xmlFile) override
 
void Free () override
 
void DrawString (float x, float y, const char *str, const bool asciiMultiLine, const TextDrawContext &ctx) override
 
void DrawString (float x, float y, float z, const char *str, const bool asciiMultiLine, const TextDrawContext &ctx) override
 
Vec2 GetTextSize (const char *str, const bool asciiMultiLine, const TextDrawContext &ctx) override
 
size_t GetTextLength (const char *str, const bool asciiMultiLine) const override
 
void WrapText (AZStd::string &result, float maxWidth, const char *str, const TextDrawContext &ctx) override
 
void GetGradientTextureCoord (float &minU, float &minV, float &maxU, float &maxV) const override
 
unsigned int GetEffectId (const char *effectName) const override
 
unsigned int GetNumEffects () const override
 
const char * GetEffectName (unsigned int effectId) const override
 
Vec2 GetMaxEffectOffset (unsigned int effectId) const override
 
bool DoesEffectHaveTransparency (unsigned int effectId) const override
 
void AddCharsToFontTexture (const char *chars, int glyphSizeX, int glyphSizeY) override
 
Vec2 GetKerning (uint32_t leftGlyph, uint32_t rightGlyph, const TextDrawContext &ctx) const override
 
float GetAscender (const TextDrawContext &ctx) const override
 
float GetBaseline (const TextDrawContext &ctx) const override
 
float GetSizeRatio () const override
 
uint32_t GetNumQuadsForText (const char *str, const bool asciiMultiLine, const TextDrawContext &ctx) override
 
uint32_t WriteTextQuadsToBuffers (SVF_P2F_C4B_T2F_F4B *verts, uint16_t *indices, uint32_t maxQuads, float x, float y, float z, const char *str, const bool asciiMultiLine, const TextDrawContext &ctx) override
 
int GetFontTextureId () override
 
uint32_t GetFontTextureVersion () override
 

The documentation for this class was generated from the following file: