C# Class UnityEngine.Font

Script interface for.

Inheritance: UnityEngine.Object
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Property Type Description
Font System
GetCharacterInfo bool
GetCharacterInfo bool
GetCharacterInfo bool
GetOSInstalledFontNames string[]
HasCharacter bool
Internal_CreateDynamicFont void
Internal_CreateFont void
InvokeTextureRebuilt_Internal void
RequestCharactersInTexture void
RequestCharactersInTexture void
RequestCharactersInTexture void

Public Methods

Method Description
CreateDynamicFontFromOSFont ( string fontname, int size ) : Font

Creates a Font object which lets you render a font installed on the user machine.

Font ( ) : System

Create a new Font.

Font ( string name ) : System

Create a new Font.

GetMaxVertsForString ( string str ) : int

Returns the maximum number of verts that the text generator may return for a given string.

Private Methods

Method Description
Font ( string names, int size ) : System
GetCharacterInfo ( char ch, CharacterInfo &info ) : bool
GetCharacterInfo ( char ch, CharacterInfo &info, [ size, [ style ) : bool
GetCharacterInfo ( char ch, CharacterInfo &info, int size ) : bool
GetOSInstalledFontNames ( ) : string[]
HasCharacter ( char c ) : bool
Internal_CreateDynamicFont ( [ _font, string _names, int size ) : void
Internal_CreateFont ( [ _font, string name ) : void
InvokeTextureRebuilt_Internal ( Font font ) : void
RequestCharactersInTexture ( string characters ) : void
RequestCharactersInTexture ( string characters, [ size, [ style ) : void
RequestCharactersInTexture ( string characters, int size ) : void

Method Details

CreateDynamicFontFromOSFont() public static method

Creates a Font object which lets you render a font installed on the user machine.

public static CreateDynamicFontFromOSFont ( string fontname, int size ) : Font
fontname string The name of the OS font to use for this font object.
size int The default character size of the generated font.
return Font

Font() public method

Create a new Font.

public Font ( ) : System
return System

Font() public method

Create a new Font.

public Font ( string name ) : System
name string The name of the created Font object.
return System

GetMaxVertsForString() public static method

Returns the maximum number of verts that the text generator may return for a given string.

public static GetMaxVertsForString ( string str ) : int
str string Input string.
return int