Show / Hide Table of Contents

Class Font

Inheritance
Object
Object
Font
Inherited Members
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public sealed class Font : Object

Constructors

| Improve this Doc View Source

Font()

Declaration
public Font()
| Improve this Doc View Source

Font(String)

Declaration
public Font(string name)
Parameters
Type Name Description
String name

Properties

ascent

Declaration
public int ascent { get; }
Property Value
Type Description
Int32

characterInfo

Declaration
public CharacterInfo[] characterInfo { get; set; }
Property Value
Type Description
CharacterInfo[]

dynamic

Declaration
public bool dynamic { get; }
Property Value
Type Description
Boolean

fontNames

Declaration
public string[] fontNames { get; set; }
Property Value
Type Description
String[]

fontSize

Declaration
public int fontSize { get; }
Property Value
Type Description
Int32

lineHeight

Declaration
public int lineHeight { get; }
Property Value
Type Description
Int32

material

Declaration
public Material material { get; set; }
Property Value
Type Description
Material
| 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
Type Description
Font.FontTextureRebuildCallback

Methods

| Improve this Doc View Source

CreateDynamicFontFromOSFont(String, Int32)

Declaration
public static Font CreateDynamicFontFromOSFont(string fontname, int size)
Parameters
Type Name Description
String fontname
Int32 size
Returns
Type Description
Font
| Improve this Doc View Source

CreateDynamicFontFromOSFont(String[], Int32)

Declaration
public static Font CreateDynamicFontFromOSFont(string[] fontnames, int size)
Parameters
Type Name Description
String[] fontnames
Int32 size
Returns
Type Description
Font
| Improve this Doc View Source

GetCharacterInfo(Char, out CharacterInfo)

Declaration
[ExcludeFromDocs]
public bool GetCharacterInfo(char ch, out CharacterInfo info)
Parameters
Type Name Description
Char ch
CharacterInfo info
Returns
Type Description
Boolean
| Improve this Doc View Source

GetCharacterInfo(Char, out CharacterInfo, Int32)

Declaration
[ExcludeFromDocs]
public bool GetCharacterInfo(char ch, out CharacterInfo info, int size)
Parameters
Type Name Description
Char ch
CharacterInfo info
Int32 size
Returns
Type Description
Boolean

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
Type Name Description
Char ch
CharacterInfo info
Int32 size
FontStyle style
Returns
Type Description
Boolean
| Improve this Doc View Source

GetMaxVertsForString(String)

Declaration
public static int GetMaxVertsForString(string str)
Parameters
Type Name Description
String str
Returns
Type Description
Int32

GetOSInstalledFontNames()

Declaration
public static string[] GetOSInstalledFontNames()
Returns
Type Description
String[]
| Improve this Doc View Source

HasCharacter(Char)

Declaration
public bool HasCharacter(char c)
Parameters
Type Name Description
Char c
Returns
Type Description
Boolean
| 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
Type Name Description
String characters
Int32 size

RequestCharactersInTexture(String, Int32, FontStyle)

Declaration
public void RequestCharactersInTexture(string characters, [DefaultValue("0")] int size, [DefaultValue("FontStyle.Normal")] FontStyle style)
Parameters
Type Name Description
String characters
Int32 size
FontStyle style

Events

| Improve this Doc View Source

textureRebuilt

Declaration
public static event Action<Font> textureRebuilt
Event Type
Type Description
Action<Font>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX