Graphics.FontRegistry Property

Gets or sets a FontRegistry associated with this Graphics.

Namespace: Aurigma.GraphicsMill.AdvancedDrawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public FontRegistry FontRegistry { get; set; }

Property Value

The FontRegistry associated with this Graphics.

Remarks

By default, Graphics.FontRegistry contains the installed system fonts, but you can replace them with your own custom set.

Examples

C#
var customFont = new CustomFontRegistry();
customFont.Add(@"C:\Windows\Fonts\timesbd.ttf");
graphics.FontRegistry = customFont;
var font = graphics.CreateFont("Times New Roman", "Bold", 22);   

See Also

Reference

Manual