From c906fb28840b580fe2ae3facb84188df02f493b0 Mon Sep 17 00:00:00 2001 From: spatialfree Date: Sun, 24 Nov 2024 13:24:07 -0500 Subject: [PATCH] mono text style --- src/Arts.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Arts.cs b/src/Arts.cs index a4b03a5..75b480f 100644 --- a/src/Arts.cs +++ b/src/Arts.cs @@ -24,6 +24,8 @@ static class Arts static XYZi last_tailpos = new(0, 0, 0); static DeltaBool tailmove = new(false); + static TextStyle text_style; + public static void Init() { foreach (ModelNode node in assets_model.Nodes) @@ -34,6 +36,12 @@ static class Arts } } + text_style = TextStyle.FromFont( + Font.FromFile("HurmitNerd.otf"), + 1.0f * U.cm, + Color.White + ); + // mat_mono.SetTexture("diffuse", tex_mono); mat_box.SetTexture("diffuse", tex_box); mat_backbox.SetTexture("diffuse", tex_box);