|
| | Font (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual=false, ManualResourceLoader *loader=0) |
| | Constructor. More...
|
| |
| virtual | ~Font () |
| |
| void | _setMaterial (const MaterialPtr &mat) |
| | Manually set the material used for this font. More...
|
| |
| 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. More...
|
| |
| void | clearCodePointRanges () |
| | Clear the list of code point ranges. More...
|
| |
| bool | getAntialiasColour (void) const |
| | Gets whether or not the colour of this font is antialiased as it is generated from a true type font. More...
|
| |
| 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. More...
|
| |
| float | getGlyphAspectRatio (CodePoint id) const |
| | Gets the aspect ratio (width / height) of this character. More...
|
| |
| 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;. More...
|
| |
| const UVRect & | getGlyphTexCoords (CodePoint id) const |
| | Returns the texture coordinates of the associated glyph. More...
|
| |
| const MaterialPtr & | getMaterial () const |
| | Gets the material generated for this font, as a weak reference. More...
|
| |
| const String & | getSource (void) const |
| | Gets the source this font (either an image or a truetype font). More...
|
| |
| int | getTrueTypeMaxBearingY () const |
| | Gets the maximum baseline distance of all glyphs used in the texture. More...
|
| |
| uint | getTrueTypeResolution (void) const |
| | Gets the resolution (dpi) of the font used to generate the texture. More...
|
| |
| Real | getTrueTypeSize (void) const |
| | Gets the point size of the font used to generate the texture. More...
|
| |
| FontType | getType (void) const |
| | Gets the type of font. More...
|
| |
| void | loadResource (Resource *resource) override |
| | Implementation of ManualResourceLoader::loadResource, called when the Texture that this font creates needs to (re)load. More...
|
| |
| void | putText (BillboardSet *bbs, String text, float height, const ColourValue &colour=ColourValue::White) |
| | Write a text into a BillboardSet for positioning in Space. More...
|
| |
| void | setAntialiasColour (bool enabled) |
| | Sets whether or not the colour of this font is antialiased as it is generated from a true type font. More...
|
| |
| void | setGlyphAspectRatio (CodePoint id, Real ratio) |
| | Sets the aspect ratio (width / height) of this character. More...
|
| |
| void | setGlyphInfo (const GlyphInfo &info) |
| |
| void | setGlyphInfoFromTexCoords (CodePoint id, const UVRect &rect, float textureAspect=1.0) |
| | Sets the texture coordinates of a glyph. More...
|
| |
| void | setSource (const String &source) |
| | Sets the source of the font. More...
|
| |
| void | setTrueTypeResolution (uint ttfResolution) |
| | Gets the resolution (dpi) of the font used to generate the texture (only required for FT_TRUETYPE). More...
|
| |
| void | setTrueTypeSize (Real ttfSize) |
| | Sets the size of a truetype font (only required for FT_TRUETYPE). More...
|
| |
| void | setType (FontType ftype) |
| | Sets the type of font. More...
|
| |
| | Resource (ResourceManager *creator, const String &name, ResourceHandle handle, const String &group, bool isManual=false, ManualResourceLoader *loader=0) |
| | Standard constructor. More...
|
| |
| virtual | ~Resource () |
| | Virtual destructor. More...
|
| |
| virtual void | _dirtyState () |
| | Manually mark the state of this resource as having been changed. More...
|
| |
| void | _fireLoadingComplete (bool unused=false) |
| | Firing of loading complete event. More...
|
| |
| void | _firePreparingComplete (bool unused=false) |
| | Firing of preparing complete event. More...
|
| |
| void | _fireUnloadingComplete (void) |
| | Firing of unloading complete event. More...
|
| |
| void | _notifyOrigin (const String &origin) |
| | Notify this resource of it's origin. More...
|
| |
| virtual void | addListener (Listener *lis) |
| | Register a listener on this resource. More...
|
| |
| virtual void | changeGroupOwnership (const String &newGroup) |
| | Change the resource group ownership of a Resource. More...
|
| |
| virtual void | escalateLoading () |
| | Escalates the loading of a background loaded resource. More...
|
| |
| ResourceManager * | getCreator (void) |
| | Gets the manager which created this resource. More...
|
| |
| const String & | getGroup (void) const |
| | Gets the group which this resource is a member of. More...
|
| |
| ResourceHandle | getHandle (void) const |
| |
| LoadingState | getLoadingState () const |
| | Returns the current loading state. More...
|
| |
| const String & | getName (void) const |
| | Gets resource name. More...
|
| |
| const String & | getOrigin (void) const |
| | Get the origin of this resource, e.g. More...
|
| |
| size_t | getSize (void) const |
| | Retrieves info about the size of the resource. More...
|
| |
| 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. More...
|
| |
| bool | isBackgroundLoaded (void) const |
| | Returns whether this Resource has been earmarked for background loading. More...
|
| |
| bool | isLoaded (void) const |
| | Returns true if the Resource has been loaded, false otherwise. More...
|
| |
| bool | isLoading () const |
| | Returns whether the resource is currently in the process of background loading. More...
|
| |
| bool | isManuallyLoaded (void) const |
| | Is this resource manually loaded? More...
|
| |
| bool | isPrepared (void) const |
| | Returns true if the Resource has been prepared, false otherwise. More...
|
| |
| bool | isReloadable (void) const |
| | Returns true if the Resource is reloadable, false otherwise. More...
|
| |
| virtual void | load (bool backgroundThread=false) |
| | Loads the resource, if it is not already. More...
|
| |
| virtual void | prepare (bool backgroundThread=false) |
| | Prepares the resource for load, if it is not already. More...
|
| |
| virtual void | reload (LoadingFlags flags=LF_DEFAULT) |
| | Reloads the resource, if it is already loaded. More...
|
| |
| virtual void | removeListener (Listener *lis) |
| | Remove a listener on this resource. More...
|
| |
| void | setBackgroundLoaded (bool bl) |
| | Tells the resource whether it is background loaded or not. More...
|
| |
| virtual void | touch (void) |
| | 'Touches' the resource to indicate it has been used. More...
|
| |
| virtual void | unload (void) |
| | Unloads the resource; this is not permanent, the resource can be reloaded later if required. More...
|
| |
| | StringInterface () |
| |
| virtual | ~StringInterface () |
| | Virtual destructor, see Effective C++. More...
|
| |
| void | copyParametersTo (StringInterface *dest) const |
| | Method for copying this object's parameters to another object. More...
|
| |
| ParamDictionary * | getParamDictionary (void) |
| | Retrieves the parameter dictionary for this class. More...
|
| |
| const ParamDictionary * | getParamDictionary (void) const |
| |
| String | getParameter (const String &name) const |
| | Generic parameter retrieval method. More...
|
| |
| const ParameterList & | getParameters (void) const |
| | Retrieves a list of parameters valid for this object. More...
|
| |
| bool | setParameter (const String &name, const String &value) |
| | Generic parameter setting method. More...
|
| |
| void | setParameterList (const NameValuePairList ¶mList) |
| | Generic multiple parameter setting method. More...
|
| |
| | ManualResourceLoader () |
| |
| virtual | ~ManualResourceLoader () |
| |
| virtual void | prepareResource (Resource *resource) |
| | Called when a resource wishes to prepare instead of Resource::prepareImpl. More...
|
| |
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.