C# Class SkiaSharp.SKTypeface

Inheritance: SKObject
Show file Open project: prepare/HTML-Renderer Class Usage Examples

Public Methods

Method Description
CharsToGlyphs ( IntPtr str, int strlen, SKEncoding encoding, ushort &glyphs ) : int
CharsToGlyphs ( string chars, ushort &glyphs ) : int
CountGlyphs ( IntPtr str, int strLen, SKEncoding encoding ) : int
CountGlyphs ( string str ) : int
FromFamilyName ( string familyName, SKFontStyleWeight weight, SKFontStyleWidth width, SKFontStyleSlant slant ) : SKTypeface
FromFamilyName ( string familyName, SKTypefaceStyle style = SKTypefaceStyle.Normal ) : SKTypeface
FromFamilyName ( string familyName, int weight, int width, SKFontStyleSlant slant ) : SKTypeface
FromFile ( string path, int index ) : SKTypeface
FromStream ( SKStreamAsset stream, int index ) : SKTypeface
FromTypeface ( SKTypeface typeface, SKTypefaceStyle style = SKTypefaceStyle.Normal ) : SKTypeface
GetTableData ( UInt32 tag ) : byte[]
GetTableTags ( ) : System.UInt32[]
TryGetTableData ( UInt32 tag, byte &tableData ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
SKTypeface ( IntPtr handle, bool owns ) : System

Method Details

CharsToGlyphs() public method

public CharsToGlyphs ( IntPtr str, int strlen, SKEncoding encoding, ushort &glyphs ) : int
str System.IntPtr
strlen int
encoding SKEncoding
glyphs ushort
return int

CharsToGlyphs() public method

public CharsToGlyphs ( string chars, ushort &glyphs ) : int
chars string
glyphs ushort
return int

CountGlyphs() public method

public CountGlyphs ( IntPtr str, int strLen, SKEncoding encoding ) : int
str System.IntPtr
strLen int
encoding SKEncoding
return int

CountGlyphs() public method

public CountGlyphs ( string str ) : int
str string
return int

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

FromFamilyName() public static method

public static FromFamilyName ( string familyName, SKFontStyleWeight weight, SKFontStyleWidth width, SKFontStyleSlant slant ) : SKTypeface
familyName string
weight SKFontStyleWeight
width SKFontStyleWidth
slant SKFontStyleSlant
return SKTypeface

FromFamilyName() public static method

public static FromFamilyName ( string familyName, SKTypefaceStyle style = SKTypefaceStyle.Normal ) : SKTypeface
familyName string
style SKTypefaceStyle
return SKTypeface

FromFamilyName() public static method

public static FromFamilyName ( string familyName, int weight, int width, SKFontStyleSlant slant ) : SKTypeface
familyName string
weight int
width int
slant SKFontStyleSlant
return SKTypeface

FromFile() public static method

public static FromFile ( string path, int index ) : SKTypeface
path string
index int
return SKTypeface

FromStream() public static method

public static FromStream ( SKStreamAsset stream, int index ) : SKTypeface
stream SKStreamAsset
index int
return SKTypeface

FromTypeface() public static method

public static FromTypeface ( SKTypeface typeface, SKTypefaceStyle style = SKTypefaceStyle.Normal ) : SKTypeface
typeface SKTypeface
style SKTypefaceStyle
return SKTypeface

GetTableData() public method

public GetTableData ( UInt32 tag ) : byte[]
tag System.UInt32
return byte[]

GetTableTags() public method

public GetTableTags ( ) : System.UInt32[]
return System.UInt32[]

TryGetTableData() public method

public TryGetTableData ( UInt32 tag, byte &tableData ) : bool
tag System.UInt32
tableData byte
return bool