Browse Source

Upgraded font

Added proper soft break support
pull/11/head
Anairkoen Schno 5 years ago
parent
commit
f89634bfb8
2 changed files with 5 additions and 1 deletions
  1. BIN
      BSIPA-ModList/Bundles/consolas
  2. +5
    -1
      BSIPA-ModList/UI/ViewControllers/MarkdownView.cs

BIN
BSIPA-ModList/Bundles/consolas View File


+ 5
- 1
BSIPA-ModList/UI/ViewControllers/MarkdownView.cs View File

@ -492,7 +492,11 @@ namespace BSIPA_ModList.UI.ViewControllers
break;
case InlineTag.Code:
EnsureText();
currentText.text += $"<font=\"CONSOLAS\"><noparse>{inl.LiteralContent}</noparse></font>";
currentText.text += $"<font=\"CONSOLAS\"><mark=#A0A0C080><noparse>{inl.LiteralContent}</noparse></mark></font>";
break;
case InlineTag.SoftBreak:
EnsureText();
currentText.text += " "; // soft breaks translate to a space
break;
case InlineTag.Link:
EnsureText();


Loading…
Cancel
Save