Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > cf7486ca23bb830133813df49191f957 > files > 3

fontmatrix-0.6.99-6.r1073.fc13.src.rpm

--- src/fontitem.cpp.orig	2009-12-06 12:35:39.000000000 +0000
+++ src/fontitem.cpp	2009-12-06 13:14:51.000000000 +0000
@@ -2667,9 +2667,11 @@
 			QTextCodec *codec = QTextCodec::codecForName ( "UTF-16BE" );
 			avalue = codec->toUnicode ( array );
 		}
-		else if ( tname.platform_id ==TT_PLATFORM_MICROSOFT && tname.encoding_id == TT_MS_ID_SYMBOL_CS ) // Corresponds to Microsoft symbol encoding. PM - don(t understand what it does here? seen in StandardSym.ttf
+		else if ( tname.platform_id ==TT_PLATFORM_MICROSOFT && tname.encoding_id == TT_MS_ID_SYMBOL_CS ) // Corresponds to Microsoft symbol encoding. 
 		{
-			avalue = "Here, imagine some nice symbols!";
+			QByteArray array ( ( const char* ) tname.string, tname.string_len );
+			QTextCodec *codec = QTextCodec::codecForName ( "UTF-16BE" );
+			avalue = codec->toUnicode ( array );
 		}
 		else if ( tname.platform_id == TT_PLATFORM_MACINTOSH  && tname.encoding_id == TT_APPLE_ID_DEFAULT ) // Unicode version 1.0
 		{