Commit 2405d14f779a6d4837b146010c6e415ea62c7859

Werner Lemberg 2000-07-11T06:12:20

Formatting/Synchronizing. Updating OS/2 bits in ttnameid.h to latest version (as posted on the opentype@ list).

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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
diff --git a/include/freetype/ftoutln.h b/include/freetype/ftoutln.h
index 12320d5..523064e 100644
--- a/include/freetype/ftoutln.h
+++ b/include/freetype/ftoutln.h
@@ -8,8 +8,8 @@
 /*  Copyright 1996-2000 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
-/*  This file is part of the FreeType project, and may only be used        */
-/*  modified and distributed under the terms of the FreeType project       */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
 /*  this file you indicate that you have read the license and              */
 /*  understand and accept it fully.                                        */
@@ -42,7 +42,7 @@
   /* <Input>                                                               */
   /*    outline   :: A pointer to the source target.                       */
   /*                                                                       */
-  /*    funcs     :: A table of `emitters', i.e,. function pointers called */
+  /*    interface :: A table of `emitters', i.e,. function pointers called */
   /*                 during decomposition to indicate path operations.     */
   /*                                                                       */
   /*    user      :: A typeless pointer which is passed to each emitter    */
@@ -52,9 +52,10 @@
   /* <Return>                                                              */
   /*    FreeType error code.  0 means sucess.                              */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_Decompose( FT_Outline*        outline,
-                                                 FT_Outline_Funcs*  funcs,
-                                                 void*              user );
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_Decompose(
+                               FT_Outline*        outline,
+                               FT_Outline_Funcs*  interface,
+                               void*              user );
 
 
   /*************************************************************************/
@@ -68,7 +69,7 @@
   /* <Input>                                                               */
   /*    library     :: A handle to the library object from where the       */
   /*                   outline is allocated.  Note however that the new    */
-  /*                   outline will NOT necessarily be FREED when          */
+  /*                   outline will NOT necessarily be FREED, when         */
   /*                   destroying the library, by FT_Done_FreeType().      */
   /*                                                                       */
   /*    numPoints   :: The maximal number of points within the outline.    */
@@ -87,19 +88,19 @@
   /*                                                                       */
   /* <Note>                                                                */
   /*    The reason why this function takes a `library' parameter is simply */
-  /*    to use the library's memory allocator.  You can copy the source    */
-  /*    code of this function, replacing allocations with `malloc()' if    */
-  /*    you want to control where the objects go.                          */
+  /*    to use the library's memory allocator.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_New( FT_Library   library,
-                                           FT_UInt      numPoints,
-                                           FT_Int       numContours,
-                                           FT_Outline*  outline );
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_New( FT_Library   library,
+                                             FT_UInt      numPoints,
+                                             FT_Int       numContours,
+                                             FT_Outline*  outline );
 
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_New_Internal( FT_Memory    memory,
-                                                    FT_UInt      numPoints,
-                                                    FT_Int       numContours,
-                                                    FT_Outline*  outline );
+
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_New_Internal(
+                               FT_Memory    memory,
+                               FT_UInt      numPoints,
+                               FT_Int       numContours,
+                               FT_Outline*  outline );
 
 
   /*************************************************************************/
@@ -127,16 +128,16 @@
   /*    descriptor will be released.                                       */
   /*                                                                       */
   /*    The reason why this function takes an `outline' parameter is       */
-  /*    simply to use FT_Alloc()/FT_Free().  You can copy the source code  */
-  /*    of this function, replacing allocations with `malloc()' in your    */
-  /*    application if you want something simpler.                         */
+  /*    simply to use FT_Free().                                           */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_Done( FT_Library   library,
-                                            FT_Outline*  outline );
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_Done( FT_Library   library,
+                                              FT_Outline*  outline );
+
 
   FT_EXPORT_DEF( FT_Error )  FT_Outline_Done_Internal( FT_Memory    memory,
                                                        FT_Outline*  outline );
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
@@ -163,8 +164,8 @@
   /* <MT-Note>                                                             */
   /*    Yes.                                                               */
   /*                                                                       */
-  FT_EXPORT_DEF(void)  FT_Outline_Get_CBox( FT_Outline*  outline,
-                                            FT_BBox*     cbox );
+  FT_EXPORT_DEF( void )  FT_Outline_Get_CBox( FT_Outline*  outline,
+                                              FT_BBox*     cbox );
 
 
   /*************************************************************************/
@@ -177,16 +178,17 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    outline :: A pointer to the target outline descriptor.             */
+  /*                                                                       */
   /*    xOffset :: The horizontal offset.                                  */
+  /*                                                                       */
   /*    yOffset :: The vertical offset.                                    */
   /*                                                                       */
   /* <MT-Note>                                                             */
   /*    Yes.                                                               */
   /*                                                                       */
-  FT_EXPORT_DEF(void)  FT_Outline_Translate( FT_Outline*  outline,
-                                             FT_Pos       xOffset,
-                                             FT_Pos       yOffset );
-
+  FT_EXPORT_DEF( void )  FT_Outline_Translate( FT_Outline*  outline,
+                                               FT_Pos       xOffset,
+                                               FT_Pos       yOffset );
 
 
   /*************************************************************************/
@@ -201,38 +203,40 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    source :: A handle to the source outline.                          */
+  /*                                                                       */
+  /* <Output>                                                              */
   /*    target :: A handle to the target outline.                          */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_Copy( FT_Outline*  source,
-                                            FT_Outline*  target );
-
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_Copy( FT_Outline*  source,
+                                              FT_Outline*  target );
 
 
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
-  /*    FT_Outline_Transform                                               */
+  /*    FT_Vector_Transform                                                */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Applies a simple 2x2 matrix to all of an outline's points.  Useful */
-  /*    for applying rotations, slanting, flipping, etc.                   */
+  /*    Transforms a single vector through a 2x2 matrix.                   */
+  /*                                                                       */
+  /* <InOut>                                                               */
+  /*    vector :: The target vector to transform.                          */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    outline :: A pointer to the target outline descriptor.             */
-  /*    matrix  :: A pointer to the transformation matrix.                 */
+  /*    matrix :: A pointer to the source 2x2 matrix.                      */
   /*                                                                       */
   /* <MT-Note>                                                             */
   /*    Yes.                                                               */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    You can use FT_Outline_Translate() if you need to translate the    */
-  /*    outline's points.                                                  */
+  /*    The result is undefined if either `vector' or `matrix' is invalid. */
   /*                                                                       */
-  FT_EXPORT_DEF(void)  FT_Outline_Transform( FT_Outline*  outline,
-                                             FT_Matrix*   matrix );
+  FT_EXPORT_DEF( void )  FT_Outline_Transform( FT_Outline*  outline,
+                                               FT_Matrix*   matrix );
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -240,20 +244,20 @@
   /*    FT_Outline_Reverse                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Reverse the drawing direction of an outline. This is used to       */
-  /*    ensure consistent fill conventions for mirrored glyphs..           */
+  /*    Reverses the drawing direction of an outline.  This is used to     */
+  /*    ensure consistent fill conventions for mirrored glyphs.            */
   /*                                                                       */
   /* <Input>                                                               */
   /*    outline :: A pointer to the target outline descriptor.             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    This functions toggles the bit flag ft_outline_reverse_fill in     */
-  /*    the outline's "flags" field..                                      */
+  /*    This functions toggles the bit flag `ft_outline_reverse_fill' in   */
+  /*    the outline's `flags' field.                                       */
   /*                                                                       */
   /*    It shouldn't be used by a normal client application, unless it     */
-  /*    knows what it's doing..                                            */
+  /*    knows what it is doing.                                            */
   /*                                                                       */
-  FT_EXPORT_DEF(void)  FT_Outline_Reverse( FT_Outline*  outline );
+  FT_EXPORT_DEF( void )  FT_Outline_Reverse( FT_Outline*  outline );
 
 
   /*************************************************************************/
@@ -263,12 +267,13 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    Renders an outline within a bitmap.  The outline's image is simply */
-  /*    or-ed to the target bitmap.                                        */
-  /*                                                                       */
+  /*    OR-ed to the target bitmap.                                        */
   /*                                                                       */
   /* <Input>                                                               */
   /*    library :: A handle to a FreeType library object.                  */
+  /*                                                                       */
   /*    outline :: A pointer to the source outline descriptor.             */
+  /*                                                                       */
   /*    map     :: A pointer to the target bitmap descriptor.              */
   /*                                                                       */
   /* <Return>                                                              */
@@ -284,9 +289,10 @@
   /*                                                                       */
   /*    It will use the raster correponding to the default glyph format.   */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_Get_Bitmap( FT_Library   library,
-                                                  FT_Outline*  outline,
-                                                  FT_Bitmap*   bitmap );
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_Get_Bitmap( FT_Library   library,
+                                                    FT_Outline*  outline,
+                                                    FT_Bitmap*   bitmap );
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -294,15 +300,18 @@
   /*    FT_Outline_Render                                                  */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Renders an outline within a bitmap using the current scan-convert  */
-  /*    This functions uses a FT_Raster_Params as argument, allowing       */
-  /*    advanced features like direct composition/translucency, etc..      */
+  /*    Renders an outline within a bitmap using the current scan-convert. */
+  /*    This functions uses an FT_Raster_Params structure as an argument,  */
+  /*    allowing advanced features like direct composition, translucency,  */
+  /*    etc.                                                               */
   /*                                                                       */
   /* <Input>                                                               */
   /*    library :: A handle to a FreeType library object.                  */
+  /*                                                                       */
   /*    outline :: A pointer to the source outline descriptor.             */
-  /*    params  :: A pointer to a FT_Raster_Params used to describe        */
-  /*               the rendering operation                                 */
+  /*                                                                       */
+  /*    params  :: A pointer to a FT_Raster_Params structure used to       */
+  /*               describe the rendering operation.                       */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
@@ -312,16 +321,16 @@
   /*    scan-line converter will be serialized.                            */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    You should know what you're doing and the role of FT_Raster_Params */
+  /*    You should know what you are doing and how FT_Raster_Params works  */
   /*    to use this function.                                              */
   /*                                                                       */
-  /*    the field "params.source" will be set to "outline" before the      */
-  /*    scan converter is called, which means that the value you give it   */
-  /*    is actually ignored..                                              */
+  /*    The field `params.source' will be set to `outline' before the scan */
+  /*    converter is called, which means that the value you give to it is  */
+  /*    actually ignored.                                                  */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Outline_Render( FT_Library        library,
-                                              FT_Outline*       outline,
-                                              FT_Raster_Params* params );
+  FT_EXPORT_DEF( FT_Error )  FT_Outline_Render( FT_Library         library,
+                                                FT_Outline*        outline,
+                                                FT_Raster_Params*  params );
 
 
 #ifdef __cplusplus
diff --git a/include/freetype/ftrender.h b/include/freetype/ftrender.h
index a7ab090..a4b4777 100644
--- a/include/freetype/ftrender.h
+++ b/include/freetype/ftrender.h
@@ -2,19 +2,20 @@
 /*                                                                         */
 /*  ftrender.h                                                             */
 /*                                                                         */
-/*  FreeType renderer modules public interface                             */
+/*    FreeType renderer modules public interface                           */
 /*                                                                         */
 /*  Copyright 1996-2000 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
-/*  This file is part of the FreeType project, and may only be used        */
-/*  modified and distributed under the terms of the FreeType project       */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
 /*  this file you indicate that you have read the license and              */
 /*  understand and accept it fully.                                        */
 /*                                                                         */
 /***************************************************************************/
 
+
 #ifndef FTRENDER_H
 #define FTRENDER_H
 
@@ -27,27 +28,27 @@
 #endif
 
 
- /* create a new glyph object */
-  typedef  FT_Error  (*FT_Glyph_Init_Func)( FT_Glyph      glyph,
-                                            FT_GlyphSlot  slot );
+  /* create a new glyph object */
+  typedef FT_Error  (*FT_Glyph_Init_Func)( FT_Glyph      glyph,
+                                           FT_GlyphSlot  slot );
+
+  /* destroys a given glyph object */
+  typedef void  (*FT_Glyph_Done_Func)( FT_Glyph  glyph );
+
+  typedef void  (*FT_Glyph_Transform_Func)( FT_Glyph    glyph,
+                                            FT_Matrix*  matrix,
+                                            FT_Vector*  delta );
 
- /* destroys a given glyph object */
-  typedef  void      (*FT_Glyph_Done_Func)( FT_Glyph   glyph );
+  typedef void  (*FT_Glyph_BBox_Func)( FT_Glyph  glyph,
+                                       FT_BBox*  abbox );
 
-  typedef  void      (*FT_Glyph_Transform_Func)( FT_Glyph    glyph,
-                                                 FT_Matrix*  matrix,
-                                                 FT_Vector*  delta );
-                                                 
-  typedef  void      (*FT_Glyph_BBox_Func)( FT_Glyph    glyph,
-                                            FT_BBox    *abbox );
+  typedef FT_Error  (*FT_Glyph_Copy_Func)( FT_Glyph   source,
+                                           FT_Glyph   target );
 
-  typedef  FT_Error  (*FT_Glyph_Copy_Func)( FT_Glyph   source,
-                                            FT_Glyph   target );
-                                       
-  typedef  FT_Error  (*FT_Glyph_Prepare_Func)( FT_Glyph      glyph,
-                                               FT_GlyphSlot  slot );
+  typedef FT_Error  (*FT_Glyph_Prepare_Func)( FT_Glyph      glyph,
+                                              FT_GlyphSlot  slot );
 
-  struct FT_Glyph_Class_
+  struct  FT_Glyph_Class_
   {
     FT_UInt                  glyph_size;
     FT_Glyph_Format          glyph_format;
@@ -57,37 +58,9 @@
     FT_Glyph_Transform_Func  glyph_transform;
     FT_Glyph_BBox_Func       glyph_bbox;
     FT_Glyph_Prepare_Func    glyph_prepare;
-
   };
 
 
- /*************************************************************************
-  *
-  *  <Struct>
-  *     FT_Renderer_Class
-  *
-  *  <Description>
-  *     The renderer module class descriptor.
-  *
-  *  <Fields>
-  *     root          :: the root FT_Module_Class fields
-  *
-  *     glyph_format  :: the glyph image format this renderer handles
-  *
-  *     render_glyph  :: a method used to render the image that is in a
-  *                      given glyph slot into a bitmap.
-  *
-  *     set_mode      :: a method used to pass additional parameters
-  *
-  *     raster_class  :: for ft_glyph_format_outline renderers only, this
-  *                      is a pointer to its raster's class.
-  *
-  *     raster        :: for ft_glyph_format_outline renderers only. this
-  *                      is a pointer to the corresponding raster object,
-  *                      if any..
-  *
-  *************************************************************************/
-
   typedef FT_Error  (*FTRenderer_render)( FT_Renderer   renderer,
                                           FT_GlyphSlot  slot,
                                           FT_UInt       mode,
@@ -98,20 +71,46 @@
                                              FT_Matrix*    matrix,
                                              FT_Vector*    delta );
 
-  typedef void      (*FTRenderer_getCBox)( FT_Renderer   renderer,
-                                           FT_GlyphSlot  slot,
-                                           FT_BBox      *cbox );
+  typedef void  (*FTRenderer_getCBox)( FT_Renderer   renderer,
+                                       FT_GlyphSlot  slot,
+                                       FT_BBox*      cbox );
 
   typedef FT_Error  (*FTRenderer_setMode)( FT_Renderer  renderer,
                                            FT_ULong     mode_tag,
                                            FT_Pointer   mode_ptr );
 
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    FT_Renderer_Class                                                  */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    The renderer module class descriptor.                              */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    root         :: The root FT_Module_Class fields.                   */
+  /*                                                                       */
+  /*    glyph_format :: The glyph image format this renderer handles.      */
+  /*                                                                       */
+  /*    render_glyph :: A method used to render the image that is in a     */
+  /*                    given glyph slot into a bitmap.                    */
+  /*                                                                       */
+  /*    set_mode     :: A method used to pass additional parameters.       */
+  /*                                                                       */
+  /*    raster_class :: For `ft_glyph_format_outline' renderers only, this */
+  /*                    is a pointer to its raster's class.                */
+  /*                                                                       */
+  /*    raster       :: For `ft_glyph_format_outline' renderers only. this */
+  /*                    is a pointer to the corresponding raster object,   */
+  /*                    if any.                                            */
+  /*                                                                       */
   typedef struct  FT_Renderer_Class_
   {
     FT_Module_Class       root;
-    
+
     FT_Glyph_Format       glyph_format;
-    
+
     FTRenderer_render     render_glyph;
     FTRenderer_transform  transform_glyph;
     FTRenderer_getCBox    get_glyph_cbox;
@@ -122,73 +121,71 @@
   } FT_Renderer_Class;
 
 
- /*************************************************************************
-  *
-  *  <Function>
-  *     FT_Get_Renderer
-  *
-  *  <Description>
-  *     retrieves the current renderer for a given glyph format.
-  *
-  *  <Input>
-  *     library  :: handle to library object
-  *     format   :: glyph format
-  *
-  *  <Return>
-  *     renderer handle. 0 if none found.
-  *
-  *  <Note>
-  *     An error will be returned if a module already exists by that
-  *     name, or if the module requires a version of freetype that is
-  *     too great
-  *
-  *     To add a new renderer, simply use FT_Add_Module. To retrieve
-  *     a renderer by its name, use FT_Get_Module
-  *
-  *************************************************************************/
-  
-  FT_EXPORT_DEF(FT_Renderer)  FT_Get_Renderer( FT_Library       library,
-                                               FT_Glyph_Format  format );
-
-
- /*************************************************************************
-  *
-  *  <Function>
-  *     FT_Set_Renderer
-  *
-  *  <Description>
-  *     Sets the current renderer to use, and set additional mode
-  *
-  *  <Input>
-  *     library     :: handle to library object
-  *     renderer    :: handle to renderer object
-  *     num_params  :: number of additional parameters
-  *     params      :: additional parameters
-  *
-  *  <Return>
-  *     Error code. 0 means success.
-  *
-  *  <Note>
-  *     in case of success, the renderer will be used to convert glyph
-  *     images in the renderer's known format into bitmaps.
-  *
-  *     This doesn't change the current renderer for other formats..
-  *
-  *************************************************************************/
-  
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Function>                                                            */
+  /*    FT_Get_Renderer                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Retrieves the current renderer for a given glyph format.           */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    library :: A handle to the library object.                         */
+  /*                                                                       */
+  /*    format  :: The glyph format.                                       */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    A renderer handle.  0 if none found.                               */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    An error will be returned if a module already exists by that name, */
+  /*    or if the module requires a version of FreeType that is too great. */
+  /*                                                                       */
+  /*    To add a new renderer, simply use FT_Add_Module().  To retrieve a  */
+  /*    renderer by its name, use FT_Get_Module().                         */
+  /*                                                                       */
+  FT_EXPORT_DEF( FT_Renderer )  FT_Get_Renderer( FT_Library       library,
+                                                 FT_Glyph_Format  format );
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Function>                                                            */
+  /*    FT_Set_Renderer                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Sets the current renderer to use, and set additional mode.         */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    library    :: A handle to the library object.                      */
+  /*                                                                       */
+  /*    renderer   :: A handle to the renderer object.                     */
+  /*                                                                       */
+  /*    num_params :: The number of additional parameters.                 */
+  /*                                                                       */
+  /*    parameters :: Additional parameters.                               */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    In case of success, the renderer will be used to convert glyph     */
+  /*    images in the renderer's known format into bitmaps.                */
+  /*                                                                       */
+  /*    This doesn't change the current renderer for other formats.        */
+  /*                                                                       */
   FT_EXPORT_DEF(FT_Error) FT_Set_Renderer( FT_Library     library,
                                            FT_Renderer    renderer,
                                            FT_UInt        num_params,
                                            FT_Parameter*  parameters );
 
 
-
 #ifdef __cplusplus
   }
 #endif
 
 
-#endif /* FTMODULE_H */
+#endif /* FTRENDER_H */
 
 
 /* END */
diff --git a/include/freetype/ftsystem.h b/include/freetype/ftsystem.h
index 8ef12f1..f88c41e 100644
--- a/include/freetype/ftsystem.h
+++ b/include/freetype/ftsystem.h
@@ -1,45 +1,46 @@
-/**************************************************************************
- *
- *  ftsystem.h                                                        1.0
- *
- *    FreeType low-level system interface definition
- *
- *    This file contains the definitions of the stream and memory interfaces
- *    used by FreeType.
- *
- *
- *  Copyright 1996-2000 by
- *  David Turner, Robert Wilhelm, and Werner Lemberg
- *
- *  This file is part of the FreeType project, and may only be used
- *  modified and distributed under the terms of the FreeType project
- *  license, LICENSE.TXT.  By continuing to use, modify, or distribute
- *  this file you indicate that you have read the license and
- *  understand and accept it fully.
- *
- **************************************************************************/
+/***************************************************************************/
+/*                                                                         */
+/*  ftsystem.h                                                             */
+/*                                                                         */
+/*    FreeType low-level system interface definition                       */
+/*                                                                         */
+/*  Copyright 1996-2000 by                                                 */
+/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
+/*                                                                         */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
+/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
+/*  this file you indicate that you have read the license and              */
+/*  understand and accept it fully.                                        */
+/*                                                                         */
+/***************************************************************************/
+
 
 #ifndef FTSYSTEM_H
 #define FTSYSTEM_H
 
-/*************************************************************************
- *
- *                  M E M O R Y   M A N A G E M E N T
- *
- *************************************************************************/
+
+  /*************************************************************************/
+  /*                                                                       */
+  /*                  M E M O R Y   M A N A G E M E N T                    */
+  /*                                                                       */
+  /*************************************************************************/
+
 
   typedef struct FT_MemoryRec_*  FT_Memory;
 
-  typedef void* (*FT_Alloc_Func)( FT_Memory  memory,
-                                  long       size );
+
+  typedef void*  (*FT_Alloc_Func)( FT_Memory  memory,
+                                   long       size );
 
   typedef void  (*FT_Free_Func)( FT_Memory  memory,
                                  void*      block );
 
-  typedef void* (*FT_Realloc_Func)( FT_Memory  memory,
-                                    long       cur_size,
-                                    long       new_size,
-                                    void*      block );
+  typedef void*  (*FT_Realloc_Func)( FT_Memory  memory,
+                                     long       cur_size,
+                                     long       new_size,
+                                     void*      block );
+
 
   struct FT_MemoryRec_
   {
@@ -50,46 +51,51 @@
   };
 
 
+  /*************************************************************************/
+  /*                                                                       */
+  /*                       I / O   M A N A G E M E N T                     */
+  /*                                                                       */
+  /*************************************************************************/
 
-/*************************************************************************
- *
- *                       I / O   M A N A G E M E N T
- *
- *************************************************************************/
 
-  typedef union FT_StreamDesc_
+  typedef union  FT_StreamDesc_
   {
-    long  value;
-    void* pointer;
+    long   value;
+    void*  pointer;
 
   } FT_StreamDesc;
 
 
   typedef struct FT_StreamRec_*  FT_Stream;
 
-  typedef  unsigned long (*FT_Stream_IO)( FT_Stream       stream,
+
+  typedef unsigned long  (*FT_Stream_IO)( FT_Stream       stream,
                                           unsigned long   offset,
                                           unsigned char*  buffer,
                                           unsigned long   count );
 
-  typedef  void (*FT_Stream_Close)( FT_Stream  stream );
+  typedef void  (*FT_Stream_Close)( FT_Stream  stream );
 
-  struct FT_StreamRec_
-  {
-    unsigned char*  base;
-    unsigned long   size;
-    unsigned long   pos;
-
-    FT_StreamDesc   descriptor;
-    FT_StreamDesc   pathname;    /* ignored by FreeType - useful for debugging */
-
-    FT_Stream_IO    read;
-    FT_Stream_Close close;
 
-    FT_Memory       memory;
-    unsigned char*  cursor;
-    unsigned char*  limit;
+  struct  FT_StreamRec_
+  {
+    unsigned char*   base;
+    unsigned long    size;
+    unsigned long    pos;
+
+    FT_StreamDesc    descriptor;
+    FT_StreamDesc    pathname;    /* ignored by FreeType -- */
+                                  /* useful for debugging   */
+    FT_Stream_IO     read;
+    FT_Stream_Close  close;
+
+    FT_Memory        memory;
+    unsigned char*   cursor;
+    unsigned char*   limit;
   };
 
 
 #endif /* FTSYSTEM_H */
+
+
+/* END */
diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h
index 3d679d5..8889bb5 100644
--- a/include/freetype/fttypes.h
+++ b/include/freetype/fttypes.h
@@ -7,20 +7,23 @@
 /*  Copyright 1996-2000 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
-/*  This file is part of the FreeType project, and may only be used        */
-/*  modified and distributed under the terms of the FreeType project       */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
 /*  this file you indicate that you have read the license and              */
 /*  understand and accept it fully.                                        */
 /*                                                                         */
 /***************************************************************************/
 
+
 #ifndef FTTYPES_H
 #define FTTYPES_H
 
+
 #include <freetype/ftsystem.h>
 #include <freetype/ftimage.h>
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
@@ -41,7 +44,7 @@
   /*    A signed 16-bit integer used to store a distance in original font  */
   /*    units.                                                             */
   /*                                                                       */
-  typedef signed short    FT_FWord;   /* Distance in FUnits */
+  typedef signed short  FT_FWord;   /* distance in FUnits */
 
 
   /*************************************************************************/
@@ -53,7 +56,7 @@
   /*    An unsigned 16-bit integer used to store a distance in original    */
   /*    font units.                                                        */
   /*                                                                       */
-  typedef unsigned short  FT_UFWord;  /* Unsigned distance */
+  typedef unsigned short  FT_UFWord;  /* unsigned distance */
 
 
   /*************************************************************************/
@@ -212,17 +215,19 @@
   /*                                                                       */
   typedef void*  FT_Pointer;
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Struct>                                                              */
   /*    FT_UnitVector                                                      */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A simple structure used to store a 2d vector unit vector.  Uses    */
+  /*    A simple structure used to store a 2D vector unit vector.  Uses    */
   /*    FT_F2Dot14 types.                                                  */
   /*                                                                       */
   /* <Fields>                                                              */
   /*    x :: Horizontal coordinate.                                        */
+  /*                                                                       */
   /*    y :: Vertical coordinate.                                          */
   /*                                                                       */
   typedef struct  FT_UnitVector_
@@ -249,8 +254,11 @@
   /*                                                                       */
   /* <Fields>                                                              */
   /*    xx :: Matrix coefficient.                                          */
+  /*                                                                       */
   /*    xy :: Matrix coefficient.                                          */
+  /*                                                                       */
   /*    yx :: Matrix coefficient.                                          */
+  /*                                                                       */
   /*    yy :: Matrix coefficient.                                          */
   /*                                                                       */
   typedef struct  FT_Matrix_
@@ -273,8 +281,11 @@
   /*                                                                       */
   /* <Fields>                                                              */
   /*    xMin :: The horizontal minimum (left-most).                        */
+  /*                                                                       */
   /*    yMin :: The vertical minimum (bottom-most).                        */
+  /*                                                                       */
   /*    xMax :: The horizontal maximum (right-most).                       */
+  /*                                                                       */
   /*    yMax :: The vertical maximum (top-most).                           */
   /*                                                                       */
   typedef struct  FT_BBox_
@@ -295,10 +306,10 @@
   /*    TrueType tables into an unsigned long to be used within FreeType.  */
   /*                                                                       */
 #define FT_MAKE_TAG( _x1, _x2, _x3, _x4 ) \
-          (((FT_ULong)_x1 << 24) |        \
-           ((FT_ULong)_x2 << 16) |        \
-           ((FT_ULong)_x3 << 8)  |        \
-            (FT_ULong)_x4)
+          ( ( (FT_ULong)_x1 << 24 ) |     \
+            ( (FT_ULong)_x2 << 16 ) |     \
+            ( (FT_ULong)_x3 <<  8 ) |     \
+              (FT_ULong)_x4         )
 
 
   /*************************************************************************/
@@ -343,9 +354,11 @@
   /*    A structure used to hold a single list element.                    */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    prev :: Previous element in the list.  NULL if first.              */
-  /*    next :: Next element in the list.  NULL if last.                   */
-  /*    data :: Typeless pointer to the listed object.                     */
+  /*    prev :: The previous element in the list.  NULL if first.          */
+  /*                                                                       */
+  /*    next :: The next element in the list.  NULL if last.               */
+  /*                                                                       */
+  /*    data :: A typeless pointer to the listed object.                   */
   /*                                                                       */
   typedef struct  FT_ListNodeRec_
   {
@@ -366,8 +379,9 @@
   /*    used in many parts of FreeType.                                    */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    head :: Head (first element) of doubly-linked list.                */
-  /*    tail :: Tail (last element) of doubly-linked list.                 */
+  /*    head :: The head (first element) of doubly-linked list.            */
+  /*                                                                       */
+  /*    tail :: The tail (last element) of doubly-linked list.             */
   /*                                                                       */
   typedef struct  FT_ListRec_
   {
@@ -377,8 +391,10 @@
   } FT_ListRec;
 
 
-#define FT_IS_EMPTY(list)  ( (list).head == 0 )
+#define FT_IS_EMPTY( list )  ( (list).head == 0 )
+
 
 #endif /* FTTYPES_H */
-/* END */
 
+
+/* END */
diff --git a/include/freetype/t1tables.h b/include/freetype/t1tables.h
index 77feb9d..66cb49a 100644
--- a/include/freetype/t1tables.h
+++ b/include/freetype/t1tables.h
@@ -4,116 +4,113 @@
 /*                                                                         */
 /*    Basic Type 1/Type 2 tables definitions and interface                 */
 /*                                                                         */
-/*                                                                         */
 /*  Copyright 1996-2000 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
 /*                                                                         */
-/*  This file is part of the FreeType project, and may only be used        */
-/*  modified and distributed under the terms of the FreeType project       */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
 /*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
 /*  this file you indicate that you have read the license and              */
 /*  understand and accept it fully.                                        */
 /*                                                                         */
 /***************************************************************************/
 
+
 #ifndef T1TABLES_H
 #define T1TABLES_H
 
+
 #include <freetype/freetype.h>
 
- /* Note that we separate font data in T1_FontInfo and T1_Private structures */
- /* in order to later support multiple master fonts..                        */
-
- /*************************************************************************
-  *
-  * <Struct>
-  *    T1_FontInfo
-  *
-  * <Description>
-  *    A structure used to model a Type1/Type2 FontInfo dictionary
-  *    Note that for multiple-master fonts, each instance has its own
-  *    FontInfo.
-  *
-  */
-
-  typedef struct T1_FontInfo
+
+  /* Note that we separate font data in T1_FontInfo and T1_Private */
+  /* structures in order to support Multiple Master fonts.         */
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    T1_FontInfo                                                        */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to model a Type1/Type2 FontInfo dictionary.  Note */
+  /*    that for Multiple Master fonts, each instance has its own          */
+  /*    FontInfo.                                                          */
+  /*                                                                       */
+  typedef struct  T1_FontInfo
   {
-    FT_String*     version;
-    FT_String*     notice;
-    FT_String*     full_name;
-    FT_String*     family_name;
-    FT_String*     weight;
-    FT_Long        italic_angle;
-    FT_Bool        is_fixed_pitch;
-    FT_Short       underline_position;
-    FT_UShort      underline_thickness;
+    FT_String*  version;
+    FT_String*  notice;
+    FT_String*  full_name;
+    FT_String*  family_name;
+    FT_String*  weight;
+    FT_Long     italic_angle;
+    FT_Bool     is_fixed_pitch;
+    FT_Short    underline_position;
+    FT_UShort   underline_thickness;
 
   } T1_FontInfo;
 
 
- /*************************************************************************
-  *
-  * <Struct>
-  *    T1_Private
-  *
-  * <Description>
-  *    A structure used to model a Type1/Type2 FontInfo dictionary
-  *    Note that for multiple-master fonts, each instance has its own
-  *    Private dict.
-  *
-  */
-
-  typedef struct T1_Private
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    T1_Private                                                         */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to model a Type1/Type2 FontInfo dictionary.  Note */
+  /*    that for Multiple Master fonts, each instance has its own Private  */
+  /*    dict.                                                              */
+  /*
+  typedef struct  T1_Private
   {
+    FT_Int     unique_id;
+    FT_Int     lenIV;
 
-    FT_Int       unique_id;
-    FT_Int       lenIV;
+    FT_Byte    num_blue_values;
+    FT_Byte    num_other_blues;
+    FT_Byte    num_family_blues;
+    FT_Byte    num_family_other_blues;
 
-    FT_Byte      num_blue_values;
-    FT_Byte      num_other_blues;
-    FT_Byte      num_family_blues;
-    FT_Byte      num_family_other_blues;
+    FT_Short   blue_values[14];
+    FT_Short   other_blues[10];
 
-    FT_Short     blue_values[14];
-    FT_Short     other_blues[10];
+    FT_Short   family_blues      [14];
+    FT_Short   family_other_blues[10];
 
-    FT_Short     family_blues      [14];
-    FT_Short     family_other_blues[10];
+    FT_Fixed   blue_scale;
+    FT_Int     blue_shift;
+    FT_Int     blue_fuzz;
 
-    FT_Fixed     blue_scale;
-    FT_Int       blue_shift;
-    FT_Int       blue_fuzz;
+    FT_UShort  standard_width[1];
+    FT_UShort  standard_height[1];
 
-    FT_UShort    standard_width[1];
-    FT_UShort    standard_height[1];
+    FT_Byte    num_snap_widths;
+    FT_Byte    num_snap_heights;
+    FT_Bool    force_bold;
+    FT_Bool    round_stem_up;
 
-    FT_Byte      num_snap_widths;
-    FT_Byte      num_snap_heights;
-    FT_Bool      force_bold;
-    FT_Bool      round_stem_up;
+    FT_Short   snap_widths [13];  /* reserve one place for the std */
+    FT_Short   snap_heights[13];  /* reserve one place for the std */
 
-    FT_Short     snap_widths [13];  /* reserve one place for the std */
-    FT_Short     snap_heights[13];  /* reserve one place for the std */
+    FT_Long    language_group;
+    FT_Long    password;
 
-    FT_Long      language_group;
-    FT_Long      password;
-
-    FT_Short     min_feature[2];
+    FT_Short   min_feature[2];
 
   } T1_Private;
 
 
- /*************************************************************************
-  *
-  * <Enum>
-  *    T1_Blend_Flags
-  *
-  * <Description>
-  *    A set of flags used to indicate which fields are present in a
-  *    given blen dictionary (font info or private). Used to support
-  *    multiple masters..
-  *
-  */
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Enum>                                                                */
+  /*    T1_Blend_Flags                                                     */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A set of flags used to indicate which fields are present in a      */
+  /*    given blen dictionary (font info or private).  Used to support     */
+  /*    Multiple Masters fonts.                                            */
+  /*                                                                       */
   typedef enum
   {
     /* required fields in a FontInfo blend dictionary */
@@ -139,17 +136,19 @@
 
   } T1_Blend_Flags;
 
-  /* maximum number of multiple-masters designs, per-se the spec */
-#define T1_MAX_MM_DESIGNS      16
+
+  /* maximum number of Multiple Masters designs, as defined in the spec */
+#define T1_MAX_MM_DESIGNS     16
   
-  /* maximum number of multiple-masters axis, per-se the spec */
+  /* maximum number of Multiple Masters axes, as defined in the spec */
 #define T1_MAX_MM_AXIS         4
 
   /* maximum number of elements in a design map */
-#define T1_MAX_MM_MAP_POINTS   20
+#define T1_MAX_MM_MAP_POINTS  20
+
 
   /* this structure is used to store the BlendDesignMap entry for an axis */
-  typedef struct T1_DesignMap_
+  typedef struct  T1_DesignMap_
   {
     FT_Byte    num_points;
     FT_Fixed*  design_points;
@@ -158,77 +157,78 @@
   } T1_DesignMap;
 
 
-  typedef struct T1_Blend_
+  typedef struct  T1_Blend_
   {
     FT_UInt       num_designs;
     FT_UInt       num_axis;
     
-    FT_String*    axis_names[ T1_MAX_MM_AXIS ];
-    FT_Fixed*     design_pos[ T1_MAX_MM_DESIGNS ];
-    T1_DesignMap  design_map[ T1_MAX_MM_AXIS ];
+    FT_String*    axis_names[T1_MAX_MM_AXIS];
+    FT_Fixed*     design_pos[T1_MAX_MM_DESIGNS];
+    T1_DesignMap  design_map[T1_MAX_MM_AXIS];
     
     FT_Fixed*     weight_vector;
     FT_Fixed*     default_weight_vector;
     
-    T1_FontInfo*  font_infos[ T1_MAX_MM_DESIGNS+1 ];
-    T1_Private*   privates  [ T1_MAX_MM_DESIGNS+1 ];
+    T1_FontInfo*  font_infos[T1_MAX_MM_DESIGNS + 1];
+    T1_Private*   privates  [T1_MAX_MM_DESIGNS + 1];
     
     FT_ULong      blend_bitflags;
   
   } T1_Blend;
 
 
-
-  typedef struct CID_FontDict_
+  typedef struct  CID_FontDict_
   {
-    T1_Private    private_dict;
+    T1_Private  private_dict;
 
-    FT_UInt       len_buildchar;
-    FT_Fixed      forcebold_threshold;
-    FT_Pos        stroke_width;
-    FT_Fixed      expansion_factor;
+    FT_UInt     len_buildchar;
+    FT_Fixed    forcebold_threshold;
+    FT_Pos      stroke_width;
+    FT_Fixed    expansion_factor;
     
-    FT_Byte       paint_type;
-    FT_Byte       font_type;
-    FT_Matrix     font_matrix;
+    FT_Byte     paint_type;
+    FT_Byte     font_type;
+    FT_Matrix   font_matrix;
 
-    FT_UInt       num_subrs;
-    FT_ULong      subrmap_offset;
-    FT_Int        sd_bytes;
+    FT_UInt     num_subrs;
+    FT_ULong    subrmap_offset;
+    FT_Int      sd_bytes;
 
   } CID_FontDict;
 
 
-  typedef struct CID_Info_
+  typedef struct  CID_Info_
   {
-    FT_String*  cid_font_name;
-    FT_Fixed    cid_version;
-    FT_Int      cid_font_type;
+    FT_String*     cid_font_name;
+    FT_Fixed       cid_version;
+    FT_Int         cid_font_type;
 
-    FT_String*  registry;
-    FT_String*  ordering;
-    FT_Int      supplement;
+    FT_String*     registry;
+    FT_String*     ordering;
+    FT_Int         supplement;
 
-    T1_FontInfo font_info;
-    FT_BBox     font_bbox;
-    FT_ULong    uid_base;
+    T1_FontInfo    font_info;
+    FT_BBox        font_bbox;
+    FT_ULong       uid_base;
 
-    FT_Int      num_xuid;
-    FT_ULong    xuid[16];
+    FT_Int         num_xuid;
+    FT_ULong       xuid[16];
 
 
-    FT_ULong    cidmap_offset;
-    FT_Int      fd_bytes;
-    FT_Int      gd_bytes;
-    FT_ULong    cid_count;
+    FT_ULong       cidmap_offset;
+    FT_Int         fd_bytes;
+    FT_Int         gd_bytes;
+    FT_ULong       cid_count;
 
     FT_Int         num_dicts;
     CID_FontDict*  font_dicts;
 
-    FT_ULong    data_offset;
+    FT_ULong       data_offset;
 
   } CID_Info;
 
 
-
 #endif /* T1TABLES_H */
+
+
+/* END */
diff --git a/include/freetype/ttnameid.h b/include/freetype/ttnameid.h
index d60c184..681f1b1 100644
--- a/include/freetype/ttnameid.h
+++ b/include/freetype/ttnameid.h
@@ -1,52 +1,54 @@
-/*******************************************************************
- *
- *  ttnameid.h
- *
- *    TrueType Name ID definitions
- *
- *  Copyright 1996-2000 by
- *  David Turner, Robert Wilhelm, and Werner Lemberg.
- *
- *  This file is part of the FreeType project, and may only be used
- *  modified and distributed under the terms of the FreeType project
- *  license, LICENSE.TXT.  By continuing to use, modify, or distribute
- *  this file you indicate that you have read the license and
- *  understand and accept it fully.
- *
- ******************************************************************/
+/***************************************************************************/
+/*                                                                         */
+/*  ttmakeid.h                                                             */
+/*                                                                         */
+/*    TrueType name ID definitions                                         */
+/*                                                                         */
+/*  Copyright 1996-2000 by                                                 */
+/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
+/*                                                                         */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
+/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
+/*  this file you indicate that you have read the license and              */
+/*  understand and accept it fully.                                        */
+/*                                                                         */
+/***************************************************************************/
+
 
 #ifndef TTNAMEID_H
 #define TTNAMEID_H
 
-/*
- * possible values for the 'Platform' identifier code in the name
- * records of the TTF "name" table
- */
-
-#define TT_PLATFORM_APPLE_UNICODE       0
-#define TT_PLATFORM_MACINTOSH           1
-#define TT_PLATFORM_ISO                 2 /* deprecated */
-#define TT_PLATFORM_MICROSOFT           3
-
-
-/*
- * possible values of the platform specific encoding identifier field in
- * the name records of the TTF "name" table when the 'Platform' identifier
- * code is TT_PLATFORM_APPLE_UNICODE
- */
-
-#define TT_APPLE_ID_DEFAULT             0
-#define TT_APPLE_ID_UNICODE_1_1         1 /* specify Hangul at U+34xx */
-#define TT_APPLE_ID_ISO_10646           2 /* deprecated */
-#define TT_APPLE_ID_UNICODE_2_0         3 /* or later */
-
-
-/*
- * possible values of the platform specific encoding identifier field in
- * the name records of the TTF "name" table when the 'Platform' identifier
- * code is TT_PLATFORM_MACINTOSH
- */
 
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values for the `platform' identifier code in the name        */
+  /* records of the TTF `name' table.                                      */
+  /*                                                                       */
+#define TT_PLATFORM_APPLE_UNICODE  0
+#define TT_PLATFORM_MACINTOSH      1
+#define TT_PLATFORM_ISO            2 /* deprecated */
+#define TT_PLATFORM_MICROSOFT      3
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the platform specific encoding identifier field in */
+  /* the name records of the TTF `name' table if the `platform' identifier */
+  /* code is TT_PLATFORM_APPLE_UNICODE.                                    */
+  /*                                                                       */
+#define TT_APPLE_ID_DEFAULT      0
+#define TT_APPLE_ID_UNICODE_1_1  1 /* specify Hangul at U+34xx */
+#define TT_APPLE_ID_ISO_10646    2 /* deprecated */
+#define TT_APPLE_ID_UNICODE_2_0  3 /* or later */
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the platform specific encoding identifier field in */
+  /* the name records of the TTF `name' table if the `platform' identifier */
+  /* code is TT_PLATFORM_MACINTOSH.                                        */
+  /*                                                                       */
 #define TT_MAC_ID_ROMAN                 0
 #define TT_MAC_ID_JAPANESE              1
 #define TT_MAC_ID_TRADITIONAL_CHINESE   2
@@ -57,366 +59,371 @@
 #define TT_MAC_ID_RUSSIAN               7
 #define TT_MAC_ID_RSYMBOL               8
 #define TT_MAC_ID_DEVANAGARI            9
-#define TT_MAC_ID_GURMUKHI              10
-#define TT_MAC_ID_GUJARATI              11
-#define TT_MAC_ID_ORIYA                 12
-#define TT_MAC_ID_BENGALI               13
-#define TT_MAC_ID_TAMIL                 14
-#define TT_MAC_ID_TELUGU                15
-#define TT_MAC_ID_KANNADA               16
-#define TT_MAC_ID_MALAYALAM             17
-#define TT_MAC_ID_SINHALESE             18
-#define TT_MAC_ID_BURMESE               19
-#define TT_MAC_ID_KHMER                 20
-#define TT_MAC_ID_THAI                  21
-#define TT_MAC_ID_LAOTIAN               22
-#define TT_MAC_ID_GEORGIAN              23
-#define TT_MAC_ID_ARMENIAN              24
-#define TT_MAC_ID_MALDIVIAN             25
-#define TT_MAC_ID_SIMPLIFIED_CHINESE    25
-#define TT_MAC_ID_TIBETAN               26
-#define TT_MAC_ID_MONGOLIAN             27
-#define TT_MAC_ID_GEEZ                  28
-#define TT_MAC_ID_SLAVIC                29
-#define TT_MAC_ID_VIETNAMESE            30
-#define TT_MAC_ID_SINDHI                31
-#define TT_MAC_ID_UNINTERP              32
-
-
-/*
- * possible values of the platform specific encoding identifier field in
- * the name records of the TTF "name" table when the 'Platform' identifier
- * code is TT_PLATFORM_ISO
- *
- * This use is now deprecated
- */
-
-#define TT_ISO_ID_7BIT_ASCII    0
-#define TT_ISO_ID_10646         1
-#define TT_ISO_ID_8859_1        2
-
-
-/*
- * possible values of the platform specific encoding identifier field in
- * the name records of the TTF "name" table when the 'Platform' identifier
- * code is TT_PLATFORM_MICROSOFT
- */
-
-#define TT_MS_ID_SYMBOL_CS      0
-#define TT_MS_ID_UNICODE_CS     1
-#define TT_MS_ID_SJIS           2
-#define TT_MS_ID_GB2312         3
-#define TT_MS_ID_BIG_5          4
-#define TT_MS_ID_WANSUNG        5
-#define TT_MS_ID_JOHAB          6
-
-
-
-/*
- * possible values of the language identifier field in the name records of
- * the TTF "name" table when the 'Platform' identifier code is
- * TT_PLATFORM_MACINTOSH
- *
- * the canonical source for the Apple assigned Language ID's is at
- * http://fonts.apple.com/TTRefMan/RM06/Chap6name.html
- */
-
-#define TT_MAC_LANGID_ENGLISH                           0
-#define TT_MAC_LANGID_FRENCH                            1
-#define TT_MAC_LANGID_GERMAN                            2
-#define TT_MAC_LANGID_ITALIAN                           3
-#define TT_MAC_LANGID_DUTCH                             4
-#define TT_MAC_LANGID_SWEDISH                           5
-#define TT_MAC_LANGID_SPANISH                           6
-#define TT_MAC_LANGID_DANISH                            7
-#define TT_MAC_LANGID_PORTUGUESE                        8
-#define TT_MAC_LANGID_NORWEGIAN                         9
-#define TT_MAC_LANGID_HEBREW                            10
-#define TT_MAC_LANGID_JAPANESE                          11
-#define TT_MAC_LANGID_ARABIC                            12
-#define TT_MAC_LANGID_FINNISH                           13
-#define TT_MAC_LANGID_GREEK                             14
-#define TT_MAC_LANGID_ICELANDIC                         15
-#define TT_MAC_LANGID_MALTESE                           16
-#define TT_MAC_LANGID_TURKISH                           17
-#define TT_MAC_LANGID_CROATIAN                          18
-#define TT_MAC_LANGID_CHINESE_TRADITIONAL               19
-#define TT_MAC_LANGID_URDU                              20
-#define TT_MAC_LANGID_HINDI                             21
-#define TT_MAC_LANGID_THAI                              22
-#define TT_MAC_LANGID_KOREAN                            23
-#define TT_MAC_LANGID_LITHUANIAN                        24
-#define TT_MAC_LANGID_POLISH                            25
-#define TT_MAC_LANGID_HUNGARIAN                         26
-#define TT_MAC_LANGID_ESTONIAN                          27
-#define TT_MAC_LANGID_LETTISH                           28
-#define TT_MAC_LANGID_SAAMISK                           29
-#define TT_MAC_LANGID_FAEROESE                          30
-#define TT_MAC_LANGID_FARSI                             31
-#define TT_MAC_LANGID_RUSSIAN                           32
-#define TT_MAC_LANGID_CHINESE_SIMPLIFIED                33
-#define TT_MAC_LANGID_FLEMISH                           34
-#define TT_MAC_LANGID_IRISH                             35
-#define TT_MAC_LANGID_ALBANIAN                          36
-#define TT_MAC_LANGID_ROMANIAN                          37
-#define TT_MAC_LANGID_CZECH                             38
-#define TT_MAC_LANGID_SLOVAK                            39
-#define TT_MAC_LANGID_SLOVENIAN                         40
-#define TT_MAC_LANGID_YIDDISH                           41
-#define TT_MAC_LANGID_SERBIAN                           42
-#define TT_MAC_LANGID_MACEDONIAN                        43
-#define TT_MAC_LANGID_BULGARIAN                         44
-#define TT_MAC_LANGID_UKRAINIAN                         45
-#define TT_MAC_LANGID_BYELORUSSIAN                      46
-#define TT_MAC_LANGID_UZBEK                             47
-#define TT_MAC_LANGID_KAZAKH                            48
-#define TT_MAC_LANGID_AZERBAIJANI                       49
-#define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT       49
-#define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT         50
-#define TT_MAC_LANGID_ARMENIAN                          51
-#define TT_MAC_LANGID_GEORGIAN                          52
-#define TT_MAC_LANGID_MOLDAVIAN                         53
-#define TT_MAC_LANGID_KIRGHIZ                           54
-#define TT_MAC_LANGID_TAJIKI                            55
-#define TT_MAC_LANGID_TURKMEN                           56
-#define TT_MAC_LANGID_MONGOLIAN                         57
-#define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT        57
-#define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT         58
-#define TT_MAC_LANGID_PASHTO                            59
-#define TT_MAC_LANGID_KURDISH                           60
-#define TT_MAC_LANGID_KASHMIRI                          61
-#define TT_MAC_LANGID_SINDHI                            62
-#define TT_MAC_LANGID_TIBETAN                           63
-#define TT_MAC_LANGID_NEPALI                            64
-#define TT_MAC_LANGID_SANSKRIT                          65
-#define TT_MAC_LANGID_MARATHI                           66
-#define TT_MAC_LANGID_BENGALI                           67
-#define TT_MAC_LANGID_ASSAMESE                          68
-#define TT_MAC_LANGID_GUJARATI                          69
-#define TT_MAC_LANGID_PUNJABI                           70
-#define TT_MAC_LANGID_ORIYA                             71
-#define TT_MAC_LANGID_MALAYALAM                         72
-#define TT_MAC_LANGID_KANNADA                           73
-#define TT_MAC_LANGID_TAMIL                             74
-#define TT_MAC_LANGID_TELUGU                            75
-#define TT_MAC_LANGID_SINHALESE                         76
-#define TT_MAC_LANGID_BURMESE                           77
-#define TT_MAC_LANGID_KHMER                             78
-#define TT_MAC_LANGID_LAO                               79
-#define TT_MAC_LANGID_VIETNAMESE                        80
-#define TT_MAC_LANGID_INDONESIAN                        81
-#define TT_MAC_LANGID_TAGALOG                           82
-#define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT                83
-#define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT               84
-#define TT_MAC_LANGID_AMHARIC                           85
-#define TT_MAC_LANGID_TIGRINYA                          86
-#define TT_MAC_LANGID_GALLA                             87
-#define TT_MAC_LANGID_SOMALI                            88
-#define TT_MAC_LANGID_SWAHILI                           89
-#define TT_MAC_LANGID_RUANDA                            90
-#define TT_MAC_LANGID_RUNDI                             91
-#define TT_MAC_LANGID_CHEWA                             92
-#define TT_MAC_LANGID_MALAGASY                          93
-#define TT_MAC_LANGID_ESPERANTO                         94
-#define TT_MAC_LANGID_WELSH                             128
-#define TT_MAC_LANGID_BASQUE                            129
-#define TT_MAC_LANGID_CATALAN                           130
-#define TT_MAC_LANGID_LATIN                             131
-#define TT_MAC_LANGID_QUECHUA                           132
-#define TT_MAC_LANGID_GUARANI                           133
-#define TT_MAC_LANGID_AYMARA                            134
-#define TT_MAC_LANGID_TATAR                             135
-#define TT_MAC_LANGID_UIGHUR                            136
-#define TT_MAC_LANGID_DZONGKHA                          137
-#define TT_MAC_LANGID_JAVANESE                          138
-#define TT_MAC_LANGID_SUNDANESE                         139
+#define TT_MAC_ID_GURMUKHI             10
+#define TT_MAC_ID_GUJARATI             11
+#define TT_MAC_ID_ORIYA                12
+#define TT_MAC_ID_BENGALI              13
+#define TT_MAC_ID_TAMIL                14
+#define TT_MAC_ID_TELUGU               15
+#define TT_MAC_ID_KANNADA              16
+#define TT_MAC_ID_MALAYALAM            17
+#define TT_MAC_ID_SINHALESE            18
+#define TT_MAC_ID_BURMESE              19
+#define TT_MAC_ID_KHMER                20
+#define TT_MAC_ID_THAI                 21
+#define TT_MAC_ID_LAOTIAN              22
+#define TT_MAC_ID_GEORGIAN             23
+#define TT_MAC_ID_ARMENIAN             24
+#define TT_MAC_ID_MALDIVIAN            25
+#define TT_MAC_ID_SIMPLIFIED_CHINESE   25
+#define TT_MAC_ID_TIBETAN              26
+#define TT_MAC_ID_MONGOLIAN            27
+#define TT_MAC_ID_GEEZ                 28
+#define TT_MAC_ID_SLAVIC               29
+#define TT_MAC_ID_VIETNAMESE           30
+#define TT_MAC_ID_SINDHI               31
+#define TT_MAC_ID_UNINTERP             32
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the platform specific encoding identifier field in */
+  /* the name records of the TTF `name' table if the `platform' identifier */
+  /* code is TT_PLATFORM_ISO.                                              */
+  /*                                                                       */
+  /* This use is now deprecated.                                           */
+  /*                                                                       */
+#define TT_ISO_ID_7BIT_ASCII  0
+#define TT_ISO_ID_10646       1
+#define TT_ISO_ID_8859_1      2
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* possible values of the platform specific encoding identifier field in */
+  /* the name records of the TTF `name' table if the `platform' identifier */
+  /* code is TT_PLATFORM_MICROSOFT.                                        */
+  /*                                                                       */
+#define TT_MS_ID_SYMBOL_CS   0
+#define TT_MS_ID_UNICODE_CS  1
+#define TT_MS_ID_SJIS        2
+#define TT_MS_ID_GB2312      3
+#define TT_MS_ID_BIG_5       4
+#define TT_MS_ID_WANSUNG     5
+#define TT_MS_ID_JOHAB       6
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the language identifier field in the name records  */
+  /* of the TTF `name' table if the `platform' identifier code is          */
+  /* TT_PLATFORM_MACINTOSH.                                                */
+  /*                                                                       */
+  /* The canonical source for the Apple assigned Language ID's is at       */
+  /*                                                                       */
+  /*   http://fonts.apple.com/TTRefMan/RM06/Chap6name.html                 */
+  /*                                                                       */
+#define TT_MAC_LANGID_ENGLISH                       0
+#define TT_MAC_LANGID_FRENCH                        1
+#define TT_MAC_LANGID_GERMAN                        2
+#define TT_MAC_LANGID_ITALIAN                       3
+#define TT_MAC_LANGID_DUTCH                         4
+#define TT_MAC_LANGID_SWEDISH                       5
+#define TT_MAC_LANGID_SPANISH                       6
+#define TT_MAC_LANGID_DANISH                        7
+#define TT_MAC_LANGID_PORTUGUESE                    8
+#define TT_MAC_LANGID_NORWEGIAN                     9
+#define TT_MAC_LANGID_HEBREW                       10
+#define TT_MAC_LANGID_JAPANESE                     11
+#define TT_MAC_LANGID_ARABIC                       12
+#define TT_MAC_LANGID_FINNISH                      13
+#define TT_MAC_LANGID_GREEK                        14
+#define TT_MAC_LANGID_ICELANDIC                    15
+#define TT_MAC_LANGID_MALTESE                      16
+#define TT_MAC_LANGID_TURKISH                      17
+#define TT_MAC_LANGID_CROATIAN                     18
+#define TT_MAC_LANGID_CHINESE_TRADITIONAL          19
+#define TT_MAC_LANGID_URDU                         20
+#define TT_MAC_LANGID_HINDI                        21
+#define TT_MAC_LANGID_THAI                         22
+#define TT_MAC_LANGID_KOREAN                       23
+#define TT_MAC_LANGID_LITHUANIAN                   24
+#define TT_MAC_LANGID_POLISH                       25
+#define TT_MAC_LANGID_HUNGARIAN                    26
+#define TT_MAC_LANGID_ESTONIAN                     27
+#define TT_MAC_LANGID_LETTISH                      28
+#define TT_MAC_LANGID_SAAMISK                      29
+#define TT_MAC_LANGID_FAEROESE                     30
+#define TT_MAC_LANGID_FARSI                        31
+#define TT_MAC_LANGID_RUSSIAN                      32
+#define TT_MAC_LANGID_CHINESE_SIMPLIFIED           33
+#define TT_MAC_LANGID_FLEMISH                      34
+#define TT_MAC_LANGID_IRISH                        35
+#define TT_MAC_LANGID_ALBANIAN                     36
+#define TT_MAC_LANGID_ROMANIAN                     37
+#define TT_MAC_LANGID_CZECH                        38
+#define TT_MAC_LANGID_SLOVAK                       39
+#define TT_MAC_LANGID_SLOVENIAN                    40
+#define TT_MAC_LANGID_YIDDISH                      41
+#define TT_MAC_LANGID_SERBIAN                      42
+#define TT_MAC_LANGID_MACEDONIAN                   43
+#define TT_MAC_LANGID_BULGARIAN                    44
+#define TT_MAC_LANGID_UKRAINIAN                    45
+#define TT_MAC_LANGID_BYELORUSSIAN                 46
+#define TT_MAC_LANGID_UZBEK                        47
+#define TT_MAC_LANGID_KAZAKH                       48
+#define TT_MAC_LANGID_AZERBAIJANI                  49
+#define TT_MAC_LANGID_AZERBAIJANI_CYRILLIC_SCRIPT  49
+#define TT_MAC_LANGID_AZERBAIJANI_ARABIC_SCRIPT    50
+#define TT_MAC_LANGID_ARMENIAN                     51
+#define TT_MAC_LANGID_GEORGIAN                     52
+#define TT_MAC_LANGID_MOLDAVIAN                    53
+#define TT_MAC_LANGID_KIRGHIZ                      54
+#define TT_MAC_LANGID_TAJIKI                       55
+#define TT_MAC_LANGID_TURKMEN                      56
+#define TT_MAC_LANGID_MONGOLIAN                    57
+#define TT_MAC_LANGID_MONGOLIAN_MONGOLIAN_SCRIPT   57
+#define TT_MAC_LANGID_MONGOLIAN_CYRILLIC_SCRIPT    58
+#define TT_MAC_LANGID_PASHTO                       59
+#define TT_MAC_LANGID_KURDISH                      60
+#define TT_MAC_LANGID_KASHMIRI                     61
+#define TT_MAC_LANGID_SINDHI                       62
+#define TT_MAC_LANGID_TIBETAN                      63
+#define TT_MAC_LANGID_NEPALI                       64
+#define TT_MAC_LANGID_SANSKRIT                     65
+#define TT_MAC_LANGID_MARATHI                      66
+#define TT_MAC_LANGID_BENGALI                      67
+#define TT_MAC_LANGID_ASSAMESE                     68
+#define TT_MAC_LANGID_GUJARATI                     69
+#define TT_MAC_LANGID_PUNJABI                      70
+#define TT_MAC_LANGID_ORIYA                        71
+#define TT_MAC_LANGID_MALAYALAM                    72
+#define TT_MAC_LANGID_KANNADA                      73
+#define TT_MAC_LANGID_TAMIL                        74
+#define TT_MAC_LANGID_TELUGU                       75
+#define TT_MAC_LANGID_SINHALESE                    76
+#define TT_MAC_LANGID_BURMESE                      77
+#define TT_MAC_LANGID_KHMER                        78
+#define TT_MAC_LANGID_LAO                          79
+#define TT_MAC_LANGID_VIETNAMESE                   80
+#define TT_MAC_LANGID_INDONESIAN                   81
+#define TT_MAC_LANGID_TAGALOG                      82
+#define TT_MAC_LANGID_MALAY_ROMAN_SCRIPT           83
+#define TT_MAC_LANGID_MALAY_ARABIC_SCRIPT          84
+#define TT_MAC_LANGID_AMHARIC                      85
+#define TT_MAC_LANGID_TIGRINYA                     86
+#define TT_MAC_LANGID_GALLA                        87
+#define TT_MAC_LANGID_SOMALI                       88
+#define TT_MAC_LANGID_SWAHILI                      89
+#define TT_MAC_LANGID_RUANDA                       90
+#define TT_MAC_LANGID_RUNDI                        91
+#define TT_MAC_LANGID_CHEWA                        92
+#define TT_MAC_LANGID_MALAGASY                     93
+#define TT_MAC_LANGID_ESPERANTO                    94
+#define TT_MAC_LANGID_WELSH                       128
+#define TT_MAC_LANGID_BASQUE                      129
+#define TT_MAC_LANGID_CATALAN                     130
+#define TT_MAC_LANGID_LATIN                       131
+#define TT_MAC_LANGID_QUECHUA                     132
+#define TT_MAC_LANGID_GUARANI                     133
+#define TT_MAC_LANGID_AYMARA                      134
+#define TT_MAC_LANGID_TATAR                       135
+#define TT_MAC_LANGID_UIGHUR                      136
+#define TT_MAC_LANGID_DZONGKHA                    137
+#define TT_MAC_LANGID_JAVANESE                    138
+#define TT_MAC_LANGID_SUNDANESE                   139
+
 
 #if 0  /* these seem to be errors that have been dropped */
-#define TT_MAC_LANGID_SCOTTISH_GAELIC                   140
-#define TT_MAC_LANGID_IRISH_GAELIC                      141
+
+#define TT_MAC_LANGID_SCOTTISH_GAELIC             140
+#define TT_MAC_LANGID_IRISH_GAELIC                141
+
 #endif
 
-/* The following codes are new as of 2000-03-10 */
-#define TT_MAC_LANGID_GALICIAN                          140
-#define TT_MAC_LANGID_AFRIKAANS                         141
-#define TT_MAC_LANGID_BRETON                            142
-#define TT_MAC_LANGID_INUKTITUT                         143
-#define TT_MAC_LANGID_SCOTTISH_GAELIC                   144
-#define TT_MAC_LANGID_MANX_GAELIC                       145
-#define TT_MAC_LANGID_IRISH_GAELIC                      146
-#define TT_MAC_LANGID_TONGAN                            147
-#define TT_MAC_LANGID_GREEK_POLYTONIC                   148
-#define TT_MAC_LANGID_GREELANDIC                        149
-#define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT          150
-
-
-/*
- * possible values of the language identifier field in the name records of
- * the TTF "name" table when the 'Platform' identifier code is
- * TT_PLATFORM_MICROSOFT
- *
- * the canonical source for the MS assigned LCID's is at
- * http://www.microsoft.com/typography/OTSPEC/lcid-cp.txt
- */
-
-#define TT_MS_LANGID_ARABIC_SAUDI_ARABIA                0x0401
-#define TT_MS_LANGID_ARABIC_IRAQ                        0x0801
-#define TT_MS_LANGID_ARABIC_EGYPT                       0x0c01
-#define TT_MS_LANGID_ARABIC_LIBYA                       0x1001
-#define TT_MS_LANGID_ARABIC_ALGERIA                     0x1401
-#define TT_MS_LANGID_ARABIC_MOROCCO                     0x1801
-#define TT_MS_LANGID_ARABIC_TUNISIA                     0x1c01
-#define TT_MS_LANGID_ARABIC_OMAN                        0x2001
-#define TT_MS_LANGID_ARABIC_YEMEN                       0x2401
-#define TT_MS_LANGID_ARABIC_SYRIA                       0x2801
-#define TT_MS_LANGID_ARABIC_JORDAN                      0x2c01
-#define TT_MS_LANGID_ARABIC_LEBANON                     0x3001
-#define TT_MS_LANGID_ARABIC_KUWAIT                      0x3401
-#define TT_MS_LANGID_ARABIC_UAE                         0x3801
-#define TT_MS_LANGID_ARABIC_BAHRAIN                     0x3c01
-#define TT_MS_LANGID_ARABIC_QATAR                       0x4001
-#define TT_MS_LANGID_BULGARIAN_BULGARIA                 0x0402
-#define TT_MS_LANGID_CATALAN_SPAIN                      0x0403
-#define TT_MS_LANGID_CHINESE_TAIWAN                     0x0404
-#define TT_MS_LANGID_CHINESE_PRC                        0x0804
-#define TT_MS_LANGID_CHINESE_HONG_KONG                  0x0c04
-#define TT_MS_LANGID_CHINESE_SINGAPORE                  0x1004
-#define TT_MS_LANGID_CHINESE_MACAU                      0x1404
-#define TT_MS_LANGID_CZECH_CZECH_REPUBLIC               0x0405
-#define TT_MS_LANGID_DANISH_DENMARK                     0x0406
-#define TT_MS_LANGID_GERMAN_GERMANY                     0x0407
-#define TT_MS_LANGID_GERMAN_SWITZERLAND                 0x0807
-#define TT_MS_LANGID_GERMAN_AUSTRIA                     0x0c07
-#define TT_MS_LANGID_GERMAN_LUXEMBOURG                  0x1007
-#define TT_MS_LANGID_GERMAN_LIECHTENSTEI                0x1407
-#define TT_MS_LANGID_GREEK_GREECE                       0x0408
-#define TT_MS_LANGID_ENGLISH_UNITED_STATES              0x0409
-#define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM             0x0809
-#define TT_MS_LANGID_ENGLISH_AUSTRALIA                  0x0c09
-#define TT_MS_LANGID_ENGLISH_CANADA                     0x1009
-#define TT_MS_LANGID_ENGLISH_NEW_ZEALAND                0x1409
-#define TT_MS_LANGID_ENGLISH_IRELAND                    0x1809
-#define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA               0x1c09
-#define TT_MS_LANGID_ENGLISH_JAMAICA                    0x2009
-#define TT_MS_LANGID_ENGLISH_CARIBBEAN                  0x2409
-#define TT_MS_LANGID_ENGLISH_BELIZE                     0x2809
-#define TT_MS_LANGID_ENGLISH_TRINIDAD                   0x2c09
-#define TT_MS_LANGID_ENGLISH_ZIMBABWE                   0x3009
-#define TT_MS_LANGID_ENGLISH_PHILIPPINES                0x3409
-#define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT     0x040a
-#define TT_MS_LANGID_SPANISH_MEXICO                     0x080a
-#define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT   0x0c0a
-#define TT_MS_LANGID_SPANISH_GUATEMALA                  0x100a
-#define TT_MS_LANGID_SPANISH_COSTA_RICA                 0x140a
-#define TT_MS_LANGID_SPANISH_PANAMA                     0x180a
-#define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC         0x1c0a
-#define TT_MS_LANGID_SPANISH_VENEZUELA                  0x200a
-#define TT_MS_LANGID_SPANISH_COLOMBIA                   0x240a
-#define TT_MS_LANGID_SPANISH_PERU                       0x280a
-#define TT_MS_LANGID_SPANISH_ARGENTINA                  0x2c0a
-#define TT_MS_LANGID_SPANISH_ECUADOR                    0x300a
-#define TT_MS_LANGID_SPANISH_CHILE                      0x340a
-#define TT_MS_LANGID_SPANISH_URUGUAY                    0x380a
-#define TT_MS_LANGID_SPANISH_PARAGUAY                   0x3c0a
-#define TT_MS_LANGID_SPANISH_BOLIVIA                    0x400a
-#define TT_MS_LANGID_SPANISH_EL_SALVADOR                0x440a
-#define TT_MS_LANGID_SPANISH_HONDURAS                   0x480a
-#define TT_MS_LANGID_SPANISH_NICARAGUA                  0x4c0a
-#define TT_MS_LANGID_SPANISH_PUERTO_RICO                0x500a
-#define TT_MS_LANGID_FINNISH_FINLAND                    0x040b
-#define TT_MS_LANGID_FRENCH_FRANCE                      0x040c
-#define TT_MS_LANGID_FRENCH_BELGIUM                     0x080c
-#define TT_MS_LANGID_FRENCH_CANADA                      0x0c0c
-#define TT_MS_LANGID_FRENCH_SWITZERLAND                 0x100c
-#define TT_MS_LANGID_FRENCH_LUXEMBOURG                  0x140c
-#define TT_MS_LANGID_FRENCH_MONACO                      0x180c
-#define TT_MS_LANGID_HEBREW_ISRAEL                      0x040d
-#define TT_MS_LANGID_HUNGARIAN_HUNGARY                  0x040e
-#define TT_MS_LANGID_ICELANDIC_ICELAND                  0x040f
-#define TT_MS_LANGID_ITALIAN_ITALY                      0x0410
-#define TT_MS_LANGID_ITALIAN_SWITZERLAND                0x0810
-#define TT_MS_LANGID_JAPANESE_JAPAN                     0x0411
-#define TT_MS_LANGID_KOREAN_EXTENDED_WANSUNG_KOREA      0x0412
-#define TT_MS_LANGID_KOREAN_JOHAB_KOREA                 0x0812
-#define TT_MS_LANGID_DUTCH_NETHERLANDS                  0x0413
-#define TT_MS_LANGID_DUTCH_BELGIUM                      0x0813
-#define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL            0x0414
-#define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK           0x0814
-#define TT_MS_LANGID_POLISH_POLAND                      0x0415
-#define TT_MS_LANGID_PORTUGUESE_BRAZIL                  0x0416
-#define TT_MS_LANGID_PORTUGUESE_PORTUGAL                0x0816
-#define TT_MS_LANGID_RHAETO_ROMANIC_SWITZERLAND         0x0417
-#define TT_MS_LANGID_ROMANIAN_ROMANIA                   0x0418
-#define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA                 0x0818
-#define TT_MS_LANGID_RUSSIAN_RUSSIA                     0x0419
-#define TT_MS_LANGID_RUSSIAN_MOLDAVIA                   0x0819
-#define TT_MS_LANGID_CROATIAN_CROATIA                   0x041a
-#define TT_MS_LANGID_SERBIAN_SERBIA_LATIN               0x081a
-#define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC            0x0c1a
-#define TT_MS_LANGID_SLOVAK_SLOVAKIA                    0x041b
-#define TT_MS_LANGID_ALBANIAN_ALBANIA                   0x041c
-#define TT_MS_LANGID_SWEDISH_SWEDEN                     0x041d
-#define TT_MS_LANGID_SWEDISH_FINLAND                    0x081d
-#define TT_MS_LANGID_THAI_THAILAND                      0x041e
-#define TT_MS_LANGID_TURKISH_TURKEY                     0x041f
-#define TT_MS_LANGID_URDU_PAKISTAN                      0x0420
-#define TT_MS_LANGID_INDONESIAN_INDONESIA               0x0421
-#define TT_MS_LANGID_UKRAINIAN_UKRAINE                  0x0422
-#define TT_MS_LANGID_BELARUSIAN_BELARUS                 0x0423
-#define TT_MS_LANGID_SLOVENE_SLOVENIA                   0x0424
-#define TT_MS_LANGID_ESTONIAN_ESTONIA                   0x0425
-#define TT_MS_LANGID_LATVIAN_LATVIA                     0x0426
-#define TT_MS_LANGID_LITHUANIAN_LITHUANIA               0x0427
-#define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA       0x0827
-#define TT_MS_LANGID_MAORI_NEW_ZEALAND                  0x0428
-#define TT_MS_LANGID_FARSI_IRAN                         0x0429
-#define TT_MS_LANGID_VIETNAMESE_VIET_NAM                0x042a
-#define TT_MS_LANGID_ARMENIAN_ARMENIA                   0x042b
-#define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN             0x042c
-#define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC          0x082c
-#define TT_MS_LANGID_BASQUE_SPAIN                       0x042d
-#define TT_MS_LANGID_SORBIAN_GERMANY                    0x042e
-#define TT_MS_LANGID_MACEDONIAN_MACEDONIA               0x042f
-#define TT_MS_LANGID_SUTU_SOUTH_AFRICA                  0x0430
-#define TT_MS_LANGID_TSONGA_SOUTH_AFRICA                0x0431
-#define TT_MS_LANGID_TSWANA_SOUTH_AFRICA                0x0432
-#define TT_MS_LANGID_VENDA_SOUTH_AFRICA                 0x0433
-#define TT_MS_LANGID_XHOSA_SOUTH_AFRICA                 0x0434
-#define TT_MS_LANGID_ZULU_SOUTH_AFRICA                  0x0435
-#define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA             0x0436
-#define TT_MS_LANGID_GEORGIAN_GEORGIA                   0x0437
-#define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS            0x0438
-#define TT_MS_LANGID_HINDI_INDIA                        0x0439
-#define TT_MS_LANGID_MALTESE_MALTA                      0x043a
-#define TT_MS_LANGID_SAAMI_LAPONIA                      0x043b
-#define TT_MS_LANGID_IRISH_GAELIC_IRELAND               0x043c
-#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM     0x083c
-#define TT_MS_LANGID_MALAY_MALAYSIA                     0x043e
-#define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM            0x083e
-#define TT_MS_LANGID_KAZAK_KAZAKSTAN                    0x043f
-#define TT_MS_LANGID_SWAHILI_KENYA                      0x0441
-#define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN             0x0443
-#define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC          0x0843
-#define TT_MS_LANGID_TATAR_TATARSTAN                    0x0444
-#define TT_MS_LANGID_BENGALI_INDIA                      0x0445
-#define TT_MS_LANGID_PUNJABI_INDIA                      0x0446
-#define TT_MS_LANGID_GUJARATI_INDIA                     0x0447
-#define TT_MS_LANGID_ORIYA_INDIA                        0x0448
-#define TT_MS_LANGID_TAMIL_INDIA                        0x0449
-#define TT_MS_LANGID_TELUGU_INDIA                       0x044a
-#define TT_MS_LANGID_KANNADA_INDIA                      0x044b
-#define TT_MS_LANGID_MALAYALAM_INDIA                    0x044c
-#define TT_MS_LANGID_ASSAMESE_INDIA                     0x044d
-#define TT_MS_LANGID_MARATHI_INDIA                      0x044e
-#define TT_MS_LANGID_SANSKRIT_INDIA                     0x044f
-#define TT_MS_LANGID_KONKANI_INDIA                      0x0457
-
-
-/*
- * possible values of the 'Name' identifier field in the name records of
- * the TTF "name" table.  These values are platform independent.
- */
 
+  /* The following codes are new as of 2000-03-10 */
+#define TT_MAC_LANGID_GALICIAN                    140
+#define TT_MAC_LANGID_AFRIKAANS                   141
+#define TT_MAC_LANGID_BRETON                      142
+#define TT_MAC_LANGID_INUKTITUT                   143
+#define TT_MAC_LANGID_SCOTTISH_GAELIC             144
+#define TT_MAC_LANGID_MANX_GAELIC                 145
+#define TT_MAC_LANGID_IRISH_GAELIC                146
+#define TT_MAC_LANGID_TONGAN                      147
+#define TT_MAC_LANGID_GREEK_POLYTONIC             148
+#define TT_MAC_LANGID_GREELANDIC                  149
+#define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT    150
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the language identifier field in the name records  */
+  /* of the TTF `name' table if the `platform' identifier code is          */
+  /* TT_PLATFORM_MICROSOFT.                                                */
+  /*                                                                       */
+  /* The canonical source for the MS assigned LCID's is at                 */
+  /*                                                                       */
+  /*   http://www.microsoft.com/typography/OTSPEC/lcid-cp.txt              */
+  /*                                                                       */
+#define TT_MS_LANGID_ARABIC_SAUDI_ARABIA               0x0401
+#define TT_MS_LANGID_ARABIC_IRAQ                       0x0801
+#define TT_MS_LANGID_ARABIC_EGYPT                      0x0c01
+#define TT_MS_LANGID_ARABIC_LIBYA                      0x1001
+#define TT_MS_LANGID_ARABIC_ALGERIA                    0x1401
+#define TT_MS_LANGID_ARABIC_MOROCCO                    0x1801
+#define TT_MS_LANGID_ARABIC_TUNISIA                    0x1c01
+#define TT_MS_LANGID_ARABIC_OMAN                       0x2001
+#define TT_MS_LANGID_ARABIC_YEMEN                      0x2401
+#define TT_MS_LANGID_ARABIC_SYRIA                      0x2801
+#define TT_MS_LANGID_ARABIC_JORDAN                     0x2c01
+#define TT_MS_LANGID_ARABIC_LEBANON                    0x3001
+#define TT_MS_LANGID_ARABIC_KUWAIT                     0x3401
+#define TT_MS_LANGID_ARABIC_UAE                        0x3801
+#define TT_MS_LANGID_ARABIC_BAHRAIN                    0x3c01
+#define TT_MS_LANGID_ARABIC_QATAR                      0x4001
+#define TT_MS_LANGID_BULGARIAN_BULGARIA                0x0402
+#define TT_MS_LANGID_CATALAN_SPAIN                     0x0403
+#define TT_MS_LANGID_CHINESE_TAIWAN                    0x0404
+#define TT_MS_LANGID_CHINESE_PRC                       0x0804
+#define TT_MS_LANGID_CHINESE_HONG_KONG                 0x0c04
+#define TT_MS_LANGID_CHINESE_SINGAPORE                 0x1004
+#define TT_MS_LANGID_CHINESE_MACAU                     0x1404
+#define TT_MS_LANGID_CZECH_CZECH_REPUBLIC              0x0405
+#define TT_MS_LANGID_DANISH_DENMARK                    0x0406
+#define TT_MS_LANGID_GERMAN_GERMANY                    0x0407
+#define TT_MS_LANGID_GERMAN_SWITZERLAND                0x0807
+#define TT_MS_LANGID_GERMAN_AUSTRIA                    0x0c07
+#define TT_MS_LANGID_GERMAN_LUXEMBOURG                 0x1007
+#define TT_MS_LANGID_GERMAN_LIECHTENSTEI               0x1407
+#define TT_MS_LANGID_GREEK_GREECE                      0x0408
+#define TT_MS_LANGID_ENGLISH_UNITED_STATES             0x0409
+#define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM            0x0809
+#define TT_MS_LANGID_ENGLISH_AUSTRALIA                 0x0c09
+#define TT_MS_LANGID_ENGLISH_CANADA                    0x1009
+#define TT_MS_LANGID_ENGLISH_NEW_ZEALAND               0x1409
+#define TT_MS_LANGID_ENGLISH_IRELAND                   0x1809
+#define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA              0x1c09
+#define TT_MS_LANGID_ENGLISH_JAMAICA                   0x2009
+#define TT_MS_LANGID_ENGLISH_CARIBBEAN                 0x2409
+#define TT_MS_LANGID_ENGLISH_BELIZE                    0x2809
+#define TT_MS_LANGID_ENGLISH_TRINIDAD                  0x2c09
+#define TT_MS_LANGID_ENGLISH_ZIMBABWE                  0x3009
+#define TT_MS_LANGID_ENGLISH_PHILIPPINES               0x3409
+#define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT    0x040a
+#define TT_MS_LANGID_SPANISH_MEXICO                    0x080a
+#define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT  0x0c0a
+#define TT_MS_LANGID_SPANISH_GUATEMALA                 0x100a
+#define TT_MS_LANGID_SPANISH_COSTA_RICA                0x140a
+#define TT_MS_LANGID_SPANISH_PANAMA                    0x180a
+#define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC        0x1c0a
+#define TT_MS_LANGID_SPANISH_VENEZUELA                 0x200a
+#define TT_MS_LANGID_SPANISH_COLOMBIA                  0x240a
+#define TT_MS_LANGID_SPANISH_PERU                      0x280a
+#define TT_MS_LANGID_SPANISH_ARGENTINA                 0x2c0a
+#define TT_MS_LANGID_SPANISH_ECUADOR                   0x300a
+#define TT_MS_LANGID_SPANISH_CHILE                     0x340a
+#define TT_MS_LANGID_SPANISH_URUGUAY                   0x380a
+#define TT_MS_LANGID_SPANISH_PARAGUAY                  0x3c0a
+#define TT_MS_LANGID_SPANISH_BOLIVIA                   0x400a
+#define TT_MS_LANGID_SPANISH_EL_SALVADOR               0x440a
+#define TT_MS_LANGID_SPANISH_HONDURAS                  0x480a
+#define TT_MS_LANGID_SPANISH_NICARAGUA                 0x4c0a
+#define TT_MS_LANGID_SPANISH_PUERTO_RICO               0x500a
+#define TT_MS_LANGID_FINNISH_FINLAND                   0x040b
+#define TT_MS_LANGID_FRENCH_FRANCE                     0x040c
+#define TT_MS_LANGID_FRENCH_BELGIUM                    0x080c
+#define TT_MS_LANGID_FRENCH_CANADA                     0x0c0c
+#define TT_MS_LANGID_FRENCH_SWITZERLAND                0x100c
+#define TT_MS_LANGID_FRENCH_LUXEMBOURG                 0x140c
+#define TT_MS_LANGID_FRENCH_MONACO                     0x180c
+#define TT_MS_LANGID_HEBREW_ISRAEL                     0x040d
+#define TT_MS_LANGID_HUNGARIAN_HUNGARY                 0x040e
+#define TT_MS_LANGID_ICELANDIC_ICELAND                 0x040f
+#define TT_MS_LANGID_ITALIAN_ITALY                     0x0410
+#define TT_MS_LANGID_ITALIAN_SWITZERLAND               0x0810
+#define TT_MS_LANGID_JAPANESE_JAPAN                    0x0411
+#define TT_MS_LANGID_KOREAN_EXTENDED_WANSUNG_KOREA     0x0412
+#define TT_MS_LANGID_KOREAN_JOHAB_KOREA                0x0812
+#define TT_MS_LANGID_DUTCH_NETHERLANDS                 0x0413
+#define TT_MS_LANGID_DUTCH_BELGIUM                     0x0813
+#define TT_MS_LANGID_NORWEGIAN_NORWAY_BOKMAL           0x0414
+#define TT_MS_LANGID_NORWEGIAN_NORWAY_NYNORSK          0x0814
+#define TT_MS_LANGID_POLISH_POLAND                     0x0415
+#define TT_MS_LANGID_PORTUGUESE_BRAZIL                 0x0416
+#define TT_MS_LANGID_PORTUGUESE_PORTUGAL               0x0816
+#define TT_MS_LANGID_RHAETO_ROMANIC_SWITZERLAND        0x0417
+#define TT_MS_LANGID_ROMANIAN_ROMANIA                  0x0418
+#define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA                0x0818
+#define TT_MS_LANGID_RUSSIAN_RUSSIA                    0x0419
+#define TT_MS_LANGID_RUSSIAN_MOLDAVIA                  0x0819
+#define TT_MS_LANGID_CROATIAN_CROATIA                  0x041a
+#define TT_MS_LANGID_SERBIAN_SERBIA_LATIN              0x081a
+#define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC           0x0c1a
+#define TT_MS_LANGID_SLOVAK_SLOVAKIA                   0x041b
+#define TT_MS_LANGID_ALBANIAN_ALBANIA                  0x041c
+#define TT_MS_LANGID_SWEDISH_SWEDEN                    0x041d
+#define TT_MS_LANGID_SWEDISH_FINLAND                   0x081d
+#define TT_MS_LANGID_THAI_THAILAND                     0x041e
+#define TT_MS_LANGID_TURKISH_TURKEY                    0x041f
+#define TT_MS_LANGID_URDU_PAKISTAN                     0x0420
+#define TT_MS_LANGID_INDONESIAN_INDONESIA              0x0421
+#define TT_MS_LANGID_UKRAINIAN_UKRAINE                 0x0422
+#define TT_MS_LANGID_BELARUSIAN_BELARUS                0x0423
+#define TT_MS_LANGID_SLOVENE_SLOVENIA                  0x0424
+#define TT_MS_LANGID_ESTONIAN_ESTONIA                  0x0425
+#define TT_MS_LANGID_LATVIAN_LATVIA                    0x0426
+#define TT_MS_LANGID_LITHUANIAN_LITHUANIA              0x0427
+#define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA      0x0827
+#define TT_MS_LANGID_MAORI_NEW_ZEALAND                 0x0428
+#define TT_MS_LANGID_FARSI_IRAN                        0x0429
+#define TT_MS_LANGID_VIETNAMESE_VIET_NAM               0x042a
+#define TT_MS_LANGID_ARMENIAN_ARMENIA                  0x042b
+#define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN            0x042c
+#define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC         0x082c
+#define TT_MS_LANGID_BASQUE_SPAIN                      0x042d
+#define TT_MS_LANGID_SORBIAN_GERMANY                   0x042e
+#define TT_MS_LANGID_MACEDONIAN_MACEDONIA              0x042f
+#define TT_MS_LANGID_SUTU_SOUTH_AFRICA                 0x0430
+#define TT_MS_LANGID_TSONGA_SOUTH_AFRICA               0x0431
+#define TT_MS_LANGID_TSWANA_SOUTH_AFRICA               0x0432
+#define TT_MS_LANGID_VENDA_SOUTH_AFRICA                0x0433
+#define TT_MS_LANGID_XHOSA_SOUTH_AFRICA                0x0434
+#define TT_MS_LANGID_ZULU_SOUTH_AFRICA                 0x0435
+#define TT_MS_LANGID_AFRIKAANS_SOUTH_AFRICA            0x0436
+#define TT_MS_LANGID_GEORGIAN_GEORGIA                  0x0437
+#define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS           0x0438
+#define TT_MS_LANGID_HINDI_INDIA                       0x0439
+#define TT_MS_LANGID_MALTESE_MALTA                     0x043a
+#define TT_MS_LANGID_SAAMI_LAPONIA                     0x043b
+#define TT_MS_LANGID_IRISH_GAELIC_IRELAND              0x043c
+#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM    0x083c
+#define TT_MS_LANGID_MALAY_MALAYSIA                    0x043e
+#define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM           0x083e
+#define TT_MS_LANGID_KAZAK_KAZAKSTAN                   0x043f
+#define TT_MS_LANGID_SWAHILI_KENYA                     0x0441
+#define TT_MS_LANGID_UZBEK_UZBEKISTAN_LATIN            0x0443
+#define TT_MS_LANGID_UZBEK_UZBEKISTAN_CYRILLIC         0x0843
+#define TT_MS_LANGID_TATAR_TATARSTAN                   0x0444
+#define TT_MS_LANGID_BENGALI_INDIA                     0x0445
+#define TT_MS_LANGID_PUNJABI_INDIA                     0x0446
+#define TT_MS_LANGID_GUJARATI_INDIA                    0x0447
+#define TT_MS_LANGID_ORIYA_INDIA                       0x0448
+#define TT_MS_LANGID_TAMIL_INDIA                       0x0449
+#define TT_MS_LANGID_TELUGU_INDIA                      0x044a
+#define TT_MS_LANGID_KANNADA_INDIA                     0x044b
+#define TT_MS_LANGID_MALAYALAM_INDIA                   0x044c
+#define TT_MS_LANGID_ASSAMESE_INDIA                    0x044d
+#define TT_MS_LANGID_MARATHI_INDIA                     0x044e
+#define TT_MS_LANGID_SANSKRIT_INDIA                    0x044f
+#define TT_MS_LANGID_KONKANI_INDIA                     0x0457
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* Possible values of the `name' identifier field in the name records of */
+  /* the TTF `name' table.  These values are platform independent.         */
+  /*                                                                       */
 #define TT_NAME_ID_COPYRIGHT            0
 #define TT_NAME_ID_FONT_FAMILY          1
 #define TT_NAME_ID_FONT_SUBFAMILY       2
@@ -425,6 +432,7 @@
 #define TT_NAME_ID_VERSION_STRING       5
 #define TT_NAME_ID_PS_NAME              6
 #define TT_NAME_ID_TRADEMARK            7
+
 /* the following values are from the OpenType spec */
 #define TT_NAME_ID_MANUFACTURER         8
 #define TT_NAME_ID_DESIGNER             9
@@ -437,221 +445,239 @@
 #define TT_NAME_ID_PREFERRED_FAMILY     16
 #define TT_NAME_ID_PREFERRED_SUBFAMILY  17
 #define TT_NAME_ID_MAC_FULL_NAME        18
+
 /* The following code is new as of 2000-01-21 */
 #define TT_NAME_ID_SAMPLE_TEXT          19
 
 
-/*
- * Bit Mask values for the Unicode Ranges from the TTF "OS2 " table.
- */
+  /*************************************************************************/
+  /*                                                                       */
+  /* Bit mask values for the Unicode Ranges from the TTF `OS2 ' table.     */
+  /*                                                                       */
+  /* Updated 02-Jul-2000.                                                  */
+  /*                                                                       */
 
-/* General Scripts Area */
+  /* General Scripts Area */
 
-/* Bit  0   C0 Controls and Basic Latin */
-#define TT_UCR_BASIC_LATIN                     (1L <<  0) /* U+0000-U+007F */
-/* Bit  1   C1 Controls and Latin-1 Supplement */
-#define TT_UCR_LATIN1_SUPPLEMENT               (1L <<  1) /* U+0080-U+00FF */
-/* Bit  2   Latin Extended-A */
+  /* Bit  0   C0 Controls and Basic Latin */
+#define TT_UCR_BASIC_LATIN                     (1L <<  0) /* U+0020-U+007E */
+  /* Bit  1   C1 Controls and Latin-1 Supplement */
+#define TT_UCR_LATIN1_SUPPLEMENT               (1L <<  1) /* U+00A0-U+00FF */
+  /* Bit  2   Latin Extended-A */
 #define TT_UCR_LATIN_EXTENDED_A                (1L <<  2) /* U+0100-U+017F */
-/* Bit  3   Latin Extended-B */
+  /* Bit  3   Latin Extended-B */
 #define TT_UCR_LATIN_EXTENDED_B                (1L <<  3) /* U+0180-U+024F */
-/* Bit  4   IPA Extensions */
+  /* Bit  4   IPA Extensions */
 #define TT_UCR_IPA_EXTENSIONS                  (1L <<  4) /* U+0250-U+02AF */
-/* Bit  5   Spacing Modifier Letters */
+  /* Bit  5   Spacing Modifier Letters */
 #define TT_UCR_SPACING_MODIFIER                (1L <<  5) /* U+02B0-U+02FF */
-/* Bit  6   Combining Diacritical Marks */
+  /* Bit  6   Combining Diacritical Marks */
 #define TT_UCR_COMBINING_DIACRITICS            (1L <<  6) /* U+0300-U+036F */
-/* Bit  7   Greek */
+  /* Bit  7   Greek */
 #define TT_UCR_GREEK                           (1L <<  7) /* U+0370-U+03FF */
-/* Bit 8 is reserved (was: Greek Symbols and Coptic) */
-/* Bit  9   Cyrillic */
+  /* Bit  8 is reserved (was: Greek Symbols and Coptic) */
+  /* Bit  9   Cyrillic */
 #define TT_UCR_CYRILLIC                        (1L <<  9) /* U+0400-U+04FF */
-/* Bit 10   Armenian */
+  /* Bit 10   Armenian */
 #define TT_UCR_ARMENIAN                        (1L << 10) /* U+0530-U+058F */
-/* Bit 11   Hebrew */
+  /* Bit 11   Hebrew */
 #define TT_UCR_HEBREW                          (1L << 11) /* U+0590-U+05FF */
-/* Bit 12 is reserved (was: Hebrew Extended) */
-/* Bit 13   Arabic */
+  /* Bit 12 is reserved (was: Hebrew Extended) */
+  /* Bit 13   Arabic */
 #define TT_UCR_ARABIC                          (1L << 13) /* U+0600-U+06FF */
-/* Bit 14 is reserved (was: Arabic Extended) */
-/* Bit 15   Devanagari */
+  /* Bit 14 is reserved (was: Arabic Extended) */
+  /* Bit 15   Devanagari */
 #define TT_UCR_DEVANAGARI                      (1L << 15) /* U+0900-U+097F */
-/* Bit 16   Bengali */
+  /* Bit 16   Bengali */
 #define TT_UCR_BENGALI                         (1L << 16) /* U+0980-U+09FF */
-/* Bit 17   Gurmukhi */
+  /* Bit 17   Gurmukhi */
 #define TT_UCR_GURMUKHI                        (1L << 17) /* U+0A00-U+0A7F */
-/* Bit 18   Gujarati */
+  /* Bit 18   Gujarati */
 #define TT_UCR_GUJARATI                        (1L << 18) /* U+0A80-U+0AFF */
-/* Bit 19   Oriya */
+  /* Bit 19   Oriya */
 #define TT_UCR_ORIYA                           (1L << 19) /* U+0B00-U+0B7F */
-/* Bit 20   Tamil */
+  /* Bit 20   Tamil */
 #define TT_UCR_TAMIL                           (1L << 20) /* U+0B80-U+0BFF */
-/* Bit 21   Telugu */
+  /* Bit 21   Telugu */
 #define TT_UCR_TELUGU                          (1L << 21) /* U+0C00-U+0C7F */
-/* Bit 22   Kannada */
+  /* Bit 22   Kannada */
 #define TT_UCR_KANNADA                         (1L << 22) /* U+0C80-U+0CFF */
-/* Bit 23   Malayalam */
+  /* Bit 23   Malayalam */
 #define TT_UCR_MALAYALAM                       (1L << 23) /* U+0D00-U+0D7F */
-/* Bit 24   Thai */
+  /* Bit 24   Thai */
 #define TT_UCR_THAI                            (1L << 24) /* U+0E00-U+0E7F */
-/* Bit 25   Lao */
+  /* Bit 25   Lao */
 #define TT_UCR_LAO                             (1L << 25) /* U+0E80-U+0EFF */
-/* Bit 26   Georgian */
+  /* Bit 26   Georgian */
 #define TT_UCR_GEORGIAN                        (1L << 26) /* U+10A0-U+10FF */
-/* Bit 27 is reserved (was Georgian Extended) */
-/* Bit 28   Hangul Jamo */
+  /* Bit 27 is reserved (was Georgian Extended) */
+  /* Bit 28   Hangul Jamo */
 #define TT_UCR_HANGUL_JAMO                     (1L << 28) /* U+1100-U+11FF */
-/* Bit 29   Latin Extended Additional */
+  /* Bit 29   Latin Extended Additional */
 #define TT_UCR_LATIN_EXTENDED_ADDITIONAL       (1L << 29) /* U+1E00-U+1EFF */
-/* Bit 30   Greek Extended */
+  /* Bit 30   Greek Extended */
 #define TT_UCR_GREEK_EXTENDED                  (1L << 30) /* U+1F00-U+1FFF */
 
-/* Symbols Area */
+  /* Symbols Area */
 
-/* Bit 31   General Punctuation */
+  /* Bit 31   General Punctuation */
 #define TT_UCR_GENERAL_PUNCTUATION             (1L << 31) /* U+2000-U+206F */
-/* Bit 32   Superscripts And Subscripts */
+  /* Bit 32   Superscripts And Subscripts */
 #define TT_UCR_SUPERSCRIPTS_SUBSCRIPTS         (1L <<  0) /* U+2070-U+209F */
-/* Bit 33   Currency Symbols */
+  /* Bit 33   Currency Symbols */
 #define TT_UCR_CURRENCY_SYMBOLS                (1L <<  1) /* U+20A0-U+20CF */
-/* Bit 34   Combining Diacritical Marks For Symbols */
+  /* Bit 34   Combining Diacritical Marks For Symbols */
 #define TT_UCR_COMBINING_DIACRITICS_SYMB       (1L <<  2) /* U+20D0-U+20FF */
-/* Bit 35   Letterlike Symbols */
+  /* Bit 35   Letterlike Symbols */
 #define TT_UCR_LETTERLIKE_SYMBOLS              (1L <<  3) /* U+2100-U+214F */
-/* Bit 36   Number Forms */
+  /* Bit 36   Number Forms */
 #define TT_UCR_NUMBER_FORMS                    (1L <<  4) /* U+2150-U+218F */
-/* Bit 37   Arrows */
+  /* Bit 37   Arrows */
 #define TT_UCR_ARROWS                          (1L <<  5) /* U+2190-U+21FF */
-/* Bit 38   Mathematical Operators */
+  /* Bit 38   Mathematical Operators */
 #define TT_UCR_MATHEMATICAL_OPERATORS          (1L <<  6) /* U+2200-U+22FF */
-/* Bit 39 Miscellaneous Technical */
+  /* Bit 39 Miscellaneous Technical */
 #define TT_UCR_MISCELLANEOUS_TECHNICAL         (1L <<  7) /* U+2300-U+23FF */
-/* Bit 40   Control Pictures */
+  /* Bit 40   Control Pictures */
 #define TT_UCR_CONTROL_PICTURES                (1L <<  8) /* U+2400-U+243F */
-/* Bit 41   Optical Character Recognition */
+  /* Bit 41   Optical Character Recognition */
 #define TT_UCR_OCR                             (1L <<  9) /* U+2440-U+245F */
-/* Bit 42   Enclosed Alphanumerics */
+  /* Bit 42   Enclosed Alphanumerics */
 #define TT_UCR_ENCLOSED_ALPHANUMERICS          (1L << 10) /* U+2460-U+24FF */
-/* Bit 43   Box Drawing */
+  /* Bit 43   Box Drawing */
 #define TT_UCR_BOX_DRAWING                     (1L << 11) /* U+2500-U+257F */
-/* Bit 44   Block Elements */
+  /* Bit 44   Block Elements */
 #define TT_UCR_BLOCK_ELEMENTS                  (1L << 12) /* U+2580-U+259F */
-/* Bit 45   Geometric Shapes */
+  /* Bit 45   Geometric Shapes */
 #define TT_UCR_GEOMETRIC_SHAPES                (1L << 13) /* U+25A0-U+25FF */
-/* Bit 46   Miscellaneous Symbols */
+  /* Bit 46   Miscellaneous Symbols */
 #define TT_UCR_MISCELLANEOUS_SYMBOLS           (1L << 14) /* U+2600-U+26FF */
-/* Bit 47   Dingbats */
+  /* Bit 47   Dingbats */
 #define TT_UCR_DINGBATS                        (1L << 15) /* U+2700-U+27BF */
 
-/* CJK Phonetics and Symbols Area */
+  /* CJK Phonetics and Symbols Area */
 
-/* Bit 48   CJK Symbols And Punctuation */
+  /* Bit 48   CJK Symbols And Punctuation */
 #define TT_UCR_CJK_SYMBOLS                     (1L << 16) /* U+3000-U+303F */
-/* Bit 49   Hiragana */
+  /* Bit 49   Hiragana */
 #define TT_UCR_HIRAGANA                        (1L << 17) /* U+3040-U+309F */
-/* Bit 50   Katakana */
+  /* Bit 50   Katakana */
 #define TT_UCR_KATAKANA                        (1L << 18) /* U+30A0-U+30FF */
-/* Bit 51   Bopomofo */
+  /* Bit 51   Bopomofo + Extended Bopomofo */
 #define TT_UCR_BOPOMOFO                        (1L << 19) /* U+3100-U+312F */
-/* Bit 52   Hangul Compatibility Jamo */
+                                                          /* U+31A0-U+31BF */
+  /* Bit 52   Hangul Compatibility Jamo */
 #define TT_UCR_HANGUL_COMPATIBILITY_JAMO       (1L << 20) /* U+3130-U+318F */
-/* Bit 53   CJK Miscellaneous */
+  /* Bit 53   CJK Miscellaneous */
 #define TT_UCR_CJK_MISC                        (1L << 21) /* U+3190-U+319F */
-/* Bit 54   Enclosed CJK Letters And Months */
+  /* Bit 54   Enclosed CJK Letters And Months */
 #define TT_UCR_ENCLOSED_CJK_LETTERS_MONTHS     (1L << 22) /* U+3200-U+32FF */
-/* Bit 55   CJK Compatibility */
+  /* Bit 55   CJK Compatibility */
 #define TT_UCR_CJK_COMPATIBILITY               (1L << 23) /* U+3300-U+33FF */
 
-/* Hangul Syllables Area */
+  /* Hangul Syllables Area */
 
-/* Bit 56   Hangul */
+  /* Bit 56   Hangul */
 #define TT_UCR_HANGUL                          (1L << 24) /* U+AC00-U+D7A3 */
 
-/* Surrogates Area */
+  /* Surrogates Area */
 
-/* Bit 57   Surrogates */
+  /* Bit 57   Surrogates */
 #define TT_UCR_SURROGATES                      (1L << 25) /* U+D800-U+DFFF */
-/* Bit 58 is reserved for Unicode SubRanges */
+  /* Bit 58 is reserved for Unicode SubRanges */
 
-/* CJK Ideographs Area */
+  /* CJK Ideographs Area */
 
-/* Bit 59   CJK Unified Ideographs */
+  /* Bit 59   CJK Unified Ideographs             + */
+  /*          CJK Radical Supplement             + */
+  /*          Kangxi Radicals                    + */
+  /*          Ideographic Description            + */
+  /*          CJK Unified Ideographs Extension A   */
 #define TT_UCR_CJK_UNIFIED_IDEOGRAPHS          (1L << 27) /* U+4E00-U+9FFF */
+                                                          /* U+2E80-U+2EFF */
+                                                          /* U+2F00-U+2FDF */
+                                                          /* U+2FF0-U+2FFF */
+                                                          /* U+34E0-U+4DB5 */
 
-/* Private Use Area */
+  /* Private Use Area */
 
-/* Bit 60   Private Use */
+  /* Bit 60   Private Use */
 #define TT_UCR_PRIVATE_USE                     (1L << 28) /* U+E000-U+F8FF */
 
-/* Compatibility Area and Specials */
+  /* Compatibility Area and Specials */
 
-/* Bit 61   CJK Compatibility Ideographs */
+  /* Bit 61   CJK Compatibility Ideographs */
 #define TT_UCR_CJK_COMPATIBILITY_IDEOGRAPHS    (1L << 29) /* U+F900-U+FAFF */
-/* Bit 62   Alphabetic Presentation Forms */
+  /* Bit 62   Alphabetic Presentation Forms */
 #define TT_UCR_ALPHABETIC_PRESENTATION_FORMS   (1L << 30) /* U+FB00-U+FB4F */
-/* Bit 63   Arabic Presentation Forms-A */
-#define TT_UCR_ARABIC_PRESENTATIONS_A          (1L << 31) /* U+FB50-U+FSFF */
-/* Bit 64   Combining Half Marks */
+  /* Bit 63   Arabic Presentation Forms-A */
+#define TT_UCR_ARABIC_PRESENTATIONS_A          (1L << 31) /* U+FB50-U+FDFF */
+  /* Bit 64   Combining Half Marks */
 #define TT_UCR_COMBINING_HALF_MARKS            (1L <<  0) /* U+FE20-U+FE2F */
-/* Bit 65   CJK Compatibility Forms */
+  /* Bit 65   CJK Compatibility Forms */
 #define TT_UCR_CJK_COMPATIBILITY_FORMS         (1L <<  1) /* U+FE30-U+FE4F */
-/* Bit 66   Small Form Variants */
+  /* Bit 66   Small Form Variants */
 #define TT_UCR_SMALL_FORM_VARIANTS             (1L <<  2) /* U+FE50-U+FE6F */
-/* Bit 67   Arabic Presentation Forms-B */
-#define TT_UCR_ARABIC_PRESENTATIONS_B          (1L <<  3) /* U+FE70-U+FEFF */
-/* Bit 68   Halfwidth And Fullwidth Forms */
+  /* Bit 67   Arabic Presentation Forms-B */
+#define TT_UCR_ARABIC_PRESENTATIONS_B          (1L <<  3) /* U+FE70-U+FEFE */
+  /* Bit 68   Halfwidth And Fullwidth Forms */
 #define TT_UCR_HALFWIDTH_FULLWIDTH_FORMS       (1L <<  4) /* U+FF00-U+FFEF */
-/* Bit 69   Specials */
-#define TT_UCR_SPECIALS                        (1L <<  5) /* U+FEFF,
-                                                             U+FFF0-U+FFFF */
-/* Bit 70   Tibetan */
-#define TT_UCR_TIBETAN                         (1L <<  6) /* U+0F00-U+0FBF */
-/* Bit 71   Syriac */
+  /* Bit 69   Specials */
+#define TT_UCR_SPECIALS                        (1L <<  5) /* U+FFF0-U+FFFD */
+  /* Bit 70   Tibetan */
+#define TT_UCR_TIBETAN                         (1L <<  6) /* U+0F00-U+0FCF */
+  /* Bit 71   Syriac */
 #define TT_UCR_SYRIAC                          (1L <<  7) /* U+0700-U+074F */
-/* Bit 72   Thaana */
+  /* Bit 72   Thaana */
 #define TT_UCR_THAANA                          (1L <<  8) /* U+0780-U+07BF */
-/* Bit 73   Sinhala */
+  /* Bit 73   Sinhala */
 #define TT_UCR_SINHALA                         (1L <<  9) /* U+0D80-U+0DFF */
-/* Bit 74   Myanmar */
+  /* Bit 74   Myanmar */
 #define TT_UCR_MYANMAR                         (1L << 10) /* U+1000-U+109F */
-/* Bit 75   Ethiopic */
+  /* Bit 75   Ethiopic */
 #define TT_UCR_ETHIOPIC                        (1L << 11) /* U+1200-U+12BF */
-/* Bit 76   Cherokee */
+  /* Bit 76   Cherokee */
 #define TT_UCR_CHEROKEE                        (1L << 12) /* U+13A0-U+13FF */
-/* Bit 77   Canadian Aboriginal Syllabics */
+  /* Bit 77   Canadian Aboriginal Syllabics */
 #define TT_UCR_CANADIAN_ABORIGINAL_SYLLABICS   (1L << 13) /* U+1400-U+14DF */
-/* Bit 78   Ogham */
+  /* Bit 78   Ogham */
 #define TT_UCR_OGHAM                           (1L << 14) /* U+1680-U+169F */
-/* Bit 79   Runic */
+  /* Bit 79   Runic */
 #define TT_UCR_RUNIC                           (1L << 15) /* U+16A0-U+16FF */
-/* Bit 80   Khmer */
+  /* Bit 80   Khmer */
 #define TT_UCR_KHMER                           (1L << 16) /* U+1780-U+17FF */
-/* Bit 81   Mongolian */
+  /* Bit 81   Mongolian */
 #define TT_UCR_MONGOLIAN                       (1L << 17) /* U+1800-U+18AF */
-/* Bit 82   Braille */
+  /* Bit 82   Braille */
 #define TT_UCR_BRAILLE                         (1L << 18) /* U+2800-U+28FF */
-/* Bit 83   Yi */
-#define TT_UCR_YI                              (1L << 19) /* U+A000-U+A4CF */
+  /* Bit 83   Yi + Yi Radicals */
+#define TT_UCR_YI                              (1L << 19) /* U+A000-U+A48C */
+                                                          /* U+A490-U+A4CF */
 
 
-/* Some compilers have a very limited length of identifiers. */
+  /*************************************************************************/
+  /*                                                                       */
+  /* Some compilers have a very limited length of identifiers.             */
+  /*                                                                       */
 #if defined( __TURBOC__ ) && __TURBOC__ < 0x0410 || defined( __PACIFIC__ )
 #define HAVE_LIMIT_ON_IDENTS
 #endif
 
+
 #ifndef HAVE_LIMIT_ON_IDENTS
 
-/*
- *  Here some alias #defines in order to be clearer.
- *
- *  These are not always #defined to stay within the 31 character limit
- *  which some compilers have.
- *
- *  Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern
- *  Borland compilers (read: from BC++ 3.1 on) can increase this limit.
- *  If you get a warning with such a compiler, use the -i40 switch.
- */
 
+  /*************************************************************************/
+  /*                                                                       */
+  /* Here some alias #defines in order to be clearer.                      */
+  /*                                                                       */
+  /* These are not always #defined to stay within the 31 character limit   */
+  /* which some compilers have.                                            */
+  /*                                                                       */
+  /* Credits go to Dave Hoo <dhoo@flash.net> for pointing out that modern  */
+  /* Borland compilers (read: from BC++ 3.1 on) can increase this limit.   */
+  /* If you get a warning with such a compiler, use the -i40 switch.       */
+  /*                                                                       */
 #define TT_UCR_ARABIC_PRESENTATION_FORMS_A      \
          TT_UCR_ARABIC_PRESENTATIONS_A
 #define TT_UCR_ARABIC_PRESENTATION_FORMS_B      \
@@ -662,7 +688,9 @@
 #define TT_UCR_COMBINING_DIACRITICAL_MARKS_SYMB \
          TT_UCR_COMBINING_DIACRITICS_SYMB
 
-#endif /* ndef HAVE_LIMIT_ON_IDENTS */
+
+#endif /* !HAVE_LIMIT_ON_IDENTS */
+
 
 #endif /* TTNAMEID_H */
 
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index b42be17..b2be577 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -2502,7 +2502,7 @@
   /*                                                                       */
   /*    num_params :: The number of additional parameters.                 */
   /*                                                                       */
-  /*    params     :: Additional parameters.                               */
+  /*    parameters :: Additional parameters.                               */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index 401a504..20292d0 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -530,7 +530,6 @@
   }
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */