[Scummvm-cvs-logs] SF.net SVN: scummvm:[46321] tools/trunk/create_sjisfnt.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Wed Dec 9 22:34:41 CET 2009


Revision: 46321
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46321&view=rev
Author:   lordhoto
Date:     2009-12-09 21:34:38 +0000 (Wed, 09 Dec 2009)

Log Message:
-----------
Fix forced 8x16 glyph rendering (thanks to hennymcc).

Modified Paths:
--------------
    tools/trunk/create_sjisfnt.cpp

Modified: tools/trunk/create_sjisfnt.cpp
===================================================================
--- tools/trunk/create_sjisfnt.cpp	2009-12-09 21:03:22 UTC (rev 46320)
+++ tools/trunk/create_sjisfnt.cpp	2009-12-09 21:34:38 UTC (rev 46321)
@@ -116,8 +116,8 @@
 	// We should try to find some proper way of detecting and handling this.
 
 	// ASCII chars will be rendererd as 8x16
-	//if (!setGlyphSize(8, 16))
-	//	return -1;
+	if (!setGlyphSize(8, 16))
+		return -1;
 
 	for (uint8 fB = 0x00; fB <= 0xDF; ++fB) {
 		if (mapASCIItoChunk(fB) == -1)
@@ -433,7 +433,7 @@
 	if (!index)
 		return false;
 
-	FT_Error err = FT_Load_Glyph(sjisFont, index, FT_LOAD_MONOCHROME);
+	FT_Error err = FT_Load_Glyph(sjisFont, index, FT_LOAD_MONOCHROME | FT_LOAD_NO_HINTING);
 	if (err)
 		return false;
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list