mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
fix: failed get default font on some Linux distro (#447)
This commit is contained in:
parent
2a59cdbe92
commit
6688319714
3 changed files with 10 additions and 3 deletions
|
@ -5,6 +5,7 @@ using System.IO;
|
|||
using System.Runtime.Versioning;
|
||||
|
||||
using Avalonia;
|
||||
using Avalonia.Media;
|
||||
|
||||
namespace SourceGit.Native
|
||||
{
|
||||
|
@ -36,6 +37,12 @@ namespace SourceGit.Native
|
|||
|
||||
public void SetupApp(AppBuilder builder)
|
||||
{
|
||||
// Fix issue https://github.com/sourcegit-scm/sourcegit/issues/447
|
||||
builder.With(new FontManagerOptions()
|
||||
{
|
||||
DefaultFamilyName = "fonts:SourceGit#JetBrains Mono",
|
||||
});
|
||||
|
||||
builder.With(new X11PlatformOptions()
|
||||
{
|
||||
EnableIme = true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue