Stylesheets: Take advantage of Font stacking (#5111)
Depends on https://github.com/space-wizards/RobustToolbox/pull/2182 - Adds Noto Sans Symbols and its sequel, Noto Sans Symbols 2: Revenge of the Unicode. - Uses a stack of Noto Sans, Symbols, and Symbols 2 in all places where Noto Sans/Noto Sans Display are used. If you _really_ wanted to, you could use this to add Noto Emoji too. In considering this, please remember that not everything that _can_ be done, _should_ be done.
This commit is contained in:
@@ -27,8 +27,26 @@ namespace Content.Client.Stylesheets
|
||||
|
||||
public StyleSpace(IResourceCache resCache) : base(resCache)
|
||||
{
|
||||
var notoSans10 = resCache.GetFont("/Fonts/NotoSans/NotoSans-Regular.ttf", 10);
|
||||
var notoSansBold16 = resCache.GetFont("/Fonts/NotoSans/NotoSans-Bold.ttf", 16);
|
||||
var notoSans10 = resCache.GetFont
|
||||
(
|
||||
new []
|
||||
{
|
||||
"/Fonts/NotoSans/NotoSans-Regular.ttf",
|
||||
"/Fonts/NotoSans/NotoSansSymbols-Regular.ttf",
|
||||
"/Fonts/NotoSans/NotoSansSymbols2-Regular.ttf"
|
||||
},
|
||||
10
|
||||
);
|
||||
var notoSansBold16 = resCache.GetFont
|
||||
(
|
||||
new []
|
||||
{
|
||||
"/Fonts/NotoSans/NotoSans-Bold.ttf",
|
||||
"/Fonts/NotoSans/NotoSansSymbols-Regular.ttf",
|
||||
"/Fonts/NotoSans/NotoSansSymbols2-Regular.ttf"
|
||||
},
|
||||
16
|
||||
);
|
||||
|
||||
var progressBarBackground = new StyleBoxFlat
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user