Inherits IFFont, AZStd::intrusive_refcount< AZStd::atomic_uint, FontDeleter >, and AzFramework::FontDrawInterface.
 | 
| 
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=ICryFont::defaultGlyphSizeX, int glyphSizeY=ICryFont::defaultGlyphSizeY) 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 | 
|   | 
| 
void  | DrawScreenAlignedText2d (const AzFramework::TextDrawParameters ¶ms, AZStd::string_view text) override | 
|   | 
| 
void  | DrawScreenAlignedText3d (const AzFramework::TextDrawParameters ¶ms, AZStd::string_view text) override | 
|   | 
| 
AZ::Vector2  | GetTextSize (const AzFramework::TextDrawParameters ¶ms, AZStd::string_view text) override | 
|   | 
| 
  | FFont (AtomFont *atomFont, const char *fontName) | 
|   | 
| 
FontTexture *  | GetFontTexture () const | 
|   | 
| 
const AZStd::string &  | GetName () const | 
|   | 
| 
FontEffect *  | AddEffect (const char *effectName) | 
|   | 
| 
FontEffect *  | GetDefaultEffect () | 
|   | 
| 
AZ::Data::Instance< AZ::RPI::Image >  | GetFontImage () | 
|   | 
FFont is the implementation of IFFont used to draw text with a particular font (e.g. Consolas Italic) FFont manages creation of a gpu texture to cache the font and generates draw commands that use that texture. FFont's are managed by AtomFont as either individual font instances or a font family that collects all the variations (italic, bold, bold italic, normal).