[]
Initialize a new FontBuilder from a Font
public FontBuilder(Font font)
Public Sub New(font As Font)
| Type | Name | Description |
|---|---|---|
| Font | font | A Font indicate the template |
Initialize a new FontBuilder from a Font
public FontBuilder(Font gdiplusFont)
Public Sub New(gdiplusFont As Font)
| Type | Name | Description |
|---|---|---|
| Font | gdiplusFont | A Font indicate the template |
Initialize a new FontBuilder
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)
Public Sub New(faceName As String, family As FontFamily, height As Integer, escapement As Integer, width As Integer, weight As Integer, italic As Boolean, underline As Boolean, strikeOut As Boolean, orientation As Integer, charSet As Byte, outPrecision As FontOutPrecision, clipPrecision As FontClipPrecision, quality As FontQuality, pitch As FontPitch)
| 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 |
Initialize a new FontBuilder by special faceName and height
public FontBuilder(string faceName, int height)
Public Sub New(faceName As String, height As Integer)
| 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. |
Initialize a new FontBuilder by special faceName, family and height
public FontBuilder(string faceName, FontFamily family, int height)
Public Sub New(faceName As String, family As FontFamily, height As Integer)
| 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. |
Initialize a new FontBuilder by special faceName, family, height and
fontStyle
public FontBuilder(string faceName, FontFamily family, int height, FontStyle fontStyle)
Public Sub New(faceName As String, family As FontFamily, height As Integer, fontStyle As FontStyle)
| 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. |
Initialize a new FontBuilder by special faceName, family, height and
fontStyle
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle)
Public Sub New(faceName As String, family As FontFamily, height As Integer, escapement As Integer, fontStyle As FontStyle)
| 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. |
Initialize a new FontBuilder by special faceName, family, height and
fontStyle
public FontBuilder(string faceName, FontFamily family, int height, FontStyle fontStyle, int orientation)
Public Sub New(faceName As String, family As FontFamily, height As Integer, fontStyle As FontStyle, orientation As Integer)
| 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. |
Initialize a new FontBuilder by special faceName, family, height and
fontStyle
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle, int orientation)
Public Sub New(faceName As String, family As FontFamily, height As Integer, escapement As Integer, fontStyle As FontStyle, orientation As Integer)
| 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. |
Initialize a new FontBuilder by special faceName, family, height and
fontStyle
public FontBuilder(string faceName, FontFamily family, int height, int escapement, FontStyle fontStyle, int orientation, FontPitch pitch)
Public Sub New(faceName As String, family As FontFamily, height As Integer, escapement As Integer, fontStyle As FontStyle, orientation As Integer, pitch As FontPitch)
| 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 |