feature: supports custom fonts (#30)

This commit is contained in:
leo 2024-03-21 18:02:06 +08:00
parent 0e49ad181a
commit 83aa373079
14 changed files with 181 additions and 15 deletions

View file

@ -160,7 +160,7 @@ namespace SourceGit.Views
public LineStyleTransformer(CombinedTextDiffPresenter editor)
{
_editor = editor;
_indicatorTypeface = new Typeface("fonts:SourceGit#JetBrains Mono", FontStyle.Italic);
_indicatorTypeface = new Typeface(editor.FontFamily, FontStyle.Italic);
}
protected override void ColorizeLine(DocumentLine line)
@ -520,7 +520,7 @@ namespace SourceGit.Views
public LineStyleTransformer(SingleSideTextDiffPresenter editor)
{
_editor = editor;
_indicatorTypeface = new Typeface("fonts:SourceGit#JetBrains Mono", FontStyle.Italic);
_indicatorTypeface = new Typeface(editor.FontFamily, FontStyle.Italic);
}
protected override void ColorizeLine(DocumentLine line)