Show / Hide Table of Contents

Class UtilityFunctions.FontBundle

Inheritance
System.Object
UtilityFunctions.FontBundle
Namespace: pdftron.PDF.Tools
Assembly: pdftron.PDF.Tools.dll
Syntax
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

DisplayName

Declaration
public string DisplayName { get; }
Property Value
Type Description
System.String

FontFamily

Declaration
public string FontFamily { get; }
Property Value
Type Description
System.String

FontListJson

Declaration
public static string FontListJson { get; }
Property Value
Type Description
System.String

FontPath

Declaration
public string FontPath { get; }
Property Value
Type Description
System.String

FontStyle

Declaration
public FontStyle FontStyle { get; }
Property Value
Type Description
Windows.UI.Text.FontStyle

FontUri

Returns a string intended for use by system UI widgets like TextBoxes.

Declaration
public string FontUri { get; }
Property Value
Type Description
System.String

FontWeight

Declaration
public FontWeight FontWeight { get; }
Property Value
Type Description
Windows.UI.Text.FontWeight

PDFTronName

Declaration
public string PDFTronName { get; }
Property Value
Type Description
System.String

Methods

Create(ToolType)

Declaration
public static UtilityFunctions.FontBundle Create(ToolType toolType)
Parameters
Type Name Description
ToolType toolType
Returns
Type Description
UtilityFunctions.FontBundle

CreateDefaultFontBundle()

Declaration
public static UtilityFunctions.FontBundle CreateDefaultFontBundle()
Returns
Type Description
UtilityFunctions.FontBundle

CreateFromDisplayName(String)

Declaration
public static UtilityFunctions.FontBundle CreateFromDisplayName(string displayName)
Parameters
Type Name Description
System.String displayName
Returns
Type Description
UtilityFunctions.FontBundle

CreateFromPDFTronName(String)

Declaration
public static UtilityFunctions.FontBundle CreateFromPDFTronName(string pdfTronName)
Parameters
Type Name Description
System.String pdfTronName
Returns
Type Description
UtilityFunctions.FontBundle

CreateNullFont()

Declaration
public static UtilityFunctions.FontBundle CreateNullFont()
Returns
Type Description
UtilityFunctions.FontBundle

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj
Returns
Type Description
System.Boolean

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

GetSystemFontListAsync()

Declaration
public static Task<string> GetSystemFontListAsync()
Returns
Type Description
Task<System.String>

IsNullFont(UtilityFunctions.FontBundle)

Declaration
public static bool IsNullFont(UtilityFunctions.FontBundle font)
Parameters
Type Name Description
UtilityFunctions.FontBundle font
Returns
Type Description
System.Boolean

StringToFontStyle(String)

Declaration
public static FontStyle StringToFontStyle(string styleString)
Parameters
Type Name Description
System.String styleString
Returns
Type Description
Windows.UI.Text.FontStyle

StringToFontWeight(String)

Declaration
public static FontWeight StringToFontWeight(string weightString)
Parameters
Type Name Description
System.String weightString
Returns
Type Description
Windows.UI.Text.FontWeight
In This Article
Back to top Generated by DocFX