mono text style

This commit is contained in:
ethan merchant 2024-11-24 13:24:07 -05:00
parent 1a91c9bc56
commit c906fb2884

View file

@ -24,6 +24,8 @@ static class Arts
static XYZi last_tailpos = new(0, 0, 0); static XYZi last_tailpos = new(0, 0, 0);
static DeltaBool tailmove = new(false); static DeltaBool tailmove = new(false);
static TextStyle text_style;
public static void Init() public static void Init()
{ {
foreach (ModelNode node in assets_model.Nodes) 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_mono.SetTexture("diffuse", tex_mono);
mat_box.SetTexture("diffuse", tex_box); mat_box.SetTexture("diffuse", tex_box);
mat_backbox.SetTexture("diffuse", tex_box); mat_backbox.SetTexture("diffuse", tex_box);