The Font type exposes the following members.

Constructors

  NameDescription
Public methodFont()()()()
Initializes a new instance of the Font class.
Public methodFont(String, Single)
Initializes a new instance of the Font class with the specified font name and size.
Public methodFont(String, Single, FontUnit)
Initializes a new instance of the Font class with the specified font name, size and unit of measure.
Public methodFont(String, String, Single)
Initializes a new instance of the Font class with the specified custom font file and size.
Public methodFont(String, String, Double, FontUnit)
Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.

Methods

  NameDescription
Public methodStatic memberGetNearestSizeForNativePrinterFonts
Gets the nearest fixed size for the specified Font object. The Font object should be one of the supported Native Printer Fonts.
Public methodToString()()()()
Converts the Font object to a string representation, using the current CultureInfo.
(Overrides Object..::..ToString()()()().)
Public methodToString(CultureInfo)
Converts the Font object to a string representation, using the specified CultureInfo.
Public methodUpdateFrom
Updates this Font object with the properties of the specified Font object.

Fields

  NameDescription
Public fieldStatic memberNativePrinterFontA
The font name for the Native Printer Font A
Public fieldStatic memberNativePrinterFontB
The font name for the Native Printer Font B
Public fieldStatic memberNativePrinterFontS
The font name for the Native Printer Font S

Properties

  NameDescription
Public propertyBold
Gets or sets a value that indicates whether this Font object is bold. Default value is false
Public propertyCustomFontFile
Gets or sets the custom font file to use for this Font object. It's the full path pointing out to the custom font file on local disk. Default value is an empty string
Public propertyCustomFontFileFamilyName
Gets or sets the Font Family name of the type faces defined by the specified Custom Font File. Default value is an empty string
Public propertyIsBitmapFont
Gets or sets whether the specified font is a Bitmap Font a.k.a. Pixel Font. Default value is false
Public propertyIsNativePrinterFont
Gets whether this font is a Native Printer Font.
Public propertyItalic
Gets or sets a value that indicates whether this Font object is italic. Default value is false
Public propertyName
Gets or sets the face name of this Font object. Default value is NativePrinterFontA
Public propertyNameAtPrinterStorage
Gets or sets the name of this Font object available in the Printer's internal storage including the drive location and name, for example B:ARIAL. IMPORTANT: The name must be 1 to 8 alphanumeric characters long.
Public propertySize
Gets or sets the size of this Font object. Default value is 10
Public propertyStrikeout
Gets or sets a value that indicates whether this Font object specifies a horizontal line through the font. Default value is false
Public propertyThreshold
Gets or sets the threshold percentage used for converting the font glyphs to black and white graphics. Values range from 0 to 100. Default value is 90.
Public propertyUnderline
Gets or sets a value that indicates whether this Font object is underlined. Default value is false
Public propertyUnit
Gets or sets the unit of measure for this Font object. Default value is Point

Events

  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.

See Also