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
family
stringThe 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
family
stringThe font family or the full path to the font file.
style
FontStyleTypeThe style of the font.
weight
FontWeightThe weight of the font.
stretch
FontStretchThe 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