C# Класс UnityEngine.Font

Script interface for.

Наследование: UnityEngine.Object
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
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

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CreateDynamicFontFromOSFont() публичный статический Метод

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.
Результат Font

Font() публичный Метод

Create a new Font.

public Font ( ) : System
Результат System

Font() публичный Метод

Create a new Font.

public Font ( string name ) : System
name string The name of the created Font object.
Результат System

GetMaxVertsForString() публичный статический Метод

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.
Результат int