Gets or sets a FontRegistry associated with this Graphics.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public FontRegistry FontRegistry { get; set; }
By default, Graphics.FontRegistry contains the installed system fonts, but you can replace them with your own custom set.
var customFont = new CustomFontRegistry(); customFont.Add(@"C:\Windows\Fonts\timesbd.ttf"); graphics.FontRegistry = customFont; var font = graphics.CreateFont("Times New Roman", "Bold", 22);