summaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qt23/files/patch-ao
blob: 58e5fd9dff99f3e9814988bbe3b867f064f8079f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
diff -ur src/kernel/qfontdatabase.cpp src/kernel/qfontdatabase.cpp
--- src/kernel/qfontdatabase.cpp	Wed Oct  4 13:48:48 2000
+++ src/kernel/qfontdatabase.cpp	Mon Oct  9 12:03:01 2000
@@ -1280,9 +1280,15 @@
 		(qstrcmp( encoding, "r" ) == 0 ||
 		 qstrcmp( encoding, "1" ) == 0) ) {
 	return QFont::KOI8R;
-    } else if ( strcmp( registry, "koi8" ) == 0 &&
+    } else if ( qstrcmp( registry, "koi8" ) == 0 &&
 		qstrcmp( encoding, "u" ) == 0) {
 	return QFont::KOI8U;
+    } else if ( qstrcmp( encoding, "cp1251" ) == 0 ||
+  		 qstrcmp( encoding, "1251" ) == 0)  {
+  	return QFont::CP_1251;
+    } else if ( qstrcmp( encoding, "cp154" ) == 0 ||
+  		 qstrcmp( encoding, "154" ) == 0)  {
+  	return QFont::PT_154;
     } else if ( qstrcmp( registry, "tscii" ) == 0 &&
 		qstrcmp( encoding, "0" ) == 0 ) {
 	return QFont::TSCII;
@@ -1334,6 +1340,14 @@
         return QFont::KOI8R;
     if ( name == "koi8-u" )
         return QFont::KOI8U;
+    if ( name == "microsoft-cp1251" )
+	return QFont::CP_1251;
+    if ( name == "windows-1251" )
+ 	return QFont::CP_1251;
+    if ( name == "paratype-cp154" )
+	return QFont::PT_154;
+    if ( name == "paratype-154" )
+ 	return QFont::PT_154;
     if ( name == "tis620-0" )
         return QFont::TIS620;
     if ( name == "tscii-0" )
@@ -1380,6 +1394,10 @@
         return "koi8-r";
     case QFont::KOI8U:
         return "koi8-u";
+    case QFont::CP_1251:
+        return "microsoft-cp1251";
+    case QFont::PT_154:
+        return "paratype-cp154";
     case QFont::Unicode:
         return "iso10646-1";
     default:
@@ -1448,11 +1466,17 @@
         name = "French/Finnish/Euro(ISO 8859-15)";
         break;
     case QFont::KOI8R:
-        name = "Cyrillic (KOI8-R)";
+        name = "Russian Cyrillic (KOI8-R)";
         break;
     case QFont::KOI8U:
-        name = "Ukrainian (KOI8-U)";
+        name = "Ukrainian Cyrillic (KOI8-U)";
         break;
+    case QFont::CP_1251:
+        name = "Windows Cyrillic (CP 1251)";
+        break;
+    case QFont::PT_154:
+        name = "Asian Cyrillic (PT 154)";
+	break;
     case QFont::TSCII:
 	name = "Tamil (TSCII)";
 	break;
@@ -1571,6 +1595,18 @@
         sample += QChar(0x0436);
         sample += QChar(0x2560);
         break;
+    case QFont::CP_1251:
+ 	sample += QChar(0x0414);
+ 	sample += QChar(0x0490);
+ 	sample += QChar(0x040E);
+ 	sample += QChar(0x20AC);
+  	break;
+    case QFont::PT_154:
+ 	sample += QChar(0x0496);
+ 	sample += QChar(0x04E8);
+ 	sample += QChar(0x04D8);
+ 	sample += QChar(0x04AE);
+  	break;
     case QFont::Unicode:
         sample = "Aa";
         sample += QChar(0x01A7); // Latin B
OpenPOWER on IntegriCloud