22 lines
604 B
C#
22 lines
604 B
C#
using BlurgText;
|
|
using Dashboard.Drawing;
|
|
|
|
namespace Dashboard.BlurgText
|
|
{
|
|
public class BlurgFontProxy(Blurg owner, BlurgFont font) : IFont
|
|
{
|
|
public Blurg Owner { get; } = owner;
|
|
public BlurgFont Font { get; } = font;
|
|
public string Family => Font.FamilyName;
|
|
public FontWeight Weight => (FontWeight)Font.Weight.Value;
|
|
public FontSlant Slant => Font.Italic ? FontSlant.Italic : FontSlant.Normal;
|
|
public FontStretch Stretch => FontStretch.Normal;
|
|
|
|
public string? Path { get; init; }
|
|
|
|
public void Dispose()
|
|
{
|
|
}
|
|
}
|
|
}
|