C# Class UnityEngine.Font

Script interface for.

Inheritance: UnityEngine.Object
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat Font

Font() public méthode

Create a new Font.

public Font ( ) : System
Résultat System

Font() public méthode

Create a new Font.

public Font ( string name ) : System
name string The name of the created Font object.
Résultat System

GetMaxVertsForString() public static méthode

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.
Résultat int