Font.Font
Font(Font, FontStyle)
Initializes a new instance of the Font
class uses the specified existing Font and FontStyle enumeration..
public Font(Font prototype, FontStyle newStyle)
Parameter | Type | Description |
---|---|---|
prototype | Font | The existing Font from which to create the new Font. |
newStyle | FontStyle | The FontStyle to apply to the new Font. Multiple values of the FontStyle enumeration can be combined with the OR operator. |
See Also
- enum FontStyle
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float)
Initializes a new instance of the Font
class.
public Font(FontFamily family, float emSize)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size, in points, of the new font. |
See Also
- class FontFamily
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float, FontStyle)
Initializes a new instance of the Font
class using a specified size and style..
public Font(FontFamily family, float emSize, FontStyle style)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size, in points, of the new font. |
style | FontStyle | The FontStyle of the new font. |
See Also
- class FontFamily
- enum FontStyle
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float, FontStyle, GraphicsUnit)
Initializes a new instance of the Font
class using a specified size, style, and unit.
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
See Also
- class FontFamily
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float, FontStyle, GraphicsUnit, byte)
Initializes a new instance of the Font
class using a specified size, style, unit, and character set..
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
gdiCharSet | Byte | GDI character set to use for the new font. |
See Also
- class FontFamily
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float, FontStyle, GraphicsUnit, byte, bool)
Initializes a new instance of the Font
class using a specified size, style, unit, and character set..
public Font(FontFamily family, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet,
bool gdiVerticalFont)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
gdiCharSet | Byte | GDI character set to use for the new font. |
gdiVerticalFont | Boolean | A Boolean value indicating whether the new font is derived from a GDI vertical font. |
See Also
- class FontFamily
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(FontFamily, float, GraphicsUnit)
Initializes a new instance of the Font
class using a specified size and unit. Sets the style to Regular.
public Font(FontFamily family, float emSize, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
family | FontFamily | The FontFamily of the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
See Also
- class FontFamily
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float)
Initializes a new instance of the Font
class using a specified size.
public Font(string familyName, float emSize)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size, in points, of the new font. |
See Also
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float, FontStyle)
Initializes a new instance of the Font
class using a specified size and style.
public Font(string familyName, float emSize, FontStyle style)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size, in points, of the new font. |
style | FontStyle | The FontStyle of the new font. |
See Also
- enum FontStyle
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float, FontStyle, GraphicsUnit)
Initializes a new instance of the Font
class using a specified size, style, and unit.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
See Also
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float, FontStyle, GraphicsUnit, byte)
Initializes a new instance of the Font
class using a specified size, style, unit, and character set.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
gdiCharSet | Byte | A Byte that specifies a GDI character set to use for this font. |
See Also
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float, FontStyle, GraphicsUnit, byte, bool)
Initializes a new instance of the Font
class using the specified size, style, unit, and character set.
public Font(string familyName, float emSize, FontStyle style, GraphicsUnit unit, byte gdiCharSet,
bool gdiVerticalFont)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
style | FontStyle | The FontStyle of the new font. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
gdiCharSet | Byte | A Byte that specifies a GDI character set to use for this font. |
gdiVerticalFont | Boolean | A Boolean value indicating whether the new Font is derived from a GDI vertical font. |
See Also
- enum FontStyle
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
Font(string, float, GraphicsUnit)
Initializes a new instance of the Font
class using a specified size and unit. The style is set to Regular.
public Font(string familyName, float emSize, GraphicsUnit unit)
Parameter | Type | Description |
---|---|---|
familyName | String | A string representation of the FontFamily for the new Font. |
emSize | Single | The em-size of the new font in the units specified by the unit parameter. |
unit | GraphicsUnit | The GraphicsUnit of the new font. |
See Also
- enum GraphicsUnit
- class Font
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common