Commits

izdubar  committed 7de65c5

WARNING: uncertain change !

This commit seems to fix El Patas bug: ttf engine was crashing at OPL startup when loading a specific font file (which looks like perfectly correct, as loading the same ttf file in a running OPL works fine).

I just used some code Volca left here for future use, and it seems to work fine, but only him could certify for sure if this is correct ...

  • Participants
  • Parent commits 8511e10

Comments (0)

Files changed (1)

File src/fntsys.c

 	
 	gCharHeight = 16;
 	
-	// TODO: error = FT_Set_Char_Size(face, 0, gCharHeight*64, 300, 300);
-	error = FT_Set_Pixel_Sizes( face, 
-				    0, // pixel_width 
-				    gCharHeight ); // pixel_height
-	
+	error = FT_Set_Char_Size(face, 0, gCharHeight * 16, 300, 300);
+	/*error = FT_Set_Pixel_Sizes( face,
+		0, // pixel_width
+		gCharHeight ); // pixel_height*/
+
 	if ( error ) { 
 		// just report over the ps2link
 		LOG("Freetype: Error setting font pixel size with %x!\n", error);
 		// SleepThread();
-	} 
+	}
 }
 
 /** Terminates the font rendering system */