Table of Contents

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
IDrawableFont
IDrawable
Inherited Members

Constructors

DrawableFont(string)

Initializes a new instance of the DrawableFont class.

public DrawableFont(string family)

Parameters

family string

The 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 string

The font family or the full path to the font file.

style FontStyleType

The style of the font.

weight FontWeight

The weight of the font.

stretch FontStretch

The 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

string

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