Skip to main content

Interface IFontService

Namespace: Aurigma.DesignAtoms.Services​
Assembly: Aurigma.DesignAtoms.dll​
Syntax
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​
TypeNameDescription
System.StringfontFamily
System.BooleanrequestedBold
System.BooleanrequestedItalic
System.StringrequestedStyle
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​
TypeNameDescription
Aurigma.DesignAtoms.Model.IProductHandlerproductHandler
Aurigma.DesignAtoms.Model.Productproduct
System.Collections.Generic.IList<System.String>requestedFonts
System.StringrequestedDefaultFont
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​
TypeNameDescription
Aurigma.DesignAtoms.Model.IProductHandlerproductHandler
Aurigma.DesignAtoms.Model.Productproduct
System.Collections.Generic.IList<System.String>requestedFonts
System.StringrequestedDefaultFont
Returns​

System.Collections.Generic.Dictionary<System.String,System.Collections.Generic.IEnumerable<Aurigma.DesignAtoms.Services.FontService.ExtendedFontData>>

GetCssPsName​

string GetCssPsName(FontService.FontData requestedFont)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Services.FontService.FontDatarequestedFont
Returns​

System.String

GetCssFamilyName​

string GetCssFamilyName(FontService.FontData requestedFont)
Parameters​
TypeNameDescription
Aurigma.DesignAtoms.Services.FontService.FontDatarequestedFont
Returns​

System.String

RecognizeFontStyle​

FontService.FontStyle RecognizeFontStyle(string style)
Parameters​
TypeNameDescription
System.Stringstyle
Returns​

Aurigma.DesignAtoms.Services.FontService.FontStyle

FilterMissedFontsByPsNames​

IEnumerable<string> FilterMissedFontsByPsNames(IEnumerable<string> requestedFontsByPsName)
Parameters​
TypeNameDescription
System.Collections.Generic.IEnumerable<System.String>requestedFontsByPsName
Returns​

System.Collections.Generic.IEnumerable<System.String>

FilterMissedFontsByFontFamilyAndStyle>)​

IEnumerable<string> FilterMissedFontsByFontFamilyAndStyle(IEnumerable<(string, string)> requestedFonts)
Parameters​
TypeNameDescription
System.Collections.Generic.IEnumerable<System.ValueTuple<System.String,System.String>>requestedFonts
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​
TypeNameDescription
System.StringpsName
Returns​

System.Threading.Tasks.Task<System.IO.Stream>

GetFontStreamByPostscriptName​

[Obsolete("This method is obsolete, use GetFontStreamByPostscriptNameAsync instead.")]
Task<Stream> GetFontStreamByPostscriptName(string psName)
Parameters​
TypeNameDescription
System.StringpsName
Returns​

System.Threading.Tasks.Task<System.IO.Stream>

GetFontPath​

string GetFontPath(string fontKey)
Parameters​
TypeNameDescription
System.StringfontKey
Returns​

System.String

GetFontStreamByPathAsync​

Task<Stream> GetFontStreamByPathAsync(string fontPath)
Parameters​
TypeNameDescription
System.StringfontPath
Returns​

System.Threading.Tasks.Task<System.IO.Stream>

GetFontStreamByPath​

[Obsolete("This method is obsolete, use GetFontStreamByPathAsync instead.")]
Task<Stream> GetFontStreamByPath(string fontPath)
Parameters​
TypeNameDescription
System.StringfontPath
Returns​

System.Threading.Tasks.Task<System.IO.Stream>

FixFontPsName​

string FixFontPsName(string psName)
Parameters​
TypeNameDescription
System.StringpsName
Returns​

System.String

CreateFont​

Font CreateFont(FontRegistry fontRegistry, string postScriptName, float size, float dpiX, float dpiY)
Parameters​
TypeNameDescription
Aurigma.GraphicsMill.AdvancedDrawing.FontRegistryfontRegistry
System.StringpostScriptName
System.Singlesize
System.SingledpiX
System.SingledpiY
Returns​

Aurigma.GraphicsMill.AdvancedDrawing.Font

Was this page helpful?