From 8db0482857b318d4612915038ac9ea72736f99c1 Mon Sep 17 00:00:00 2001 From: SuperSonic16 <25761885+thesupersonic16@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:12:45 +1000 Subject: [PATCH] Dont write scales when -1 --- DALTools/DALLib/File/FontFile.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DALTools/DALLib/File/FontFile.cs b/DALTools/DALLib/File/FontFile.cs index 01e8740..da9e6eb 100644 --- a/DALTools/DALLib/File/FontFile.cs +++ b/DALTools/DALLib/File/FontFile.cs @@ -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