Make font serialize as name
This commit is contained in:
parent
4b1740b55a
commit
748edd0bdf
1 changed files with 3 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ either expressed or implied, of the FreeBSD Project.
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using MatterHackers.Agg.Font;
|
using MatterHackers.Agg.Font;
|
||||||
using MatterHackers.DataConverters3D;
|
using MatterHackers.DataConverters3D;
|
||||||
|
using Newtonsoft.Json;
|
||||||
|
using Newtonsoft.Json.Converters;
|
||||||
|
|
||||||
namespace MatterHackers.MatterControl.DesignTools
|
namespace MatterHackers.MatterControl.DesignTools
|
||||||
{
|
{
|
||||||
|
|
@ -85,6 +87,7 @@ namespace MatterHackers.MatterControl.DesignTools
|
||||||
|
|
||||||
public double Height { get; set; } = 5;
|
public double Height { get; set; } = 5;
|
||||||
|
|
||||||
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public NamedTypeFace Font { get; set; } = new NamedTypeFace();
|
public NamedTypeFace Font { get; set; } = new NamedTypeFace();
|
||||||
|
|
||||||
public void Rebuild()
|
public void Rebuild()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue