Click or drag to resize

Font Class

Describes a font installed on the system: its family name, its size in points and its style.
Inheritance Hierarchy
SystemObject
  ExpertPdf.Anywhere.DrawingFont

Namespace: ExpertPdf.Anywhere.Drawing
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public sealed class Font

The Font type exposes the following members.

Constructors
 NameDescription
Public methodFont(Font, FontStyle) Creates a font like the specified one, with another style.
Public methodFont(String, Single) Creates a regular font of the specified family and size.
Public methodFont(String, Single, FontStyle) Creates a font of the specified family, size and style.
Top
Properties
 NameDescription
Public propertyBoldWhether the font is bold.
Public propertyItalicWhether the font is italic.
Public propertyNameThe font family name.
Public propertySizeThe font size in points.
Public propertySizeInPointsThe font size in points.
Public propertyStrikeoutWhether the font has a line through the middle.
Public propertyStyleThe font style.
Public propertyUnderlineWhether the font is underlined.
Top
Methods
 NameDescription
Public methodToStringReturns the family, size and style of the font.
(Overrides ObjectToString)
Top
Remarks
Cross-platform substitute for System.Drawing.Font, with the same constructor shape, so code written for the earlier ExpertPdf libraries ports with a using change. The font program is found among the fonts installed on the host when the font is used, and is embedded in the PDF document.
Example
Font font = new Font("Arial", 12, FontStyle.Bold);
See Also