Skip to content

Commit

Permalink
wip: use Roboto as the font (not enabled yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raymonf committed Oct 15, 2023
1 parent f81a570 commit 5dae465
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion BAKKA_Editor.Android/SplashActivity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public class SplashActivity : AvaloniaSplashActivity<App>
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return base.CustomizeAppBuilder(builder)
.WithInterFont()
.UseReactiveUI();
}

Expand Down
4 changes: 3 additions & 1 deletion BAKKA_Editor.Desktop/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Avalonia;
using Avalonia.Media;
using Avalonia.ReactiveUI;

namespace BAKKA_Editor.Desktop;
Expand All @@ -11,7 +12,8 @@ class Program
// yet and stuff might break.
[STAThread]
public static void Main(string[] args) => BuildAvaloniaApp()
.WithInterFont()
// TODO: make this platform-specific
// .With(new FontManagerOptions { DefaultFamilyName = "avares://BAKKA_Editor/Assets/Roboto-Regular.ttf#Roboto"})
.StartWithClassicDesktopLifetime(args);

// Avalonia configuration, don't remove; also used by visual designer.
Expand Down
1 change: 0 additions & 1 deletion BAKKA_Editor.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ internal partial class Program
{
private static void Main(string[] args) => BuildAvaloniaApp()
.UseReactiveUI()
.WithInterFont()
.SetupBrowserApp("out");

public static AppBuilder BuildAvaloniaApp()
Expand Down
1 change: 0 additions & 1 deletion BAKKA_Editor.iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public partial class AppDelegate : AvaloniaAppDelegate<App>
protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
return builder
.WithInterFont()
.UseReactiveUI();
}
}
3 changes: 2 additions & 1 deletion BAKKA_Editor/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@

<Application.Resources>
<!-- FluentAvalonia overrides -->
<FontFamily x:Key="Roboto">avares://BAKKA_Editor/Assets/Roboto-Regular.ttf#Roboto</FontFamily>
<x:Double x:Key="ControlContentThemeFontSize">12</x:Double>
<FontFamily x:Key="ContentControlThemeFontFamily">Inter</FontFamily>
<FontFamily x:Key="ContentControlThemeFontFamily">Roboto</FontFamily>
</Application.Resources>

<Application.Styles>
Expand Down
Binary file added BAKKA_Editor/Assets/Roboto-Regular.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion BAKKA_Editor/BAKKA_Editor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

<ItemGroup>
<PackageReference Include="Avalonia" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Fonts.Inter" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Themes.Fluent" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.ReactiveUI" Version="$(AvaloniaVersion)"/>
<PackageReference Include="Avalonia.Themes.Simple" Version="$(AvaloniaVersion)"/>
Expand Down

0 comments on commit 5dae465

Please sign in to comment.