[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.FontBuilder.-ctor

FontBuilder Constructor

FontBuilder(Font)

Initialize a new FontBuilder from a Font

Declaration
public FontBuilder(Font font)
Parameters
Type Name Description
Font font

A Font indicate the template

FontBuilder(Font)

Initialize a new FontBuilder from a Font

Declaration
public FontBuilder(Font gdiplusFont)
Parameters
Type Name Description
Font gdiplusFont

A Font indicate the template

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

Initialize a new FontBuilder

Declaration
public FontBuilder(string faceName, FontFamily family, int height, int escapement, int width, int weight, bool italic, bool underline, bool strikeOut, int orientation, byte charSet, FontOutPrecision outPrecision, FontClipPrecision clipPrecision, FontQuality quality, FontPitch pitch)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

int escapement

Specifies 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.

int width

Specifies the average width, in logical units, of characters in the font. If width 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.

int weight

Specifies the weight of the font in the range 0 through 1000. For example, 400 is normal and 700 is bold. If this value is zero, a default weight is used. The following values are defined for convenience.

bool italic

Specifies an italic font if set to true.

bool underline

Specifies an underlined font if set to true.

bool strikeOut

Specifies a strikeout font if set to true.

int orientation

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

byte charSet

Specifies the character set.

FontOutPrecision outPrecision

Specifies the output precision. The output precision defines how closely the output must match the requested font's height, width, character orientation, escapement, pitch, and font type.

FontClipPrecision clipPrecision

Specifies the clipping precision. The clipping precision defines how to clip characters that are partially outside the clipping region. It can be one or more of the following values.

FontQuality quality

Specifies the output quality. The output quality defines how carefully the graphics device interface (GDI) must attempt to match the logical-font attributes to those of an actual physical font.

FontPitch pitch

Specifies the pitch of the font

FontBuilder(string, int)

Initialize a new FontBuilder by special faceName and height

Declaration
public FontBuilder(string faceName, int height)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

int height

Specifies 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.

FontBuilder(string, FontFamily, int)

Initialize a new FontBuilder by special faceName, family and height

Declaration
public FontBuilder(string faceName, FontFamily family, int height)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

FontBuilder(string, FontFamily, int, FontStyle)

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

Declaration
public FontBuilder(string faceName, FontFamily family, int height, FontStyle fontStyle)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

FontStyle fontStyle

A FontStyle indicate the font style.

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

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

Declaration
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

int escapement

Specifies 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.

FontStyle fontStyle

A FontStyle indicate the font style.

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

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

Declaration
public FontBuilder(string faceName, FontFamily family, int height, FontStyle fontStyle, int orientation)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

FontStyle fontStyle

A FontStyle indicate the font style.

int orientation

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

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

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

Declaration
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle, int orientation)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

int escapement

Specifies 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.

FontStyle fontStyle

A FontStyle indicate the font style.

int orientation

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

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

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

Declaration
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle, int orientation, FontPitch pitch)
Parameters
Type Name Description
string faceName

A null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamiliesEx function can be used to enumerate the typeface names of all currently available fonts. If faceName is an empty string, GDI uses the first font that matches the other specified attributes.

FontFamily family

Specifies the family of the font

int height

Specifies 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.

int escapement

Specifies 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.

FontStyle fontStyle

A FontStyle indicate the font style.

int orientation

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

FontPitch pitch

Specifies the pitch of the font