PdfFontFaceSelectionEventArgs Class
Provides data for the FontSelection event.
public sealed class PdfFontFaceSelectionEventArgs : EventArgsPublic NotInheritable Class PdfFontFaceSelectionEventArgs
Inherits EventArgs- Inheritance:
- System.ObjectSystem.EventArgsPdfFontFaceSelectionEventArgs
Properties
Character
Gets or sets the Unicode character that should be outlined with the FontFace or -1 if no character should currently be outlined.
Property Value
- System.Int32
The Unicode character that should be outlined with the FontFace or -1 if no character should currently be outlined.
Remarks
If the TextFont doesn't conform to Unicode encoding (the Symbol is true), then the Character does not represent the Unicode character, but the character (glyph) identifier or code specific to the TextFont. In that case, the Character should also be set to the user provided Unicode representation of the Character (glyph) identifier (code) that will be used to select the glyph from the selected FontFace.
Exceptions
- System.ArgumentOutOfRangeException
Value must be between 0 and 0x10FFFF (inclusive).
- System.ArgumentException
The selected FontFace does not contain outlines for the specified character.
See Also
Document
Gets the PdfDocument containing the TextFont for which the FontFace should be selected.
Property Value
The PdfDocument containing the TextFont for which the FontFace should be selected.
Remarks
This property provides the context for implementing different font selection behavior based on the PdfDocument instance.
FamilyName
Gets the optional preferred font family name specified in the TextFont's font descriptor.
Property Value
- System.String
The optional preferred font family name specified in the TextFont's font descriptor.
See Also
FontFace
Gets or sets the actual font face that will be used for outlining the Character based on values of other PdfFontFaceSelectionEventArgs members.
Use any of the font faces returned from the SystemFontFaces, GetFontFaces(String), or GetFontFaces(String, String) collections. Additionally, you can use any of the font faces returned from the StandardFontFaces collection if the SaveOptions is an instance of the PdfSaveOptions.
Property Value
The actual font face that will be used for outlining the Character based on values of other PdfFontFaceSelectionEventArgs members.
Exceptions
- System.ArgumentNullException
Value is null.
- System.ArgumentException
The selected PDF standard FontFace can be used only when saving to PDF (the SaveOptions is not an instance of the PdfSaveOptions) or the selected FontFace does not contain outlines for the specified Character.
IsBoldSimulated
Gets a value that indicates whether the PdfTextContent, on which the TextFont is applied, simulates a bold weight by applying the Stroke to its Format that has the same color as the Fill and the Width of at least 2% of the font size.
Property Value
- System.Boolean
true if the PdfTextContent simulates a bold weight; otherwise, false.
IsObliqueSimulated
Gets a value that indicates whether the PdfTextContent, on which the TextFont is applied, simulates an italic style by applying a shearing, or slanting transformation to its TextTransform.
public bool IsObliqueSimulated { get; }Public ReadOnly Property IsObliqueSimulated As BooleanProperty Value
- System.Boolean
true if the PdfTextContent simulates an italic style; otherwise, false.
PostScriptName
Gets the PostScript name of the TextFont.
Property Value
- System.String
The PostScript name of the TextFont.
See Also
SaveOptions
Gets, either explicitly specified or implicitly created, SaveOptions-derived instance representing the context of the current FontSelection event or null if no such context exists (such as in the Print(String, PrintOptions) method).
Property Value
The SaveOptions-derived instance representing the context of the current FontSelection event or null if no such context exists.
Remarks
This property provides the context for implementing different font selection behavior based on the SaveOptions instance.
Stretch
Gets the optional font face stretch specified in the TextFont's font descriptor.
Property Value
- System.Nullable<PdfFontStretch>
The optional font face stretch specified in the TextFont's font descriptor.
See Also
Style
Gets the optional font face style specified in the Italichttps://opensource.adobe.com/dc-acrobat-sdk-docs/standards/pdfstandards/pdf/PDF32000_2008.pdf#page=291 flag of the TextFont's font descriptor flags.
Property Value
- System.Nullable<PdfFontStyle>
The optional font face style specified in the Italic flag of the TextFont's font descriptor flags.
See Also
Symbol
Gets a value that indicates whether the TextFont conforms to Unicode encoding.
Property Value
- System.Boolean
false if the TextFont conforms to Unicode encoding; otherwise, true.
Remarks
If the TextFont doesn't conform to Unicode encoding (the Symbol is true), then the Character does not represent the Unicode character, but the character (glyph) identifier or code specific to the TextFont. In that case, the Character should also be set to the user provided Unicode representation of the Character (glyph) identifier (code) that will be used to select the glyph from the selected FontFace.
See Also
TextFont
Gets the PdfTextContent.Format.Text.GetFont(out Double) for which the FontFace should be selected.
Property Value
The PdfBasicFont for which the FontFace should be selected.
Weight
Gets the optional font face weight specified in the TextFont's font descriptor.
Property Value
- System.Nullable<PdfFontWeight>
The optional font face weight specified in the TextFont's font descriptor.