Gets the nearest fixed size for the specified Font object. The Font object should be one of the supported Native Printer Fonts.

Namespace: Neodynamic.SDK.Printing
Assembly: Neodynamic.SDK.ThermalLabel (in Neodynamic.SDK.ThermalLabel.dll) Version: 5.0.3500.0 (5.0.3500.4)

Syntax

C#
public static double GetNearestSizeForNativePrinterFonts(
	Font font
)
Visual Basic
Public Shared Function GetNearestSizeForNativePrinterFonts ( _
	font As Font _
) As Double
Visual C++
public:
static double GetNearestSizeForNativePrinterFonts(
	Font^ font
)

Parameters

font
Type: Neodynamic.SDK.Printing..::..Font
The Font object on which the nearest fixed size is calculated.

Return Value

The nearest fixed size for the specified Font object.

Remarks

Native Printer Fonts accept the following fixed sizes:

- NativePrinterFontS: 3pt (this font does support just this value only)

- NativePrinterFontA: 5pt, 10pt, 15pt, 20pt, and 25pt

- NativePrinterFontB: 7pt, 14pt, 21pt, 28pt, and 35pt

By using this method, you can get the nearest fixed size if the specified Font object has a different value for the font size.

See Also