Skip to content

Commit

Permalink
Dont write scales when -1
Browse files Browse the repository at this point in the history
  • Loading branch information
thesupersonic16 committed Apr 24, 2024
1 parent a7ce51a commit 8db0482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions DALTools/DALLib/File/FontFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,11 @@ public override void Save(ExtendedBinaryWriter writer)
// The amount of characters defined
writer.Write(Characters.Count);
// Unknown
writer.Write(WidthScale);
writer.Write(HeightScale);
if (!(WidthScale == -1 || HeightScale == -1))
{
writer.Write(WidthScale);
writer.Write(HeightScale);
}
foreach (var entry in Characters)
{
// Writes the character in UTF-8 in reverse byte order, Not sure why its like this
Expand Down

0 comments on commit 8db0482

Please sign in to comment.