Skip to content

Commit

Permalink
Merge pull request #4 from v0idzz/include-monospace-font
Browse files Browse the repository at this point in the history
Include a monospace font in the demo app (fix #3)
  • Loading branch information
Washi1337 authored Jun 24, 2024
2 parents 92fd88d + a148662 commit 77e91c1
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions examples/AvaloniaHex.Demo/App.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
<SimpleTheme />
<StyleInclude Source="avares://AvaloniaHex/Themes/Simple/AvaloniaHex.axaml"/>
</Application.Styles>
<Application.Resources>
<FontFamily x:Key="SourceCodeProFont">avares://AvaloniaHex.Demo/Resources#Source Code Pro</FontFamily>
</Application.Resources>
</Application>
3 changes: 3 additions & 0 deletions examples/AvaloniaHex.Demo/AvaloniaHex.Demo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
<ItemGroup>
<ProjectReference Include="..\..\src\AvaloniaHex\AvaloniaHex.csproj" />
</ItemGroup>
<ItemGroup>
<AvaloniaResource Include="Resources\**" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion examples/AvaloniaHex.Demo/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
BorderThickness="1"
FontSize="14"
ColumnPadding="30"
FontFamily="Cascadia Code,JetBrains Mono,Monospace,monospace">
FontFamily="{StaticResource SourceCodeProFont}">
<avaloniaHex:HexEditor.Columns>
<rendering:OffsetColumn />
<rendering:HexColumn />
Expand Down
Binary file not shown.

0 comments on commit 77e91c1

Please sign in to comment.