Class Font
Assembly: UnityEngine.dll
Syntax
public sealed class Font : Object
Constructors
|
Improve this Doc
View Source
Font()
Declaration
|
Improve this Doc
View Source
Font(String)
Declaration
Parameters
Type |
Name |
Description |
String |
name |
|
Properties
ascent
Declaration
public int ascent { get; }
Property Value
characterInfo
Declaration
public CharacterInfo[] characterInfo { get; set; }
Property Value
dynamic
Declaration
public bool dynamic { get; }
Property Value
fontNames
Declaration
public string[] fontNames { get; set; }
Property Value
fontSize
Declaration
public int fontSize { get; }
Property Value
lineHeight
Declaration
public int lineHeight { get; }
Property Value
material
Declaration
public Material material { get; set; }
Property Value
|
Improve this Doc
View Source
textureRebuildCallback
Declaration
[Obsolete("Font.textureRebuildCallback has been deprecated. Use Font.textureRebuilt instead.")]
public Font.FontTextureRebuildCallback textureRebuildCallback { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
CreateDynamicFontFromOSFont(String, Int32)
Declaration
public static Font CreateDynamicFontFromOSFont(string fontname, int size)
Parameters
Returns
|
Improve this Doc
View Source
CreateDynamicFontFromOSFont(String[], Int32)
Declaration
public static Font CreateDynamicFontFromOSFont(string[] fontnames, int size)
Parameters
Returns
|
Improve this Doc
View Source
GetCharacterInfo(Char, out CharacterInfo)
Declaration
[ExcludeFromDocs]
public bool GetCharacterInfo(char ch, out CharacterInfo info)
Parameters
Returns
|
Improve this Doc
View Source
GetCharacterInfo(Char, out CharacterInfo, Int32)
Declaration
[ExcludeFromDocs]
public bool GetCharacterInfo(char ch, out CharacterInfo info, int size)
Parameters
Returns
GetCharacterInfo(Char, out CharacterInfo, Int32, FontStyle)
Declaration
public bool GetCharacterInfo(char ch, out CharacterInfo info, [DefaultValue("0")] int size, [DefaultValue("FontStyle.Normal")] FontStyle style)
Parameters
Returns
|
Improve this Doc
View Source
GetMaxVertsForString(String)
Declaration
public static int GetMaxVertsForString(string str)
Parameters
Type |
Name |
Description |
String |
str |
|
Returns
GetOSInstalledFontNames()
Declaration
public static string[] GetOSInstalledFontNames()
Returns
|
Improve this Doc
View Source
HasCharacter(Char)
Declaration
public bool HasCharacter(char c)
Parameters
Type |
Name |
Description |
Char |
c |
|
Returns
|
Improve this Doc
View Source
RequestCharactersInTexture(String)
Declaration
[ExcludeFromDocs]
public void RequestCharactersInTexture(string characters)
Parameters
Type |
Name |
Description |
String |
characters |
|
|
Improve this Doc
View Source
RequestCharactersInTexture(String, Int32)
Declaration
[ExcludeFromDocs]
public void RequestCharactersInTexture(string characters, int size)
Parameters
RequestCharactersInTexture(String, Int32, FontStyle)
Declaration
public void RequestCharactersInTexture(string characters, [DefaultValue("0")] int size, [DefaultValue("FontStyle.Normal")] FontStyle style)
Parameters
Events
|
Improve this Doc
View Source
textureRebuilt
Declaration
public static event Action<Font> textureRebuilt
Event Type
Extension Methods