Class DrawableFont
- Namespace
- ImageMagick
- Assembly
- Magick.NET-Q16-AnyCPU.dll
Sets the font family, style, weight and stretch to use when annotating with text.
public sealed class DrawableFont : IDrawableFont, IDrawable
- Inheritance
-
DrawableFont
- Implements
-
IDrawableFontIDrawable
- Inherited Members
Constructors
DrawableFont(string)
Initializes a new instance of the DrawableFont class.
public DrawableFont(string family)
Parameters
familystringThe font family or the full path to the font file.
DrawableFont(string, FontStyleType, FontWeight, FontStretch)
Initializes a new instance of the DrawableFont class.
public DrawableFont(string family, FontStyleType style, FontWeight weight, FontStretch stretch)
Parameters
familystringThe font family or the full path to the font file.
styleFontStyleTypeThe style of the font.
weightFontWeightThe weight of the font.
stretchFontStretchThe font stretching type.
Properties
Family
Gets or sets the font family or the full path to the font file.
public string Family { get; set; }
Property Value
Stretch
Gets or sets the font stretching.
public FontStretch Stretch { get; set; }
Property Value
- FontStretch
Style
Gets or sets the style of the font.
public FontStyleType Style { get; set; }
Property Value
- FontStyleType
Weight
Gets or sets the weight of the font.
public FontWeight Weight { get; set; }
Property Value
- FontWeight