Table of Contents

Enum FontSlant

Namespace
Egami.Fonts
Assembly
Egami.Fonts.dll

Whether a face is upright, italic or oblique.

public enum FontSlant

Fields

Italic = 1

A true italic design.

Oblique = 2

A slanted version of the upright design.

Upright = 0

Upright, the normal style.

Examples

// Installed fonts, found without native calls and indexed on first use; a style is matched by the CSS rules.
FontMatch? match = FontCollection.System.Match(GenericFamily.SansSerif, FontStyle.Bold);

// Your own fonts work the same way; System is read-only, so add the installed fonts to your collection to have both.
var fonts = new FontCollection();
fonts.AddFile(FontFile);
fonts.AddSystemFonts();
FontMatch noto = fonts.Match("Noto Sans", FontStyle.BoldItalic)!.Value;
Font font = noto.ToFont(16);