|  | 
|  | Font (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual=false, ManualResourceLoader *loader=0) | 
|  | Constructor. 
 | 
|  | 
|  | ~Font () override | 
|  | 
| void | addCodePointRange (const CodePointRange &range) | 
|  | Adds a range of code points to the list of code point ranges to generate glyphs for, if this is a truetype based font. 
 | 
|  | 
| void | clearCodePointRanges () | 
|  | Clear the list of code point ranges. 
 | 
|  | 
| bool | getAntialiasColour () const | 
|  | Gets whether or not the colour of this font is antialiased as it is generated from a true type font. 
 | 
|  | 
| uint | getCharacterSpacer () const | 
|  | Gets the spacing to allocate for font characters to overlap each other. 
 | 
|  | 
| const CodePointRangeList & | getCodePointRangeList () const | 
|  | Get a const reference to the list of code point ranges to be used to generate glyphs from a truetype font. 
 | 
|  | 
| Real | getGlyphAspectRatio (CodePoint id) const | 
|  | Gets the aspect ratio (width / height) of this character. 
 | 
|  | 
| const GlyphInfo & | getGlyphInfo (CodePoint id) const | 
|  | Gets the information available for a glyph corresponding to a given code point, or throws an exception if it doesn't exist;. 
 | 
|  | 
| const UVRect & | getGlyphTexCoords (CodePoint id) const | 
|  | Returns the texture coordinates of the associated glyph. 
 | 
|  | 
| HlmsDatablock * | getHlmsDatablock () | 
|  | Gets the HLMS Datablock generated for this font. 
 | 
|  | 
| const String & | getSource () const | 
|  | Gets the source this font (either an image or a truetype font). 
 | 
|  | 
| int | getTrueTypeMaxBearingY () const | 
|  | Gets the maximum baseline distance of all glyphs used in the texture. 
 | 
|  | 
| uint | getTrueTypeResolution () const | 
|  | Gets the resolution (dpi) of the font used to generate the texture. 
 | 
|  | 
| Real | getTrueTypeSize () const | 
|  | Gets the point size of the font used to generate the texture. 
 | 
|  | 
| FontType | getType () const | 
|  | Gets the type of font. 
 | 
|  | 
| void | notifyTextureChanged (TextureGpu *texture, TextureGpuListener::Reason reason, void *extraData) override | 
|  | Called when a TextureGpu changed in a way that affects how it is displayed: 
 | 
|  | 
| void | setAntialiasColour (bool enabled) | 
|  | Sets whether or not the colour of this font is antialiased as it is generated from a true type font. 
 | 
|  | 
| void | setCharacterSpacer (uint charSpacer) | 
|  | Sets the spacing to allocate for font characters to overlap each other. 
 | 
|  | 
| void | setGlyphAspectRatio (CodePoint id, Real ratio) | 
|  | Sets the aspect ratio (width / height) of this character. 
 | 
|  | 
| void | setGlyphTexCoords (CodePoint id, Real u1, Real v1, Real u2, Real v2, Real textureAspect) | 
|  | Sets the texture coordinates of a glyph. 
 | 
|  | 
| void | setSource (const String &source) | 
|  | Sets the source of the font. 
 | 
|  | 
| void | setTrueTypeResolution (uint ttfResolution) | 
|  | Gets the resolution (dpi) of the font used to generate the texture (only required for FT_TRUETYPE). 
 | 
|  | 
| void | setTrueTypeSize (Real ttfSize) | 
|  | Sets the size of a truetype font (only required for FT_TRUETYPE). 
 | 
|  | 
| void | setType (FontType ftype) | 
|  | Sets the type of font. 
 | 
|  | 
|  | Resource (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual=false, ManualResourceLoader *loader=0) | 
|  | Standard constructor. 
 | 
|  | 
| virtual | ~Resource () | 
|  | Virtual destructor. 
 | 
|  | 
| virtual void | _dirtyState () | 
|  | Manually mark the state of this resource as having been changed. 
 | 
|  | 
| virtual void | _fireLoadingComplete (bool wasBackgroundLoaded) | 
|  | Firing of loading complete event. 
 | 
|  | 
| virtual void | _firePreparingComplete (bool wasBackgroundLoaded) | 
|  | Firing of preparing complete event. 
 | 
|  | 
| virtual void | _fireUnloadingComplete () | 
|  | Firing of unloading complete event. 
 | 
|  | 
| virtual void | _notifyOrigin (const String &origin) | 
|  | Notify this resource of it's origin. 
 | 
|  | 
| virtual void | addListener (Listener *lis) | 
|  | Register a listener on this resource. 
 | 
|  | 
| virtual void | changeGroupOwnership (const String &newGroup) | 
|  | Change the resource group ownership of a Resource. 
 | 
|  | 
| virtual void | escalateLoading () | 
|  | Escalates the loading of a background loaded resource. 
 | 
|  | 
| virtual ResourceManager * | getCreator () | 
|  | Gets the manager which created this resource. 
 | 
|  | 
| virtual const String & | getGroup () const | 
|  | Gets the group which this resource is a member of. 
 | 
|  | 
| virtual ResourceHandle | getHandle () const | 
|  | 
| virtual LoadingState | getLoadingState () const | 
|  | Returns the current loading state. 
 | 
|  | 
| virtual const String & | getName () const | 
|  | Gets resource name. 
 | 
|  | 
| virtual const String & | getOrigin () const | 
|  | Get the origin of this resource, e.g. 
 | 
|  | 
| virtual size_t | getSize () const | 
|  | Retrieves info about the size of the resource. 
 | 
|  | 
| virtual size_t | getStateCount () const | 
|  | Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. 
 | 
|  | 
| virtual bool | isBackgroundLoaded () const | 
|  | Returns whether this Resource has been earmarked for background loading. 
 | 
|  | 
| virtual bool | isLoaded () const | 
|  | Returns true if the Resource has been loaded, false otherwise. 
 | 
|  | 
| virtual bool | isLoading () const | 
|  | Returns whether the resource is currently in the process of background loading. 
 | 
|  | 
| virtual bool | isManuallyLoaded () const | 
|  | Is this resource manually loaded? 
 | 
|  | 
| virtual bool | isPrepared () const | 
|  | Returns true if the Resource has been prepared, false otherwise. 
 | 
|  | 
| virtual bool | isReloadable () const | 
|  | Returns true if the Resource is reloadable, false otherwise. 
 | 
|  | 
| virtual void | load (bool backgroundThread=false) | 
|  | Loads the resource, if it is not already. 
 | 
|  | 
| bool | markForReload () | 
|  | 
| virtual void | prepare (bool backgroundThread=false) | 
|  | Prepares the resource for load, if it is not already. 
 | 
|  | 
| virtual void | reload (LoadingFlags flags=LF_DEFAULT) | 
|  | Reloads the resource, if it is already loaded. 
 | 
|  | 
| virtual void | removeListener (Listener *lis) | 
|  | Remove a listener on this resource. 
 | 
|  | 
| virtual void | setBackgroundLoaded (bool bl) | 
|  | Tells the resource whether it is background loaded or not. 
 | 
|  | 
| virtual void | setManuallyLoaded (bool isManual) | 
|  | Set "Is this resource manually loaded?". 
 | 
|  | 
| virtual void | setToLoaded () | 
|  | Change the Resource loading state to loaded. 
 | 
|  | 
| virtual void | touch () | 
|  | 'Touches' the resource to indicate it has been used. 
 | 
|  | 
| virtual void | unload () | 
|  | Unloads the resource; this is not permanent, the resource can be reloaded later if required. 
 | 
|  | 
|  | StringInterface () | 
|  | 
| virtual | ~StringInterface () | 
|  | Virtual destructor, see Effective C++. 
 | 
|  | 
| virtual void | copyParametersTo (StringInterface *dest) const | 
|  | Method for copying this object's parameters to another object. 
 | 
|  | 
| ParamDictionary * | getParamDictionary () | 
|  | Retrieves the parameter dictionary for this class. 
 | 
|  | 
| const ParamDictionary * | getParamDictionary () const | 
|  | 
| virtual String | getParameter (const String &name) const | 
|  | Generic parameter retrieval method. 
 | 
|  | 
| const ParameterList & | getParameters () const | 
|  | Retrieves a list of parameters valid for this object. 
 | 
|  | 
| virtual bool | setParameter (const String &name, const String &value) | 
|  | Generic parameter setting method. 
 | 
|  | 
| virtual void | setParameterList (const NameValuePairList ¶mList) | 
|  | Generic multiple parameter setting method. 
 | 
|  | 
| virtual | ~TextureGpuListener () | 
|  | 
| virtual bool | shouldStayLoaded (TextureGpu *texture) | 
|  | Return true if this TextureGpu should likely stay loaded or else graphical changes could occur. 
 | 
|  | 
Class representing a font in the system. 
- Note
- This class extends both Resource and ManualResourceLoader since it is both a resource in it's own right, but it also provides the manual load implementation for the Texture it creates.