[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.FontBuilder

FontBuilder Class

Represents a class that is used to builder some complex fonts.

Inheritance
FontBuilder
Namespace: C1.Framework.Drawing.Gdi
Assembly: C1.Win.Input.8.dll
Syntax
public sealed class FontBuilder

Constructors

Name Description
FontBuilder(Font)

Initialize a new FontBuilder from a Font

FontBuilder(Font)

Initialize a new FontBuilder from a Font

FontBuilder(string, FontFamily, int)

Initialize a new FontBuilder by special faceName, family and height

FontBuilder(string, FontFamily, int, FontStyle)

Initialize a new FontBuilder by special faceName, family, height and fontStyle

FontBuilder(string, FontFamily, int, FontStyle, int)

Initialize a new FontBuilder by special faceName, family, height and fontStyle

FontBuilder(string, FontFamily, int, int, FontStyle)

Initialize a new FontBuilder by special faceName, family, height and fontStyle

FontBuilder(string, FontFamily, int, int, FontStyle, int)

Initialize a new FontBuilder by special faceName, family, height and fontStyle

FontBuilder(string, FontFamily, int, int, FontStyle, int, FontPitch)

Initialize a new FontBuilder by special faceName, family, height and fontStyle

FontBuilder(string, FontFamily, int, int, int, int, bool, bool, bool, int, byte, FontOutPrecision, FontClipPrecision, FontQuality, FontPitch)

Initialize a new FontBuilder

FontBuilder(string, int)

Initialize a new FontBuilder by special faceName and height

Properties

Name Description
CharSet

Get or set the CharSet of font

ClipPrecision

Get or set the clipping precision.

Escapement

Get or set the angle, in tenths of degrees, between the escapement vector and the x-axis of the device. The escapement vector is parallel to the base line of a row of text.

FaceName

Get or set a null-terminated string that specifies the typeface name of the font.

Family

Get or set the font family

Height

Get or set the height, in logical units, of the font's character cell or character. The character height value (also known as the em height) is the character cell height value minus the internal-leading value.

Italic

Get or set bool which indicate whether the font is italic

Orientation

Get or set the angle, in tenths of degrees, between each character's base line and the x-axis of the device.

OutPrecision

Get or set the output precision.

Pitch

Get or set the pitch of the font.

Quality

Get or set the output quality.

StrikeOut

Get or set bool which indicate whether the font is strikeout

Underline

Get or set bool which indicate whether the font is underline

Weight

Get or set the weight of the font.

Width

Get or set the average width, in logical units, of characters in the font. If value is zero, the aspect ratio of the device is matched against the digitization aspect ratio of the available fonts to find the closest match, determined by the absolute value of the difference.

Methods

Name Description
Bold(Font)

Create a bold Font from current font

Clone()

Creates an exact copy of this FontBuilder object.

Create()

Create a new Font from current FontBuilder

CreateGdiplusFont()

Create a new Font istance which its properties provided by FontBuilder

Zoom(Font, float)

Zoom current Font with zoom factor