Commit b48a6094b2e7b82eae118549571028c50e0d4ca8

Werner Lemberg 2000-07-09T19:15:30

Formatting. Moving some internal structures and constants from freetype.h to ftobjs.h. Finally removing FT_LOAD_ANTI_ALIAS. Cleaning up all error codes. Only the used ones have survived :-) Removed unused FT_MAX_GLYPH_FORMATS constant. T2 error codes are now in the range 0x500-0x5FF (instead of `TrueDoc'). Some minor improvements of error return values. Finally fixing error code values in ftraster and ftgrays to be compliant with all other FT error codes.

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
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
index 2098816..41647d3 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -273,16 +273,6 @@
 
 
   /*************************************************************************/
-  /*                                                                       */
-  /*    FT_MAX_GLYPH_FORMATS                                               */
-  /*                                                                       */
-  /*    The maximum number of glyph image formats that might be registered */
-  /*    in a given library instance. 8 seems to be a good choice due to    */
-  /*    the relatively low number of current formats ;-)                   */
-  /*                                                                       */
-#define FT_MAX_GLYPH_FORMATS  8
-
-  /*************************************************************************/
   /*************************************************************************/
   /****                                                                 ****/
   /****        S F N T   D R I V E R    C O N F I G U R A T I O N       ****/
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index e2d060f..6b86a9c 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -7,17 +7,19 @@
 /*  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 FREETYPE_H
 #define FREETYPE_H
 
+
   /*************************************************************************/
   /*                                                                       */
   /* The `raster' component duplicates some of the declarations in         */
@@ -30,10 +32,7 @@
   /*                                                                       */
   /* The FREETYPE_MAJOR and FREETYPE_MINOR macros are used to version the  */
   /* new FreeType design, which is able to host several kinds of font      */
-  /* drivers.  It starts at 2.0.  Note that each driver has its own        */
-  /* version number (for example, the TrueType driver is at 1.2, as        */
-  /* defined by the macros TT_FREETYPE_MAJOR and TT_FREETYPE_MINOR in the  */
-  /* file `ttlib/truetype.h'.                                              */
+  /* drivers.  It starts at 2.0.                                           */
   /*                                                                       */
 #define FREETYPE_MAJOR 2
 #define FREETYPE_MINOR 0
@@ -43,6 +42,7 @@
 #include <freetype/fterrors.h>
 #include <freetype/fttypes.h>
 
+
 #ifdef __cplusplus
   extern "C" {
 #endif
@@ -69,14 +69,19 @@
   /*                                                                       */
   /* <Fields>                                                              */
   /*    width        :: The glyph's width.                                 */
+  /*                                                                       */
   /*    height       :: The glyph's height.                                */
   /*                                                                       */
   /*    horiBearingX :: Horizontal left side bearing.                      */
+  /*                                                                       */
   /*    horiBearingY :: Horizontal top side bearing.                       */
+  /*                                                                       */
   /*    horiAdvance  :: Horizontal advance width.                          */
   /*                                                                       */
   /*    vertBearingX :: Vertical left side bearing.                        */
+  /*                                                                       */
   /*    vertBearingY :: Vertical top side bearing.                         */
+  /*                                                                       */
   /*    vertAdvance  :: Vertical advance height.                           */
   /*                                                                       */
   typedef struct  FT_Glyph_Metrics_
@@ -106,7 +111,7 @@
   /*    details of usage.                                                  */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    The address of the FreeType object which is under finalisation.    */
+  /*    The address of the FreeType object which is under finalization.    */
   /*    Its client data is accessed through its `generic' field.           */
   /*                                                                       */
   typedef void  (*FT_Generic_Finalizer)(void*  object);
@@ -161,6 +166,7 @@
   /*                                                                       */
   /* <Fields>                                                              */
   /*    height :: The character height in pixels.                          */
+  /*                                                                       */
   /*    width  :: The character width in pixels.                           */
   /*                                                                       */
   typedef struct  FT_Bitmap_Size_
@@ -204,9 +210,9 @@
   /*    FT_Module                                                          */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A handle to a given FreeType module object. Each module can be     */
-  /*    a font driver, a renderer, or anything else that provides services */
-  /*    to the formers..                                                   */
+  /*    A handle to a given FreeType module object.  Each module can be a  */
+  /*    font driver, a renderer, or anything else that provides services   */
+  /*    to the formers.                                                    */
   /*                                                                       */
   typedef struct FT_ModuleRec_*  FT_Module;
 
@@ -227,22 +233,20 @@
   typedef struct FT_DriverRec_*  FT_Driver;
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
   /*    FT_Renderer                                                        */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A handle to a given FreeType renderer. A renderer is in charge     */
-  /*    of converting a glyph image to a bitmap, when necessary. Each      */
+  /*    A handle to a given FreeType renderer.  A renderer is in charge of */
+  /*    converting a glyph image to a bitmap, when necessary.  Each        */
   /*    supports a given glyph image format, and one or more target        */
-  /*    surface depths..                                                   */
+  /*    surface depths.                                                    */
   /*                                                                       */
   typedef struct FT_RendererRec_*  FT_Renderer;
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
@@ -324,25 +328,26 @@
   typedef enum  FT_Encoding_
   {
     ft_encoding_none    = 0,
-    ft_encoding_symbol  = FT_MAKE_TAG('s','y','m','b'),
-    ft_encoding_unicode = FT_MAKE_TAG('u','n','i','c'),
-    ft_encoding_latin_2 = FT_MAKE_TAG('l','a','t','2'),
-    ft_encoding_sjis    = FT_MAKE_TAG('s','j','i','s'),
-    ft_encoding_gb2312  = FT_MAKE_TAG('g','b',' ',' '),
-    ft_encoding_big5    = FT_MAKE_TAG('b','i','g','5'),
-    ft_encoding_wansung = FT_MAKE_TAG('w','a','n','s'),
-    ft_encoding_johab   = FT_MAKE_TAG('j','o','h','a'),
+    ft_encoding_symbol  = FT_MAKE_TAG( 's', 'y', 'm', 'b' ),
+    ft_encoding_unicode = FT_MAKE_TAG( 'u', 'n', 'i', 'c' ),
+    ft_encoding_latin_2 = FT_MAKE_TAG( 'l', 'a', 't', '2' ),
+    ft_encoding_sjis    = FT_MAKE_TAG( 's', 'j', 'i', 's' ),
+    ft_encoding_gb2312  = FT_MAKE_TAG( 'g', 'b', ' ', ' ' ),
+    ft_encoding_big5    = FT_MAKE_TAG( 'b', 'i', 'g', '5' ),
+    ft_encoding_wansung = FT_MAKE_TAG( 'w', 'a', 'n', 's' ),
+    ft_encoding_johab   = FT_MAKE_TAG( 'j', 'o', 'h', 'a' ),
 
-    ft_encoding_adobe_standard = FT_MAKE_TAG('A','D','O','B'),
-    ft_encoding_adobe_expert   = FT_MAKE_TAG('A','D','B','E'),
-    ft_encoding_adobe_custom   = FT_MAKE_TAG('A','D','B','C'),
+    ft_encoding_adobe_standard = FT_MAKE_TAG( 'A', 'D', 'O', 'B' ),
+    ft_encoding_adobe_expert   = FT_MAKE_TAG( 'A', 'D', 'B', 'E' ),
+    ft_encoding_adobe_custom   = FT_MAKE_TAG( 'A', 'D', 'B', 'C' ),
 
-    ft_encoding_apple_roman    = FT_MAKE_TAG('a','r','m','n')
+    ft_encoding_apple_roman    = FT_MAKE_TAG( 'a', 'r', 'm', 'n' )
 
     /* other encodings might be defined in the future */
 
   } FT_Encoding;
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Struct>                                                              */
@@ -381,9 +386,6 @@
   } FT_CharMapRec;
 
 
-
-
-
   /*************************************************************************/
   /*************************************************************************/
   /*                                                                       */
@@ -392,8 +394,6 @@
   /*************************************************************************/
   /*************************************************************************/
 
-
-
   /*************************************************************************/
   /*                                                                       */
   /*                       FreeType base face class                        */
@@ -571,17 +571,17 @@
   /*                           this should be set to 0.  Only relevant for */
   /*                           scalable formats.                           */
   /*                                                                       */
-  /*    transform_matrix    :: a 2x2 matrix of 16.16 coefficients used     */
-  /*                           to transform glyph outlines after they're   */
-  /*                           loaded from the font. Only used by the      */
+  /*    transform_matrix    :: A 2x2 matrix of 16.16 coefficients used     */
+  /*                           to transform glyph outlines after they are  */
+  /*                           loaded from the font.  Only used by the     */
   /*                           convenience functions.                      */
   /*                                                                       */
-  /*    transform_delta     :: a translation vector used to transform      */
-  /*                           glyph outlines after they're loaded from    */
-  /*                           the font. Only used by the convenience      */
+  /*    transform_delta     :: A translation vector used to transform      */
+  /*                           glyph outlines after they are loaded from   */
+  /*                           the font.  Only used by the convenience     */
   /*                           functions.                                  */
   /*                                                                       */
-  /*    transform_flags     :: some flags used to classify the transform.  */
+  /*    transform_flags     :: Some flags used to classify the transform.  */
   /*                           Only used by the convenience functions.     */
   /*                                                                       */
   typedef struct  FT_FaceRec_
@@ -625,7 +625,7 @@
 
     /************************************************************/
     /* The following fields should be considered private and    */
-    /* rarely, if ever, used driectly by client applications..  */
+    /* rarely, if ever, used directly by client applications.   */
 
     FT_Driver        driver;
     FT_Memory        memory;
@@ -664,13 +664,15 @@
   /*************************************************************************/
   /*                                                                       */
   /* <Constant>                                                            */
-  /*    FT_FACE_FLAG_FIXED_WIDTH                                           */
+  /*    FT_FACE_FLAG_FIXED_SIZES                                           */
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that a given face contains  */
-  /*    fixed-width characters (like Courier, Lucida, MonoType, etc..)     */
+  /*    `fixed sizes', i.e., bitmap strikes for some given pixel sizes.    */
+  /*    See the `num_fixed_sizes' and `available_sizes' face properties    */
+  /*    for more information.                                              */
   /*                                                                       */
-#define FT_FACE_FLAG_FIXED_WIDTH  4
+#define FT_FACE_FLAG_FIXED_SIZES  2
 
 
   /*************************************************************************/
@@ -680,11 +682,9 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that a given face contains  */
-  /*    `fixed sizes', i.e., bitmap strikes for some given pixel sizes.    */
-  /*    See the `num_fixed_sizes' and `available_sizes' face properties    */
-  /*    for more information.                                              */
+  /*    fixed-width characters (like Courier, Lucida, MonoType, etc.).     */
   /*                                                                       */
-#define FT_FACE_FLAG_FIXED_SIZES  2
+#define FT_FACE_FLAG_FIXED_WIDTH  4
 
 
   /*************************************************************************/
@@ -707,7 +707,7 @@
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that a given face contains  */
   /*    horizontal glyph metrics.  This should be set for all common       */
-  /*    formats, but who knows...                                          */
+  /*    formats, but who knows.                                            */
   /*                                                                       */
 #define FT_FACE_FLAG_HORIZONTAL  0x10
 
@@ -756,6 +756,7 @@
   /*                                                                       */
 #define FT_FACE_FLAG_FAST_GLYPHS  0x80
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Constant>                                                            */
@@ -763,7 +764,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used to indicate that the font contains      */
-  /*    multiple masters and is capable of interpolating between them..    */
+  /*    multiple masters and is capable of interpolating between them.     */
   /*                                                                       */
 #define FT_FACE_FLAG_MULTIPLE_MASTERS  0x100
 
@@ -776,22 +777,31 @@
   /* <Description>                                                         */
   /*    This bit field is used internally by FreeType to indicate that     */
   /*    a face's stream was provided by the client application and should  */
-  /*    not be destroyed by FT_Done_Face                                   */
+  /*    not be destroyed by FT_Done_Face().                                */
   /*                                                                       */
 #define FT_FACE_FLAG_EXTERNAL_STREAM   0x4000
 
 
-#define FT_HAS_HORIZONTAL(face)  (face->face_flags & FT_FACE_FLAG_HORIZONTAL)
-#define FT_HAS_VERTICAL(face)    (face->face_flags & FT_FACE_FLAG_VERTICAL)
-#define FT_HAS_KERNING(face)     (face->face_flags & FT_FACE_FLAG_KERNING)
-#define FT_IS_SCALABLE(face)     (face->face_flags & FT_FACE_FLAG_SCALABLE)
-#define FT_IS_SFNT(face)         (face->face_flags & FT_FACE_FLAG_SFNT)
-#define FT_IS_FIXED_WIDTH(face)  (face->face_flags & FT_FACE_FLAG_FIXED_WIDTH)
-#define FT_HAS_FIXED_SIZES(face) (face->face_flags & FT_FACE_FLAG_FIXED_SIZES)
-#define FT_HAS_FAST_GLYPHS(face) (face->face_flags & FT_FACE_FLAG_FAST_GLYPHS)
+#define FT_HAS_HORIZONTAL( face ) \
+          ( face->face_flags & FT_FACE_FLAG_HORIZONTAL )
+#define FT_HAS_VERTICAL( face ) \
+          ( face->face_flags & FT_FACE_FLAG_VERTICAL )
+#define FT_HAS_KERNING( face ) \
+          ( face->face_flags & FT_FACE_FLAG_KERNING )
+#define FT_IS_SCALABLE( face ) \
+          ( face->face_flags & FT_FACE_FLAG_SCALABLE )
+#define FT_IS_SFNT( face ) \
+          ( face->face_flags & FT_FACE_FLAG_SFNT )
+#define FT_IS_FIXED_WIDTH( face ) \
+          ( face->face_flags & FT_FACE_FLAG_FIXED_WIDTH )
+#define FT_HAS_FIXED_SIZES( face ) \
+          ( face->face_flags & FT_FACE_FLAG_FIXED_SIZES )
+#define FT_HAS_FAST_GLYPHS( face ) \
+          ( face->face_flags & FT_FACE_FLAG_FAST_GLYPHS )
+
+#define FT_HAS_MULTIPLE_MASTERS( face ) \
+          ( face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS )
 
-#define FT_HAS_MULTIPLE_MASTERS(face) \
-          (face->face_flags & FT_FACE_FLAG_MULTIPLE_MASTERS)
 
   /*************************************************************************/
   /*                                                                       */
@@ -817,7 +827,6 @@
 #define FT_STYLE_FLAG_BOLD  2
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /*                    FreeType base size metrics                         */
@@ -869,17 +878,18 @@
   /*                    fixed point pixels.  Always positive.              */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The values of "ascender", "descender" and "height" are only the    */
-  /*    scaled versions of "face->ascender", "face->descender" and         */
-  /*    "face->height".                                                    */
+  /*    The values of `ascender', `descender', and `height' are only the   */
+  /*    scaled versions of `face->ascender', `face->descender', and        */
+  /*    `face->height'.                                                    */
   /*                                                                       */
   /*    Unfortunately, due to glyph hinting, these values might not be     */
   /*    exact for certain fonts, they thus must be treated as unreliable   */
-  /*    with an error margin of at least one pixel !!                      */
+  /*    with an error margin of at least one pixel!                        */
   /*                                                                       */
   /*    Indeed, the only way to get the exact pixel ascender and descender */
-  /*    is to render _all_ glyphs. As this would be a definite performance */
-  /*    hit, it's up to client applications to perform such computations.. */
+  /*    is to render _all_ glyphs.  As this would be a definite            */
+  /*    performance hit, it is up to client applications to perform such   */
+  /*    computations.                                                      */
   /*                                                                       */
   typedef struct  FT_Size_Metrics_
   {
@@ -927,45 +937,36 @@
   } FT_SizeRec;
 
 
-
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    FT_SubGlyph                                                        */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    The subglyph structure is an internal object used to describe      */
+  /*    subglyphs (for example, in the case of composites).                */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    The subglyph implementation is not part of the high-level API,     */
+  /*    hence the forward structure declaration.                           */
+  /*                                                                       */
   typedef struct FT_SubGlyph_  FT_SubGlyph;
 
-  struct FT_SubGlyph_
-  {
-    FT_Int        index;
-    FT_UShort     flags;
-    FT_Int        arg1;
-    FT_Int        arg2;
-    FT_Matrix     transform;
-  };
-
-
-#define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS            1
-#define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES        2
-#define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID          4
-#define FT_SUBGLYPH_FLAG_SCALE                     8
-#define FT_SUBGLYPH_FLAG_XY_SCALE               0x40
-#define FT_SUBGLYPH_FLAG_2X2                    0x80
-#define FT_SUBGLYPH_FLAG_USE_MY_METRICS        0x200
-
-
- /**********************************************************************
-  *
-  *  <Struct>
-  *     FT_Glyph_Loader
-  *
-  *  <Description>
-  *     The glyph loader is an internal object used to load several
-  *     glyphs together (for example, in the case of composites)
-  *
-  *  <Note>
-  *     the glyph loader implementation is not part of the high-level
-  *     API, hence the forward structure declaration;
-  *
-  *
-  *********************************************************************/
-  
-  typedef struct FT_GlyphLoader_    FT_GlyphLoader;
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    FT_GlyphLoader                                                     */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    The glyph loader is an internal object used to load several glyphs */
+  /*    together (for example, in the case of composites).                 */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    The glyph loader implementation is not part of the high-level API, */
+  /*    hence the forward structure declaration.                           */
+  /*                                                                       */
+  typedef struct FT_GlyphLoader_  FT_GlyphLoader;
 
   
   /*************************************************************************/
@@ -976,33 +977,35 @@
   /*    FT_GlyphSlotRec                                                    */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    FreeType root glyph slot class structure. A glyph slot is a        */
+  /*    FreeType root glyph slot class structure.  A glyph slot is a       */
   /*    container where individual glyphs can be loaded, be they           */
-  /*    vectorial or bitmap/graymaps..                                     */
+  /*    vectorial or bitmap/graymaps.                                      */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    library  :: a handle to the FreeType library instance this slot    */
-  /*                belongs to.                                            */
+  /*    library           :: A handle to the FreeType library instance     */
+  /*                         this slot belongs to.                         */
   /*                                                                       */
-  /*    face     :: A handle to the parent face object.                    */
+  /*    face              :: A handle to the parent face object.           */
   /*                                                                       */
-  /*    next     :: In some cases (like some font tools), several glyph    */
-  /*                slots per face object can be a good thing.  As this is */
-  /*                rare, the glyph slots are listed through a direct,     */
-  /*                single-linked list using its `next' field.             */
+  /*    next              :: In some cases (like some font tools), several */
+  /*                         glyph slots per face object can be a good     */
+  /*                         thing.  As this is rare, the glyph slots are  */
+  /*                         listed through a direct, single-linked list   */
+  /*                         using its `next' field.                       */
   /*                                                                       */
-  /*    generic  :: A typeless pointer which is unused by the FreeType     */
-  /*                library or any of its drivers.  It can be used by      */
-  /*                client applications to link their own data to each     */
-  /*                size object.                                           */
+  /*    generic           :: A typeless pointer which is unused by the     */
+  /*                         FreeType library or any of its drivers.  It   */
+  /*                         can be used by client applications to link    */
+  /*                         their own data to each size object.           */
   /*                                                                       */
-  /*    metrics  :: The metrics of the last loaded glyph in the slot.  The */
-  /*                returned values depend on the last load flags (see the */
-  /*                FT_Load_Glyph() API function) and can be expressed     */
-  /*                either in 26.6 fractional pixels or font units.        */
+  /*    metrics           :: The metrics of the last loaded glyph in the   */
+  /*                         slot.  The returned values depend on the last */
+  /*                         load flags (see the FT_Load_Glyph() API       */
+  /*                         function) and can be expressed either in 26.6 */
+  /*                         fractional pixels or font units.              */
   /*                                                                       */
-  /*                Note that even when the glyph image is transformed,    */
-  /*                the metrics aren't..                                   */
+  /*                         Note that even when the glyph image is        */
+  /*                         transformed, the metrics are not.             */
   /*                                                                       */
   /*    linearHoriAdvance :: For scalable formats only, this field holds   */
   /*                         the linearly scaled horizontal advance width  */
@@ -1018,86 +1021,84 @@
   /*                                                                       */
   /*    linearVertAdvance :: For scalable formats only, this field holds   */
   /*                         the linearly scaled vertical advance height   */
-  /*                         for the glyph. See linearHoriAdvance for      */
+  /*                         for the glyph.  See linearHoriAdvance for     */
   /*                         comments.                                     */
   /*                                                                       */
-  /*    advance  :: this is the transformed advance width for the glyph    */
-  /*                                                                       */
-  /*    format   :: this field indicates the format of the image           */
-  /*                contained in the glyph slot. Typically                 */
-  /*                ft_glyph_format_bitmap, ft_glyph_format_outline        */
-  /*                & ft_glyph_format_composite, but others are possible   */
-  /*                                                                       */
-  /*    bitmap   :: this field is used as a bitmap descriptor when the     */
-  /*                slot format is ft_glyph_format_bitmap. Note that       */
-  /*                the address and content of the bitmap buffer can       */
-  /*                change between calls of FT_Load_Glyph and a few        */
-  /*                other functions.                                       */
-  /*                                                                       */
-  /*    bitmap_left  :: this is the bitmap's left bearing expressed in     */
-  /*                    integer pixels. Of course, this is only valid      */
-  /*                    when the format is ft_glyph_format_bitmap          */
-  /*                                                                       */
-  /*    bitmap_top   :: this is the bitmap's top bearing expressed in      */
-  /*                    integer pixels. Remember that this is the          */
-  /*                    distance from the baseline to the top-most         */
-  /*                    glyph scanline, upwards y coordinates being        */
-  /*                    *positive*                                         */
-  /*                                                                       */
-  /*    outline  :: The outline descriptor for the current glyph image     */
-  /*                when it's format is ft_glyph_bitmap_outline.           */
-  /*                                                                       */
-  /*    num_subglyphs :: the number of subglyphs in a composite glyph.     */
-  /*                     this format is only valid for the composite       */
-  /*                     glyph format, that should normally only be        */
-  /*                     loaded with the FT_LOAD_NO_RECURSE flag..         */
-  /*                                                                       */
-  /*    subglyphs     :: an array of subglyph descriptors for composite    */
-  /*                     glyphs. There are 'num_subglyphs' elements in     */
-  /*                     in there..                                        */
-  /*                                                                       */
-  /*    control_data  :: certain font drivers can also return the control  */
-  /*                     data for a given glyph image (e.g. TrueType       */
-  /*                     bytecode, Type 1 charstrings, etc..). This field  */
-  /*                     is a pointer to such data..                       */
-  /*                                                                       */
-  /*    control_len   :: this is the length in bytes of the control data   */
-  /*                                                                       */
-  /*    other         :: really wicked format can use this pointer to      */
-  /*                     present their own glyph image to client apps.     */
-  /*                     Note that the app will need to know about the     */
-  /*                     image format,                                     */
-  /*                                                                       */
-  /*    loader        :: this is a private object for the glyph slot. Do   */
-  /*                     not touch this..                                  */
+  /*    advance           :: This is the transformed advance width for the */
+  /*                         glyph.                                        */
+  /*                                                                       */
+  /*    format            :: This field indicates the format of the image  */
+  /*                         contained in the glyph slot.  Typically       */
+  /*                         ft_glyph_format_bitmap,                       */
+  /*                         ft_glyph_format_outline, and                  */
+  /*                         ft_glyph_format_composite, but others are     */
+  /*                         possible.                                     */
+  /*                                                                       */
+  /*    bitmap            :: This field is used as a bitmap descriptor     */
+  /*                         when the slot format is                       */
+  /*                         ft_glyph_format_bitmap.  Note that the        */
+  /*                         address and content of the bitmap buffer can  */
+  /*                         change between calls of FT_Load_Glyph() and a */
+  /*                         few other functions.                          */
+  /*                                                                       */
+  /*    bitmap_left       :: This is the bitmap's left bearing expressed   */
+  /*                         in integer pixels.  Of course, this is only   */
+  /*                         valid if the format is                        */
+  /*                         ft_glyph_format_bitmap.                       */
+  /*                                                                       */
+  /*    bitmap_top        :: This is the bitmap's top bearing expressed in */
+  /*                         integer pixels.  Remember that this is the    */
+  /*                         distance from the baseline to the top-most    */
+  /*                         glyph scanline, upwards y-coordinates being   */
+  /*                         *positive*.                                   */
+  /*                                                                       */
+  /*    outline           :: The outline descriptor for the current glyph  */
+  /*                         image if its format is                        */
+  /*                         ft_glyph_bitmap_outline.                      */
+  /*                                                                       */
+  /*    num_subglyphs     :: The number of subglyphs in a composite glyph. */
+  /*                         This format is only valid for the composite   */
+  /*                         glyph format, that should normally only be    */
+  /*                         loaded with the FT_LOAD_NO_RECURSE flag.      */
+  /*                                                                       */
+  /*    subglyphs         :: An array of subglyph descriptors for          */
+  /*                         composite glyphs.  There are `num_subglyphs'  */
+  /*                         elements in there.                            */
+  /*                                                                       */
+  /*    control_data      :: Certain font drivers can also return the      */
+  /*                         control data for a given glyph image (e.g.    */
+  /*                         TrueType bytecode, Type 1 charstrings, etc.). */
+  /*                         This field is a pointer to such data.         */
+  /*                                                                       */
+  /*    control_len       :: This is the length in bytes of the control    */
+  /*                         data.                                         */
+  /*                                                                       */
+  /*    other             :: Really wicked formats can use this pointer to */
+  /*                         present their own glyph image to client apps. */
+  /*                         Note that the app will need to know about the */
+  /*                         image format.                                 */
+  /*                                                                       */
+  /*    loader            :: This is a private object for the glyph slot.  */
+  /*                         Do not touch this.                            */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    When FT_Load_Glyph is called with default flags (FT_LOAD_DEFAULT), */
+  /*    If FT_Load_Glyph() is called with default flags (FT_LOAD_DEFAULT), */
   /*    the glyph image is loaded in the glyph slot in its native format   */
-  /*    (e.g. a vectorial outline for TrueType and Type 1 formats)         */
+  /*    (e.g. a vectorial outline for TrueType and Type 1 formats).        */
   /*                                                                       */
   /*    This image can later be converted into a bitmap by calling         */
-  /*    FT_Render_Glyph. This function finds the current renderer for the  */
-  /*    native image's format then invokes it.                             */
+  /*    FT_Render_Glyph().  This function finds the current renderer for   */
+  /*    the native image's format then invokes it.                         */
   /*                                                                       */
   /*    The renderer is in charge of transforming the native image through */
   /*    the slot's face transformation fields, then convert it into a      */
-  /*    bitmap that is returned in "slot->bitmap".                         */
-  /*                                                                       */
-  /*    Note that "slot->bitmap_left" and "slot->bitmap_top" are also      */
-  /*    used to specify the position of the bitmap relative to the current */
-  /*    pen position (e.g. coordinates [0,0] on the baseline). Of course,  */
-  /*    "slot->format" is also changed to "ft_glyph_format_bitmap"..       */
+  /*    bitmap that is returned in `slot->bitmap'.                         */
   /*                                                                       */
+  /*    Note that `slot->bitmap_left' and `slot->bitmap_top' are also used */
+  /*    to specify the position of the bitmap relative to the current pen  */
+  /*    position (e.g. coordinates [0,0] on the baseline).  Of course,     */
+  /*    `slot->format' is also changed to `ft_glyph_format_bitmap' .       */
   /*                                                                       */
-
-  enum
-  {
-    ft_glyph_own_bitmap = 1
-  };
-
-
-
   typedef struct  FT_GlyphSlotRec_
   {
     FT_Library        library;
@@ -1155,9 +1156,9 @@
   /*    library :: A handle to a new library object.                       */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Init_FreeType( FT_Library*  library );
+  FT_EXPORT_DEF( FT_Error )  FT_Init_FreeType( FT_Library*  library );
 
 
   /*************************************************************************/
@@ -1166,114 +1167,125 @@
   /*    FT_Done_FreeType                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Destroys a given FreeType library object, and all of its childs,   */
+  /*    Destroys a given FreeType library object and all of its childs,    */
   /*    including resources, drivers, faces, sizes, etc.                   */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    library :: A handle to a target library object.                    */
+  /*    library :: A handle to the target library object.                  */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Done_FreeType( FT_Library  library );
+  FT_EXPORT_DEF( FT_Error )  FT_Done_FreeType( FT_Library  library );
 
 
   /*************************************************************************/
   /*                                                                       */
-  /* <Function>                                                            */
+  /* <Enum>                                                                */
   /*    FT_Open_Flags                                                      */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    An enumeration used to list the bit flags used within FT_Open_Args */
+  /*    An enumeration used to list the bit flags used within              */
+  /*    FT_Open_Args().                                                    */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    ft_open_memory     :: this is a memory-based stream                */
-  /*    ft_open_stream     :: copy the stream from the "stream" field      */
-  /*    ft_open_pathname   :: create a new input stream from a C pathname  */
-  /*    ft_open_driver     :: use the "driver" field                       */
-  /*    ft_open_params     :: use the "num_params" & "params" field        */
+  /*    ft_open_memory   :: This is a memory-based stream.                 */
   /*                                                                       */
-  typedef enum {
-
-    ft_open_memory     = 1,
-    ft_open_stream     = 2,
-    ft_open_pathname   = 4,
-    ft_open_driver     = 8,
-    ft_open_params     = 16
+  /*    ft_open_stream   :: Copy the stream from the `stream' field.       */
+  /*                                                                       */
+  /*    ft_open_pathname :: Create a new input stream from a C pathname.   */
+  /*                                                                       */
+  /*    ft_open_driver   :: Use the `driver' field.                        */
+  /*                                                                       */
+  /*    ft_open_params   :: Use the `num_params' & `params' field.         */
+  /*                                                                       */
+  typedef enum
+  {
+    ft_open_memory   = 1,
+    ft_open_stream   = 2,
+    ft_open_pathname = 4,
+    ft_open_driver   = 8,
+    ft_open_params   = 16
 
   } FT_Open_Flags;
 
 
   /*************************************************************************/
   /*                                                                       */
-  /* <Function>                                                            */
+  /* <Struct>                                                              */
   /*    FT_Parameter                                                       */
   /*                                                                       */
   /* <Description>                                                         */
   /*    A simple structure used to pass more or less generic parameters    */
-  /*    to FT_Open_Face..                                                  */
+  /*    to FT_Open_Face().                                                 */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    tag    :: 4-byte identification tag                                */
-  /*    data   :: pointer to parameter data                                */
+  /*    tag  :: A 4-byte identification tag.                               */
+  /*                                                                       */
+  /*    data :: A pointer to the parameter data.                           */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    the id and role of parameters is driver-specific                   */
+  /*    The id and function of parameters are driver-specific.             */
   /*                                                                       */
-  typedef struct FT_Parameter_
+  typedef struct  FT_Parameter_
   {
-    FT_ULong   tag;
-    FT_Pointer data;
+    FT_ULong    tag;
+    FT_Pointer  data;
 
   } FT_Parameter;
 
- /*************************************************************************
-  *
-  * <Struct>
-  *    FT_Open_Args
-  *
-  * <Description>
-  *    A structure used to indicate how to open a new font file/stream.
-  *    A pointer to such a structure can be used as a parameter for the
-  *    function FT_Open_Face & FT_Attach_Stream.
-  *
-  * <Fields>
-  *    flags        :: set of bit flags indicating how to use the structure
-  *
-  *    memory_base  :: first byte of file in memory
-  *    memory_size  :: size in bytes of file in memory
-  *
-  *    pathname     :: a pointer to an 8-bit file pathname
-  *
-  *    stream       :: handle to a source stream object
-  *
-  *    driver       :: this field is exclusively used by FT_Open_Face,
-  *                    it simply specifies the font driver to use to open
-  *                    the face. If set to 0, FreeType will try to load
-  *                    the face with each one of the drivers in its list.
-  *
-  *    num_params   :: number of parameters
-  *    params       :: extra parameters passed to the font driver when
-  *                    opening a new face
-  *
-  * <Note>
-  *    The stream_type determines which fields are used to create a new
-  *    input stream.
-  *
-  *    If it is ft_stream_memory, a new memory-based stream will be created
-  *    using the memory block specified by "memory_base" and "memory_size"
-  *
-  *    If it is ft_stream_pathname, a new stream will be created with the
-  *    "pathname" field, calling the system-specific FT_New_Stream function
-  *
-  *    It is is ft_stream_copy, then the content of "stream" will be copied
-  *    to a new input stream object. The object will be closed and destroyed
-  *    when the face is destroyed itself.. Note that this means that you
-  *    should not close the stream before the library does !!
-  *
-  *************************************************************************/
-
-  typedef struct FT_Open_Args_
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Struct>                                                              */
+  /*    FT_Open_Args                                                       */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    A structure used to indicate how to open a new font file/stream.   */
+  /*    A pointer to such a structure can be used as a parameter for the   */
+  /*    functions FT_Open_Face() & FT_Attach_Stream().                     */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    flags       :: A set of bit flags indicating how to use the        */
+  /*                   structure.                                          */
+  /*                                                                       */
+  /*    memory_base :: The first byte of the file in memory.               */
+  /*                                                                       */
+  /*    memory_size :: The size in bytes of the file in memory.            */
+  /*                                                                       */
+  /*    pathname    :: A pointer to an 8-bit file pathname.                */
+  /*                                                                       */
+  /*    stream      :: A handle to a source stream object.                 */
+  /*                                                                       */
+  /*    driver      :: This field is exclusively used by FT_Open_Face();   */
+  /*                   it simply specifies the font driver to use to open  */
+  /*                   the face.  If set to 0, FreeType will try to load   */
+  /*                   the face with each one of the drivers in its list.  */
+  /*                                                                       */
+  /*    num_params  :: The number of extra parameters.                     */
+  /*                                                                       */
+  /*    params      :: Extra parameters passed to the font driver when     */
+  /*                   opening a new face.                                 */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    `stream_type' determines which fields are used to create a new     */
+  /*    input stream.                                                      */
+  /*                                                                       */
+  /*    If it is `ft_stream_memory', a new memory-based stream will be     */
+  /*    created using the memory block specified by `memory_base' and      */
+  /*    `memory_size'.                                                     */
+  /*                                                                       */
+  /*    If it is `ft_stream_pathname', a new stream will be created with   */
+  /*    the `pathname' field, calling the system-specific FT_New_Stream()  */
+  /*    function.                                                          */
+  /*                                                                       */
+  /*    If is is `ft_stream_copy', then the content of `stream' will be    */
+  /*    copied to a new input stream object.  The object will be closed    */
+  /*    and destroyed when the face is destroyed itself.  Note that this   */
+  /*    means that you should not close the stream before the library      */
+  /*    does!                                                              */
+  /*                                                                       */
+  typedef struct  FT_Open_Args_
   {
     FT_Open_Flags  flags;
     FT_Byte*       memory_base;
@@ -1286,46 +1298,49 @@
 
   } FT_Open_Args;
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
   /*    FT_New_Face                                                        */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Creates a new face object from a given font file and typeface      */
-  /*    index.                                                             */
+  /*    Creates a new face object from a given resource and typeface index */
+  /*    using a pathname to the font file.                                 */
   /*                                                                       */
-  /* <Input>                                                               */
-  /*    library      :: handle to the root FreeType library instance       */
+  /* <InOut>                                                               */
+  /*    library    :: A handle to the library resource.                    */
   /*                                                                       */
-  /*    filepathname :: an 8-bit pathname naming the font file             */
+  /* <Input>                                                               */
+  /*    pathname   :: A path to the font file.                             */
   /*                                                                       */
-  /*    face_index   :: the index of the face within the font file.        */
-  /*                    The first face has index 0.                        */
+  /*    face_index :: The index of the face within the resource.  The      */
+  /*                  first face has index 0.                              */
   /* <Output>                                                              */
-  /*    face       :: A handle to a new face object.                       */
+  /*    aface      :: A handle to a new face object.                       */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    If your font file is in memory, or if you want to provide your     */
-  /*    own input stream object, see FT_Open_Face below.                   */
+  /*    Unlike FreeType 1.x, this function automatically creates a glyph   */
+  /*    slot for the face object which can be accessed directly through    */
+  /*    `face->glyph'.                                                     */
   /*                                                                       */
-  /*    FT_New_Face creates a new stream object. The stream will be        */
-  /*    closed with the face (when calling FT_Done_Face or even            */
-  /*    FT_Done_FreeType).                                                 */
+  /*    Note that additional slots can be added to each face with the      */
+  /*    FT_New_GlyphSlot() API function.  Slots are linked in a single     */
+  /*    list through their `next' field.                                   */
   /*                                                                       */
-  /*    Unlike FreeType 1.1, this function automatically creates a glyph   */
-  /*    slot for the face object which can be accessed directly through    */
-  /*    `face->slot'. Note that additional slots can be added to each face */
-  /*    through the FT_New_GlyphSlot() API function.  Slots are linked in  */
-  /*    a single list through their `next' field.                          */
+  /*    FT_New_Face() can be used to determine and/or check the font       */
+  /*    format of a given font resource.  If the `face_index' field is     */
+  /*    negative, the function will _not_ return any face handle in        */
+  /*    `*face'.  Its return value should be 0 if the resource is          */
+  /*    recognized, or non-zero if not.                                    */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_New_Face( FT_Library   library,
-                                        const char*  filepathname,
-                                        FT_Long      face_index,
-                                        FT_Face*     face );
+  FT_EXPORT_DEF( FT_Error )  FT_New_Face( FT_Library   library,
+                                          const char*  filepathname,
+                                          FT_Long      face_index,
+                                          FT_Face*     face );
 
 
   /*************************************************************************/
@@ -1342,7 +1357,9 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    file_base  :: A pointer to the beginning of the font data.         */
+  /*                                                                       */
   /*    file_size  :: The size of the memory chunk used by the font data.  */
+  /*                                                                       */
   /*    face_index :: The index of the face within the resource.  The      */
   /*                  first face has index 0.                              */
   /* <Output>                                                              */
@@ -1366,11 +1383,11 @@
   /*    `*face'.  Its return value should be 0 if the resource is          */
   /*    recognized, or non-zero if not.                                    */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_New_Memory_Face( FT_Library   library,
-                                               FT_Byte*     file_base,
-                                               FT_Long      file_size,
-                                               FT_Long      face_index,
-                                               FT_Face*     face );
+  FT_EXPORT_DEF( FT_Error )  FT_New_Memory_Face( FT_Library  library,
+                                                 FT_Byte*    file_base,
+                                                 FT_Long     file_size,
+                                                 FT_Long     face_index,
+                                                 FT_Face*    face );
 
 
   /*************************************************************************/
@@ -1379,39 +1396,44 @@
   /*    FT_Open_Face                                                       */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Creates a new face object from a given input stream & typeface     */
-  /*    index. This function is very similar to FT_New_Face, except that   */
-  /*    it can accept any form of input stream..                           */
+  /*    Opens a face object from a given resource and typeface index using */
+  /*    an `FT_Open_Args' structure.  If the face object doesn't exist, it */
+  /*    will be created.                                                   */
   /*                                                                       */
-  /* <Input>                                                               */
-  /*    library      :: handle to the root FreeType library instance       */
+  /* <InOut>                                                               */
+  /*    library    :: A handle to the library resource.                    */
   /*                                                                       */
-  /*    args         :: an FT_Open_Args structure used to describe the     */
-  /*                    input stream to FreeType.                          */
+  /* <Input>                                                               */
+  /*    args       :: A pointer to an `FT_Open_Args' structure which must  */
+  /*                  be filled by the caller.                             */
   /*                                                                       */
-  /*    face_index   :: the index of the face within the font file.        */
-  /*                    The first face has index 0.                        */
+  /*    face_index :: The index of the face within the resource.  The      */
+  /*                  first face has index 0.                              */
   /* <Output>                                                              */
-  /*    face       :: A handle to a new face object.                       */
+  /*    aface      :: A handle to a new face object.                       */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    Note that if the stream is in-memory or specified through an       */
-  /*    8-bit pathname, a new stream is created by this function. It       */
-  /*    is only closed when the face is destroyed (FT_Done_Face).          */
+  /*    Unlike FreeType 1.x, this function automatically creates a glyph   */
+  /*    slot for the face object which can be accessed directly through    */
+  /*    `face->glyph'.                                                     */
+  /*                                                                       */
+  /*    Note that additional slots can be added to each face with the      */
+  /*    FT_New_GlyphSlot() API function.  Slots are linked in a single     */
+  /*    list through their `next' field.                                   */
   /*                                                                       */
-  /*    Note that when specifying directly an existing FT_Stream, this     */
-  /*    function creates a new FT_Stream object and copies the contents    */
-  /*    of the original stream within it. The stream will be closed        */
-  /*    when the face is destroyed. This means calling the stream's        */
-  /*    "close" function.                                                  */
+  /*    FT_Open_Face() can be used to determine and/or check the font      */
+  /*    format of a given font resource.  If the `face_index' field is     */
+  /*    negative, the function will _not_ return any face handle in        */
+  /*    `*face'.  Its return value should be 0 if the resource is          */
+  /*    recognized, or non-zero if not.                                    */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Open_Face( FT_Library    library,
-                           FT_Open_Args* args,
-                           FT_Long       face_index,
-                           FT_Face*      face );
+  FT_EXPORT_DEF( FT_Error )  FT_Open_Face( FT_Library     library,
+                                           FT_Open_Args*  args,
+                                           FT_Long        face_index,
+                                           FT_Face*       face );
 
 
   /*************************************************************************/
@@ -1420,33 +1442,35 @@
   /*    FT_Attach_File                                                     */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    "Attach" a given font file to an existing face. This is usually    */
-  /*    to read additionnal information for a single face object. For      */
+  /*    `Attaches' a given font file to an existing face.  This is usually */
+  /*    to read additional information for a single face object.  For      */
   /*    example, it is used to read the AFM files that come with Type 1    */
-  /*    fonts in order to add kerning data and other metrics..             */
+  /*    fonts in order to add kerning data and other metrics.              */
   /*                                                                       */
-  /* <Input>                                                               */
-  /*    face         :: target face object                                 */
+  /* <InOut>                                                               */
+  /*    face         :: The target face object.                            */
   /*                                                                       */
-  /*    filepathname :: an 8-bit pathname naming the 'metrics' file.       */
+  /* <Input>                                                               */
+  /*    filepathname :: An 8-bit pathname naming the `metrics' file.       */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
   /*    If your font file is in memory, or if you want to provide your     */
-  /*    own input stream object, see FT_Attach_Stream.                     */
+  /*    own input stream object, use FT_Attach_Stream().                   */
   /*                                                                       */
-  /*    The meaning of the "attach" (i.e. what really happens when the     */
-  /*    new file is read) is not fixed by FreeType itself. It really       */
+  /*    The meaning of the `attach' action (i.e., what really happens when */
+  /*    the new file is read) is not fixed by FreeType itself.  It really  */
   /*    depends on the font format (and thus the font driver).             */
   /*                                                                       */
-  /*    Client applications are expected to know what they're doing        */
-  /*    when invoking this function. Most drivers simply do not implement  */
-  /*    file attachments..                                                 */
+  /*    Client applications are expected to know what they are doing       */
+  /*    when invoking this function.  Most drivers simply do not implement */
+  /*    file attachments.                                                  */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Attach_File( FT_Face      face,
-                                           const char*  filepathname );
+  FT_EXPORT_DEF( FT_Error )  FT_Attach_File( FT_Face      face,
+                                             const char*  filepathname );
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -1454,27 +1478,28 @@
   /*    FT_Attach_Stream                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    This function is similar to FT_Attach_File with the exception      */
+  /*    This function is similar to FT_Attach_File() with the exception    */
   /*    that it reads the attachment from an arbitrary stream.             */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    face :: target face object                                         */
+  /*    face       :: The target face object.                              */
   /*                                                                       */
-  /*    args :: a pointer to an FT_Open_Args structure used to describe    */
-  /*            the input stream to FreeType                               */
+  /*    parameters :: A pointer to an FT_Open_Args structure used to       */
+  /*                  describe the input stream to FreeType.               */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  /*    The meaning of the "attach" (i.e. what really happens when the     */
-  /*    new file is read) is not fixed by FreeType itself. It really       */
+  /* <Note>                                                                */
+  /*    The meaning of the `attach' (i.e. what really happens when the     */
+  /*    new file is read) is not fixed by FreeType itself.  It really      */
   /*    depends on the font format (and thus the font driver).             */
   /*                                                                       */
-  /*    Client applications are expected to know what they're doing        */
-  /*    when invoking this function. Most drivers simply do not implement  */
-  /*    file attachments..                                                 */
+  /*    Client applications are expected to know what they are doing       */
+  /*    when invoking this function.  Most drivers simply do not implement */
+  /*    file attachments.                                                  */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Attach_Stream( FT_Face       face,
-                                             FT_Open_Args* parameters );
+  FT_EXPORT_DEF( FT_Error )  FT_Attach_Stream( FT_Face        face,
+                                               FT_Open_Args*  parameters );
 
 
   /*************************************************************************/
@@ -1490,9 +1515,9 @@
   /*    face :: A handle to a target face object.                          */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Done_Face( FT_Face  face );
+  FT_EXPORT_DEF( FT_Error )  FT_Done_Face( FT_Face  face );
 
 
   /*************************************************************************/
@@ -1501,26 +1526,39 @@
   /*    FT_Set_Char_Size                                                   */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Sets the character dimensions of a given size object.  The         */
-  /*    `char_size' value is used for the width and height, expressed in   */
-  /*    26.6 fractional points.  1 point = 1/72 inch.                      */
+  /*    Sets the character dimensions of a given face object.  The         */
+  /*    `char_width' and `char_height' values are used for the width and   */
+  /*    height, respectively, expressed in 26.6 fractional points.         */
+  /*                                                                       */
+  /*    If the horizontal or vertical resolution values are zero, a        */
+  /*    default value of 72dpi is used.  Similarly, if one of the          */
+  /*    character dimensions is zero, its value is set equal to the other. */
+  /*                                                                       */
+  /* <InOut>                                                               */
+  /*    size            :: A handle to a target size object.               */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    size      :: A handle to a target size object.                     */
-  /*    char_size :: The character size, in 26.6 fractional points.        */
+  /*    char_width      :: The character width, in 26.6 fractional points. */
+  /*                                                                       */
+  /*    char_height     :: The character height, in 26.6 fractional        */
+  /*                       points.                                         */
+  /*                                                                       */
+  /*    horz_resolution :: The horizontal resolution.                      */
+  /*                                                                       */
+  /*    vert_resolution :: The vertical resolution.                        */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
   /*    When dealing with fixed-size faces (i.e., non-scalable formats),   */
   /*    use the function FT_Set_Pixel_Sizes().                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)   FT_Set_Char_Size( FT_Face     face,
-                                              FT_F26Dot6  char_width,
-                                              FT_F26Dot6  char_height,
-                                              FT_UInt     horz_resolution,
-                                              FT_UInt     vert_resolution );
+  FT_EXPORT_DEF( FT_Error )  FT_Set_Char_Size( FT_Face     face,
+                                               FT_F26Dot6  char_width,
+                                               FT_F26Dot6  char_height,
+                                               FT_UInt     horz_resolution,
+                                               FT_UInt     vert_resolution );
 
 
   /*************************************************************************/
@@ -1529,20 +1567,26 @@
   /*    FT_Set_Pixel_Sizes                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Sets the character dimensions of a given size object.  The width   */
+  /*    Sets the character dimensions of a given face object.  The width   */
   /*    and height are expressed in integer pixels.                        */
   /*                                                                       */
+  /*    If one of the character dimensions is zero, its value is set equal */
+  /*    to the other.                                                      */
+  /*                                                                       */
+  /* <InOut>                                                               */
+  /*    face         :: A handle to the target face object.                */
+  /*                                                                       */
   /* <Input>                                                               */
-  /*    size         :: A handle to a target size object.                  */
   /*    pixel_width  :: The character width, in integer pixels.            */
+  /*                                                                       */
   /*    pixel_height :: The character height, in integer pixels.           */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code.  0 means success.                                      */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Set_Pixel_Sizes( FT_Face    face,
-                                               FT_UInt    pixel_width,
-                                               FT_UInt    pixel_height );
+  FT_EXPORT_DEF( FT_Error )  FT_Set_Pixel_Sizes( FT_Face  face,
+                                                 FT_UInt  pixel_width,
+                                                 FT_UInt  pixel_height );
 
 
   /*************************************************************************/
@@ -1575,12 +1619,12 @@
   /*    transformed with the information passed to a previous call to      */
   /*    FT_Set_Transform.                                                  */
   /*                                                                       */
-  /*    Note that this also transforms the "face.glyph.advance" field,     */
-  /*    but **NOT** the values in "face.glyph.metrics"..                   */
+  /*    Note that this also transforms the `face.glyph.advance' field, but */
+  /*    *not* the values in `face.glyph.metrics'.                          */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)   FT_Load_Glyph( FT_Face  face,
-                                           FT_UInt  glyph_index,
-                                           FT_Int   load_flags );
+  FT_EXPORT_DEF( FT_Error )  FT_Load_Glyph( FT_Face  face,
+                                            FT_UInt  glyph_index,
+                                            FT_Int   load_flags );
 
 
   /*************************************************************************/
@@ -1590,7 +1634,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A function used to load a single glyph within a given glyph slot,  */
-  /*    for a given size, according to its character code !                */
+  /*    for a given size, according to its character code.                 */
   /*                                                                       */
   /* <Input>                                                               */
   /*    face        :: A handle to a target face object where the glyph    */
@@ -1604,25 +1648,27 @@
   /*                   glyph loading process (e.g., whether the outline    */
   /*                   should be scaled, whether to load bitmaps or not,   */
   /*                   whether to hint the outline, etc).                  */
+  /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
   /*    If the face has no current charmap, or if the character code       */
   /*    is not defined in the charmap, this function will return an        */
-  /*    error..                                                            */
+  /*    error.                                                             */
   /*                                                                       */
   /*    If the glyph image is not a bitmap, and if the bit flag            */
   /*    FT_LOAD_IGNORE_TRANSFORM is unset, the glyph image will be         */
   /*    transformed with the information passed to a previous call to      */
-  /*    FT_Set_Transform.                                                  */
+  /*    FT_Set_Transform().                                                */
   /*                                                                       */
-  /*    Note that this also transforms the "face.glyph.advance" field,     */
-  /*    but **NOT** the values in "face.glyph.metrics"..                   */
+  /*    Note that this also transforms the `face.glyph.advance' field, but */
+  /*    *not* the values in `face.glyph.metrics'.                          */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)   FT_Load_Char( FT_Face   face,
-                                          FT_ULong  char_code,
-                                          FT_Int    load_flags );
+  FT_EXPORT_DEF( FT_Error )  FT_Load_Char( FT_Face   face,
+                                           FT_ULong  char_code,
+                                           FT_Int    load_flags );
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -1647,7 +1693,7 @@
   /*    the vector outline being loaded should not be fitted to the pixel  */
   /*    grid but simply scaled to 26.6 fractional pixels.                  */
   /*                                                                       */
-  /*    This flag is ignored when FT_LOAD_NO_SCALE is set.                 */
+  /*    This flag is ignored if FT_LOAD_NO_SCALE is set.                   */
   /*                                                                       */
 #define FT_LOAD_NO_HINTING  2
 
@@ -1659,13 +1705,13 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
-  /*    the function should load the glyph and immediately convert it      */
-  /*    into a bitmap, when necessary, by calling FT_Render_Glyph.         */
+  /*    the function should load the glyph and immediately convert it into */
+  /*    a bitmap, if necessary, by calling FT_Render_Glyph().              */
   /*                                                                       */
-  /*    Note that by default, FT_Load_Glyph loads the glyph image in its   */
-  /*    native format..                                                    */
+  /*    Note that by default, FT_Load_Glyph() loads the glyph image in its */
+  /*    native format.                                                     */
   /*                                                                       */
-#define FT_LOAD_RENDER     4
+#define FT_LOAD_RENDER  4
 
 
   /*************************************************************************/
@@ -1678,7 +1724,7 @@
   /*    the function should not load the bitmap or pixmap of a given       */
   /*    glyph.  This is useful when you do not want to load the embedded   */
   /*    bitmaps of scalable formats, as the native glyph image will be     */
-  /*    loaded, and can then be renderer through FT_Render_Glyph           */
+  /*    loaded, and can then be rendered through FT_Render_Glyph().        */
   /*                                                                       */
 #define FT_LOAD_NO_BITMAP  8
 
@@ -1690,11 +1736,11 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
-  /*    the glyph image should be prepared for vertical layout. This       */
-  /*    basically means that "face.glyph.advance" will correspond to the   */
+  /*    the glyph image should be prepared for vertical layout.  This      */
+  /*    basically means that `face.glyph.advance' will correspond to the   */
   /*    vertical advance height (instead of the default horizontal         */
-  /*    advance width), and that the glyph image will translated to        */
-  /*    match the vertical bearings positions..                            */
+  /*    advance width), and that the glyph image will translated to match  */
+  /*    the vertical bearings positions.                                   */
   /*                                                                       */
 #define FT_LOAD_VERTICAL_LAYOUT  16
 
@@ -1706,8 +1752,8 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
-  /*    the function should try to auto-hint the glyphs, even if a driver- */
-  /*    -specific hinter is available..                                    */
+  /*    the function should try to auto-hint the glyphs, even if a driver  */
+  /*    specific hinter is available.                                      */
   /*                                                                       */
 #define FT_LOAD_FORCE_AUTOHINT  32
 
@@ -1720,9 +1766,8 @@
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
   /*    the font driver should try to crop the bitmap (i.e. remove all     */
-  /*    space around its black bits) when loading it. For now, this        */
-  /*    really only works with Embedded Bitmaps in TrueType fonts..        */
-  /*                                                                       */
+  /*    space around its black bits) when loading it.  For now, this       */
+  /*    really only works with embedded bitmaps in TrueType fonts.         */
   /*                                                                       */
 #define FT_LOAD_CROP_BITMAP  64
 
@@ -1734,7 +1779,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
-  /*    the glyph loader should perform a pedantic bytecode.               */
+  /*    the glyph loader should perform a pedantic bytecode                */
   /*    interpretation.  Many popular fonts come with broken glyph         */
   /*    programs.  When this flag is set, loading them will return an      */
   /*    error.  Otherwise, errors are ignored by the loader, sometimes     */
@@ -1751,11 +1796,11 @@
   /* <Description>                                                         */
   /*    A bit-field constant, used with FT_Load_Glyph() to indicate that   */
   /*    the glyph loader should ignore the global advance width defined    */
-  /*    in the font. As far as we know, this is only used by the           */
+  /*    in the font.  As far as we know, this is only used by the          */
   /*    X-TrueType font server, in order to deal correctly with the        */
-  /*    incorrect metrics contained in DynaLab's TrueType CJK fonts..      */
+  /*    incorrect metrics contained in DynaLab's TrueType CJK fonts.       */
   /*                                                                       */
-#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH 512
+#define FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH  512
 
 
   /*************************************************************************/
@@ -1770,13 +1815,13 @@
   /*    the values of `num_subglyphs' and `subglyphs', as well as set      */
   /*    `face->glyph.format' to ft_glyph_format_composite.                 */
   /*                                                                       */
-  /*    This is for use by the auto-hinter and possibly other tools        */
+  /*    This is for use by the auto-hinter and possibly other tools.       */
   /*    For nearly all applications, this flags should be left unset       */
   /*    when invoking FT_Load_Glyph().                                     */
   /*                                                                       */
-  /*    Note that the flag forces the load of unscaled glyphs              */
+  /*    Note that the flag forces the load of unscaled glyphs.             */
   /*                                                                       */
-#define FT_LOAD_NO_RECURSE 1024
+#define FT_LOAD_NO_RECURSE  1024
 
 
   /*************************************************************************/
@@ -1795,29 +1840,13 @@
   /*************************************************************************/
   /*                                                                       */
   /* <Constant>                                                            */
-  /*    FT_LOAD_ANTI_ALIAS                                                 */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Only used with FT_LOAD_RENDER set, indicates that the returned     */
-  /*    glyph image should be anti-aliased. This basically tells the       */
-  /*    glyph loader to use 'ft_render_mode_antialias' when calling        */
-  /*    FT_Render_Glyph.                                                   */
-  /*                                                                       */
-  /*    THIS IS NOW 0, AS ANTI-ALIASED RENDERING IS NOW THE DEFAULT..      */
-  /*                                                                       */
-#define FT_LOAD_ANTI_ALIAS  0  /* this is the default */
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Constant>                                                            */
   /*    FT_LOAD_MONOCHROME                                                 */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Only used with FT_LOAD_RENDER set, indicates that the returned     */
-  /*    glyph image should be 1-bit monochrome. This really tells the      */
-  /*    glyph loader to use 'ft_render_mode_mono' when calling             */
-  /*    FT_Render_Glyph.                                                   */
-  /*                                                                       */
+  /*    Only used with FT_LOAD_RENDER set, it indicates that the returned  */
+  /*    glyph image should be 1-bit monochrome.  This really tells the     */
+  /*    glyph loader to use `ft_render_mode_mono' when calling             */
+  /*    FT_Render_Glyph().                                                 */
   /*                                                                       */
 #define FT_LOAD_MONOCHROME  4096
 
@@ -1835,7 +1864,6 @@
 #define FT_LOAD_LINEAR_DESIGN 8192
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Constant>                                                            */
@@ -1857,8 +1885,8 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A function used to set the transformation that is applied to glyph */
-  /*    images just before they're converted to bitmaps in a glyph slot    */
-  /*    when FT_Render_Glyph is called..                                   */
+  /*    images just before they are converted to bitmaps in a glyph slot   */
+  /*    when FT_Render_Glyph() is called.                                  */
   /*                                                                       */
   /* <InOut>                                                               */
   /*    face   :: A handle to the source face object.                      */
@@ -1870,50 +1898,44 @@
   /*              vector.                                                  */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The transformation is only applied to scalable image formats.      */
-  /*                                                                       */
-  /*    The transformation is simply applied to the glyph after it is      */
-  /*    loaded. It means that hinting is unaltered by the transform and    */
-  /*    is performed on the character size given in the last call to       */
-  /*    FT_Set_Char_Sizes or FT_Set_Pixel_Sizes                            */
+  /*    The transformation is only applied to scalable image formats after */
+  /*    the glyph has been loaded.  It means that hinting is unaltered by  */
+  /*    the transformation and is performed on the character size given in */
+  /*    the last call to FT_Set_Char_Sizes() or FT_Set_Pixel_Sizes().      */
   /*                                                                       */
   FT_EXPORT_DEF( void )  FT_Set_Transform( FT_Face     face,
                                            FT_Matrix*  matrix,
                                            FT_Vector*  delta );
 
 
- /*************************************************************************
-  *
-  *  <Enum>
-  *     FT_Render_Mode
-  *
-  *  <Description>
-  *     An enumeration type that lists the render modes supported by the  
-  *     FreeType 2 renderer(s). A renderer is in charge of converting a
-  *     glyph image into a bitmap..
-  *
-  *  <Fields>
-  *     ft_render_mode_normal   :: this is the default render mode,
-  *                                it corresponds to 8-bit anti-aliased
-  *                                bitmaps, using 256 levels of gray.
-  *
-  *     ft_render_mode_mono     :: this render mode is used to produce
-  *                                1-bit monochrome bitmaps
-  *
-  *  <Note>
-  *     There is no render mode to produce 8-bit "monochrome" bitmaps,
-  *     you'll have to make the conversion yourself if you need such
-  *     things (besides, FreeType is not a graphics library..)
-  *
-  *     More modes might appear later for specific display modes (e.g.
-  *     TV, LCDs, etc..). They will be supported through the simple
-  *     addition of a renderer module, with no changes to the rest of
-  *     the engine..
-  *
-  *
-  *************************************************************************/
-  
-  typedef enum FT_Render_Mode_
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Enum>                                                                */
+  /*    FT_Render_Mode                                                     */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    An enumeration type that lists the render modes supported by the   */
+  /*    FreeType 2 renderer(s).  A renderer is in charge of converting a   */
+  /*    glyph image into a bitmap.                                         */
+  /*                                                                       */
+  /* <Fields>                                                              */
+  /*    ft_render_mode_normal :: This is the default render mode; it       */
+  /*                             corresponds to 8-bit anti-aliased         */
+  /*                             bitmaps, using 256 levels of gray.        */
+  /*                                                                       */
+  /*    ft_render_mode_mono   :: This render mode is used to produce 1-bit */
+  /*                             monochrome bitmaps.                       */
+  /*                                                                       */
+  /* <Note>                                                                */
+  /*    There is no render mode to produce 8-bit `monochrome' bitmaps --   */
+  /*    you have to make the conversion yourself if you need such things   */
+  /*    (besides, FreeType is not a graphics library).                     */
+  /*                                                                       */
+  /*    More modes might appear later for specific display modes (e.g. TV, */
+  /*    LCDs, etc.).  They will be supported through the simple addition   */
+  /*    of a renderer module, with no changes to the rest of the engine.   */
+  /*                                                                       */
+  typedef enum  FT_Render_Mode_
   {
     ft_render_mode_normal = 0,
     ft_render_mode_mono   = 1
@@ -1921,53 +1943,51 @@
   } FT_Render_Mode;
 
   
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Function>                                                            */
+  /*    FT_Render_Glyph                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    Converts a given glyph image to a bitmap.  It does so by           */
+  /*    inspecting the glyph image format, find the relevant renderer, and */
+  /*    invoke it.                                                         */
+  /*                                                                       */
+  /* <Input>                                                               */
+  /*    slot        :: A handle to the glyph slot containing the image to  */
+  /*                   convert.                                            */
+  /*                                                                       */
+  /*    render_mode :: This is the render mode used to render the glyph    */
+  /*                   image into a bitmap.  See FT_Render_Mode for a list */
+  /*                   of possible values.                                 */
+  /*                                                                       */
+  /* <Return>                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  FT_EXPORT_DEF( FT_Error )  FT_Render_Glyph( FT_GlyphSlot  slot,
+                                              FT_UInt       render_mode );
 
- /*************************************************************************
-  *
-  *  <Function>
-  *     FT_Render_Glyph
-  *
-  *  <Description>
-  *     Converts a given glyph image to a bitmap. It does so by inspecting
-  *     the glyph image format, find the relevant renderer, and invoke it
-  *
-  *  <Input>
-  *     slot        :: handle to the glyph slot containing the image to
-  *                    convert
-  *
-  *     render_mode :: this is the render mode used to render the glyph image
-  *                    into a bitmap. See FT_Render_Mode for possible values.
-  *
-  *  <Return>
-  *     Error code. 0 means success.
-  *
-  *************************************************************************/
-  
-  FT_EXPORT_DEF(FT_Error)  FT_Render_Glyph( FT_GlyphSlot  slot,
-                                            FT_UInt       render_mode );
-
-
- /**************************************************************************
-  *
-  *  <Enum>
-  *     FT_Kerning_Mode
-  *
-  *  <Description>
-  *     A list of enumerations used to specify which kerning values to
-  *     return in FT_Get_Kerning
-  *
-  *  <Field>
-  *     ft_kerning_default  :: used to returned scaled and grid-fitted kerning
-  *                            distances. (value is 0)
-  *
-  *     ft_kerning_unfitted :: used to returned scaled by un-grid-fitted
-  *                            kerning distances.
-  *
-  *     ft_kerning_unscaled :: used to return the kerning vector in original
-  *                            font units..
-  *
-  **************************************************************************/
-  typedef enum FT_Kerning_Mode_
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* <Enum>                                                                */
+  /*    FT_Kerning_Mode                                                    */
+  /*                                                                       */
+  /* <Description>                                                         */
+  /*    An enumeration used to specify which kerning values to return in   */
+  /*    FT_Get_Kerning().                                                  */
+  /*                                                                       */
+  /* <Field>                                                               */
+  /*    ft_kerning_default  :: Return scaled and grid-fitted kerning       */
+  /*                           distances (value is 0).                     */
+  /*                                                                       */
+  /*    ft_kerning_unfitted :: Return scaled but un-grid-fitted kerning    */
+  /*                           distances.                                  */
+  /*                                                                       */
+  /*    ft_kerning_unscaled :: Return the kerning vector in original font  */
+  /*                           units.                                      */
+  /*                                                                       */
+  typedef enum  FT_Kerning_Mode_
   {
     ft_kerning_default  = 0,
     ft_kerning_unfitted,
@@ -1975,6 +1995,7 @@
     
   } FT_Kerning_Mode;
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
@@ -1990,8 +2011,9 @@
   /*                                                                       */
   /*    right_glyph :: The index of the right glyph in the kern pair.      */
   /*                                                                       */
-  /*    kern_mode   :: see FT_Kerning_Mode for more info. Determines the   */
-  /*                   scale/dimension of the returned kerning vector      */
+  /*    kern_mode   :: See FT_Kerning_Mode() for more information.         */
+  /*                   Determines the scale/dimension of the returned      */
+  /*                   kerning vector.                                     */
   /*                                                                       */
   /* <Output>                                                              */
   /*    kerning     :: The kerning vector.  This is in font units for      */
@@ -2007,12 +2029,11 @@
   /*    kernings, are out of the scope of this API function -- they can be */
   /*    implemented through format-specific interfaces.                    */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Get_Kerning( FT_Face     face,
-                                           FT_UInt     left_glyph,
-                                           FT_UInt     right_glyph,
-                                           FT_UInt     kern_mode,
-                                           FT_Vector*  kerning );
-
+  FT_EXPORT_DEF( FT_Error )  FT_Get_Kerning( FT_Face     face,
+                                             FT_UInt     left_glyph,
+                                             FT_UInt     right_glyph,
+                                             FT_UInt     kern_mode,
+                                             FT_Vector*  kerning );
 
 
   /*************************************************************************/
@@ -2021,21 +2042,23 @@
   /*    FT_Select_Charmap                                                  */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Selects a given charmap by its encoding tag.                       */
+  /*    Selects a given charmap by its encoding tag (as listed in          */
+  /*    `freetype.h').                                                     */
   /*                                                                       */
   /* <Input>                                                               */
   /*    face     :: A handle to the source face object.                    */
-  /*    encoding :: handle to the selected charmap                         */
+  /*                                                                       */
+  /*    encoding :: A handle to the selected charmap.                      */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code. 0 means success.                                       */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
   /*    This function will return an error if no charmap in the face       */
-  /*    corresponds to the encoding queried here                           */
+  /*    corresponds to the encoding queried here.                          */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Select_Charmap( FT_Face      face,
-                                              FT_Encoding  encoding );
+  FT_EXPORT_DEF( FT_Error )  FT_Select_Charmap( FT_Face      face,
+                                                FT_Encoding  encoding );
 
 
   /*************************************************************************/
@@ -2049,18 +2072,19 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    face     :: A handle to the source face object.                    */
-  /*    charmap  :: handle to the selected charmap                         */
+  /*    charmap  :: A handle to the selected charmap.                      */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    Error code. 0 means success.                                       */
+  /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    this function will return an error when the charmap is not part    */
-  /*    of the face (i.e. if it is not listed in the face->charmaps[]      */
+  /*    This function will return an error if the charmap is not part of   */
+  /*    the face (i.e., if it is not listed in the face->charmaps[]        */
   /*    table).                                                            */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Error)  FT_Set_Charmap( FT_Face     face,
-                                           FT_CharMap  charmap );
+  FT_EXPORT_DEF( FT_Error )  FT_Set_Charmap( FT_Face     face,
+                                             FT_CharMap  charmap );
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -2072,14 +2096,15 @@
   /*    uses a charmap object to do the translation.                       */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    charmap  :: A handle to a filter charmap object.                   */
+  /*    face     :: A handle to the source face object.                    */
+  /*                                                                       */
   /*    charcode :: The character code.                                    */
   /*                                                                       */
   /* <Return>                                                              */
   /*    The glyph index.  0 means `undefined character code'.              */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_UInt)   FT_Get_Char_Index( FT_Face   face,
-                                              FT_ULong  charcode );
+  FT_EXPORT_DEF( FT_UInt )  FT_Get_Char_Index( FT_Face   face,
+                                               FT_ULong  charcode );
 
 
   /*************************************************************************/
@@ -2088,7 +2113,7 @@
   /*    FT_MulDiv                                                          */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A very simple function used to perform the computation `(A*B)/C'   */
+  /*    A very simple function used to perform the computation `(a*b)/c'   */
   /*    with maximal accuracy (it uses a 64-bit intermediate integer       */
   /*    whenever necessary).                                               */
   /*                                                                       */
@@ -2102,12 +2127,12 @@
   /*                                                                       */
   /* <Return>                                                              */
   /*    The result of `(a*b)/c'.  This function never traps when trying to */
-  /*    divide by zero, it simply returns `MaxInt' or `MinInt' depending   */
+  /*    divide by zero; it simply returns `MaxInt' or `MinInt' depending   */
   /*    on the signs of `a' and `b'.                                       */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Long)  FT_MulDiv( FT_Long  a,
-                                     FT_Long  b,
-                                     FT_Long  c );
+  FT_EXPORT_DEF( FT_Long )  FT_MulDiv( FT_Long  a,
+                                       FT_Long  b,
+                                       FT_Long  c );
 
 
   /*************************************************************************/
@@ -2117,7 +2142,7 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A very simple function used to perform the computation             */
-  /*    `(A*B)/0x10000' with maximal accuracy.  Most of the time, this is  */
+  /*    `(a*b)/0x10000' with maximal accuracy.  Most of the time this is   */
   /*    used to multiply a given value by a 16.16 fixed float factor.      */
   /*                                                                       */
   /* <Input>                                                               */
@@ -2133,14 +2158,14 @@
   /*    value of `a' is less than 2048, and `b' is a 16.16 scaling factor. */
   /*    As this happens mainly when scaling from notional units to         */
   /*    fractional pixels in FreeType, it resulted in noticeable speed     */
-  /*    improvements between versions 2.0 and 1.x.                         */
+  /*    improvements between versions 2.x and 1.x.                         */
   /*                                                                       */
   /*    As a conclusion, always try to place a 16.16 factor as the         */
   /*    _second_ argument of this function; this can make a great          */
   /*    difference.                                                        */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Long)  FT_MulFix( FT_Long  a,
-                                     FT_Long  b );
+  FT_EXPORT_DEF( FT_Long )  FT_MulFix( FT_Long  a,
+                                       FT_Long  b );
 
 
   /*************************************************************************/
@@ -2150,8 +2175,8 @@
   /*                                                                       */
   /* <Description>                                                         */
   /*    A very simple function used to perform the computation             */
-  /*    `(A*0x10000)/B' with maximal accuracy.  Most of the time, this is  */
-  /*    used to divide  a given value by a 16.16 fixed float factor.       */
+  /*    `(a*0x10000)/b' with maximal accuracy.  Most of the time, this is  */
+  /*    used to divide a given value by a 16.16 fixed float factor.        */
   /*                                                                       */
   /* <Input>                                                               */
   /*    a :: The first multiplier.                                         */
@@ -2162,12 +2187,12 @@
   /*    The result of `(a*0x10000)/b'.                                     */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The optimisation for FT_DivFix() is simple : if (a << 16) fits     */
-  /*    in 32 bits, then the division is computed directly. Otherwise,     */
-  /*    we use a specialised version of the old FT_MulDiv64                */
+  /*    The optimization for FT_DivFix() is simple: If (a << 16) fits in   */
+  /*    32 bits, then the division is computed directly.  Otherwise, we    */
+  /*    use a specialized version of the old FT_MulDiv64().                */
   /*                                                                       */
-  FT_EXPORT_DEF(FT_Long)  FT_DivFix( FT_Long  a,
-                                     FT_Long  b );
+  FT_EXPORT_DEF( FT_Long )  FT_DivFix( FT_Long  a,
+                                       FT_Long  b );
 
 
   /*************************************************************************/
@@ -2179,7 +2204,7 @@
   /*    Transforms a single vector through a 2x2 matrix.                   */
   /*                                                                       */
   /* <InOut>                                                               */
-  /*    vector :: The target vector to transform                           */
+  /*    vector :: The target vector to transform.                          */
   /*                                                                       */
   /* <Input>                                                               */
   /*    matrix :: A pointer to the source 2x2 matrix.                      */
@@ -2187,8 +2212,11 @@
   /* <MT-Note>                                                             */
   /*    Yes.                                                               */
   /*                                                                       */
-  FT_EXPORT_DEF(void)  FT_Vector_Transform( FT_Vector*  vec,
-                                            FT_Matrix*  matrix );
+  /* <Note>                                                                */
+  /*    The result is undefined if either `vector' or `matrix' is invalid. */
+  /*                                                                       */
+  FT_EXPORT_DEF( void )  FT_Vector_Transform( FT_Vector*  vec,
+                                              FT_Matrix*  matrix );
 
 
 
diff --git a/include/freetype/fterrors.h b/include/freetype/fterrors.h
index 078babe..0ae4b62 100644
--- a/include/freetype/fterrors.h
+++ b/include/freetype/fterrors.h
@@ -7,112 +7,160 @@
 /*  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.                                        */
 /*                                                                         */
-/*  This file is used to define the FreeType error enumeration constants   */
-/*  It can also be used to create an error message table easily with       */
-/*  something like:                                                        */
-/*                                                                         */
-/*  {                                                                      */
-/*                                                                         */
-/*     #undef FTERRORS_H                                                   */
-/*     #define FT_ERRORDEF( e, v, s )  { e, s ],                           */
-/*     #define FT_ERROR_START_LIST  {                                      */
-/*     #define FT_ERROR_END_LIST    { 0, 0 } };                            */
-/*                                                                         */
-/*     const struct { int  err_code; const char*  err_msg }  ft_errors[] = */
-/*     #include <freetype/fterrors.h>                                      */
-/*  }                                                                      */
-/*                                                                         */
 /***************************************************************************/
 
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* This file is used to define the FreeType error enumeration constants  */
+  /* It can also be used to create an error message table easily with      */
+  /* something like:                                                       */
+  /*                                                                       */
+  /*   {                                                                   */
+  /*     #undef FTERRORS_H                                                 */
+  /*     #define FT_ERRORDEF( e, v, s )  { e, s },                         */
+  /*     #define FT_ERROR_START_LIST  {                                    */
+  /*     #define FT_ERROR_END_LIST    { 0, 0 } };                          */
+  /*                                                                       */
+  /*     const struct                                                      */
+  /*     {                                                                 */
+  /*       int          err_code;                                          */
+  /*       const char*  err_msg                                            */
+  /*     } ft_errors[] =                                                   */
+  /*                                                                       */
+  /*     #include <freetype/fterrors.h>                                    */
+  /*   }                                                                   */
+  /*                                                                       */
+  /*************************************************************************/
+
+
 #ifndef FTERRORS_H
 #define FTERRORS_H
 
+
 #ifndef FT_ERRORDEF
-#define FT_ERRORDEF( e, v, s )   e = v,
-#define FT_ERROR_START_LIST      enum {
-#define FT_ERROR_END_LIST        FT_Err_Max };
-#endif /* FT_ERRORDEF */
+
+#define FT_ERRORDEF( e, v, s )  e = v,
+#define FT_ERROR_START_LIST     enum {
+#define FT_ERROR_END_LIST       FT_Err_Max };
+
+#endif /* !FT_ERRORDEF */
+
 
 #ifdef FT_ERROR_START_LIST
-FT_ERROR_START_LIST
+  FT_ERROR_START_LIST
 #endif
 
-  FT_ERRORDEF( FT_Err_Ok,                      0x0000, "no error" )
-  FT_ERRORDEF( FT_Err_Cannot_Open_Resource,    0x0001, "can't open stream"   )
-  FT_ERRORDEF( FT_Err_Unknown_File_Format,     0x0002, "unknown file format" )
-  FT_ERRORDEF( FT_Err_Invalid_File_Format,     0x0003, "broken file" )
-
-  FT_ERRORDEF( FT_Err_Invalid_Argument,        0x0010, "invalid argument" )
-  FT_ERRORDEF( FT_Err_Invalid_Handle,          0x0011, "invalid object handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Glyph_Index,     0x0012, "invalid glyph index" )
-  FT_ERRORDEF( FT_Err_Invalid_Character_Code,  0x0013, "invalid character code" )
-
-  FT_ERRORDEF( FT_Err_Unimplemented_Feature,   0x0020, "unimplemented feature" )
-  FT_ERRORDEF( FT_Err_Invalid_Glyph_Format,    0x0021, "unsupported glyph image format" )
-  FT_ERRORDEF( FT_Err_Cannot_Render_Glyph,     0x0022, "cannot render this glyph format" )
-
-  FT_ERRORDEF( FT_Err_Invalid_Library_Handle,  0x0030, "invalid library handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Driver_Handle,   0x0031, "invalid module handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Face_Handle,     0x0032, "invalid face handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Size_Handle,     0x0033, "invalid size handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Slot_Handle,     0x0034, "invalid glyph slot handle" )
-  FT_ERRORDEF( FT_Err_Invalid_CharMap_Handle,  0x0035, "invalid charmap handle" )
-  FT_ERRORDEF( FT_Err_Invalid_Outline,         0x0036, "invalid outline" )
-  FT_ERRORDEF( FT_Err_Invalid_Dimensions,      0x0037, "invalid dimensions" )
-  FT_ERRORDEF( FT_Err_Invalid_Version,         0x0038, "invalid FreeType version" )
-  FT_ERRORDEF( FT_Err_Lower_Module_Version,    0x0039, "module version is too low" )
-
-  FT_ERRORDEF( FT_Err_Unavailable_Outline,     0x0040, "unavailable outline" )
-  FT_ERRORDEF( FT_Err_Unavailable_Bitmap,      0x0041, "unavailable bitmap" )
-  FT_ERRORDEF( FT_Err_File_Is_Not_Collection,  0x0042, "file is not a font collection" )
-  FT_ERRORDEF( FT_Err_Too_Many_Drivers,        0x0043, "too many modules" )
-  FT_ERRORDEF( FT_Err_Too_Many_Glyph_Formats,  0x0044, "too many glyph formats" )
-  FT_ERRORDEF( FT_Err_Too_Many_Extensions,     0x0045, "too many extensions" )
-
-  FT_ERRORDEF( FT_Err_Out_Of_Memory,           0x0050, "out of memory" )
-  FT_ERRORDEF( FT_Err_Unlisted_Object,         0x0051, "unlisted object" )
-
-  FT_ERRORDEF( FT_Err_Invalid_Stream_Handle,   0x0060, "invalid stream handle" )
-  FT_ERRORDEF( FT_Err_Cannot_Open_Stream,      0x0061, "cannot open stream" )
-  FT_ERRORDEF( FT_Err_Invalid_Stream_Seek,     0x0062, "invalid stream seek" )
-  FT_ERRORDEF( FT_Err_Invalid_Stream_Skip,     0x0063, "invalid stream skip" )
-  FT_ERRORDEF( FT_Err_Invalid_Stream_Read,     0x0064, "invalid stream read" )
-  FT_ERRORDEF( FT_Err_Invalid_Stream_Operation, 0x0065, "invalid stream operation" )
-  FT_ERRORDEF( FT_Err_Invalid_Frame_Operation, 0x0066, "invalid frame operation" )
-  FT_ERRORDEF( FT_Err_Nested_Frame_Access,     0x0067, "nested frame access" )
-  FT_ERRORDEF( FT_Err_Invalid_Frame_Read,      0x0068, "invalid frame read" )
-
-  FT_ERRORDEF( FT_Err_Too_Many_Points,         0x0070, "too many points in glyph" )
-  FT_ERRORDEF( FT_Err_Too_Many_Contours,       0x0071, "too many contours in glyph" )
-  FT_ERRORDEF( FT_Err_Invalid_Composite,       0x0072, "invalid composite glyph" )
-  FT_ERRORDEF( FT_Err_Too_Many_Hints,          0x0073, "too many hints in glyph" )
-  FT_ERRORDEF( FT_Err_Too_Many_Edges,          0x0074, "too many edges in glyph" )
-  FT_ERRORDEF( FT_Err_Too_Many_Strokes,        0x0075, "too many strokes in glyph" )
-
-/* range 0x400 - 0x4FF is reserved for TrueType specific stuff */
-
-/* range 0x500 - 0x5FF is reserved for TrueDoc  specific stuff */
-
-/* range 0x600 - 0x6FF is reserved for Type1    specific stuff */
-
-  FT_ERRORDEF( FT_Err_Raster_Uninitialized,   0x0080, "raster uninitialized" )
-  FT_ERRORDEF( FT_Err_Raster_Corrupted,       0x0081, "raster corrupted !!" )
-  FT_ERRORDEF( FT_Err_Raster_Overflow,        0x0082, "raster overflow !!" )
+  FT_ERRORDEF( FT_Err_Ok,                           0x0000, \
+               "no error" )
+  FT_ERRORDEF( FT_Err_Cannot_Open_Resource,         0x0001, \
+               "can't open stream"   )
+  FT_ERRORDEF( FT_Err_Unknown_File_Format,          0x0002, \
+               "unknown file format" )
+  FT_ERRORDEF( FT_Err_Invalid_File_Format,          0x0003, \
+               "broken file" )
+
+  FT_ERRORDEF( FT_Err_Invalid_Argument,             0x0010, \
+               "invalid argument" )
+  FT_ERRORDEF( FT_Err_Invalid_Handle,               0x0011, \
+               "invalid object handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Glyph_Index,          0x0012, \
+               "invalid glyph index" )
+  FT_ERRORDEF( FT_Err_Invalid_Character_Code,       0x0013, \
+               "invalid character code" )
+
+  FT_ERRORDEF( FT_Err_Unimplemented_Feature,        0x0020, \
+               "unimplemented feature" )
+  FT_ERRORDEF( FT_Err_Invalid_Glyph_Format,         0x0021, \
+               "unsupported glyph image format" )
+  FT_ERRORDEF( FT_Err_Cannot_Render_Glyph,          0x0022, \
+               "cannot render this glyph format" )
+
+  FT_ERRORDEF( FT_Err_Invalid_Library_Handle,       0x0030, \
+               "invalid library handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Driver_Handle,        0x0031, \
+               "invalid module handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Face_Handle,          0x0032, \
+               "invalid face handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Size_Handle,          0x0033, \
+               "invalid size handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Slot_Handle,          0x0034, \
+               "invalid glyph slot handle" )
+  FT_ERRORDEF( FT_Err_Invalid_CharMap_Handle,       0x0035, \
+               "invalid charmap handle" )
+  FT_ERRORDEF( FT_Err_Invalid_Outline,              0x0036, \
+               "invalid outline" )
+  FT_ERRORDEF( FT_Err_Invalid_Version,              0x0037, \
+               "invalid FreeType version" )
+  FT_ERRORDEF( FT_Err_Lower_Module_Version,         0x0038, \
+               "module version is too low" )
+
+  FT_ERRORDEF( FT_Err_Too_Many_Drivers,             0x0040, \
+               "too many modules" )
+  FT_ERRORDEF( FT_Err_Too_Many_Extensions,          0x0041, \
+               "too many extensions" )
+
+  FT_ERRORDEF( FT_Err_Out_Of_Memory,                0x0050, \
+               "out of memory" )
+  FT_ERRORDEF( FT_Err_Unlisted_Object,              0x0051, \
+               "unlisted object" )
+
+  FT_ERRORDEF( FT_Err_Invalid_Stream_Handle,        0x0060, \
+               "invalid stream handle" )
+  FT_ERRORDEF( FT_Err_Cannot_Open_Stream,           0x0061, \
+               "cannot open stream" )
+  FT_ERRORDEF( FT_Err_Invalid_Stream_Seek,          0x0062, \
+               "invalid stream seek" )
+  FT_ERRORDEF( FT_Err_Invalid_Stream_Skip,          0x0063, \
+               "invalid stream skip" )
+  FT_ERRORDEF( FT_Err_Invalid_Stream_Read,          0x0064, \
+               "invalid stream read" )
+  FT_ERRORDEF( FT_Err_Invalid_Stream_Operation,     0x0065, \
+               "invalid stream operation" )
+  FT_ERRORDEF( FT_Err_Invalid_Frame_Operation,      0x0066, \
+               "invalid frame operation" )
+  FT_ERRORDEF( FT_Err_Nested_Frame_Access,          0x0067, \
+               "nested frame access" )
+  FT_ERRORDEF( FT_Err_Invalid_Frame_Read,           0x0068, \
+               "invalid frame read" )
+
+  FT_ERRORDEF( FT_Err_Invalid_Composite,            0x0070, \
+               "invalid composite glyph" )
+  FT_ERRORDEF( FT_Err_Too_Many_Hints,               0x0071, \
+               "too many hints" )
+
+  FT_ERRORDEF( FT_Err_Raster_Uninitialized,         0x0080, \
+               "raster uninitialized" )
+  FT_ERRORDEF( FT_Err_Raster_Corrupted,             0x0081, \
+               "raster corrupted" )
+  FT_ERRORDEF( FT_Err_Raster_Overflow,              0x0082, \
+               "raster overflow" )
+  FT_ERRORDEF( FT_Err_Raster_Negative_Height,       0x0083, \
+               "negative height while rastering" )
+
+  /* range 0x400 - 0x4FF is reserved for TrueType specific stuff */
+
+  /* range 0x500 - 0x5FF is reserved for CFF specific stuff */
+
+  /* range 0x600 - 0x6FF is reserved for Type1 specific stuff */
 
 #ifdef FT_ERROR_END_LIST
-FT_ERROR_END_LIST
+  FT_ERROR_END_LIST
 #endif
 
+
 #undef FT_ERROR_START_LIST
 #undef FT_ERROR_END_LIST
 #undef FT_ERRORDEF
 
+
 #endif /* FTERRORS_H */
 
+
 /* END */
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h
index 062c709..3d17177 100644
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -199,6 +199,32 @@
   /*************************************************************************/
   /*************************************************************************/
 
+
+#define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS          1
+#define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES      2
+#define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID        4
+#define FT_SUBGLYPH_FLAG_SCALE                   8
+#define FT_SUBGLYPH_FLAG_XY_SCALE             0x40
+#define FT_SUBGLYPH_FLAG_2X2                  0x80
+#define FT_SUBGLYPH_FLAG_USE_MY_METRICS      0x200
+
+
+  enum
+  {
+    ft_glyph_own_bitmap = 1
+  };
+
+
+  struct  FT_SubGlyph_
+  {
+    FT_Int     index;
+    FT_UShort  flags;
+    FT_Int     arg1;
+    FT_Int     arg2;
+    FT_Matrix  transform;
+  };
+
+
   typedef struct FT_GlyphLoad_
   {
     FT_Outline    outline;       /* outline                          */
@@ -209,7 +235,7 @@
   } FT_GlyphLoad;
 
 
-  struct FT_GlyphLoader_
+  struct  FT_GlyphLoader_
   {
     FT_Memory     memory;
     FT_UInt       max_points;
diff --git a/include/freetype/internal/t1errors.h b/include/freetype/internal/t1errors.h
index ce2bac4..80dadfb 100644
--- a/include/freetype/internal/t1errors.h
+++ b/include/freetype/internal/t1errors.h
@@ -41,9 +41,6 @@
 #define  T1_Err_Invalid_Glyph_Index      FT_Err_Invalid_Glyph_Index
 
 #define  T1_Err_Unimplemented_Feature    FT_Err_Unimplemented_Feature
-#define  T1_Err_Unavailable_Outline      FT_Err_Unavailable_Outline
-#define  T1_Err_Unavailable_Bitmap       FT_Err_Unavailable_Bitmap
-#define  T1_Err_File_Is_Not_Collection   FT_Err_File_Is_Not_Collection
 
 #define  T1_Err_Invalid_Engine           FT_Err_Invalid_Driver_Handle
 
@@ -54,13 +51,7 @@
 
 /* ------------ general glyph outline errors ------ */
 
-#define  T1_Err_Too_Many_Points          FT_Err_Too_Many_Points
-#define  T1_Err_Too_Many_Contours        FT_Err_Too_Many_Contours
-#define  T1_Err_Too_Many_Hints           FT_Err_Too_Many_Hints
 #define  T1_Err_Invalid_Composite        FT_Err_Invalid_Composite
-#define  T1_Err_Too_Many_Edges           FT_Err_Too_Many_Edges
-#define  T1_Err_Too_Many_Strokes         FT_Err_Too_Many_Strokes
-
 
 #define  T1_Err_Syntax_Error             FT_Err_Invalid_File_Format
 #define  T1_Err_Stack_Underflow          FT_Err_Invalid_File_Format
diff --git a/include/freetype/internal/t2errors.h b/include/freetype/internal/t2errors.h
index ab3d4e4..4f8e192 100644
--- a/include/freetype/internal/t2errors.h
+++ b/include/freetype/internal/t2errors.h
@@ -46,10 +46,6 @@
 #define  T2_Err_Invalid_Glyph_Index      FT_Err_Invalid_Glyph_Index
 
 #define  T2_Err_Unimplemented_Feature    FT_Err_Unimplemented_Feature
-#define  T2_Err_Unavailable_Outline      FT_Err_Unavailable_Outline
-#define  T2_Err_Unavailable_Bitmap       FT_Err_Unavailable_Bitmap
-#define  T2_Err_Unavailable_Pixmap       FT_Err_Unavailable_Pixmap
-#define  T2_Err_File_Is_Not_Collection   FT_Err_File_Is_Not_Collection
 
 #define  T2_Err_Invalid_Engine           FT_Err_Invalid_Driver_Handle
 
@@ -60,9 +56,6 @@
 
   /* General glyph outline errors. */
 
-#define  T2_Err_Too_Many_Points          FT_Err_Too_Many_Points
-#define  T2_Err_Too_Many_Contours        FT_Err_Too_Many_Contours
-#define  T2_Err_Too_Many_Ins             FT_Err_Too_Many_Hints
 #define  T2_Err_Invalid_Composite        FT_Err_Invalid_Composite
 
   /* Bytecode interpreter error codes. */
@@ -72,53 +65,53 @@
   /* broken font file, a broken glyph within a font */
   /* file, or a bug in the interpreter!             */
 
-#define T2_Err_Invalid_Opcode           0x400
-#define T2_Err_Too_Few_Arguments        0x401
-#define T2_Err_Stack_Overflow           0x402
-#define T2_Err_Code_Overflow            0x403
-#define T2_Err_Bad_Argument             0x404
-#define T2_Err_Divide_By_Zero           0x405
-#define T2_Err_Storage_Overflow         0x406
-#define T2_Err_Cvt_Overflow             0x407
-#define T2_Err_Invalid_Reference        0x408
-#define T2_Err_Invalid_Distance         0x409
-#define T2_Err_Interpolate_Twilight     0x40A
-#define T2_Err_Debug_OpCode             0x40B
-#define T2_Err_ENDF_In_Exec_Stream      0x40C
-#define T2_Err_Out_Of_CodeRanges        0x40D
-#define T2_Err_Nested_DEFS              0x40E
-#define T2_Err_Invalid_CodeRange        0x40F
-#define T2_Err_Invalid_Displacement     0x410
-#define T2_Err_Execution_Too_Long       0x411
-
-#define T2_Err_Too_Many_Instruction_Defs  0x412
-#define T2_Err_Too_Many_Function_Defs     0x412
+#define T2_Err_Invalid_Opcode           0x500
+#define T2_Err_Too_Few_Arguments        0x501
+#define T2_Err_Stack_Overflow           0x502
+#define T2_Err_Code_Overflow            0x503
+#define T2_Err_Bad_Argument             0x504
+#define T2_Err_Divide_By_Zero           0x505
+#define T2_Err_Storage_Overflow         0x506
+#define T2_Err_Cvt_Overflow             0x507
+#define T2_Err_Invalid_Reference        0x508
+#define T2_Err_Invalid_Distance         0x509
+#define T2_Err_Interpolate_Twilight     0x50A
+#define T2_Err_Debug_OpCode             0x50B
+#define T2_Err_ENDF_In_Exec_Stream      0x50C
+#define T2_Err_Out_Of_CodeRanges        0x50D
+#define T2_Err_Nested_DEFS              0x50E
+#define T2_Err_Invalid_CodeRange        0x50F
+#define T2_Err_Invalid_Displacement     0x510
+#define T2_Err_Execution_Too_Long       0x511
+
+#define T2_Err_Too_Many_Instruction_Defs  0x512
+#define T2_Err_Too_Many_Function_Defs     0x513
 
   /* Other TrueType specific error codes. */
 
-#define T2_Err_Table_Missing            0x420
-#define T2_Err_Too_Many_Extensions      0x421
-#define T2_Err_Extensions_Unsupported   0x422
-#define T2_Err_Invalid_Extension_Id     0x423
-
-#define T2_Err_No_Vertical_Data         0x424
-
-#define T2_Err_Max_Profile_Missing      0x430
-#define T2_Err_Header_Table_Missing     0x431
-#define T2_Err_Horiz_Header_Missing     0x432
-#define T2_Err_Locations_Missing        0x433
-#define T2_Err_Name_Table_Missing       0x434
-#define T2_Err_CMap_Table_Missing       0x435
-#define T2_Err_Hmtx_Table_Missing       0x436
-#define T2_Err_OS2_Table_Missing        0x437
-#define T2_Err_Post_Table_Missing       0x438
-
-#define T2_Err_Invalid_Horiz_Metrics    0x440
-#define T2_Err_Invalid_CharMap_Format   0x441
-#define T2_Err_Invalid_PPem             0x442
-#define T2_Err_Invalid_Vert_Metrics     0x443
-
-#define T2_Err_Could_Not_Find_Context   0x450
+#define T2_Err_Table_Missing            0x520
+#define T2_Err_Too_Many_Extensions      0x521
+#define T2_Err_Extensions_Unsupported   0x522
+#define T2_Err_Invalid_Extension_Id     0x523
+
+#define T2_Err_No_Vertical_Data         0x524
+
+#define T2_Err_Max_Profile_Missing      0x530
+#define T2_Err_Header_Table_Missing     0x531
+#define T2_Err_Horiz_Header_Missing     0x532
+#define T2_Err_Locations_Missing        0x533
+#define T2_Err_Name_Table_Missing       0x534
+#define T2_Err_CMap_Table_Missing       0x535
+#define T2_Err_Hmtx_Table_Missing       0x536
+#define T2_Err_OS2_Table_Missing        0x537
+#define T2_Err_Post_Table_Missing       0x538
+
+#define T2_Err_Invalid_Horiz_Metrics    0x540
+#define T2_Err_Invalid_CharMap_Format   0x541
+#define T2_Err_Invalid_PPem             0x542
+#define T2_Err_Invalid_Vert_Metrics     0x543
+
+#define T2_Err_Could_Not_Find_Context   0x550
 
 #endif /* FTERRID_H */
 
diff --git a/include/freetype/internal/tterrors.h b/include/freetype/internal/tterrors.h
index 4cb90d6..bb8c0fc 100644
--- a/include/freetype/internal/tterrors.h
+++ b/include/freetype/internal/tterrors.h
@@ -47,9 +47,6 @@
 #define  TT_Err_Invalid_Glyph_Index      FT_Err_Invalid_Glyph_Index
 
 #define  TT_Err_Unimplemented_Feature    FT_Err_Unimplemented_Feature
-#define  TT_Err_Unavailable_Outline      FT_Err_Unavailable_Outline
-#define  TT_Err_Unavailable_Bitmap       FT_Err_Unavailable_Bitmap
-#define  TT_Err_File_Is_Not_Collection   FT_Err_File_Is_Not_Collection
 
 #define  TT_Err_Invalid_Engine           FT_Err_Invalid_Driver_Handle
 
@@ -60,8 +57,6 @@
 
   /* General glyph outline errors. */
 
-#define  TT_Err_Too_Many_Points          FT_Err_Too_Many_Points
-#define  TT_Err_Too_Many_Contours        FT_Err_Too_Many_Contours
 #define  TT_Err_Too_Many_Ins             FT_Err_Too_Many_Hints
 #define  TT_Err_Invalid_Composite        FT_Err_Invalid_Composite
 
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index c333c67..d27de26 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -26,7 +26,7 @@
   /*                                                                       */
   /* Implementing basic computation routines.                              */
   /*                                                                       */
-  /* FT_MulDiv() and FT_MulFix() are declared in freetype.h.               */
+  /* FT_MulDiv(), FT_MulFix(), and FT_DivFix() are declared in freetype.h. */
   /*                                                                       */
   /*************************************************************************/
 
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index de3d606..c3cf180 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -856,7 +856,10 @@
   /*              vector.                                                  */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The transformation is only applied to scalable image formats.      */
+  /*    The transformation is only applied to scalable image formats after */
+  /*    the glyph has been loaded.  It means that hinting is unaltered by  */
+  /*    the transformation and is performed on the character size given in */
+  /*    the last call to FT_Set_Char_Sizes() or FT_Set_Pixel_Sizes().      */
   /*                                                                       */
   FT_EXPORT_FUNC( void )  FT_Set_Transform( FT_Face     face,
                                             FT_Matrix*  matrix,
@@ -1730,8 +1733,14 @@
     FT_ListNode       node = 0;
 
 
-    if ( !face || !asize || !face->driver )
-      return FT_Err_Invalid_Handle;
+    if ( !face )
+      return FT_Err_Invalid_Face_Handle;
+
+    if ( !asize )
+      return FT_Err_Invalid_Size_Handle;
+
+    if ( !face->driver )
+      return FT_Err_Invalid_Driver_Handle;
 
     *asize = 0;
 
@@ -2220,6 +2229,7 @@
   /*                                                                       */
   /* <Input>                                                               */
   /*    face     :: A handle to the source face object.                    */
+  /*                                                                       */
   /*    charcode :: The character code.                                    */
   /*                                                                       */
   /* <Return>                                                              */
@@ -2621,8 +2631,8 @@
   /*                   convert.                                            */
   /*                                                                       */
   /*    render_mode :: This is the render mode used to render the glyph    */
-  /*                   image into a bitmap.  See FT_Render_Mode() for a    */
-  /*                   list of possible values.                            */
+  /*                   image into a bitmap.  See FT_Render_Mode for a list */
+  /*                   of possible values.                                 */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
@@ -2980,7 +2990,7 @@
         }
       }
     }
-    return FT_Err_Invalid_Handle;
+    return FT_Err_Invalid_Driver_Handle;
   }
 
 
diff --git a/src/base/ftoutln.c b/src/base/ftoutln.c
index e4e168b..401a504 100644
--- a/src/base/ftoutln.c
+++ b/src/base/ftoutln.c
@@ -697,7 +697,7 @@
       if ( !error || error != FT_Err_Cannot_Render_Glyph )
         break;
 
-      /* FT_Err_Cannot_Render_Glyph is returned when the render mode */
+      /* FT_Err_Cannot_Render_Glyph is returned if the render mode   */
       /* is unsupported by the current renderer for this glyph image */
       /* format                                                      */
 
diff --git a/src/cff/t2gload.c b/src/cff/t2gload.c
index c7d0f92..76eb340 100644
--- a/src/cff/t2gload.c
+++ b/src/cff/t2gload.c
@@ -1309,7 +1309,7 @@
             FT_Int  dx = 0, dy = 0;   /* used in horizontal/vertical        */
                                       /* algorithm below                    */
             FT_Int  horizontal, count;
- 
+
 
             FT_TRACE4(( " flex1" ));
 
@@ -1343,7 +1343,7 @@
 
             /* strange test, but here it is... */
             horizontal = ( dx > dy );
-   
+
             for ( count = 5; count > 0; count-- )
             {
               x += args[0];
@@ -1351,7 +1351,7 @@
               add_point( builder, x, y, (FT_Bool)( count == 3 ) );
               args += 2;
             }
-   
+
             if ( horizontal )
             {
               x += args[0];
diff --git a/src/cff/t2load.c b/src/cff/t2load.c
index c74a2ac..4a77693 100644
--- a/src/cff/t2load.c
+++ b/src/cff/t2load.c
@@ -386,9 +386,8 @@
         goto Exit;
       break;
 
-
     default:    /* hmm... that's wrong */
-      error = FT_Err_Invalid_File_Format;
+      error = T2_Err_Invalid_File_Format;
     }
 
   Exit:
diff --git a/src/cff/t2objs.c b/src/cff/t2objs.c
index d82a3bb..1edb4ab 100644
--- a/src/cff/t2objs.c
+++ b/src/cff/t2objs.c
@@ -103,7 +103,7 @@
     if ( !charset_offset )
     {
       FT_ERROR(( "CFF.Build_Unicode_Charmap: charset table is missing\n" ));
-      error = FT_Err_Invalid_File_Format;
+      error = T2_Err_Invalid_File_Format;
       goto Exit;
     }
 
@@ -177,7 +177,7 @@
 
       default:   /* unknown charset format! */
         FT_ERROR(( "CFF: unknown charset format!\n" ));
-        error = FT_Err_Invalid_File_Format;
+        error = T2_Err_Invalid_File_Format;
         goto Fail;
     }
 
diff --git a/src/cff/t2objs.h b/src/cff/t2objs.h
index c1f4ad7..2602862 100644
--- a/src/cff/t2objs.h
+++ b/src/cff/t2objs.h
@@ -94,7 +94,7 @@
   {
     TT_CharMapRec  root;
     PS_Unicodes    unicodes;
-    
+
   } T2_CharMapRec, *T2_CharMap;
 
 
diff --git a/src/raster1/ftraster.c b/src/raster1/ftraster.c
index 08acf39..59be3c7 100644
--- a/src/raster1/ftraster.c
+++ b/src/raster1/ftraster.c
@@ -158,6 +158,13 @@
 #define FT_TRACE( x )  do ; while ( 0 )     /* nothing */
 #endif
 
+#define Raster_Err_None          0
+#define Raster_Err_Not_Ini      -1
+#define Raster_Err_Overflow     -2
+#define Raster_Err_Neg_Height   -3
+#define Raster_Err_Invalid      -4
+#define Raster_Err_Unsupported  -5
+
 
 #else /* _STANDALONE_ */
 
@@ -165,17 +172,16 @@
 #include <freetype/internal/ftobjs.h>
 #include <freetype/internal/ftdebug.h> /* for FT_TRACE() and FT_ERROR() */
 
+#define Raster_Err_None         FT_Err_Ok
+#define Raster_Err_Not_Ini      FT_Err_Raster_Uninitialized
+#define Raster_Err_Overflow     FT_Err_Raster_Overflow
+#define Raster_Err_Neg_Height   FT_Err_Raster_Negative_Height
+#define Raster_Err_Invalid      FT_Err_Invalid_Outline
+#define Raster_Err_Unsupported  FT_Err_Unimplemented_Feature
 
-#endif /* _STANDALONE_ */
 
+#endif /* _STANDALONE_ */
 
-#define Raster_Err_None               0
-#define Raster_Err_Not_Ini           -1
-#define Raster_Err_Overflow          -2
-#define Raster_Err_Neg_Height        -3
-#define Raster_Err_Invalid           -4
-#define Raster_Err_Gray_Unsupported  -5
-#define Raster_Err_Unsupported       -6
 
   /* FMulDiv means `Fast MulDiv'; it is used in case where `b' is       */
   /* typically a small value and the result of a*b is known to fit into */
diff --git a/src/smooth/ftgrays.c b/src/smooth/ftgrays.c
index 224cf32..7ed0838 100644
--- a/src/smooth/ftgrays.c
+++ b/src/smooth/ftgrays.c
@@ -94,12 +94,11 @@
 #define FT_COMPONENT  trace_aaraster
 
 
-  /* XXX: Adapt error code to FreeType conventions */
-#define ErrRaster_Invalid_Outline  -1
-
 #ifdef _STANDALONE_
 
+
 #define ErrRaster_Invalid_Mode     -2
+#define ErrRaster_Invalid_Outline  -1
 
 #include "ftimage.h"
 #include "ftgrays.h"
@@ -140,6 +139,7 @@
 #include <freetype/ftoutln.h>          /* for FT_Outline_Decompose()    */
 
 #define ErrRaster_Invalid_Mode     FT_Err_Cannot_Render_Glyph
+#define ErrRaster_Invalid_Outline  FT_Err_Invalid_Outline
 
 
 #endif /* _STANDALONE_ */
diff --git a/src/smooth/ftsmooth.c b/src/smooth/ftsmooth.c
index fa52939..6f399ac 100644
--- a/src/smooth/ftsmooth.c
+++ b/src/smooth/ftsmooth.c
@@ -38,7 +38,7 @@
   FT_Error  ft_smooth_init( FT_Renderer  render )
   {
     FT_Library  library = FT_MODULE_LIBRARY( render );
-    
+
 
     render->clazz->raster_class->raster_reset( render->raster,
                                                library->raster_pool,
@@ -46,7 +46,7 @@
 
     return 0;
   }
-  
+
 
   /* sets render-specific mode */
   static
@@ -58,7 +58,7 @@
     return render->clazz->raster_class->raster_set_mode( render->raster,
                                                          mode_tag,
                                                          data );
-  }                                          
+  }
 
   /* transform a given glyph image */
   static
@@ -68,20 +68,20 @@
                                  FT_Vector*    delta )
   {
     FT_Error  error = FT_Err_Ok;
-    
+
 
     if ( slot->format != render->glyph_format )
     {
       error = FT_Err_Invalid_Argument;
       goto Exit;
     }
-    
+
     if ( matrix )
       FT_Outline_Transform( &slot->outline, matrix );
-      
+
     if ( delta )
       FT_Outline_Translate( &slot->outline, delta->x, delta->y );
-    
+
   Exit:
     return error;
   }
@@ -97,8 +97,8 @@
 
     if ( slot->format == render->glyph_format )
       FT_Outline_Get_CBox( &slot->outline, cbox );
-  }                                      
-  
+  }
+
 
   /* convert a slot's glyph image into a bitmap */
   static
@@ -113,9 +113,9 @@
     FT_UInt      width, height, pitch;
     FT_Bitmap*   bitmap;
     FT_Memory    memory;
-    
+
     FT_Raster_Params  params;
-    
+
 
     /* check glyph image format */
     if ( slot->format != render->glyph_format )
@@ -123,20 +123,20 @@
       error = FT_Err_Invalid_Argument;
       goto Exit;
     }
-    
+
     /* check mode */
     if ( mode != ft_render_mode_normal )
       return FT_Err_Cannot_Render_Glyph;
-      
+
     outline = &slot->outline;
-    
+
     /* translate the outline to the new origin if needed */
     if ( origin )
       FT_Outline_Translate( outline, origin->x, origin->y );
-    
+
     /* compute the control box, and grid fit it */
     FT_Outline_Get_CBox( outline, &cbox );
-    
+
     cbox.xMin &= -64;
     cbox.yMin &= -64;
     cbox.xMax  = ( cbox.xMax + 63 ) & -64;
@@ -146,14 +146,14 @@
     height = ( cbox.yMax - cbox.yMin ) >> 6;
     bitmap = &slot->bitmap;
     memory = render->root.memory;
-    
+
     /* release old bitmap buffer */
     if ( slot->flags & ft_glyph_own_bitmap )
     {
       FREE( bitmap->buffer );
       slot->flags &= ~ft_glyph_own_bitmap;
     }
-      
+
     /* allocate new one, depends on pixel format */
     pitch = width;
     bitmap->pixel_mode = ft_pixel_mode_grays;
@@ -161,12 +161,12 @@
     bitmap->width      = width;
     bitmap->rows       = height;
     bitmap->pitch      = pitch;
-    
+
     if ( ALLOC( bitmap->buffer, (FT_ULong)pitch * height ) )
       goto Exit;
 
     slot->flags |= ft_glyph_own_bitmap;
-    
+
     /* translate outline to render it into the bitmap */
     FT_Outline_Translate( outline, -cbox.xMin, -cbox.yMin );
 
@@ -179,7 +179,7 @@
     error = render->raster_render( render->raster, &params );
     if ( error )
       goto Exit;
-    
+
     slot->format      = ft_glyph_format_bitmap;
     slot->bitmap_left = cbox.xMin >> 6;
     slot->bitmap_top  = cbox.yMax >> 6;
@@ -194,25 +194,25 @@
     {
       ft_module_renderer,
       sizeof( FT_RendererRec ),
-      
+
       "smooth",
       0x10000L,
       0x20000L,
-      
+
       0,    /* module specific interface */
-      
+
       (FT_Module_Constructor)ft_smooth_init,
       (FT_Module_Destructor) 0,
       (FT_Module_Requester)  0
     },
 
     ft_glyph_format_outline,
-    
+
     (FTRenderer_render)   ft_smooth_render,
     (FTRenderer_transform)ft_smooth_transform,
     (FTRenderer_getCBox)  ft_smooth_get_cbox,
     (FTRenderer_setMode)  ft_smooth_set_mode,
-    
+
     (FT_Raster_Funcs*)    &ft_grays_raster
   };
 
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 05d8656..7b7c45c 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -436,20 +436,20 @@
       ft_module_font_driver     |
       ft_module_driver_scalable |
       ft_module_driver_has_hinter,
-      
+
       sizeof ( TT_DriverRec ),
-    
+
       "truetype",      /* driver name                           */
       0x10000L,        /* driver version == 1.0                 */
       0x20000L,        /* driver requires FreeType 2.0 or above */
-  
+
       (void*)0,        /* driver specific interface */
-  
+
       (FT_Module_Constructor)TT_Init_Driver,
       (FT_Module_Destructor) TT_Done_Driver,
       (FT_Module_Requester)  tt_get_interface,
     },
-    
+
     sizeof ( TT_FaceRec ),
     sizeof ( TT_SizeRec ),
     sizeof ( FT_GlyphSlotRec ),
@@ -466,7 +466,7 @@
     (FTDriver_setPixelSizes)Set_Pixel_Sizes,
     (FTDriver_loadGlyph)    Load_Glyph,
     (FTDriver_getCharIndex) Get_Char_Index,
-    
+
     (FTDriver_getKerning)   Get_Kerning,
     (FTDriver_attachFile)   0,
     (FTDriver_getAdvances)  0
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index ca45d6a..2ba715d 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -217,7 +217,7 @@
 
   Exit:
     return error;
-     
+
   Bad_Format:
     error = FT_Err_Unknown_File_Format;
     goto Exit;
@@ -683,7 +683,7 @@
 
     /* set `extra' in glyph loader */
     error = FT_GlyphLoader_Create_Extra( FT_DRIVER( driver )->glyph_loader );
-    
+
     /* init extension registry if needed */
 
 #ifdef TT_CONFIG_OPTION_EXTEND_ENGINE
diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c
index 3215f7b..4aef164 100644
--- a/src/type1/t1driver.c
+++ b/src/type1/t1driver.c
@@ -287,13 +287,13 @@
     {
       ft_module_font_driver | ft_module_driver_scalable,
       sizeof( FT_DriverRec ),
-      
+
       "type1",   /* driver name        */
       0x10000L,  /* driver version 1.0 */
       0x20000L,  /* driver requires FreeType 2.0 or above */
-  
+
       0,   /* module specific interface */
-  
+
       (FT_Module_Constructor)0,
       (FT_Module_Destructor) 0,
 #ifdef T1_CONFIG_OPTION_NO_AFM
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 2642224..1165258 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -84,7 +84,7 @@
     {
       if ( reset_base )
         FT_GlyphLoader_Rewind( builder->loader );
-    
+
       FT_GlyphLoader_Prepare( builder->loader );
     }
   }
@@ -130,7 +130,7 @@
     {
       FT_GlyphLoader*  loader = FT_SLOT( glyph )->loader;
 
-      
+
       builder->loader  = loader;
       builder->base    = &loader->base.outline;
       builder->current = &loader->current.outline;
@@ -311,7 +311,7 @@
       error = FT_GlyphLoader_Check_Subglyphs( loader, 2 );
       if ( error )
         goto Exit;
-      
+
       subg = loader->current.subglyphs;
 
       /* subglyph 0 = base character */
@@ -332,14 +332,14 @@
       glyph->num_subglyphs = 2;
       glyph->subglyphs     = loader->current.subglyphs;
       glyph->format        = ft_glyph_format_composite;
-      
+
       loader->current.num_subglyphs = 2;
       goto Exit;
     }
 
     /* First load `bchar' in builder */
     /* now load the unscaled outline */
-    
+
     if ( decoder->builder.loader )
       FT_GlyphLoader_Prepare( decoder->builder.loader );  /* prepare loader */
 
@@ -384,7 +384,7 @@
     {
       FT_Outline  dummy;
 
-        
+
       dummy.n_points = base->n_points - n_base_points;
       dummy.points   = base->points   + n_base_points;
 
@@ -1266,14 +1266,14 @@
       FT_Int      first = 0;
       FT_Vector*  p1    = cur->points + first;
       FT_Vector*  p2    = cur->points + cur->n_points - 1;
-      
+
 
       if ( cur->n_contours > 1 )
       {
         first = cur->contours[cur->n_contours - 2] + 1;
         p1    = cur->points + first;
       }
-        
+
       if ( p1->x == p2->x && p1->y == p2->y )
         cur->n_points--;
     }
@@ -1546,16 +1546,16 @@
     FT_UInt          old_points, old_contours;
     FT_GlyphLoader*  loader = decoder->builder.loader;
     FT_Error         error;
-    
+
 
     /* Pass 1 -- try to load first glyph, simply recording points */
     old_points   = loader->base.outline.n_points;
     old_contours = loader->base.outline.n_contours;
-    
+
     FT_GlyphLoader_Prepare( decoder->builder.loader );
 
     T1_Reset_Builder( builder, 0 );
-    
+
     builder->no_recurse                = recurse;
     builder->pass                      = 0;
     glyph->hints->hori_stems.num_stems = 0;
@@ -1568,7 +1568,7 @@
                                   type1->subrs,
                                   type1->subrs_len );
     if ( error )
-      goto Exit;                                  
+      goto Exit;
 
     /* check for composite (i.e. `seac' operator) */
     if ( glyph->root.format == ft_glyph_format_composite )
@@ -1603,7 +1603,7 @@
       error = t1_load_hinted_glyph( decoder, subglyph->index, 0 );
       if ( error )
         goto Exit;
-      
+
       /* Finally, move the accent */
       dx = FT_MulFix( subglyph->arg1, size->root.metrics.x_scale );
       dy = FT_MulFix( subglyph->arg2, size->root.metrics.y_scale );
@@ -1612,7 +1612,7 @@
       {
         FT_Outline  dummy;
 
-        
+
         dummy.n_points = loader->base.outline.n_points - n_base_points;
         dummy.points   = loader->base.outline.points   + n_base_points;
 
@@ -1628,17 +1628,17 @@
     {
       /* All right, pass 1 is finished, now grid-fit all stem hints */
       T1_Hint_Stems( &decoder->builder );
-      
+
       /* undo the end-char */
       builder->base->n_points   = old_points;
       builder->base->n_contours = old_contours;
 
       /* Pass 2 -- record and scale/hint the points */
       T1_Reset_Builder( builder, 0 );
-      
+
       builder->pass       = 1;
       builder->no_recurse = 0;
-  
+
       error = T1_Parse_CharStrings( decoder,
                                     type1->charstrings    [glyph_index],
                                     type1->charstrings_len[glyph_index],
@@ -1646,14 +1646,14 @@
                                     type1->subrs,
                                     type1->subrs_len );
     }
-    
+
     /* save new glyph tables */
     if ( recurse )
       T1_Done_Builder( builder );
-    
+
   Exit:
     return error;
-  }                                  
+  }
 
 
 #endif /* !T1_CONFIG_OPTION_DISABLE_HINTER */
@@ -1694,7 +1694,7 @@
       T1_Init_Decoder( &decoder, &t1_hinter_funcs );
       T1_Init_Builder( &decoder.builder, face, size, glyph,
                        &gload_builder_interface );
-                       
+
       error = t1_load_hinted_glyph( &decoder, glyph_index, 1 );
     }
     else
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index 6efa1b9..00a56a2 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -890,7 +890,7 @@
 
 
       tokzer->cursor += count;  /* skip */
-      
+
       if ( face->type1.private_dict.lenIV >= 0 )
       {
         t1_decrypt( base, count, 4330 );
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 6f5e386..0eeef8a 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -291,10 +291,10 @@
       psnames = (PSNames_Interface*)
                  FT_Get_Module_Interface( FT_FACE_LIBRARY( face ),
                                           "psnames" );
-                 
+
       face->psnames = psnames;
     }
-    
+
     /* open the tokenizer, this will also check the font format */
     error = New_Tokenizer( stream, &tokenizer );
     if ( error )
diff --git a/src/type1/t1tokens.c b/src/type1/t1tokens.c
index 5abddd1..2953322 100644
--- a/src/type1/t1tokens.c
+++ b/src/type1/t1tokens.c
@@ -946,7 +946,7 @@
             tok->token.kind = ( c >= '0' && c <= '9' ? tok_number : tok_any );
             goto L2;
           }
- 
+
           if ( grow( tok ) )
             goto Exit;
           base  = tok->base;
diff --git a/src/type1z/z1driver.c b/src/type1z/z1driver.c
index 27e79aa..6d25b3c 100644
--- a/src/type1z/z1driver.c
+++ b/src/type1z/z1driver.c
@@ -83,16 +83,16 @@
   {
     FT_UNUSED( driver );
     FT_UNUSED( interface );
-    
+
 #ifndef Z1_CONFIG_OPTION_NO_MM_SUPPORT
     if ( strcmp( (const char*)interface, "get_mm" ) == 0 )
       return (FT_Module_Interface)Z1_Get_Multi_Master;
-      
+
     if ( strcmp( (const char*)interface, "set_mm_design") == 0 )
-      return (FT_Module_Interface)Z1_Set_MM_Design;      
+      return (FT_Module_Interface)Z1_Set_MM_Design;
 
     if ( strcmp( (const char*)interface, "set_mm_blend") == 0 )
-      return (FT_Module_Interface)Z1_Set_MM_Blend;      
+      return (FT_Module_Interface)Z1_Set_MM_Blend;
 #endif
     return 0;
   }
@@ -259,13 +259,13 @@
     {
       ft_module_font_driver | ft_module_driver_scalable,
       sizeof( FT_DriverRec ),
-      
+
       "type1z",
       0x10000L,
       0x20000L,
-  
+
       0,   /* format interface */
-  
+
       (FT_Module_Constructor)Z1_Init_Driver,
       (FT_Module_Destructor) Z1_Done_Driver,
       (FT_Module_Requester)  Get_Interface,
diff --git a/src/type1z/z1gload.c b/src/type1z/z1gload.c
index 24fddb6..f65c569 100644
--- a/src/type1z/z1gload.c
+++ b/src/type1z/z1gload.c
@@ -156,7 +156,7 @@
     if ( glyph )
     {
       FT_GlyphLoader*  loader = glyph->root.loader;
-      
+
 
       builder->loader  = loader;
       builder->current = &loader->current.outline;
@@ -303,7 +303,7 @@
     {
       if ( outline->n_contours > 0 )
         outline->contours[outline->n_contours - 1] = outline->n_points - 1;
-        
+
       outline->n_contours++;
     }
 
@@ -346,18 +346,18 @@
       FT_Int      first = 0;
       FT_Vector*  p1    = outline->points + first;
       FT_Vector*  p2    = outline->points + outline->n_points-1;
-      
+
 
       if ( outline->n_contours > 1 )
       {
         first = outline->contours[outline->n_contours - 2] + 1;
         p1    = outline->points + first;
       }
-        
+
       if ( p1->x == p2->x && p1->y == p2->y )
         outline->n_points--;
     }
-    
+
     if ( outline->n_contours > 0 )
       outline->contours[outline->n_contours - 1] = outline->n_points - 1;
   }
@@ -474,7 +474,7 @@
       error = FT_GlyphLoader_Check_Subglyphs( loader, 2 );
       if ( error )
         goto Exit;
-      
+
       subg = loader->current.subglyphs;
 
       /* subglyph 0 = base character */
@@ -495,13 +495,13 @@
       glyph->num_subglyphs = 2;
       glyph->subglyphs     = loader->base.subglyphs;
       glyph->format        = ft_glyph_format_composite;
-      
+
       loader->current.num_subglyphs = 2;
     }
 
     /* First load `bchar' in builder */
     /* now load the unscaled outline */
-    
+
     FT_GlyphLoader_Prepare( decoder->builder.loader );  /* prepare loader */
 
     error = Z1_Parse_CharStrings( decoder,
@@ -546,7 +546,7 @@
     {
       FT_Outline  dummy;
 
-        
+
       dummy.n_points = base->n_points - n_base_points;
       dummy.points   = base->points   + n_base_points;
       FT_Outline_Translate( &dummy, adx - asb, ady );
@@ -889,7 +889,7 @@
           /* counter control hints, clear stack */
           top = decoder->stack;
           break;
-          
+
         case 14:
         case 15:
         case 16:
@@ -901,14 +901,14 @@
             FT_Int*    delta;
             FT_Int*    values;
 
-              
+
             if ( !blend )
             {
               FT_ERROR(( "Z1_Parse_CharStrings:" ));
               FT_ERROR(( " unexpected multiple masters operator!\n" ));
               goto Syntax_Error;
             }
-              
+
             num_points = top[1] - 13 + ( top[1] == 18 );
             if ( top[0] != (FT_Int)( num_points * blend->num_designs ) )
             {
@@ -916,7 +916,7 @@
               FT_ERROR(( " incorrect number of mm arguments\n" ));
               goto Syntax_Error;
             }
-              
+
             top -= blend->num_designs*num_points;
             if ( top < decoder->stack )
               goto Stack_Underflow;
@@ -951,7 +951,7 @@
             /* note that `top' will be incremented later by calls to `pop' */
             break;
           }
-          
+
         default:
         Unexpected_OtherSubr:
           FT_ERROR(( "Z1_Parse_CharStrings: invalid othersubr [%d %d]!\n",
diff --git a/src/type1z/z1load.c b/src/type1z/z1load.c
index a2b4742..41e43d2 100644
--- a/src/type1z/z1load.c
+++ b/src/type1z/z1load.c
@@ -104,7 +104,7 @@
   /*****                                                               *****/
   /*************************************************************************/
   /*************************************************************************/
- 
+
   static
   FT_Error  t1_allocate_blend( T1_Face  face,
                                FT_UInt  num_designs,
@@ -113,17 +113,17 @@
     T1_Blend*  blend;
     FT_Memory  memory = face->root.memory;
     FT_Error   error  = 0;
-    
- 
+
+
     blend = face->blend;
     if ( !blend )
     {
       if ( ALLOC( blend, sizeof ( *blend ) ) )
         goto Exit;
-        
+
       face->blend = blend;
     }
-    
+
     /* allocate design data if needed */
     if ( num_designs > 0 )
     {
@@ -134,9 +134,9 @@
              ALLOC_ARRAY( blend->privates[1], num_designs, T1_Private )     ||
              ALLOC_ARRAY( blend->weight_vector, num_designs * 2, FT_Fixed ) )
           goto Exit;
-   
+
         blend->default_weight_vector = blend->weight_vector + num_designs;
- 
+
         blend->font_infos[0] = &face->type1.font_info;
         blend->privates  [0] = &face->type1.private_dict;
         blend->num_designs   = num_designs;
@@ -144,41 +144,41 @@
       else if ( blend->num_designs != num_designs )
         goto Fail;
     }
-    
+
     /* allocate axis data if needed */
     if ( num_axis > 0 )
     {
       if ( blend->num_axis != 0 && blend->num_axis != num_axis )
         goto Fail;
-        
+
       blend->num_axis = num_axis;
     }
-    
+
     /* allocate the blend design pos table if needed */
     num_designs = blend->num_designs;
     num_axis    = blend->num_axis;
     if ( num_designs && num_axis && blend->design_pos[0] == 0 )
     {
       FT_UInt  n;
-      
- 
+
+
       if ( ALLOC_ARRAY( blend->design_pos[0],
                         num_designs * num_axis, FT_Fixed ) )
         goto Exit;
-        
+
       for ( n = 1; n < num_designs; n++ )
         blend->design_pos[n] = blend->design_pos[0] + num_axis * n;
     }
-    
+
   Exit:
     return error;
- 
+
   Fail:
     error = -1;
     goto Exit;
-  }                                  
- 
- 
+  }
+
+
   LOCAL_FUNC
   FT_Error  Z1_Get_Multi_Master( T1_Face           face,
                                  FT_Multi_Master*  master )
@@ -186,21 +186,21 @@
     T1_Blend*  blend = face->blend;
     FT_UInt    n;
     FT_Error   error;
-    
- 
+
+
     error = T1_Err_Invalid_Argument;
- 
+
     if ( blend )
     {
       master->num_axis    = blend->num_axis;
       master->num_designs = blend->num_designs;
- 
+
       for ( n = 0; n < blend->num_axis; n++ )
       {
         FT_MM_Axis*    axis = master->axis + n;
         T1_DesignMap*  map = blend->design_map + n;
-        
- 
+
+
         axis->name    = blend->axis_names[n];
         axis->minimum = map->design_points[0];
         axis->maximum = map->design_points[map->num_points - 1];
@@ -208,9 +208,9 @@
       error = 0;
     }
     return error;
-  }                                            
- 
- 
+  }
+
+
   LOCAL_FUNC
   FT_Error  Z1_Set_MM_Blend( T1_Face    face,
                              FT_UInt    num_coords,
@@ -219,7 +219,7 @@
     T1_Blend*  blend = face->blend;
     FT_Error   error;
     FT_UInt    n, m;
-    
+
 
     error = T1_Err_Invalid_Argument;
 
@@ -236,16 +236,16 @@
         for ( m = 0; m < blend->num_axis; m++ )
         {
           FT_Fixed  factor;
- 
+
 
           /* get current blend axis position */
           factor = coords[m];
           if ( factor < 0 )        factor = 0;
           if ( factor > 0x10000L ) factor = 0x10000L;
-          
+
           if ( ( n & ( 1 << m ) ) == 0 )
             factor = 0x10000L - factor;
-            
+
           result = FT_MulFix( result, factor );
         }
         blend->weight_vector[n] = result;
@@ -255,8 +255,8 @@
     }
     return error;
   }
-  
- 
+
+
   LOCAL_FUNC
   FT_Error  Z1_Set_MM_Design( T1_Face   face,
                               FT_UInt   num_coords,
@@ -266,13 +266,13 @@
     FT_Error   error;
     FT_UInt    n, p;
 
-    
+
     error = T1_Err_Invalid_Argument;
     if ( blend && blend->num_axis == num_coords )
     {
       /* compute the blend coordinates through the blend design map */
       FT_Fixed  final_blends[T1_MAX_MM_DESIGNS];
-      
+
 
       for ( n = 0; n < blend->num_axis; n++ )
       {
@@ -282,11 +282,11 @@
         FT_Fixed*      designs = map->design_points;
         FT_Fixed*      blends  = map->blend_points;
         FT_Int         before  = -1, after = -1;
-        
+
         for ( p = 0; p < map->num_points; p++ )
         {
           FT_Fixed  p_design = designs[p];
-          
+
 
           /* exact match ? */
           if ( design == p_design )
@@ -294,23 +294,23 @@
             the_blend = blends[p];
             goto Found;
           }
-          
+
           if ( design < p_design )
           {
             after = p;
             break;
           }
-          
+
           before = p;
         }
-        
+
         /* now, interpolate if needed */
         if ( before < 0 )
           the_blend = blends[0];
-          
+
         else if ( after < 0 )
           the_blend = blends[map->num_points - 1];
-          
+
         else
           the_blend = FT_MulDiv( design         - designs[before],
                                  blends [after] - blends [before],
@@ -319,33 +319,33 @@
       Found:
         final_blends[n] = the_blend;
       }
- 
-      error = Z1_Set_MM_Blend( face, num_coords, final_blends );     
+
+      error = Z1_Set_MM_Blend( face, num_coords, final_blends );
     }
 
     return error;
   }
- 
-  
+
+
   LOCAL_FUNC
   void  Z1_Done_Blend( T1_Face  face )
   {
     FT_Memory  memory = face->root.memory;
     T1_Blend*  blend  = face->blend;
-    
+
 
     if ( blend )
     {
       FT_UInt  num_designs = blend->num_designs;
       FT_UInt  num_axis    = blend->num_axis;
       FT_UInt  n;
-           
+
 
       /* release design pos table */
       FREE( blend->design_pos[0] );
       for ( n = 1; n < num_designs; n++ )
         blend->design_pos[n] = 0;
- 
+
       /* release blend `private' and `font info' dictionaries */
       FREE( blend->privates[1] );
       FREE( blend->font_infos[1] );
@@ -355,15 +355,15 @@
         blend->privates  [n] = 0;
         blend->font_infos[n] = 0;
       }
- 
+
       /* release weight vectors */
       FREE( blend->weight_vector );
       blend->default_weight_vector = 0;
- 
+
       /* release axis names */
       for ( n = 0; n < num_axis; n++ )
         FREE( blend->axis_names[n] );
-      
+
       /* release design map */
       for ( n = 0; n < num_axis; n++ )
       {
@@ -373,12 +373,12 @@
         FREE( dmap->design_points );
         dmap->num_points = 0;
       }
-      
+
       FREE( face->blend );
     }
   }
- 
- 
+
+
   static
   void  parse_blend_axis_types( T1_Face     face,
                                 Z1_Loader*  loader )
@@ -388,7 +388,7 @@
     FT_Error      error = 0;
     T1_Blend*     blend;
     FT_Memory     memory;
- 
+
 
     /* take an array of objects */
     Z1_ToTokenArray( &loader->parser, axis_tokens,
@@ -400,46 +400,46 @@
       error = T1_Err_Invalid_File_Format;
       goto Exit;
     }
-    
+
     /* allocate blend if necessary */
     error = t1_allocate_blend( face, 0, (FT_UInt)num_axis );
     if ( error )
       goto Exit;
-    
+
     blend  = face->blend;
     memory = face->root.memory;
-    
+
     /* each token is an immediate containing the name of the axis */
     for ( n = 0; n < num_axis; n++ )
     {
       Z1_Token_Rec*  token = axis_tokens + n;
       FT_Byte*       name;
       FT_Int         len;
-      
+
       /* skip first slash, if any */
       if (token->start[0] == '/')
         token->start++;
-        
+
       len = token->limit - token->start;
       if ( len <= 0 )
       {
         error = T1_Err_Invalid_File_Format;
         goto Exit;
       }
-        
+
       if ( ALLOC( blend->axis_names[n], len + 1 ) )
         goto Exit;
-      
+
       name = (FT_Byte*)blend->axis_names[n];
       MEM_Copy( name, token->start, len );
       name[len] = 0;
     }
- 
-  Exit:   
+
+  Exit:
     loader->parser.error = error;
   }
-  
-  
+
+
   static
   void  parse_blend_design_positions( T1_Face     face,
                                       Z1_Loader*  loader )
@@ -448,12 +448,12 @@
     FT_Int        num_designs;
     FT_Int        num_axis;
     Z1_Parser*    parser = &loader->parser;
-    
+
     FT_Error      error = 0;
     T1_Blend*     blend;
- 
 
-    /* get the array of design tokens - compute number of designs */   
+
+    /* get the array of design tokens - compute number of designs */
     Z1_ToTokenArray( parser, design_tokens, T1_MAX_MM_DESIGNS, &num_designs );
     if ( num_designs <= 0 || num_designs > T1_MAX_MM_DESIGNS )
     {
@@ -463,12 +463,12 @@
       error = T1_Err_Invalid_File_Format;
       goto Exit;
     }
-    
+
     {
       FT_Byte*  old_cursor = parser->cursor;
       FT_Byte*  old_limit  = parser->limit;
       FT_UInt   n;
- 
+
 
       blend    = face->blend;
       num_axis = 0;  /* make compiler happy */
@@ -478,14 +478,14 @@
         Z1_Token_Rec   axis_tokens[ T1_MAX_MM_DESIGNS ];
         Z1_Token_Rec*  token;
         FT_Int         axis, n_axis;
- 
+
 
         /* read axis/coordinates tokens */
         token = design_tokens + n;
         parser->cursor = token->start - 1;
         parser->limit  = token->limit + 1;
         Z1_ToTokenArray( parser, axis_tokens, T1_MAX_MM_AXIS, &n_axis );
-        
+
         if ( n == 0 )
         {
           num_axis = n_axis;
@@ -500,7 +500,7 @@
           error = T1_Err_Invalid_File_Format;
           goto Exit;
         }
-        
+
         /* now, read each axis token into the design position */
         for ( axis = 0; axis < n_axis; axis++ )
         {
@@ -512,15 +512,15 @@
           blend->design_pos[n][axis] = Z1_ToFixed( parser, 0 );
         }
       }
-      
+
       loader->parser.cursor = old_cursor;
       loader->parser.limit  = old_limit;
     }
-    
+
   Exit:
     loader->parser.error = error;
   }
- 
+
 
   static
   void  parse_blend_design_map( T1_Face     face,
@@ -534,7 +534,7 @@
     FT_Byte*      old_cursor;
     FT_Byte*      old_limit;
     FT_Memory     memory = face->root.memory;
-    
+
 
     Z1_ToTokenArray( parser, axis_tokens, T1_MAX_MM_AXIS, &num_axis );
     if ( num_axis <= 0 || num_axis > T1_MAX_MM_AXIS )
@@ -546,29 +546,29 @@
     }
     old_cursor = parser->cursor;
     old_limit  = parser->limit;
- 
+
     error = t1_allocate_blend( face, 0, num_axis );
     if ( error )
       goto Exit;
     blend = face->blend;
- 
+
     /* now, read each axis design map */
     for ( n = 0; n < num_axis; n++ )
     {
       T1_DesignMap*   map = blend->design_map + n;
       Z1_Token_Rec*   token;
       FT_Int          p, num_points;
-      
+
 
       token = axis_tokens + n;
       parser->cursor = token->start;
       parser->limit  = token->limit;
-      
+
       /* count the number of map points */
       {
         FT_Byte*  p     = token->start;
         FT_Byte*  limit = token->limit;
-        
+
 
         num_points = 0;
         for ( ; p < limit; p++ )
@@ -581,27 +581,27 @@
         error = T1_Err_Invalid_File_Format;
         goto Exit;
       }
-      
+
       /* allocate design map data */
       if ( ALLOC_ARRAY( map->design_points, num_points * 2, FT_Fixed ) )
         goto Exit;
       map->blend_points = map->design_points + num_points;
       map->num_points   = (FT_Byte)num_points;
-      
+
       for ( p = 0; p < num_points; p++ )
       {
         map->design_points[p] = Z1_ToInt( parser );
         map->blend_points [p] = Z1_ToFixed( parser, 0 );
       }
-    }   
-    
+    }
+
     parser->cursor = old_cursor;
     parser->limit  = old_limit;
 
   Exit:
     parser->error = error;
   }
- 
+
 
   static
   void  parse_weight_vector( T1_Face     face,
@@ -614,7 +614,7 @@
     FT_UInt       n;
     FT_Byte*      old_cursor;
     FT_Byte*      old_limit;
-    
+
 
     if ( !blend || blend->num_designs == 0 )
     {
@@ -622,7 +622,7 @@
       error = T1_Err_Invalid_File_Format;
       goto Exit;
     }
-    
+
     Z1_ToToken( parser, &master );
     if ( master.type != t1_token_array )
     {
@@ -630,10 +630,10 @@
       error = T1_Err_Invalid_File_Format;
       goto Exit;
     }
-    
+
     old_cursor = parser->cursor;
     old_limit  = parser->limit;
- 
+
     parser->cursor = master.start;
     parser->limit  = master.limit;
 
@@ -642,14 +642,14 @@
       blend->default_weight_vector[n] =
       blend->weight_vector[n]         = Z1_ToFixed( parser, 0 );
     }
-    
+
     parser->cursor = old_cursor;
     parser->limit  = old_limit;
 
   Exit:
     parser->error = error;
   }
- 
+
 
   /* the keyword `/shareddict' appears in some multiple master fonts   */
   /* with a lot of Postscript garbage behind it (that's completely out */
@@ -660,9 +660,9 @@
                            Z1_Loader*  loader )
   {
     Z1_Parser*  parser = &loader->parser;
-    
+
     FT_UNUSED( face );
-    
+
 
     parser->cursor = parser->limit;
     parser->error  = 0;
@@ -670,7 +670,7 @@
 
 #endif /* Z1_CONFIG_OPTION_NO_MM_SUPPORT */
 
- 
+
   /*************************************************************************/
   /*************************************************************************/
   /*****                                                               *****/
@@ -696,12 +696,12 @@
           static                                    \
           const Z1_Field_Rec  t1_field_ ## _field = \
             Z1_FIELD_BOOL( T1TYPE, _field );
-   
+
 #define Z1_NEW_NUM( _name, _field )                 \
           static                                    \
           const Z1_Field_Rec  t1_field_ ## _field = \
             Z1_FIELD_NUM( T1TYPE, _field );
-   
+
 #define Z1_NEW_FIXED( _name, _field )                 \
           static                                      \
           const Z1_Field_Rec  t1_field_ ## _field =   \
@@ -711,7 +711,7 @@
           static                                                \
           const Z1_Field_Rec  t1_field_ ## _field =             \
             Z1_FIELD_NUM_ARRAY( T1TYPE, _field, _count, _max );
-   
+
 #define Z1_NEW_FIXED_TABLE( _name, _field, _max, _count )         \
           static                                                  \
           const Z1_Field_Rec  t1_field_ ## _field =               \
@@ -721,7 +721,7 @@
           static                                         \
           const Z1_Field_Rec  t1_field_ ## _field =      \
             Z1_FIELD_NUM_ARRAY2( T1TYPE, _field, _max );
-   
+
 #define Z1_NEW_FIXED_TABLE2( _name, _field, _max )         \
           static                                           \
           const Z1_Field_Rec  t1_field_ ## _field =        \
@@ -767,18 +767,18 @@
     t1_keyword_callback = 0,
     t1_keyword_field,
     t1_keyword_field_table
-    
+
   } Z1_KeyWord_Type;
-  
+
 
   typedef enum  Z1_KeyWord_Location_
   {
     t1_keyword_type1 = 0,
     t1_keyword_font_info,
     t1_keyword_private
-  
+
   } Z1_KeyWord_Location;
-  
+
 
   typedef struct  Z1_KeyWord_
   {
@@ -800,7 +800,7 @@
         {                                                              \
           name, t1_keyword_field, t1_keyword_type1, 0, &t1_field_ ## f \
         }
-         
+
 #define Z1_KEYWORD_FONTINFO( name, f )                                     \
         {                                                                  \
           name, t1_keyword_field, t1_keyword_font_info, 0, &t1_field_ ## f \
@@ -855,7 +855,7 @@
     void**     objects;
     FT_UInt    max_objects;
     T1_Blend*  blend = face->blend;
-    
+
 
     /* if the keyword has a dedicated callback, call it */
     if ( keyword->type == t1_keyword_callback )
@@ -864,7 +864,7 @@
       error = loader->parser.error;
       goto Exit;
     }
-    
+
     /* now, the keyword is either a simple field, or a table of fields; */
     /* we are now going to take care of it                              */
     switch ( keyword->location )
@@ -880,7 +880,7 @@
         max_objects = blend->num_designs;
       }
       break;
-        
+
     case t1_keyword_private:
       dummy_object = &face->type1.private_dict;
       objects      = &dummy_object;
@@ -892,23 +892,23 @@
         max_objects = blend->num_designs;
       }
       break;
-      
+
     default:
       dummy_object = &face->type1;
       objects      = &dummy_object;
       max_objects  = 0;
     }
-    
+
     if ( keyword->type == t1_keyword_field_table )
       error = Z1_Load_Field_Table( &loader->parser, keyword->field,
                                    objects, max_objects, 0 );
     else
       error = Z1_Load_Field( &loader->parser, keyword->field,
                              objects, max_objects, 0 );
-    
+
   Exit:
     return error;
-  }                                
+  }
 
 
   static
@@ -1392,7 +1392,7 @@
 #include <type1z/z1tokens.h>
 
 #endif
-    
+
     /* now add the special functions... */
     Z1_KEYWORD_CALLBACK( "FontName", parse_font_name ),
     Z1_KEYWORD_CALLBACK( "FontBBox", parse_font_bbox ),
@@ -1407,7 +1407,7 @@
     Z1_KEYWORD_CALLBACK( "BlendAxisTypes", parse_blend_axis_types ),
     Z1_KEYWORD_CALLBACK( "WeightVector", parse_weight_vector ),
     Z1_KEYWORD_CALLBACK( "shareddict", parse_shared_dict ),
-#endif    
+#endif
 
     Z1_KEYWORD_CALLBACK( 0, 0 )
   };
@@ -1438,27 +1438,27 @@
              strncmp( (char*)cur, "FontDirectory", 13 ) == 0 )
         {
           FT_Byte*  cur2;
-          
+
 
           /* skip the `FontDirectory' keyword */
           cur += 13;
           cur2 = cur;
-          
+
           /* lookup the `known' keyword */
           while ( cur < limit && *cur != 'k'        &&
                   strncmp( (char*)cur, "known", 5 ) )
             cur++;
-          
+
           if ( cur < limit )
           {
             Z1_Token_Rec  token;
-            
+
 
             /* skip the `known' keyword and the token following it */
             cur += 5;
             loader->parser.cursor = cur;
             Z1_ToToken( &loader->parser, &token );
-            
+
             /* if the last token was an array, skip it! */
             if ( token.type == t1_token_array )
               cur2 = parser->cursor;
@@ -1489,17 +1489,17 @@
             {
               /* now, compare the immediate name to the keyword table */
               Z1_KeyWord*  keyword = (Z1_KeyWord*)t1_keywords;
-  
+
 
               for (;;)
               {
                 FT_Byte*  name;
-  
+
 
                 name = (FT_Byte*)keyword->name;
                 if ( !name )
                   break;
-  
+
                 if ( cur[0] == name[0]                          &&
                      len == (FT_Int)strlen( (const char*)name ) )
                 {
@@ -1509,7 +1509,7 @@
                   for ( n = 1; n < len; n++ )
                     if ( cur[n] != name[n] )
                       break;
-  
+
                   if ( n >= len )
                   {
                     /* we found it -- run the parsing callback! */
@@ -1518,7 +1518,7 @@
                     parser->error = t1_load_keyword( face, loader, keyword );
                     if ( parser->error )
                       return parser->error;
-  
+
                     cur = parser->cursor;
                     break;
                   }
diff --git a/src/type1z/z1parse.c b/src/type1z/z1parse.c
index 3cb71f8..9bc2913 100644
--- a/src/type1z/z1parse.c
+++ b/src/type1z/z1parse.c
@@ -425,15 +425,15 @@
       while ( parser->cursor < parser->limit )
       {
         Z1_Token_Rec  token;
-        
+
 
         Z1_ToToken( parser, &token );
         if ( !token.type )
           break;
-          
+
         if ( cur < limit )
           *cur = token;
-          
+
         cur++;
       }
 
@@ -867,17 +867,17 @@
         {
           FT_Memory  memory = parser->memory;
           FT_UInt    len    = limit-cur;
-            
+
           if ( ALLOC( string, len + 1 ) )
             goto Exit;
-              
+
           MEM_Copy( string, cur, len );
-          string[len] = 0;              
+          string[len] = 0;
 
           *(FT_String**)q = string;
         }
         break;
-          
+
       default:
         /* an error occured */
         goto Fail;
@@ -915,7 +915,7 @@
     FT_Byte*       old_cursor;
     FT_Byte*       old_limit;
     Z1_Field_Rec   fieldrec = *(Z1_Field_Rec*)field;
-    
+
 
     Z1_ToTokenArray( parser, elements, 32, &num_elements );
     if ( num_elements < 0 )
@@ -942,7 +942,7 @@
 
     if ( pflags )
       *pflags |= 1L << field->flag_bit;
-      
+
     parser->cursor = old_cursor;
     parser->limit  = old_limit;
 
diff --git a/src/type1z/z1parse.h b/src/type1z/z1parse.h
index 8c11fb9..d0b6a65 100644
--- a/src/type1z/z1parse.h
+++ b/src/type1z/z1parse.h
@@ -33,10 +33,10 @@
     t1_token_any,
     t1_token_string,
     t1_token_array,
-    
+
     /* do not remove */
     t1_token_max
-    
+
   } Z1_Token_Type;
 
 
@@ -46,8 +46,8 @@
     FT_Byte*       start;   /* first character of token in input stream */
     FT_Byte*       limit;   /* first character after the token          */
     Z1_Token_Type  type;    /* type of token..                          */
-  
-  } Z1_Token_Rec;  
+
+  } Z1_Token_Rec;
 
 
   /* enumeration type used to identify object fields */
@@ -60,10 +60,10 @@
     t1_field_string,
     t1_field_integer_array,
     t1_field_fixed_array,
-    
+
     /* do not remove */
     t1_field_max
-    
+
   } Z1_Field_Type;
 
 
@@ -76,7 +76,7 @@
     FT_UInt        array_max;     /* maximum number of elements for array */
     FT_UInt        count_offset;  /* offset of element count for arrays   */
     FT_Int         flag_bit;      /* bit number for field flag            */
-   
+
   } Z1_Field_Rec;
 
 
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index 2acc1ca..cf378af 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -114,10 +114,10 @@
   {
     if ( font->fnt_frame )
       RELEASE_Frame( font->fnt_frame );
-      
+
     font->fnt_size  = 0;
     font->fnt_frame = 0;
-  }                           
+  }
 
 
   static
@@ -126,7 +126,7 @@
   {
     FT_Error        error;
     WinFNT_Header*  header = &font->header;
-    
+
 
     /* first of all, read the FNT header */
     if ( FILE_Seek( font->offset )                   ||
@@ -160,7 +160,7 @@
 
   Exit:
     return error;
-  }                           
+  }
 
 
   static
@@ -170,11 +170,11 @@
     FT_Stream  stream = FT_FACE(face)->stream;
     FNT_Font*  cur    = face->fonts;
     FNT_Font*  limit  = cur + face->num_fonts;
-    
+
 
     for ( ; cur < limit; cur++ )
       fnt_done_font( stream, cur );
-      
+
     FREE( face->fonts );
     face->num_fonts = 0;
   }
@@ -201,49 +201,49 @@
     {
       /* yes, now look for a NE header in the file */
       WinNE_Header  ne_header;
-      
+
 
       if ( FILE_Seek( mz_header.lfanew )                  ||
            READ_Fields( winne_header_fields, &ne_header ) )
         goto Exit;
-      
+
       error = FT_Err_Unknown_File_Format;
       if ( ne_header.magic == WINFNT_NE_MAGIC )
       {
         /* good, now look in the resource table for each FNT resource */
         FT_ULong   res_offset = mz_header.lfanew +
                                 ne_header.resource_tab_offset;
-        
+
         FT_UShort  size_shift;
         FT_UShort  font_count  = 0;
         FT_ULong   font_offset = 0;
-        
+
 
         if ( FILE_Seek( res_offset ) ||
              ACCESS_Frame( ne_header.rname_tab_offset -
                            ne_header.resource_tab_offset ) )
           goto Exit;
-        
+
         size_shift = GET_UShortLE();
-        
+
         for (;;)
         {
           FT_UShort  type_id, count;
-          
+
 
           type_id = GET_UShortLE();
           if ( !type_id )
             break;
-            
+
           count = GET_UShortLE();
-          
+
           if ( type_id == 0x8008 )
           {
             font_count  = count;
             font_offset = FILE_Pos() + 4 + ( stream->cursor - stream->limit );
             break;
           }
-          
+
           stream->cursor += 4 + count * 12;
         }
         FORGET_Frame();
@@ -253,22 +253,22 @@
           FT_TRACE2(( "this file doesn't contain any FNT resources!\n" ));
           error = FT_Err_Unknown_File_Format;
           goto Exit;
-        }    
+        }
 
         if ( FILE_Seek( font_offset )                         ||
-             ALLOC_ARRAY( face->fonts, font_count, FNT_Font ) )        
+             ALLOC_ARRAY( face->fonts, font_count, FNT_Font ) )
           goto Exit;
-        
+
         face->num_fonts = font_count;
-        
+
         if ( ACCESS_Frame( (FT_Long)font_count * 12 ) )
           goto Exit;
-          
+
         /* now read the offset and position of each FNT font */
         {
           FNT_Font*  cur   = face->fonts;
           FNT_Font*  limit = cur + font_count;
-          
+
 
           for ( ; cur < limit; cur++ )
           {
@@ -279,12 +279,12 @@
           }
         }
         FORGET_Frame();
-        
+
         /* finally, try to load each font there */
         {
           FNT_Font*  cur   = face->fonts;
           FNT_Font*  limit = cur + font_count;
-          
+
 
           for ( ; cur < limit; cur++ )
           {
@@ -309,15 +309,15 @@
   void  FNT_Done_Face( FNT_Face  face )
   {
     FT_Memory  memory = FT_FACE_MEMORY( face );
-    
+
 
     fnt_done_fonts( face );
-    
+
     FREE( face->root.available_sizes );
     face->root.num_fixed_sizes = 0;
   }
 
-  
+
   static
   FT_Error  FNT_Init_Face( FT_Stream      stream,
                            FNT_Face       face,
@@ -327,11 +327,11 @@
   {
     FT_Error   error;
     FT_Memory  memory = FT_FACE_MEMORY( face );
-    
+
     FT_UNUSED( num_params );
     FT_UNUSED( params );
     FT_UNUSED( face_index );
-    
+
 
     /* try to load several fonts from a DLL */
     error = fnt_get_dll_fonts( face );
@@ -340,23 +340,23 @@
       /* this didn't work, now try to load a single FNT font */
       FT_Memory  memory = FT_FACE_MEMORY( face );
       FNT_Font*  font;
-      
+
       if ( ALLOC( face->fonts, sizeof ( *face->fonts ) ) )
         goto Exit;
-        
+
       face->num_fonts = 1;
       font            = face->fonts;
-      
+
       font->offset   = 0;
       font->fnt_size = stream->size;
-      
+
       error = fnt_load_font( stream, font );
       if ( error )
         goto Fail;
     }
 
     /* all right, one or more fonts were loaded; we now need to */
-    /* fill the root FT_Face fields with relevant information   */ 
+    /* fill the root FT_Face fields with relevant information   */
     {
       FT_Face    root  = FT_FACE( face );
       FNT_Font*  fonts = face->fonts;
@@ -370,10 +370,10 @@
 
       if ( fonts->header.avg_width == fonts->header.max_width )
         root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
-      
+
       if ( fonts->header.italic )
         root->style_flags |= FT_STYLE_FLAG_ITALIC;
-        
+
       if ( fonts->header.weight >= 800 )
         root->style_flags |= FT_STYLE_FLAG_BOLD;
 
@@ -382,11 +382,11 @@
                         FT_Bitmap_Size ) )
         goto Fail;
 
-      root->num_fixed_sizes = face->num_fonts;  
-      
+      root->num_fixed_sizes = face->num_fonts;
+
       {
         FT_Bitmap_Size*  size = root->available_sizes;
-        
+
 
         for ( cur = fonts; cur < limit; cur++, size++ )
         {
@@ -394,7 +394,7 @@
           size->height = cur->header.pixel_height;
         }
       }
-      
+
       /* Setup the `charmaps' array */
       root->charmaps     = &face->charmap_handle;
       root->num_charmaps = 1;
@@ -403,15 +403,15 @@
       face->charmap.platform_id = 3;
       face->charmap.encoding_id = 1;
       face->charmap.face        = root;
-      
+
       face->charmap_handle = &face->charmap;
-      
+
       root->charmap = face->charmap_handle;
 
-      /* setup remaining flags */      
+      /* setup remaining flags */
       root->num_glyphs = fonts->header.last_char -
                          fonts->header.first_char + 1;
-      
+
       root->family_name = (FT_String*)fonts->fnt_frame +
                           fonts->header.face_name_offset;
       root->style_name  = "Regular";
@@ -426,14 +426,14 @@
       else if ( root->style_flags & FT_STYLE_FLAG_ITALIC )
         root->style_name = "Italic";
     }
-    
+
   Fail:
     if ( error )
       FNT_Done_Face( face );
-    
+
   Exit:
     return error;
-  }                           
+  }
 
 
   static
@@ -454,10 +454,10 @@
       {
         size->font = cur;
         break;
-      }           
+      }
     }
 
-    return ( size->font ? FT_Err_Ok : FT_Err_Invalid_Argument );    
+    return ( size->font ? FT_Err_Ok : FT_Err_Invalid_Argument );
   }
 
 
@@ -466,14 +466,14 @@
                                FT_ULong    char_code )
   {
     FT_UInt  result = char_code;
-    
+
 
     if ( charmap )
     {
       FNT_Font*  font  = ((FNT_Face)charmap->face)->fonts;
       FT_UInt    first = font->header.first_char;
       FT_UInt    count = font->header.last_char - first + 1;
-      
+
 
       char_code -= first;
       if ( char_code < count )
@@ -499,11 +499,11 @@
     FT_Bitmap*  bitmap = &slot->bitmap;
     FT_ULong    offset;
     FT_Bool     new_format;
-    
+
     FT_UNUSED( slot );
     FT_UNUSED( load_flags );
 
-    
+
     if ( !font )
     {
       error = FT_Err_Invalid_Argument;
@@ -513,61 +513,61 @@
     new_format = font->header.version == 0x300;
     len        = new_format ? 6 : 4;
 
-    /* jump to glyph entry */    
+    /* jump to glyph entry */
     p = font->fnt_frame + 118 + len * glyph_index;
-      
+
     bitmap->width = NEXT_ShortLE(p);
-    
+
     if ( new_format )
       offset = NEXT_ULongLE(p);
     else
       offset = NEXT_UShortLE(p);
-    
+
     /* jump to glyph data */
     p = font->fnt_frame + /* font->header.bits_offset */ + offset;
-    
+
     /* allocate and build bitmap */
     {
       FT_Memory  memory = FT_FACE_MEMORY( slot->face );
       FT_Int     pitch  = ( bitmap->width + 7 ) >> 3;
       FT_Byte*   column;
       FT_Byte*   write;
-      
+
 
       bitmap->pitch      = pitch;
       bitmap->rows       = font->header.pixel_height;
       bitmap->pixel_mode = ft_pixel_mode_mono;
-      
+
       if ( ALLOC( bitmap->buffer, pitch * bitmap->rows ) )
         goto Exit;
-      
+
       column = (FT_Byte*)bitmap->buffer;
 
       for ( ; pitch > 0; pitch--, column++ )
       {
         FT_Byte*  limit = p + bitmap->rows;
-        
+
 
         for ( write = column; p < limit; p++, write += bitmap->pitch )
           write[0] = p[0];
       }
     }
-    
+
     slot->flags       = ft_glyph_own_bitmap;
     slot->bitmap_left = 0;
     slot->bitmap_top  = font->header.ascent;
     slot->format      = ft_glyph_format_bitmap;
-    
+
     /* now set up metrics */
     slot->metrics.horiAdvance  = bitmap->width << 6;
     slot->metrics.horiBearingX = 0;
     slot->metrics.horiBearingY = slot->bitmap_top << 6;
 
     slot->linearHoriAdvance    = (FT_Fixed)bitmap->width << 16;
-    
+
   Exit:
     return error;
-  }                            
+  }
 
 
   const FT_Driver_Class  winfnt_driver_class =
@@ -575,22 +575,22 @@
     {
       ft_module_font_driver,
       sizeof ( FT_DriverRec ),
-      
+
       "winfonts",
       0x10000L,
       0x20000L,
-      
+
       0,
-      
+
       (FT_Module_Constructor)0,
       (FT_Module_Destructor) 0,
       (FT_Module_Requester)  0
     },
-    
+
     sizeof( FNT_FaceRec ),
     sizeof( FNT_SizeRec ),
     sizeof( FT_GlyphSlotRec ),
-    
+
     (FTDriver_initFace)     FNT_Init_Face,
     (FTDriver_doneFace)     FNT_Done_Face,
     (FTDriver_initSize)     0,
diff --git a/src/winfonts/winfnt.h b/src/winfonts/winfnt.h
index 2d0be0f..eaf308b 100644
--- a/src/winfonts/winfnt.h
+++ b/src/winfonts/winfnt.h
@@ -27,7 +27,7 @@
     FT_UShort  magic;
     /* skipped content */
     FT_UShort  lfanew;
-  
+
   } WinMZ_Header;
 
 
@@ -37,7 +37,7 @@
     /* skipped content */
     FT_UShort  resource_tab_offset;
     FT_UShort  rname_tab_offset;
-    
+
   } WinNE_Header;
 
 
@@ -49,7 +49,7 @@
     FT_UShort  id;
     FT_UShort  handle;
     FT_UShort  usage;
-    
+
   } WinNameInfo;
 
 
@@ -57,7 +57,7 @@
   {
     FT_UShort  type_id;
     FT_UShort  count;
-  
+
   } WinResourceInfo;
 
 
@@ -103,7 +103,7 @@
     FT_UShort  C_space;
     FT_UShort  color_table_offset;
     FT_Byte    reserved2[4];
-  
+
   } WinFNT_Header;
 
 
@@ -111,12 +111,12 @@
   {
     FT_ULong       offset;
     FT_Int         size_shift;
-    
+
     WinFNT_Header  header;
-    
+
     FT_Byte*       fnt_frame;
     FT_ULong       fnt_size;
-    
+
   } FNT_Font;
 
 
@@ -124,18 +124,18 @@
   {
     FT_SizeRec  root;
     FNT_Font*   font;
-  
+
   } FNT_SizeRec, *FNT_Size;
 
 
   typedef struct  FNT_FaceRec_
   {
     FT_FaceRec     root;
-    
+
     FT_UInt        num_fonts;
     FNT_Font*      fonts;
 
-    FT_CharMap     charmap_handle;    
+    FT_CharMap     charmap_handle;
     FT_CharMapRec  charmap;  /* a single charmap per face */
 
   } FNT_FaceRec, *FNT_Face;