Implemented normal text element.

Added `require` to load external script.
This commit is contained in:
Creeper Lv
2026-01-12 02:37:22 +11:00
parent 1bcaff76b2
commit 641a4581d2
15 changed files with 248 additions and 14 deletions

View File

@@ -14,6 +14,10 @@ namespace Progrart.Core
{
this.DrawingCore = core;
}
public SKTypeface? GetFont(string fontName)
{
return DrawingCore.GetFont(fontName);
}
public SKPoint TranslatePoint(float x, float y)
{
return new SKPoint(x * DrawingCore.Width, y * DrawingCore.Height);