shithub: cstory

Download patch

ref: 770f3be74eeade974b9c5ccc36b85eaa8f02bf79
parent: 78da025796c62b14166aa04b6f46b191111bd746
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Jun 30 12:04:25 EDT 2020

Make font sizes more accurate to the vanilla EXE

This is such a nightmare

--- a/src/Draw.cpp
+++ b/src/Draw.cpp
@@ -653,7 +653,18 @@
 
 	switch (mag)
 	{
+#ifdef JAPANESE
 		case 1:
+			height = 12;
+			width = 12;
+			break;
+
+		case 2:
+			height = 20;
+			width = 20;
+			break;
+#else
+		case 1:
 			height = 10;
 			width = 9;
 			break;
@@ -660,8 +671,9 @@
 
 		case 2:
 			height = 18;
-			width = 16;
+			width = 17;
 			break;
+#endif
 	}
 
 	font = LoadFont(path.c_str(), width, height);
--- a/src/Font.cpp
+++ b/src/Font.cpp
@@ -1069,10 +1069,6 @@
 
 				if (FT_New_Memory_Face(font_object->library, font_object->data, (FT_Long)data_size, 0, &font_object->face) == 0)
 				{
-#ifdef JAPANESE
-					cell_width = 0;	// Cheap hack to make the font square
-#endif
-
 					FT_Set_Pixel_Sizes(font_object->face, cell_width, cell_height);
 
 					font_object->glyph_list_head = NULL;