Skip to main content

CCFontManager

CCFontManager

Cocos2D

Inheritance: System.Object

Properties

RegisteredTTFFonts(System.Collections.Generic.IEnumerableSystem.String)

Methods

Clear()

Clear()()

CreateLabel(string, string, float)

Cocos2D.CCNode CreateLabel(string, string, float)(System.String text, System.String fontName, System.Single fontSize)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)
Returns:
Cocos2D.CCNode

CreateLabel(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)

Cocos2D.CCNode CreateLabel(string, string, float, CCSize, CCTextAlignment, CCVerticalTextAlignment)(System.String text, System.String fontName, System.Single fontSize, Cocos2D.CCSize dimensions, Cocos2D.CCTextAlignment hAlignment, Cocos2D.CCVerticalTextAlignment vAlignment)
Parameters:
text (System.String)
fontName (System.String)
fontSize (System.Single)
dimensions (Cocos2D.CCSize)
hAlignment (Cocos2D.CCTextAlignment)
vAlignment (Cocos2D.CCVerticalTextAlignment)
Returns:
Cocos2D.CCNode

IsTTFFont(string)

System.Boolean IsTTFFont(string)(System.String fontName)
Parameters:
fontName (System.String)
Returns:
System.Boolean

IsTTFRegistered(string)

System.Boolean IsTTFRegistered(string)(System.String relativePath)
Parameters:
relativePath (System.String)
Returns:
System.Boolean

RegisterTTF(string)

System.Boolean RegisterTTF(string)(System.String relativePath)
Parameters:
relativePath (System.String)
Returns:
System.Boolean

ResolveFontPath(string)

System.String ResolveFontPath(string)(System.String relativePath)
Parameters:
relativePath (System.String)
Returns:
System.String