cete.dynamicpdf.text.googlefont
GoogleFont
- Namespace: ceTe.DynamicPDF.Text
- Assemblies: DynamicPDF.CoreSuite.dll
Represents a GoogleFont class.
public class GoogleFont : OpenTypeFont, IDisposable, IFontSubsettable
Public Class GoogleFont
Inherits OpenTypeFont
Implements IDisposable, IFontSubsettable
Inheritance: Object → Resource → Font → OpenTypeFont → GoogleFont
Implements: IDisposable, IFontSubsettable
Licensing Info
This class is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Properties
Ascender
Gets the ascender for the font. (Inherited from OpenTypeFont)
public short Ascender { get; }
Public Property Ascender As Int16
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
CachePeriod
Gets or sets the cache period in milliseconds for Google fonts.
public static int CachePeriod { get; set; }
Public Shared Property CachePeriod As Int32
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Descender
Gets the descender for the font. (Inherited from OpenTypeFont)
public short Descender { get; }
Public Property Descender As Int16
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Embed
Gets or sets a value indicating whether the font need to be embedded in to the pdf. (Inherited from OpenTypeFont)
public bool Embed { get; set; }
Public Property Embed As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Encoder
Gets the encoder for the font. (Inherited from Font)
public Encoder Encoder { get; }
Public Property Encoder As Encoder
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
FormFontName
Gets the four character name of the font. (Inherited from Font)
public string FormFontName { get; }
Public Property FormFontName As String
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
LineBreaker
Gets the instance of LineBreaker used for the font. (Inherited from OpenTypeFont)
public LineBreaker LineBreaker { get; }
Public Property LineBreaker As LineBreaker
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
LineGap
Gets the line gap for the font. (Inherited from OpenTypeFont)
public short LineGap { get; }
Public Property LineGap As Int16
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Name
Gets the font name for the file given. (Inherited from OpenTypeFont)
public string Name { get; }
Public Property Name As String
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
OutLineType
Gets the OutLineType of the opentype font. (Inherited from OpenTypeFont)
public OutLineType OutLineType { get; }
Public Property OutLineType As OutLineType
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
RequiredPdfObjects
Gets the required pdf objects. (Inherited from OpenTypeFont)
public int RequiredPdfObjects { get; }
Public Property RequiredPdfObjects As Int32
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ResourceType
Gets the value of ResourceType . (Inherited from OpenTypeFont)
public ResourceType ResourceType { get; }
Public Property ResourceType As ResourceType
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Subset
Gets or sets a value indicating whether the font need to subset while embedding. (Inherited from OpenTypeFont)
public bool Subset { get; set; }
Public Property Subset As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Uid
Gets the unique ID of the resource. (Inherited from Resource)
public long Uid { get; }
Public Property Uid As Int64
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Methods
Dispose()
Releases all resources used by the OpenTypeFont object. (Inherited from OpenTypeFont)
public void Dispose()
Sub Dispose()
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Draw(DocumentWriter)
Draw the opentype font data to the DocumentWriter . (Inherited from OpenTypeFont)
public void Draw(DocumentWriter writer)
Sub Draw(writer As DocumentWriter)
Parameters
- writer: DocumentWriter
DocumentWriter object used to receive the opentype font output.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetAscender(Single)
Returns the ascender of the font in points for the given font size. (Inherited from Font)
public float GetAscender(float fontSize)
Function GetAscender(fontSize As Single) As Single
Parameters
- fontSize: Single
Font size to use for the calculation.
Returns
The ascender in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetBaseLine(Single, Single)
Returns the baseline of the font in points for the given leading and font size. (Inherited from Font)
public float GetBaseLine(float fontSize, float leading)
Function GetBaseLine(fontSize As Single, leading As Single) As Single
Parameters
- fontSize: Single
Font size to use for the calculation.
- leading: Single
Leading to use for the calculation.
Returns
The baseline in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetDefaultLeading(Single)
Returns the default leading of the font in points for the given font size. (Inherited from Font)
public float GetDefaultLeading(float fontSize)
Function GetDefaultLeading(fontSize As Single) As Single
Parameters
- fontSize: Single
Font size to use for the calculation.
Returns
The default leading in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetDescender(Single)
Returns the descender of the font in points for the given font size. (Inherited from Font)
public float GetDescender(float fontSize)
Function GetDescender(fontSize As Single) As Single
Parameters
- fontSize: Single
Font size to use for the calculation.
Returns
The descender in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetFontSubsetter()
eturns a font subsetter for the opentype font. (Inherited from OpenTypeFont)
public FontSubsetter GetFontSubsetter()
Function GetFontSubsetter() As FontSubsetter
Returns
FontSubsetter object used for the font.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetGlyphWidth(Char)
Returns the mwidth of the given char. (Inherited from OpenTypeFont)
public short GetGlyphWidth(char glyph)
Function GetGlyphWidth(glyph As Char) As Short
Parameters
- glyph: Char
Glyph whose mwidth is required.
Returns
mwdith of the given glyph.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetKernValue(Char, Char)
Returns the kern value correspoding to the given glyph combination. (Inherited from OpenTypeFont)
public float GetKernValue(char left, char right)
Function GetKernValue(left As Char, right As Char) As Single
Parameters
- left: Char
Left glyph.
- right: Char
Right glyph.
Returns
Kern value correponds to the combination given.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetLineGap(Single)
Returns the line gap of the font in points for the given font size. (Inherited from Font)
public float GetLineGap(float fontSize)
Function GetLineGap(fontSize As Single) As Single
Parameters
- fontSize: Single
Font size to use for the calculation.
Returns
The line gap in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetTextLines(Char[], Single, Single)
Returns a TextLineList for the given character array. (Inherited from Font)
public TextLineList GetTextLines(Char[] text, float width, float fontSize)
Function GetTextLines(text As Char[], width As Single, fontSize As Single) As TextLineList
Parameters
- text: Char[]
Character array containing the text.
- width: Single
Width to use when calculating the text lines.
- fontSize: Single
Font size to use when calculating the text lines.
Returns
A TextLineList containing the text.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetTextLines(Char[], Single, Single, Single)
Returns a TextLineList for the given character array. (Inherited from Font)
public TextLineList GetTextLines(Char[] text, float width, float height, float fontSize)
Function GetTextLines(text As Char[], width As Single, height As Single, fontSize As Single) As TextLineList
Parameters
- text: Char[]
Character array containing the text.
- width: Single
Width to use when calculating the text lines.
- height: Single
Height to use when calculating the text lines.
- fontSize: Single
Font size to use when calculating the text lines.
Returns
A TextLineList containing the text.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetTextWidth(Char[], Single)
Returns the width of the given text. (Inherited from Font)
public float GetTextWidth(Char[] text, float fontSize)
Function GetTextWidth(text As Char[], fontSize As Single) As Single
Parameters
- text: Char[]
Byte array or text whose width is returned.
- fontSize: Single
Font size of text.
Returns
Width of text in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetTextWidth(String, Single)
Returns the width of the given text. (Inherited from Font)
public float GetTextWidth(string text, float fontSize)
Function GetTextWidth(text As String, fontSize As Single) As Single
Parameters
- text: String
Text whose width is returned.
- fontSize: Single
Font size of text.
Returns
Width of text in points.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
HasKerning()
Returns whether the font has inbuilt kerning pairs. (Inherited from OpenTypeFont)
public bool HasKerning()
Function HasKerning() As Boolean
Returns
true, if the font has inbuilt kerning pair.
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .
Licensing Info
This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.