Interface IFontService
Assembly: Aurigma.DesignAtoms.dll
Syntax
public interface IFontService
Properties
AllFontsByPsName
Declaration
IReadOnlyDictionary<string, FontService.FontData> AllFontsByPsName { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyDictionary<System.String, FontService.FontData> |
|
DefaultPostscriptName
Declaration
string DefaultPostscriptName { get; }
Property Value
| Type |
Description |
| System.String |
|
FontRegistry
Declaration
FontRegistry FontRegistry { get; }
Property Value
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry |
|
FontRemaps
Declaration
IReadOnlyDictionary<string, string> FontRemaps { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyDictionary<System.String, System.String> |
|
FontSizeWarningThreshold
Declaration
long FontSizeWarningThreshold { get; }
Property Value
| Type |
Description |
| System.Int64 |
|
Methods
CreateFont(FontRegistry, String, Single, Single, Single)
Declaration
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
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.Font |
|
CreateProductAvailableFonts1(IProductHandler, Product, IList<String>, String)
Declaration
[Obsolete]
Dictionary<string, IEnumerable<FontService.ExtendedFontData>> CreateProductAvailableFonts1(IProductHandler productHandler, Product product, IList<string> requestedFonts, string requestedDefaultFont)
Parameters
| Type |
Name |
Description |
| IProductHandler |
productHandler |
|
| Product |
product |
|
| System.Collections.Generic.IList<System.String> |
requestedFonts |
|
| System.String |
requestedDefaultFont |
|
Returns
CreateProductAvailableFontsAsync(IProductHandler, Product, IList<String>, String)
Declaration
Task<Dictionary<string, IEnumerable<FontService.ExtendedFontData>>> CreateProductAvailableFontsAsync(IProductHandler productHandler, Product product, IList<string> requestedFonts, string requestedDefaultFont)
Parameters
| Type |
Name |
Description |
| IProductHandler |
productHandler |
|
| Product |
product |
|
| System.Collections.Generic.IList<System.String> |
requestedFonts |
|
| System.String |
requestedDefaultFont |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.IEnumerable<FontService.ExtendedFontData>>> |
|
FilterMissedFonts(IEnumerable<String>)
Declaration
IEnumerable<string> FilterMissedFonts(IEnumerable<string> requestedFontsByPsName)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
requestedFontsByPsName |
|
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
FindSuitableFont(String, Boolean, Boolean, String)
Declaration
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
FixFontPsName(String)
Declaration
string FixFontPsName(string psName)
Parameters
| Type |
Name |
Description |
| System.String |
psName |
|
Returns
| Type |
Description |
| System.String |
|
GetBytes()
Declaration
IEnumerable<byte> GetBytes()
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.Byte> |
|
GetCssFamilyName(FontService.FontData)
Declaration
string GetCssFamilyName(FontService.FontData requestedFont)
Parameters
Returns
| Type |
Description |
| System.String |
|
GetCssPsName(FontService.FontData)
Declaration
string GetCssPsName(FontService.FontData requestedFont)
Parameters
Returns
| Type |
Description |
| System.String |
|
GetFontPath(String)
Declaration
string GetFontPath(string fontKey)
Parameters
| Type |
Name |
Description |
| System.String |
fontKey |
|
Returns
| Type |
Description |
| System.String |
|
GetFontRegistry()
Declaration
FontRegistry GetFontRegistry()
Returns
| Type |
Description |
| Aurigma.GraphicsMill.AdvancedDrawing.FontRegistry |
|
GetFontStreamByPath(String)
Declaration
[Obsolete("This method is obsolete, use GetFontStreamByPathAsync instead.")]
Task<Stream> GetFontStreamByPath(string fontPath)
Parameters
| Type |
Name |
Description |
| System.String |
fontPath |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.IO.Stream> |
|
GetFontStreamByPathAsync(String)
Declaration
Task<Stream> GetFontStreamByPathAsync(string fontPath)
Parameters
| Type |
Name |
Description |
| System.String |
fontPath |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.IO.Stream> |
|
GetFontStreamByPostscriptName(String)
Declaration
[Obsolete("This method is obsolete, use GetFontStreamByPostscriptNameAsync instead.")]
Task<Stream> GetFontStreamByPostscriptName(string psName)
Parameters
| Type |
Name |
Description |
| System.String |
psName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.IO.Stream> |
|
GetFontStreamByPostscriptNameAsync(String)
Declaration
Task<Stream> GetFontStreamByPostscriptNameAsync(string psName)
Parameters
| Type |
Name |
Description |
| System.String |
psName |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.IO.Stream> |
|
InitializeAsync()
Declaration
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
RecognizeFontStyle(String)
Declaration
FontService.FontStyle RecognizeFontStyle(string style)
Parameters
| Type |
Name |
Description |
| System.String |
style |
|
Returns
UpdateLocalFonts()
Declaration
[Obsolete("This method is obsolete, use InitializeAsync instead.")]
void UpdateLocalFonts()
WaitUntilReadyAsync()
Declaration
Task WaitUntilReadyAsync()
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|