[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.5/kdegraphics/kdvi
From:       Stefan Kebekus <kebekus () kde ! org>
Date:       2006-02-17 18:11:00
Message-ID: 1140199860.171437.14706.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 510661 by kebekus:

fixes bug #120656


 M  +5 -1      fontMap.cpp  


--- branches/KDE/3.5/kdegraphics/kdvi/fontMap.cpp #510660:510661
@@ -72,7 +72,11 @@
       QString FullName = line.section(' ', 1, 1);
       QString fontFileName = line.section('<', -1).stripWhiteSpace().section(' ', 0, 0);
       QString encodingName = line.section('<', -2, -2).stripWhiteSpace().section(' ', 0, 0);
-      
+      // It seems that sometimes the encoding is prepended by the
+      // letter '[', which we ignore
+      if ((!encodingName.isEmpty()) && (encodingName[0] == '['))
+        encodingName = encodingName.mid(1);
+
       double slant = 0.0;
       int i = line.find("SlantFont");
       if (i >= 0) {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic