Skip to content

Commit 48505a9

Browse files
committed
Introduce Forme for TTF fonts (a temp build!)
1 parent fdea412 commit 48505a9

4 files changed

Lines changed: 29 additions & 3 deletions

File tree

src/TSMapEditor/Content/Fonts.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Fonts]
2+
Count=2
3+
4+
[Font0]
5+
Type=Forme
6+
Path=arial.ttf
7+
Size=14
8+
9+
[Font1]
10+
Type=Forme
11+
Path=arial.ttf
12+
Size=14

src/TSMapEditor/Content/arial.ttf

993 KB
Binary file not shown.

src/TSMapEditor/NuGet.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear/>
5+
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
6+
<add key="Local file package source" value="References" />
7+
</packageSources>
8+
</configuration>

src/TSMapEditor/TSMapEditor.csproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,12 @@
435435
<None Update="Content\SpriteFont1.xnb">
436436
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
437437
</None>
438+
<None Update="Content\arial.ttf">
439+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
440+
</None>
441+
<None Update="Content\Fonts.ini">
442+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
443+
</None>
438444
<None Update="Content\star.png">
439445
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
440446
</None>
@@ -493,10 +499,10 @@
493499
<ItemGroup>
494500
<PackageReference Include="ImeSharp" Version="1.4.1" />
495501
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
496-
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.3" />
502+
<PackageReference Include="MonoGame.Framework.WindowsDX" Version="3.8.4.1" />
497503
<PackageReference Include="Rampastring.Tools" Version="2.0.7" />
498-
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.3" />
499-
<PackageReference Include="Rampastring.XNAUI.WindowsDX" Version="3.1.8" />
504+
<PackageReference Include="MonoGame.Content.Builder.Task" Version="3.8.4.1" />
505+
<PackageReference Include="Rampastring.XNAUI.WindowsDX" Version="3.1.8-copilot-add-forme-ttf-font-wrapper.1+23" />
500506
<PackageReference Include="SixLabors.ImageSharp" Version="2.1.11" />
501507
<PackageReference Include="Westwind.Scripting" Version="1.3.3" />
502508
</ItemGroup>

0 commit comments

Comments
 (0)