Skip to content

Commit

Permalink
Include CSS-style sprite texts in test scene
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Apr 23, 2022
1 parent 07cef08 commit b2370e5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions osu.Framework.Tests/Visual/Sprites/TestSceneSpriteText.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ public TestSceneSpriteText()
};

flow.Add(text);

SpriteText cssText = new SpriteText
{
Text = $@"Font testy at size {i} (CSS)",
Font = new FontUsage("Roboto", i, i % 4 > 1 ? "Bold" : "Regular", i % 2 == 1, css: true),
AllowMultiline = true,
RelativeSizeAxes = Axes.X,
};

flow.Add(cssText);
}
}

Expand Down

0 comments on commit b2370e5

Please sign in to comment.