Revert Rich Text (#2363)

This commit is contained in:
Paul Ritter
2021-12-20 12:38:35 +01:00
committed by GitHub
parent c64c1aca5b
commit 338a2831ee
26 changed files with 607 additions and 1257 deletions

View File

@@ -385,10 +385,9 @@ namespace Robust.Client.UserInterface.Controls
[System.Diagnostics.Contracts.Pure]
private Font _getFont()
{
TryGetStyleProperty<FontClass>("font", out var font);
if (TryGetStyleProperty<IFontLibrary>("font-library", out var flib))
if (TryGetStyleProperty<Font>("font", out var font))
{
return flib.StartFont(font).Current;
return font;
}
return UserInterfaceManager.ThemeDefaults.DefaultFont;