Interface IFontService
Namespace: Aurigma.DesignAtoms.Services
Assembly: Aurigma.DesignAtoms.dll
public interface IFontService
Properties
DefaultPostscriptName
string DefaultPostscriptName { get; }
FontSizeWarningThreshold
long FontSizeWarningThreshold { get; }
FontRegistry
FontRegistry FontRegistry { get; }
AllFontsByPsName
IReadOnlyDictionary<string, FontService.FontData> AllFontsByPsName { get; }
FontRemaps
IReadOnlyDictionary<string, string> FontRemaps { get; }
Methods
GetFontRegistry
FontRegistry GetFontRegistry()
Returns
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry
InitializeAsync
Task InitializeAsync()
Returns
System.Threading.Tasks.Task
WaitUntilReadyAsync
Task WaitUntilReadyAsync()
Returns
System.Threading.Tasks.Task
FindSuitableFont
FontSettings FindSuitableFont(string fontFamily, bool requestedBold = false, bool requestedItalic = false, string requestedStyle = null)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fontFamily | |
System.Boolean | requestedBold | |
System.Boolean | requestedItalic | |
System.String | requestedStyle |
Returns
Aurigma.DesignAtoms.Model.Items.FontSettings
GetBytes
IEnumerable<byte> GetBytes()
Returns
System.Collections.Generic.IEnumerable<System.Byte>
CreateProductAvailableFontsAsync
Task<Dictionary<string, IEnumerable<FontService.ExtendedFontData>>> CreateProductAvailableFontsAsync(IProductHandler productHandler, Product product, IList<string> requestedFonts, string requestedDefaultFont)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.IProductHandler | productHandler | |
| Aurigma.DesignAtoms.Model.Product | product | |
System.Collections.Generic.IList<System.String> | requestedFonts | |
System.String | requestedDefaultFont |
Returns
System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Services.FontService.ExtendedFontData>>>
CreateProductAvailableFonts1
[Obsolete]
Dictionary<string, IEnumerable<FontService.ExtendedFontData>> CreateProductAvailableFonts1(IProductHandler productHandler, Product product, IList<string> requestedFonts, string requestedDefaultFont)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Model.IProductHandler | productHandler | |
| Aurigma.DesignAtoms.Model.Product | product | |
System.Collections.Generic.IList<System.String> | requestedFonts | |
System.String | requestedDefaultFont |
Returns
System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Services.FontService.ExtendedFontData>>
GetCssPsName
string GetCssPsName(FontService.FontData requestedFont)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Services.FontService.FontData | requestedFont |
Returns
System.String
GetCssFamilyName
string GetCssFamilyName(FontService.FontData requestedFont)
Parameters
| Type | Name | Description |
|---|---|---|
| Aurigma.DesignAtoms.Services.FontService.FontData | requestedFont |
Returns
System.String
RecognizeFontStyle
FontService.FontStyle RecognizeFontStyle(string style)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | style |
Returns
Aurigma.DesignAtoms.Services.FontService.FontStyle
FilterMissedFonts
IEnumerable<string> FilterMissedFonts(IEnumerable<string> requestedFontsByPsName)
Parameters
| Type | Name | Description |
|---|---|---|
System.Collections.Generic.IEnumerable<System.String> | requestedFontsByPsName |
Returns
System.Collections.Generic.IEnumerable<System.String>
UpdateLocalFonts
[Obsolete("This method is obsolete, use InitializeAsync instead.")]
void UpdateLocalFonts()
GetFontStreamByPostscriptNameAsync
Task<Stream> GetFontStreamByPostscriptNameAsync(string psName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | psName |
Returns
System.Threading.Tasks.Task<System.IO.Stream>
GetFontStreamByPostscriptName
[Obsolete("This method is obsolete, use GetFontStreamByPostscriptNameAsync instead.")]
Task<Stream> GetFontStreamByPostscriptName(string psName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | psName |
Returns
System.Threading.Tasks.Task<System.IO.Stream>
GetFontPath
string GetFontPath(string fontKey)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fontKey |
Returns
System.String
GetFontStreamByPathAsync
Task<Stream> GetFontStreamByPathAsync(string fontPath)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fontPath |
Returns
System.Threading.Tasks.Task<System.IO.Stream>
GetFontStreamByPath
[Obsolete("This method is obsolete, use GetFontStreamByPathAsync instead.")]
Task<Stream> GetFontStreamByPath(string fontPath)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | fontPath |
Returns
System.Threading.Tasks.Task<System.IO.Stream>
FixFontPsName
string FixFontPsName(string psName)
Parameters
| Type | Name | Description |
|---|---|---|
System.String | psName |
Returns
System.String
CreateFont
Font CreateFont(FontRegistry fontRegistry, string postScriptName, float size, float dpiX, float dpiY)
Parameters
| Type | Name | Description |
|---|---|---|
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry | fontRegistry | |
System.String | postScriptName | |
System.Single | size | |
System.Single | dpiX | |
System.Single | dpiY |
Returns
Aurigma.GraphicsMill.AdvancedDrawing.Font