The Font type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Font()()()() |
Initializes a new instance of the Font class.
| |
Font(String, Single) |
Initializes a new instance of the Font class with the specified font name and size.
| |
Font(String, Single, FontUnit) |
Initializes a new instance of the Font class with the specified font name, size and unit of measure.
| |
Font(String, String, Single) |
Initializes a new instance of the Font class with the specified custom font file and size.
| |
Font(String, String, Double, FontUnit) |
Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.
|
Methods
Name | Description | |
---|---|---|
GetNearestSizeForNativePrinterFonts |
Gets the nearest fixed size for the specified Font object. The Font object should be one of the supported Native Printer Fonts.
| |
ToString()()()() |
Converts the Font object to a string representation, using the current CultureInfo.
(Overrides Object..::..ToString()()()().) | |
ToString(CultureInfo) |
Converts the Font object to a string representation, using the specified CultureInfo.
| |
UpdateFrom |
Fields
Name | Description | |
---|---|---|
NativePrinterFontA |
The font name for the Native Printer Font A
| |
NativePrinterFontB |
The font name for the Native Printer Font B
| |
NativePrinterFontS |
The font name for the Native Printer Font S
|
Properties
Name | Description | |
---|---|---|
Bold |
Gets or sets a value that indicates whether this Font object is bold. Default value is false
| |
CustomFontFile |
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
| |
CustomFontFileFamilyName |
Gets or sets the Font Family name of the type faces defined by the specified Custom Font File. Default value is an empty string
| |
IsBitmapFont |
Gets or sets whether the specified font is a Bitmap Font a.k.a. Pixel Font. Default value is false
| |
IsNativePrinterFont |
Gets whether this font is a Native Printer Font.
| |
Italic |
Gets or sets a value that indicates whether this Font object is italic. Default value is false
| |
Name |
Gets or sets the face name of this Font object. Default value is NativePrinterFontA
| |
NameAtPrinterStorage |
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.
| |
Size |
Gets or sets the size of this Font object. Default value is 10
| |
Strikeout |
Gets or sets a value that indicates whether this Font object specifies a horizontal line through the font. Default value is false
| |
Threshold |
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.
| |
Underline |
Gets or sets a value that indicates whether this Font object is underlined. Default value is false
| |
Unit |
Gets or sets the unit of measure for this Font object. Default value is Point
|
Events
Name | Description | |
---|---|---|
PropertyChanged |
Occurs when a property value changes.
|