CCSpriteFontCache
CCSpriteFontCache
Cocos2DInheritance: System.Object
Fields
FontRoot(System.String)
Properties
FontScale(System.Single)
SharedInstance(Cocos2D.CCSpriteFontCache)
Methods
Clear()
Clear()()
GetFont(string)
Microsoft.Xna.Framework.Graphics.SpriteFont GetFont(string)(System.String fontName)
Parameters:
fontName
(System.String)Returns:
Microsoft.Xna.Framework.Graphics.SpriteFont
RegisterFont(string, params int[])
RegisterFont(string, params int[])(System.String fontName, System.Int32[] sizes)
Parameters:
fontName
(System.String)sizes
(System.Int32[])TryLoadFont(string, float, out float)
Microsoft.Xna.Framework.Graphics.SpriteFont TryLoadFont(string, float, out float)(System.String fontName, System.Single fontSize, System.Single loadedSize)
Parameters:
fontName
(System.String)fontSize
(System.Single)loadedSize
(System.Single)Returns:
Microsoft.Xna.Framework.Graphics.SpriteFont