StiFontCollection Class
Namespace: Stimulsoft.Base
Properties
| Property | Type | Description |
|---|---|---|
AllowFileCache static |
bool | |
AllowFileCache static |
bool | |
DefaultCachePath static |
string |
Methods
| Method | Returns | Description |
|---|---|---|
AddFontBase64 static (+1 overloads) |
void | |
AddFontBytes static (+1 overloads) |
void | |
AddFontFile static |
void | |
AddFontStream static |
void | |
AddMemoryFont static |
void | |
AddResourceFont static |
void | Add font from report resources. For internal use only !!! |
CreateFont static |
Font | |
GetCustomFontData static |
byte[] | |
GetCustomFontPath static |
string | |
GetFontFamilies static |
List<FontFamily> | |
GetFontFamiliesFirstCustom static |
List<FontFamily> | |
GetFontFamily static |
FontFamily | |
GetFontFamilyByContent static |
FontFamily | |
GetFontNamesByContent static |
List |
|
IsCustomFont static |
bool | |
IsStyleAvailable static |
bool | |
RemoveResourceFont static |
void |
Method Details
AddFontBase64 static
AddFontBase64(fontBase64: string, alias: string, fontStyle: FontStyle?): void
Parameters
- fontBase64 (string)
- alias (string)
- fontStyle (FontStyle?)
AddFontBase64(collection: PrivateFontCollection, fontBase64: string): void
Parameters
- collection (PrivateFontCollection)
- fontBase64 (string)
AddFontBytes static
AddFontBytes(**: bytecontent, **alias: string, fontStyle: FontStyle?): void
Parameters
- ** (bytecontent)
- alias (string)
- fontStyle (FontStyle?)
AddFontBytes(collection: PrivateFontCollection, **: bytefontData): void
Parameters
- collection (PrivateFontCollection)
- ** (bytefontData)
AddFontFile static
AddFontFile(fileName: string, alias: string, fontStyle: FontStyle?): void
Parameters
- fileName (string)
- alias (string)
- fontStyle (FontStyle?)
AddFontStream static
AddFontStream(collection: PrivateFontCollection, fontStream: Stream): void
Parameters
- collection (PrivateFontCollection)
- fontStream (Stream)
AddMemoryFont static
AddMemoryFont(memory: IntPtr, length: int): void
Parameters
- memory (IntPtr)
- length (int)
AddResourceFont static
AddResourceFont(name: string, **: bytecontent, **extension: string, alias: string): void
Add font from report resources. For internal use only !!!
Parameters
- name (string) — Font name
- ** (bytecontent)
- extension (string) — Original font file extension
- alias (string) — Font alias
CreateFont static
CreateFont(fontName: string, fontSize: float, fontStyle: FontStyle): Font
Parameters
- fontName (string)
- fontSize (float)
- fontStyle (FontStyle)
Returns Font
GetCustomFontData static
GetCustomFontData(fontName: string, baseFontStyle: FontStyle): byte[]
Parameters
- fontName (string)
- baseFontStyle (FontStyle)
Returns byte[]
GetCustomFontPath static
GetCustomFontPath(fontName: string, baseFontStyle: FontStyle): string
Parameters
- fontName (string)
- baseFontStyle (FontStyle)
Returns string
GetFontFamilies static
GetFontFamilies(): List<FontFamily>
Returns List<FontFamily>
GetFontFamiliesFirstCustom static
GetFontFamiliesFirstCustom(): List<FontFamily>
Returns List<FontFamily>
GetFontFamily static
GetFontFamily(fontName: string, baseFontStyle: FontStyle, allowNullResult: bool): FontFamily
Parameters
- fontName (string)
- baseFontStyle (FontStyle)
- allowNullResult (bool)
Returns FontFamily
GetFontFamilyByContent static
GetFontFamilyByContent(name: string, **: bytecontent, **extension: string, alias: string): FontFamily
Parameters
- name (string)
- ** (bytecontent)
- extension (string)
- alias (string)
Returns FontFamily
GetFontNamesByContent static
GetFontNamesByContent(name: string, **: bytecontent, **extension: string, alias: string): List
Parameters
- name (string)
- ** (bytecontent)
- extension (string)
- alias (string)
Returns List
IsCustomFont static
IsCustomFont(fontName: string): bool
Parameters
- fontName (string)
Returns bool
IsStyleAvailable static
IsStyleAvailable(fontName: string, style: FontStyle): bool
Parameters
- fontName (string)
- style (FontStyle)
Returns bool
RemoveResourceFont static
RemoveResourceFont(name: string, **: bytecontent): void
Parameters
- name (string)
- ** (bytecontent)
Events
| Event | Type | Description |
|---|---|---|
| GenerateFonts | StiGenerateFontsEventHandler |
Fields
| Field | Type | Description |
|---|---|---|
| Bold | FontV | |
| BoldItalic | FontV | |
| Italic | FontV | |
| Regular | FontV |