Table of Contents

Constructor MetafileFont

Namespace
DocWright.Core.Metafiles
Assembly
DocWright.Core.dll

MetafileFont(string, int, int, bool)

Initializes a font description.

public MetafileFont(string faceName, int emHeightDeviceUnits, int weight, bool italic)

Parameters

faceName string

The typeface name, possibly empty.

emHeightDeviceUnits int

The em height in device units, always positive. A LOGFONT records a negative height to mean character height and a positive one to mean cell height; the reader normalizes both to an em height so consumers never have to know which was written.

weight int

The weight, 0..1000, where 400 is regular and 700 is bold.

italic bool

Whether the font is italic.

Exceptions

ArgumentNullException

faceName is null.