Class UtilityFunctions.FontBundle
Inheritance
System.Object
UtilityFunctions.FontBundle
Assembly: pdftron.PDF.Tools.dll
public class FontBundle : object
Constructors
FontBundle(String, String, String, String, FontWeight, FontStyle)
Declaration
public FontBundle(string fontPath, string displayName, string pdfTronName, string family, FontWeight weight, FontStyle style)
Parameters
Type |
Name |
Description |
System.String |
fontPath |
|
System.String |
displayName |
|
System.String |
pdfTronName |
|
System.String |
family |
|
Windows.UI.Text.FontWeight |
weight |
|
Windows.UI.Text.FontStyle |
style |
|
Properties
Declaration
public string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string FontFamily { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public static string FontListJson { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string FontPath { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public FontStyle FontStyle { get; }
Property Value
Type |
Description |
Windows.UI.Text.FontStyle |
|
Returns a string intended for use by system UI widgets like TextBoxes.
Declaration
public string FontUri { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public FontWeight FontWeight { get; }
Property Value
Type |
Description |
Windows.UI.Text.FontWeight |
|
Declaration
public string PDFTronName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public static UtilityFunctions.FontBundle Create(ToolType toolType)
Parameters
Returns
Declaration
public static UtilityFunctions.FontBundle CreateDefaultFontBundle()
Returns
Declaration
public static UtilityFunctions.FontBundle CreateFromDisplayName(string displayName)
Parameters
Type |
Name |
Description |
System.String |
displayName |
|
Returns
Declaration
public static UtilityFunctions.FontBundle CreateFromPDFTronName(string pdfTronName)
Parameters
Type |
Name |
Description |
System.String |
pdfTronName |
|
Returns
Declaration
public static UtilityFunctions.FontBundle CreateNullFont()
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Declaration
public static Task<string> GetSystemFontListAsync()
Returns
Type |
Description |
Task<System.String> |
|
Declaration
public static bool IsNullFont(UtilityFunctions.FontBundle font)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static FontStyle StringToFontStyle(string styleString)
Parameters
Type |
Name |
Description |
System.String |
styleString |
|
Returns
Type |
Description |
Windows.UI.Text.FontStyle |
|
Declaration
public static FontWeight StringToFontWeight(string weightString)
Parameters
Type |
Name |
Description |
System.String |
weightString |
|
Returns
Type |
Description |
Windows.UI.Text.FontWeight |
|