Font
Object
Font

class:/TYPE/UnityEngine.Font//, can be loaded from an assetbundle using Font::createfromassetbundle(bundlename,prefabname) /

Parent

Object

Variables
ascent
readonly System.Int32 ascent
characterinfo
UnityEngine.CharacterInfo[] characterinfo
dynamic
readonly System.Boolean dynamic
fontnames
System.String[] fontnames
fontsize
readonly System.Int32 fontsize
lineheight
readonly System.Int32 lineheight
material
UnityEngine.Material material
Functions
font::​create
static UnityEngine.Font Create ()

Constructor replaces new;

Returns

UnityEngine.Font

font::​create
static UnityEngine.Font Create (
System.String name
)

Constructor replaces new;

Parameters
name
System.String

no description

Returns

UnityEngine.Font

font::​createdynamicfontfromosfont
static UnityEngine.Font CreateDynamicFontFromOSFont(
System.String fontname,
System.Int32 size
)

System.String fontname-no documentation

Parameters
fontname
System.String

no documentation size -

Returns

UnityEngine.Font

font::​createdynamicfontfromosfont
static UnityEngine.Font CreateDynamicFontFromOSFont(
System.String[] fontnames,
System.Int32 size
)

System.String[] fontnames-no documentation

Parameters
fontnames
System.String[]

no documentation size -

Returns

UnityEngine.Font

font::​fromassetbundle
static UnityEngine.Font CreateFromAssetBundle(
string bundle,
string objectname
)

Constructor for object from a bundle

Parameters
bundle
string

bundle name

objectname
string

object name with extension

Returns

UnityEngine.Font

font::​getmaxvertsforstring
static System.Int32 GetMaxVertsForString(
System.String str
)

System.String str-no documentation

Parameters

str -

Returns

System.Int32

font::​getosinstalledfontnames
static System.String[] GetOSInstalledFontNames()
Returns

System.String[]

font::​getpathstoosfonts
static System.String[] GetPathsToOSFonts()
Returns

System.String[]

getcharacterinfo
System.Boolean GetCharacterInfo(
System.Char ch,
UnityEngine.CharacterInfo& info,
System.Int32 size,
UnityEngine.FontStyle style
)

System.Char ch-no documentation

Parameters
ch
System.Char

no documentation

info
UnityEngine.CharacterInfo&

no documentation

size
System.Int32

no documentation style -

Returns

System.Boolean

getcharacterinfo
System.Boolean GetCharacterInfo(
System.Char ch,
UnityEngine.CharacterInfo& info,
System.Int32 size
)

System.Char ch-no documentation

Parameters
ch
System.Char

no documentation

info
UnityEngine.CharacterInfo&

no documentation size -

Returns

System.Boolean

getcharacterinfo
System.Boolean GetCharacterInfo(
System.Char ch,
UnityEngine.CharacterInfo& info
)

System.Char ch-no documentation

Parameters
ch
System.Char

no documentation info -

Returns

System.Boolean

hascharacter
System.Boolean HasCharacter(
System.Char c
)

System.Char c-no documentation

Parameters

c -

Returns

System.Boolean

requestcharactersintexture
System.Void RequestCharactersInTexture(
System.String characters,
System.Int32 size,
UnityEngine.FontStyle style
)

System.String characters-no documentation

Parameters
characters
System.String

no documentation

size
System.Int32

no documentation style -

Returns

System.Void

requestcharactersintexture
System.Void RequestCharactersInTexture(
System.String characters,
System.Int32 size
)

System.String characters-no documentation

Parameters
characters
System.String

no documentation size -

Returns

System.Void

requestcharactersintexture
System.Void RequestCharactersInTexture(
System.String characters
)

System.String characters-no documentation

Parameters

characters -

Returns

System.Void