Commit 607358967fdedae281f8e6eac33f8a6d4c9aa403

David Turner 2000-07-07T19:46:30

removed obsolete files..

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
diff --git a/src/oldapi/Makefile b/src/oldapi/Makefile
deleted file mode 100644
index 3b5858c..0000000
--- a/src/oldapi/Makefile
+++ /dev/null
@@ -1,29 +0,0 @@
-#
-#  The OldApi component had not been migrated to the new design yet
-#  please wait a few days for some updates. This file should be
-#  completely ignored during a BUILD !!
-#
-#
-include drivers/shared/sfnt/Makefile
-
-OLDAPI_DIR := $(TOP_DIR)/oldapi
-
-OLDAPI_INCLUDES := $(FT_IFLAG)$(SFNT_DIR)    \
-                   $(FT_IFLAG)$(OLDAPI_DIR)  \
-                   $(FT_IFLAG)$(TT_DIR)
-
-OLDAPI_CFLAGS   := $(FT_CFLAGS) $(OLDAPI_INCLUDES)
-
-OLDAPI_OBJ := $(OBJ_DIR)/ttapi.$(FT_OBJ)
-
-# FreeType-1.1 compatible interface
-#
-$(OLDAPI_OBJ): $(OLDAPI_DIR)/ttapi.c $(OLDAPI_DIR)/truetype.h \
-                    $(BASE_H) $(SFNT_H) $(TT_DRV_H)
-	$(FT_CC) $(OLDAPI_CFLAGS) $< -o $@
-
-# update main driver object lists
-#
-DRV_OBJS_S += $(OLDAPI_OBJ)
-DRV_OBJS_M += $(OLDAPI_OBJ)
-
diff --git a/src/oldapi/readme.txt b/src/oldapi/readme.txt
deleted file mode 100644
index da50fd7..0000000
--- a/src/oldapi/readme.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-This directory is provided in order to compile a stand-alone
-TrueType driver which should be backwards and binary compatible
-with FreeType 1.1
-
-Reason is some important design changes were introduced in FreeType
-lately, in order to support several font formats transparently.
-
-The files are :
-
-"truetype.h"        - a replacement for the old "freetype.h" file
-                      that was included by client applications and
-                      font servers of 1.1
-
-"ttapi.c"           - a front-end for the new TrueType driver, that
-                      presents exactly the same interface as the one
-                      in 1.1
-
-
diff --git a/src/oldapi/truetype.h b/src/oldapi/truetype.h
deleted file mode 100644
index e97656e..0000000
--- a/src/oldapi/truetype.h
+++ /dev/null
@@ -1,1709 +0,0 @@
-/*******************************************************************
- *
- *  truetype.h
- *
- *    Backwards-compatible high-level interface for the TrueType
- *    driver. This file is a replacement for the old "freetype.h"
- *    from 1.0 and 1.1. It can be used to compile applications
- *    and tools using the old API..
- *
- *    Note that this (old) interface is now deprecated and won't
- *    be modified in the future. Developers will have to switch to
- *    the newer interface to get new features ( kerning, embedded
- *    bitmaps, etc.. ).
- *
- *
- *
- *  Copyright 1996-1998 by
- *  David Turner, Robert Wilhelm, and Werner Lemberg.
- *
- *  This file is part of the FreeType project and may only be used,
- *  modified, and distributed under the terms of the FreeType project
- *  license, LICENSE.TXT.  By continuing to use, modify, or distribute
- *  this file you indicate that you have read the license and
- *  understand and accept it fully.
- *
- *  Note:
- *
- *    This is the only file that should be included by client
- *    application sources.  All other types and functions defined
- *    in the "tt*.h" files are library internals and should not be
- *    included.
- *
- ******************************************************************/
-
-#ifndef TRUETYPE_H
-#define TRUETYPE_H
-
-/* To make freetype.h independent from configuration files we check */
-/* whether EXPORT_DEF has been defined already.                     */
-
-#ifndef EXPORT_DEF
-#define EXPORT_DEF extern
-#endif
-
-/* The same for TT_Text.  If you define the HAVE_TT_TEXT macro, you */
-/* have to provide a typedef declaration for TT_Text before         */
-/* including this file.                                             */
-
-#ifndef HAVE_TT_TEXT
-#define HAVE_TT_TEXT
-  typedef char  TT_Text;              /* the data type to represent */
-                                      /* file name string elements  */
-#endif
-
-#ifdef __cplusplus
-  extern "C" {
-#endif
-
-
-/* The following types are also defined in "drivers/ttlib/ttobjs.h"  */
-/* We use the _TRUETYPE_ macro to prevent their redefinition when    */
-/* _compiling_ the backwards-compatible layer called "ttapi.c"       */
-/*                                                                   */
-#ifndef _TRUETYPE_
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*  FreeType types definitions.                                    */
-  /*                                                                 */
-  /*  All these begin with a 'TT_' prefix.                           */
-  /*                                                                 */
-  /*******************************************************************/
-
-  typedef unsigned short  TT_Bool;
-
-  typedef signed long     TT_Fixed;   /* Signed Fixed 16.16 Float */
-
-  typedef signed short    TT_FWord;   /* Distance in FUnits */
-  typedef unsigned short  TT_UFWord;  /* Unsigned distance */
-
-  typedef char            TT_String;
-  typedef signed char     TT_Char;
-  typedef unsigned char   TT_Byte;
-  typedef signed short    TT_Short;
-  typedef unsigned short  TT_UShort;
-  typedef signed long     TT_Long;
-  typedef unsigned long   TT_ULong;
-  typedef int             TT_Int;
-
-  typedef signed short    TT_F2Dot14; /* Signed fixed float 2.14 used for */
-                                      /* unit vectors, with layout:       */
-                                      /*                                  */
-                                      /*  s : 1  -- sign bit              */
-                                      /*  m : 1  -- integer bit           */
-                                      /*  f : 14 -- unsigned fractional   */
-                                      /*                                  */
-                                      /*  's:m' is the 2-bit signed int   */
-                                      /*  value to which the positive     */
-                                      /*  fractional part should be       */
-                                      /*  added.                          */
-                                      /*                                  */
-
-  typedef signed long     TT_F26Dot6; /* 26.6 fixed float, used for       */
-                                      /* glyph points pixel coordinates.  */
-
-  typedef signed long     TT_Pos;     /* point position, expressed either */
-                                      /* in fractional pixels or notional */
-                                      /* units, depending on context.     */
-                                      /* For example, glyph coordinates   */
-                                      /* returned by TT_Load_Glyph are    */
-                                      /* expressed in font units when     */
-                                      /* scaling wasn't requested, and    */
-                                      /* in 26.6 fractional pixels if it  */
-                                      /* was.                             */
-
-
-  struct  TT_UnitVector_      /* guess what...  */
-  {
-    TT_F2Dot14  x;
-    TT_F2Dot14  y;
-  };
-
-  typedef struct TT_UnitVector_  TT_UnitVector;
-
-
-  struct  TT_Vector_          /* Simple vector type */
-  {
-    TT_F26Dot6  x;
-    TT_F26Dot6  y;
-  };
-
-  typedef struct TT_Vector_  TT_Vector;
-
-
-  /* A simple 2x2 matrix used for transformations. */
-  /* You should use 16.16 fixed floats.            */
-  /*                                               */
-  /*  x' = xx*x + xy*y                             */
-  /*  y' = yx*x + yy*y                             */
-  /*                                               */
-
-  struct  TT_Matrix_
-  {
-    TT_Fixed  xx, xy;
-    TT_Fixed  yx, yy;
-  };
-
-  typedef struct TT_Matrix_  TT_Matrix;
-
-
-  /* A structure used to describe a simple bounding box */
-
-  struct TT_BBox_
-  {
-    TT_Pos  xMin;
-    TT_Pos  yMin;
-    TT_Pos  xMax;
-    TT_Pos  yMax;
-  };
-
-  typedef struct TT_BBox_  TT_BBox;
-
-
-
-#endif /* _TRUETYPE_ */
-
-
-
-
-  /* A structure used to describe the source glyph to the renderer. */
-
-  struct  TT_Outline_
-  {
-    TT_Short         n_contours;   /* number of contours in glyph        */
-    TT_UShort        n_points;     /* number of points in the glyph      */
-
-    TT_Vector*       points;       /* the outline's points   */
-    TT_Byte*         flags;        /* the points flags       */
-    TT_UShort*       contours;     /* the contour end points */
-
-    /* The following flag indicates that the outline owns the arrays it  */
-    /* refers to.  Typically, this is true of outlines created from the  */
-    /* TT_New_Outline() API, while it isn't for those returned by        */
-    /* TT_Get_Glyph_Outline().                                           */
-
-    TT_Bool          owner;      /* the outline owns the coordinates,    */
-                                 /* flags and contours array it uses     */
-
-    /* The following flags are set automatically by                      */
-    /* TT_Get_Glyph_Outline().  Their meaning is the following:          */
-    /*                                                                   */
-    /*  high_precision   When true, the scan-line converter will use     */
-    /*                   a higher precision to render bitmaps (i.e. a    */
-    /*                   1/1024 pixel precision).  This is important for */
-    /*                   small ppem sizes.                               */
-    /*                                                                   */
-    /*  second_pass      When true, the scan-line converter performs     */
-    /*                   a second sweep phase dedicated to find          */
-    /*                   vertical drop-outs.  If false, only horizontal  */
-    /*                   drop-outs will be checked during the first      */
-    /*                   vertical sweep (yes, this is a bit confusing    */
-    /*                   but it's really the way it should work).        */
-    /*                   This is important for small ppems too.          */
-    /*                                                                   */
-    /*  dropout_mode     Specifies the TrueType drop-out mode to         */
-    /*                   use for continuity checking. valid values       */
-    /*                   are 0 (no check), 1, 2, 4, and 5.               */
-    /*                                                                   */
-    /*  Most of the engine's users will safely ignore these fields...    */
-
-    TT_Bool          high_precision;  /* high precision rendering */
-    TT_Bool          second_pass;     /* two sweeps rendering     */
-    TT_Char          dropout_mode;    /* dropout mode */
-  };
-
-  typedef struct TT_Outline_  TT_Outline;
-
-
-  /* A structure used to return glyph metrics.                          */
-  /*                                                                    */
-  /* The "bearingX" isn't called "left-side bearing" anymore because    */
-  /* it has different meanings depending on the glyph's orientation.    */
-  /*                                                                    */
-  /* The same is true for "bearingY", which is the top-side bearing     */
-  /* defined by the TT_Spec, i.e., the distance from the baseline to    */
-  /* the top of the glyph's bbox.  According to our current convention, */
-  /* this is always the same as "bbox.yMax" but we make it appear for   */
-  /* consistency in its proper field.                                   */
-  /*                                                                    */
-  /* The "advance" width is the advance width for horizontal layout,    */
-  /* and advance height for vertical layouts.                           */
-  /*                                                                    */
-  /* Finally, the library (ver. 1.1) doesn't support vertical text yet  */
-  /* but these changes were introduced to accomodate it, as it will     */
-  /* most certainly be introduced in later releases.                    */
-
-  struct  TT_Glyph_Metrics_
-  {
-    TT_BBox  bbox;      /* glyph bounding box */
-
-    TT_Pos   bearingX;  /* left-side bearing                    */
-    TT_Pos   bearingY;  /* top-side bearing, per se the TT spec */
-
-    TT_Pos   advance;   /* advance width (or height) */
-  };
-
-
-  /* A structure used to return horizontal _and_ vertical glyph         */
-  /* metrics.                                                           */
-  /*                                                                    */
-  /* A glyph can be used either in a horizontal or vertical layout.     */
-  /* Its glyph metrics vary with orientation.  The Big_Glyph_Metrics    */
-  /* structure is used to return _all_ metrics in one call.             */
-  /*                                                                    */
-
-  struct TT_Big_Glyph_Metrics_
-  {
-    TT_BBox  bbox;          /* glyph bounding box */
-
-    TT_Pos   horiBearingX;  /* left side bearing in horizontal layouts */
-    TT_Pos   horiBearingY;  /* top side bearing in horizontal layouts  */
-
-    TT_Pos   vertBearingX;  /* left side bearing in vertical layouts */
-    TT_Pos   vertBearingY;  /* top side bearing in vertical layouts  */
-
-    TT_Pos   horiAdvance;   /* advance width for horizontal layout */
-    TT_Pos   vertAdvance;   /* advance height for vertical layout  */
-
-    /* The following fields represent unhinted scaled metrics values. */
-    /* They can be useful for applications needing to do some device  */
-    /* independent placement of glyphs.                               */
-    /*                                                                */
-    /* Applying these metrics to hinted glyphs will most surely ruin  */
-    /* the grid fitting performed by the bytecode interpreter.  These */
-    /* values are better used to compute accumulated positioning      */
-    /* distances.                                                     */
-
-    TT_Pos   linearHoriBearingX;  /* linearly scaled horizontal lsb     */
-    TT_Pos   linearHoriAdvance;   /* linearly scaled horizontal advance */
-
-    TT_Pos   linearVertBearingY;  /* linearly scaled vertical tsb     */
-    TT_Pos   linearVertAdvance;   /* linearly scaled vertical advance */
-  };
-
-  typedef struct TT_Glyph_Metrics_      TT_Glyph_Metrics;
-  typedef struct TT_Big_Glyph_Metrics_  TT_Big_Glyph_Metrics;
-
-
-  /* A structure used to return instance metrics. */
-
-  struct  TT_Instance_Metrics_
-  {
-    TT_F26Dot6  pointSize;     /* char. size in points (1pt = 1/72 inch) */
-
-    TT_UShort   x_ppem;        /* horizontal pixels per EM square */
-    TT_UShort   y_ppem;        /* vertical pixels per EM square   */
-
-    TT_Fixed    x_scale;     /* 16.16 to convert from EM units to 26.6 pix */
-    TT_Fixed    y_scale;     /* 16.16 to convert from EM units to 26.6 pix */
-
-    TT_UShort   x_resolution;  /* device horizontal resolution in dpi */
-    TT_UShort   y_resolution;  /* device vertical resolution in dpi   */
-  };
-
-  typedef struct TT_Instance_Metrics_  TT_Instance_Metrics;
-
-
-  /* Flow constants:                                             */
-  /*                                                             */
-  /* The flow of a bitmap refers to the way lines are oriented   */
-  /* within the bitmap data, i.e., the orientation of the Y      */
-  /* coordinate axis.                                            */
-
-  /* For example, if the first bytes of the bitmap pertain to    */
-  /* its top-most line, then the flow is 'down'.  If these bytes */
-  /* pertain to its lowest line, the the flow is 'up'.           */
-
-#define TT_Flow_Down  -1  /* bitmap is oriented from top to bottom */
-#define TT_Flow_Up     1  /* bitmap is oriented from bottom to top */
-#define TT_Flow_Error  0  /* an error occurred during rendering    */
-
-
-  /* A structure used to describe the target bitmap or pixmap to the   */
-  /* renderer.  Note that there is nothing in this structure that      */
-  /* gives the nature of the buffer.                                   */
-
-  /* IMPORTANT NOTE:                                                   */
-  /*                                                                   */
-  /*   In the case of a pixmap, the 'width' and 'cols' fields must     */
-  /*   have the _same_ values, and _must_ be padded to 32-bits, i.e.,  */
-  /*   be a multiple of 4.  Clipping problems will arise otherwise,    */
-  /*   if not even page faults!                                        */
-  /*                                                                   */
-  /*   The typical settings are:                                       */
-  /*                                                                   */
-  /*   - for an WxH bitmap:                                            */
-  /*                                                                   */
-  /*       rows  = H                                                   */
-  /*       cols  = (W+7)/8                                             */
-  /*       width = W                                                   */
-  /*       flow  = your_choice                                         */
-  /*                                                                   */
-  /*   - for an WxH pixmap:                                            */
-  /*                                                                   */
-  /*       rows  = H                                                   */
-  /*       cols  = (W+3) & ~3                                          */
-  /*       width = cols                                                */
-  /*       flow  = your_choice                                         */
-
-  struct  TT_Raster_Map_
-  {
-    int    rows;    /* number of rows                    */
-    int    cols;    /* number of columns (bytes) per row */
-    int    width;   /* number of pixels per line         */
-    int    flow;    /* bitmap orientation                */
-
-    void*  bitmap;  /* bit/pixmap buffer                 */
-    long   size;    /* bit/pixmap size in bytes          */
-  };
-
-  typedef struct TT_Raster_Map_  TT_Raster_Map;
-
-
-
-/* The following tables are also defined in "drivers/ttlib/ttobjs.h" */
-/* We use the _TRUETYPE_ macro to prevent their redefinition when    */
-/* _compiling_ the backwards-compatible layer called "oldapi.c"      */
-/*                                                                   */
-#ifndef _TRUETYPE_
-
-  /* ------- The font header TrueType table structure ----- */
-
-  struct  TT_Header_
-  {
-    TT_Fixed   Table_Version;
-    TT_Fixed   Font_Revision;
-
-    TT_Long    CheckSum_Adjust;
-    TT_Long    Magic_Number;
-
-    TT_UShort  Flags;
-    TT_UShort  Units_Per_EM;
-
-    TT_Long    Created [2];
-    TT_Long    Modified[2];
-
-    TT_FWord   xMin;
-    TT_FWord   yMin;
-    TT_FWord   xMax;
-    TT_FWord   yMax;
-
-    TT_UShort  Mac_Style;
-    TT_UShort  Lowest_Rec_PPEM;
-
-    TT_Short   Font_Direction;
-    TT_Short   Index_To_Loc_Format;
-    TT_Short   Glyph_Data_Format;
-  };
-
-  typedef struct TT_Header_  TT_Header;
-
-
-  /* ------- The horizontal header TrueType table structure ----- */
-
-  /*******************************************************/
-  /*  This structure is the one defined by the TrueType  */
-  /*  specification, plus two fields used to link the    */
-  /*  font-units metrics to the header.                  */
-
-  struct  TT_Horizontal_Header_
-  {
-    TT_Fixed   Version;
-    TT_FWord   Ascender;
-    TT_FWord   Descender;
-    TT_FWord   Line_Gap;
-
-    TT_UFWord  advance_Width_Max;      /* advance width maximum */
-
-    TT_FWord   min_Left_Side_Bearing;  /* minimum left-sb       */
-    TT_FWord   min_Right_Side_Bearing; /* minimum right-sb      */
-    TT_FWord   xMax_Extent;            /* xmax extents          */
-    TT_FWord   caret_Slope_Rise;
-    TT_FWord   caret_Slope_Run;
-
-    TT_Short   caret_Offset;           /* only used in vertical header */
-    TT_Short   Reserved[4];
-
-    TT_Short   metric_Data_Format;
-    TT_UShort  number_Of_HMetrics;
-
-    /* The following fields are not defined by the TrueType specification */
-    /* but they're used to connect the metrics header to the relevant     */
-    /* "HMTX" or "VMTX" table.                                            */
-
-    void*      long_metrics;
-    void*      short_metrics;
-  };
-
-
-  /*******************************************************/
-  /*  This structure is the one defined by the TrueType  */
-  /*  specification.  Note that it has exactly the same  */
-  /*  layout as the horizontal header (both are loaded   */
-  /*  by the same function).                             */
-
-  struct  TT_Vertical_Header_
-  {
-    TT_Fixed   Version;
-    TT_FWord   Ascender;
-    TT_FWord   Descender;
-    TT_FWord   Line_Gap;
-
-    TT_UFWord  advance_Height_Max;      /* advance height maximum */
-
-    TT_FWord   min_Top_Side_Bearing;    /* minimum left-sb or top-sb       */
-    TT_FWord   min_Bottom_Side_Bearing; /* minimum right-sb or bottom-sb   */
-    TT_FWord   yMax_Extent;             /* xmax or ymax extents            */
-    TT_FWord   caret_Slope_Rise;
-    TT_FWord   caret_Slope_Run;
-    TT_FWord   caret_Offset;
-
-    TT_Short   Reserved[4];
-
-    TT_Short   metric_Data_Format;
-    TT_UShort  number_Of_VMetrics;
-
-    /* The following fields are not defined by the TrueType specification */
-    /* but they're used to connect the metrics header to the relevant     */
-    /* "HMTX" or "VMTX" table.                                            */
-
-    void*      long_metrics;
-    void*      short_metrics;
-  };
-
-
-  typedef struct TT_Horizontal_Header_  TT_Horizontal_Header;
-  typedef struct TT_Vertical_Header_    TT_Vertical_Header;
-
-
-  /* ----------- OS/2 Table ----------------------------- */
-
-  struct  TT_OS2_
-  {
-    TT_UShort  version;                /* 0x0001 */
-    TT_FWord   xAvgCharWidth;
-    TT_UShort  usWeightClass;
-    TT_UShort  usWidthClass;
-    TT_Short   fsType;
-    TT_FWord   ySubscriptXSize;
-    TT_FWord   ySubscriptYSize;
-    TT_FWord   ySubscriptXOffset;
-    TT_FWord   ySubscriptYOffset;
-    TT_FWord   ySuperscriptXSize;
-    TT_FWord   ySuperscriptYSize;
-    TT_FWord   ySuperscriptXOffset;
-    TT_FWord   ySuperscriptYOffset;
-    TT_FWord   yStrikeoutSize;
-    TT_FWord   yStrikeoutPosition;
-    TT_Short   sFamilyClass;
-
-    TT_Byte    panose[10];
-
-    TT_ULong   ulUnicodeRange1;        /* Bits 0-31   */
-    TT_ULong   ulUnicodeRange2;        /* Bits 32-63  */
-    TT_ULong   ulUnicodeRange3;        /* Bits 64-95  */
-    TT_ULong   ulUnicodeRange4;        /* Bits 96-127 */
-
-    TT_Char    achVendID[4];
-
-    TT_UShort  fsSelection;
-    TT_UShort  usFirstCharIndex;
-    TT_UShort  usLastCharIndex;
-    TT_Short   sTypoAscender;
-    TT_Short   sTypoDescender;
-    TT_Short   sTypoLineGap;
-    TT_UShort  usWinAscent;
-    TT_UShort  usWinDescent;
-
-    /* only version 1 tables: */
-
-    TT_ULong   ulCodePageRange1;       /* Bits 0-31   */
-    TT_ULong   ulCodePageRange2;       /* Bits 32-63  */
-  };
-
-  typedef struct TT_OS2_  TT_OS2;
-
-
-  /* ----------- Postscript table ------------------------ */
-
-  struct  TT_Postscript_
-  {
-    TT_Fixed  FormatType;
-    TT_Fixed  italicAngle;
-    TT_FWord  underlinePosition;
-    TT_FWord  underlineThickness;
-    TT_ULong  isFixedPitch;
-    TT_ULong  minMemType42;
-    TT_ULong  maxMemType42;
-    TT_ULong  minMemType1;
-    TT_ULong  maxMemType1;
-
-    /* Glyph names follow in the file, but we don't         */
-    /* load them by default.  See the ftxpost.c extension.  */
-  };
-
-  typedef struct TT_Postscript_  TT_Postscript;
-
-
-  /* ------------ horizontal device metrics "hdmx" ---------- */
-
-  struct  TT_Hdmx_Record_
-  {
-    TT_Byte   ppem;
-    TT_Byte   max_width;
-    TT_Byte*  widths;
-  };
-
-  typedef struct TT_Hdmx_Record_  TT_Hdmx_Record;
-
-
-  struct  TT_Hdmx_
-  {
-    TT_UShort        version;
-    TT_Short         num_records;
-    TT_Hdmx_Record*  records;
-  };
-
-  typedef struct TT_Hdmx_  TT_Hdmx;
-
-
-#else
-
-  typedef  TT_HoriHeader   TT_Horizontal_Header;
-  typedef  TT_VertHeader   TT_Vertical_Header;
-
-#endif /* _TRUETYPE_ */
-
-
-  /* A structure used to describe face properties.                        */
-  /* be aware that this is not the same structure as the one define       */
-  /* in "freetype/ttlib/ttdriver.h". A suitable conversion is performed   */
-  /* in "oldapi/ttapi.c" to build a binary driver that is backwards       */
-  /* compatible with FreeType 1.1, in the function TT_Get_Face_Properties */
-
-  struct  TT_Face_Properties_
-  {
-    TT_UShort  num_Glyphs;      /* number of glyphs in face              */
-    TT_UShort  max_Points;      /* maximum number of points in a glyph   */
-    TT_UShort  max_Contours;    /* maximum number of contours in a glyph */
-
-    TT_UShort  num_CharMaps;    /* number of charmaps in the face     */
-    TT_UShort  num_Names;       /* number of name records in the face */
-
-    TT_ULong   num_Faces;  /* 1 for normal TrueType files, and the  */
-                           /* number of embedded faces for TrueType */
-                           /* collections                           */
-
-    TT_Header*             header;        /* TrueType header table          */
-    TT_Horizontal_Header*  horizontal;    /* TrueType horizontal header     */
-    TT_OS2*                os2;           /* TrueType OS/2 table            */
-    TT_Postscript*         postscript;    /* TrueType Postscript table      */
-    TT_Hdmx*               hdmx;
-    TT_Vertical_Header*    vertical;      /* TT Vertical header, if present */
-  };
-
-  typedef struct TT_Face_Properties_  TT_Face_Properties;
-
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Type> TT_Engine                                                    */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    A handle to a TrueType driver/engine instance. Engine objects    */
-  /*    can be created with the TT_New_Engine and TT_Build_Engine APIs   */
-  /*                                                                     */
-  /*    TT_Done_Engine will destroy an engine, as well as all the        */
-  /*    objects that were created within it.                             */
-  /*                                                                     */
-
-  typedef struct TT_EngineRec_   *TT_Engine;
-
-  /* Note : The type TT_Engine is not defined in "drivers/ttlib/ttobjs.h" */
-
-
-
-
-/* The TT_Face type is already defined in "drivers/ttlib/ttobjs.h"   */
-/* We use the _TRUETYPE_ macro to prevent their redefinition when    */
-/* _compiling_ the backwards-compatible layer called "oldapi.c"      */
-/*                                                                   */
-#ifndef _TRUETYPE_
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Type> TT_Face                                                      */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    A handle to a TrueType face/font object. A TT_Face encapsulates  */
-  /*    the resolution and scaling independent parts of a TrueType font  */
-  /*    file. Instances (a.k.a. fontsizes) and glyph objects must be     */
-  /*    created from them before a glyph can be loaded in memory.        */
-  /*                                                                     */
-  /*    They are created through TT_New_Face and destroyed with          */
-  /*    TT_Done_Face. This will destroy all instance and glyph objects   */
-  /*                                                                     */
-
-  typedef struct TT_FaceRec_*   TT_Face;
-
-#endif  /* _TRUETYPE_ */
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Type> TT_Instance                                                  */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    A handle to a TrueType instance/fontsize object. A TT_Instance   */
-  /*    encapsulates all the resolution and scaling dependent part of    */
-  /*    a given font size, but doesn't contain any glyph. They must be   */
-  /*    used with glyph objects in order to load glyph objects from      */
-  /*    a TT file.                                                       */
-  /*                                                                     */
-  /*    They are created from face objects with TT_New_Instance, and     */
-  /*    destroyed with TT_Done_Instance                                  */
-  /*                                                                     */
-  /*    A fresh new instance has a default resolution of 96x96 dpi,      */
-  /*    and a default point size of 10 pt. Each of these can be changed  */
-  /*    dynamically with various APIs defined below..                    */
-  /*                                                                     */
-
-  typedef struct TT_InstanceRec_*  TT_Instance;
-
-  /* Note: The TT_Instance type is not defined in "drivers/ttlib/ttobjs.h" */
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Type> TT_Glyph                                                     */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    A handle to a TrueType glyph object. A glyph object acts as a    */
-  /*    container for any of the glyphs of a given face object. It       */
-  /*    encapsulates glyph metrics as well as outline space sized large  */
-  /*    enough to allow the loading of any glyph without further         */
-  /*    allocation. A glyph object doesn't contain any bitmap or         */
-  /*    pixmap data/buffer.                                              */
-  /*                                                                     */
-  /*    They are created from face objects with TT_New_Glyph, and        */
-  /*    destroyed with TT_Done_Glyph                                     */
-  /*                                                                     */
-  /*    One can create several glyph objects per face, and use           */
-  /*    a single instance to load multiple glyphs, even concurrently     */
-  /*    in thread-safe and reentrant modes..                             */
-  /*                                                                     */
-
-  typedef struct TT_GlyphRec_*    TT_Glyph;
-
-  /* Note: the TT_Glyph type is not defined in "drivers/ttlib/ttobjs.h" */
-
-
-/* The TT_CharMap type is already defined in "drivers/ttlib/ttobjs.h" */
-/* We use the _TRUETYPE_ macro to prevent their redefinition when     */
-/* _compiling_ the backwards-compatible layer called "oldapi.c"       */
-/*                                                                    */
-#ifndef _TRUETYPE_
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Type> TT_CharMap                                                   */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    A handle to a TrueType character mapping object. These objects   */
-  /*    are used to convert character codes in a specific locale or      */
-  /*    encoding into font/face glyph indexes.                           */
-  /*                                                                     */
-  /*    The list of character maps found within a face can be            */
-  /*    enumerated with API functions defined below. An CharMap object   */
-  /*    is created with TT_New_CharMap. They are destroyed automatically */
-  /*    when their parent face objects are discarded.                    */
-  /*                                                                     */
-
-  typedef struct TT_CharMapRec_*   TT_CharMap;
-
-  typedef long  TT_Error;
-
-#endif /* _TRUETYPE_ */
-
-
-
-  EXPORT_DEF
-  const TT_Instance   TT_Null_Instance;
-
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*  Postscript Names extension                                     */
-  /*                                                                 */
-  /*******************************************************************/
-
-#define TT_Err_Invalid_Post_Table_Format  0x0B00
-#define TT_Err_Invalid_Post_Table         0x0B01
-
-  /* Initialise the Postscript Names extension */
-  EXPORT_DEF
-  TT_Error TT_Init_Post_Extension( TT_Engine  engine );
-
-  /* Load the Postscript Names table - notice that the 'post' parameter */
-  /* will be ignored in 2.0.                                            */
-  EXPORT_DEF
-  TT_Error TT_Load_PS_Names( TT_Face   face,
-                             void*     post );
-
-  /* Gets the postscript name of a single glyph */
-  EXPORT_DEF
-  TT_Error TT_Get_PS_Name( TT_Face      face,
-                           TT_UShort    index,
-                           TT_String**  PSname );
-
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*  Embedded Bitmaps (sbits) extension                             */
-  /*                                                                 */
-  /*******************************************************************/
-
-#ifndef _TRUETYPE_
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Metrics                                  */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used to hold the big metrics of a given    */
-  /*    glyph bitmap in a TrueType or OpenType font. These     */
-  /*    are usually found in the "EBDT" table.                 */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*    height       :: glyph height in pixels                 */
-  /*    width        :: glyph width in pixels                  */
-  /*                                                           */
-  /*    horiBearingX :: horizontal left bearing                */
-  /*    horiBearingY :: horizontal top bearing                 */
-  /*    horiAdvance  :: horizontal advance                     */
-  /*                                                           */
-  /*    vertBearingX :: vertical left bearing                  */
-  /*    vertBearingY :: vertical top bearing                   */
-  /*    vertAdvance  :: vertical advance                       */
-  /*                                                           */
-  typedef struct TT_SBit_Metrics_
-  {
-    TT_Byte  height;
-    TT_Byte  width;
-
-    TT_Char  horiBearingX;
-    TT_Char  horiBearingY;
-    TT_Byte  horiAdvance;
-
-    TT_Char  vertBearingX;
-    TT_Char  vertBearingY;
-    TT_Byte  vertAdvance;
-
-  } TT_SBit_Metrics;
-
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Small_Metrics                            */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used to hold the small metrics of a given  */
-  /*    glyph bitmap in a TrueType or OpenType font. These     */
-  /*    are usually found in the "EBDT" table.                 */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*    height    :: glyph height in pixels                    */
-  /*    width     :: glyph width in pixels                     */
-  /*                                                           */
-  /*    bearingX  :: left-side bearing                         */
-  /*    bearingY  :: top-side bearing                          */
-  /*    advance   :: advance width or height                   */
-  /*                                                           */
-  typedef struct TT_SBit_Small_Metrics_
-  {
-    TT_Byte  height;
-    TT_Byte  width;
-
-    TT_Char  bearingX;
-    TT_Char  bearingY;
-    TT_Byte  advance;
-
-  } TT_SBit_Small_Metrics;
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Line_Metrics                             */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used to describe the text line metrics of  */
-  /*    a given bitmap strike, for either an horizontal or     */
-  /*    vertical layout.                                       */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*    ascender  :: ascender in pixels                        */
-  /*    descender :: descender in pixels                       */
-  /*    max_width :: maximum glyph width in pixels             */
-  /*                                                           */
-  /*    caret_slope_enumerator  :: ?                           */
-  /*    caret_slope_denominator :: ?                           */
-  /*    caret_offset            :: ?                           */
-  /*                                                           */
-  /*    min_origin_SB  :: ?                                    */
-  /*    min_advance_SB :: ?                                    */
-  /*    max_before_BL  :: ?                                    */
-  /*    min_after_BL   :: ?                                    */
-  /*                                                           */
-  typedef struct TT_SBit_Line_Metrics_
-  {
-    TT_Char  ascender;
-    TT_Char  descender;
-    TT_Byte  max_width;
-    TT_Char  caret_slope_numerator;
-    TT_Char  caret_slope_denominator;
-    TT_Char  caret_offset;
-    TT_Char  min_origin_SB;
-    TT_Char  min_advance_SB;
-    TT_Char  max_before_BL;
-    TT_Char  min_after_BL;
-    TT_Char  pads[2];
-
-  } TT_SBit_Line_Metrics;
-
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Range                                    */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A TrueType/OpenType subIndexTable as defined in the    */
-  /*    "EBLC" or "bloc" tables.                               */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*                                                           */
-  /*    first_glyph  :: first glyph index in range             */
-  /*    last_glyph   :: last glyph index in range              */
-  /*                                                           */
-  /*    index_format :: format of index table. valid           */
-  /*                    values are 1 to 5.                     */
-  /*                                                           */
-  /*    image_format :: format of 'EBDT' image data            */
-  /*    image_offset :: offset to image data in 'EBDT'         */
-  /*                                                           */
-  /*    image_size   :: for index formats 2 and 5. This is     */
-  /*                    the size in bytes of each glyph bitmap */
-  /*                    glyph bitmap                           */
-  /*                                                           */
-  /*    big_metrics  :: for index formats 2 and 5. This is     */
-  /*                    the big metrics for each glyph bitmap  */
-  /*                                                           */
-  /*    num_glyphs   :: for index formats 4 and 5. This is     */
-  /*                    the number of glyphs in the code       */
-  /*                    array.                                 */
-  /*                                                           */
-  /*    glyph_offsets :: for index formats 1 and 3.            */
-  /*    glyph_codes   :: for index formats 4 and 5.            */
-  /*                                                           */
-  /*    table_offset  :: offset of index table in 'EBLC' table */
-  /*                     only used during strike loading..     */
-  /*                                                           */
-  typedef struct TT_SBit_Range
-  {
-    TT_UShort        first_glyph;
-    TT_UShort        last_glyph;
-
-    TT_UShort        index_format;
-    TT_UShort        image_format;
-    TT_ULong         image_offset;
-
-    TT_ULong         image_size;
-    TT_SBit_Metrics  metrics;
-    TT_ULong         num_glyphs;
-
-    TT_ULong*        glyph_offsets;
-    TT_UShort*       glyph_codes;
-
-    TT_ULong         table_offset;
-
-  } TT_SBit_Range;
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Strike                                   */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used describe a given bitmap strike in the */
-  /*    "EBLC" or "bloc" tables.                               */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*                                                           */
-  /*   num_index_ranges  :: number of index ranges             */
-  /*   index_ranges      :: array of glyph index ranges        */
-  /*                                                           */
-  /*   color_ref   :: unused. color reference ??               */
-  /*   hori        :: line metrics for horizontal layouts.     */
-  /*   vert        :: line metrics for vertical layouts.       */
-  /*                                                           */
-  /*   start_glyph :: lowest glyph index for this strike.      */
-  /*   end_glyph   :: higher glyph index for this strike.      */
-  /*                                                           */
-  /*   x_ppem      :: horizontal pixels per EM                 */
-  /*   y_ppem      :: vertical pixels per EM                   */
-  /*   bit_depth   :: bit depth. valid values are 1, 2, 4 & 8  */
-  /*   flags       :: vertical or horizontal ?                 */
-  /*                                                           */
-  typedef struct TT_SBit_Strike_
-  {
-    TT_Int                 num_ranges;
-    TT_SBit_Range*         sbit_ranges;
-    TT_ULong               ranges_offset;
-
-    TT_ULong               color_ref;
-
-    TT_SBit_Line_Metrics   hori;
-    TT_SBit_Line_Metrics   vert;
-
-    TT_UShort              start_glyph;
-    TT_UShort              end_glyph;
-
-    TT_Byte                x_ppem;
-    TT_Byte                y_ppem;
-    TT_Byte                bit_depth;
-    TT_Char                flags;
-
-  } TT_SBit_Strike;
-
-
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Component                                */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A simple structure to describe a compound sbit element */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*    glyph_code  :: element's glyph index                   */
-  /*    x_offset    :: element's left bearing                  */
-  /*    y_offset    :: element's top bearing                   */
-  /*                                                           */
-  typedef struct TT_SBit_Component_
-  {
-    TT_UShort  glyph_code;
-    TT_Char    x_offset;
-    TT_Char    y_offset;
-
-  } TT_SBit_Component;
-
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Scale                                    */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used describe a given bitmap scaling       */
-  /*    table, asdefined for the "EBSC" table.                 */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*                                                           */
-  /*    hori   :: horizontal line metrics                      */
-  /*    vert   :: vertical line metrics                        */
-  /*                                                           */
-  /*    x_ppem :: horizontal pixels per EM                     */
-  /*    y_ppem :: vertical pixels per EM                       */
-  /*                                                           */
-  /*    x_ppem_substitute  :: substitution x_ppem              */
-  /*    y_ppem_substitute  :: substitution y_ppem              */
-  /*                                                           */
-  typedef struct TT_SBit_Scale_
-  {
-    TT_SBit_Line_Metrics  hori;
-    TT_SBit_Line_Metrics  vert;
-    TT_Byte               x_ppem;
-    TT_Byte               y_ppem;
-    TT_Byte               x_ppem_substitute;
-    TT_Byte               y_ppem_substitute;
-
-  } TT_SBit_Scale;
-#endif /* _TRUETYPE_ */
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_SBit_Image                                    */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used to describe a given embedded bitmap   */
-  /*    image.                                                 */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*    map        :: bitmap descriptor                        */
-  /*    bit_depth  :: pixel bit depth                          */
-  /*    metrics    :: glyph metrics for the bitmap             */
-  /*                                                           */
-  typedef struct TT_SBit_Image_
-  {
-    TT_Raster_Map         map;
-    int                   bit_depth;
-    TT_Big_Glyph_Metrics  metrics;
-
-  } TT_SBit_Image;
-
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Struct> TT_EBLC                                          */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    A structure used to describe the "EBLC" table from     */
-  /*    a TrueTYpe font.                                       */
-  /*                                                           */
-  /* <Fields>                                                  */
-  /*                                                           */
-  /*    version     :: version number of the EBLC table        */
-  /*                                                           */
-  /*    num_strikes :: the number of strikes, i.e. bitmap      */
-  /*                   sizes, present in this font             */
-  /*                                                           */
-  /*    strikes     :: array of strikes                        */
-  /*                                                           */
-  typedef struct TT_EBLC_
-  {
-    TT_ULong         version;
-    TT_ULong         num_strikes;
-    TT_SBit_Strike*  strikes;
-
-  } TT_EBLC;
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Init_SBit_Extension                                 */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Initialise the embedded bitmaps extension for the      */
-  /*    FreeType engine.                                       */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    engine  :: handle to current FreeType library instance */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  EXPORT_DEF
-  TT_Error  TT_Init_SBit_Extension( TT_Engine  engine );
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Get_Face_Bitmaps                                    */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Loads the "EBLC" table from a font file, if any.       */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    face :: handle to the source TrueType font/face        */
-  /*                                                           */
-  /* <Output>                                                  */
-  /*    eblc_table :: a descriptor for the EBLC table          */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  /* <Note>                                                    */
-  /*    This function returns TT_Err_Table_Missing when the    */
-  /*    font contains no embedded bitmaps. All fields in       */
-  /*    "eblc_table" will then be set to 0.                    */
-  /*                                                           */
-  EXPORT_DEF
-  TT_Error  TT_Get_Face_Bitmaps( TT_Face   face,
-                                 TT_EBLC  *eblc_table );
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_New_SBit_Image                                      */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Allocates a new embedded bitmap container              */
-  /*                                                           */
-  /* <Output>                                                  */
-  /*    image :: sbit image                                    */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  EXPORT_DEF
-  TT_Error  TT_New_SBit_Image( TT_SBit_Image*  *image );
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Done_SBit_Image                                     */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Releases an embedded bitmap container                  */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    image :: sbit image                                    */
-  /*                                                           */
-  EXPORT_DEF
-  void      TT_Done_SBit_Image( TT_SBit_Image*  image );
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Load_Glyph_Bitmap                                   */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Loads a given glyph embedded bitmap                    */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    face        :: handle to the source TrueType font/face */
-  /*    instance    :: current size/transform instance         */
-  /*    glyph_index :: index of source glyph                   */
-  /*    bitmap      :: target embedded bitmap descriptor       */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  /* <Note>                                                    */
-  /*    This function returns an error if there is no          */
-  /*    embedded bitmap for the glyph at the given             */
-  /*    instance.                                              */
-  /*                                                           */
-  EXPORT_DEF
-  TT_Error  TT_Load_Glyph_Bitmap( TT_Face         face,
-                                  TT_Instance     instance,
-                                  TT_UShort       glyph_index,
-                                  TT_SBit_Image*  bitmap );
-
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*  FreeType API                                                   */
-  /*                                                                 */
-  /*  All these begin with a 'TT_' prefix.                           */
-  /*                                                                 */
-  /*  Most of them are implemented in the 'ttapi.c' source file.     */
-  /*                                                                 */
-  /*******************************************************************/
-
-  /* Initialize the engine. */
-
-  EXPORT_DEF
-  TT_Error  TT_Init_FreeType( TT_Engine*  engine );
-
-
-  /* Finalize the engine, and release all allocated objects. */
-
-  EXPORT_DEF
-  TT_Error  TT_Done_FreeType( TT_Engine  engine );
-
-
-  /* Set the gray level palette.  This is an array of 5 bytes used */
-  /* to produce the font smoothed pixmaps.  By convention:         */
-  /*                                                               */
-  /*  palette[0] = background (white)                              */
-  /*  palette[1] = light                                           */
-  /*  palette[2] = medium                                          */
-  /*  palette[3] = dark                                            */
-  /*  palette[4] = foreground (black)                              */
-  /*                                                               */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Raster_Gray_Palette( TT_Engine       engine,
-                                        const TT_Byte*  palette );
-
-
-  /* ----------------------- face management ----------------------- */
-
-  /* Open a new TrueType font file, and returns a handle for */
-  /* it in variable '*face'.                                 */
-
-  /* Note: The file can be either a TrueType file (*.ttf) or  */
-  /*       a TrueType collection (*.ttc, in this case, only   */
-  /*       the first face is opened).  The number of faces in */
-  /*       the same collection can be obtained in the face's  */
-  /*       properties, using TT_Get_Face_Properties() and the */
-  /*       'max_Faces' field.                                 */
-
-  EXPORT_DEF
-  TT_Error  TT_Open_Face( TT_Engine       engine,
-                          const TT_Text*  fontPathName,
-                          TT_Face*        face );
-
-
-  /* Open a TrueType font file located inside a collection. */
-  /* The font is assigned by its index in 'fontIndex'.      */
-
-  EXPORT_DEF
-  TT_Error  TT_Open_Collection( TT_Engine       engine,
-                                const TT_Text*  collectionPathName,
-                                TT_ULong        fontIndex,
-                                TT_Face*        face );
-
-
-  /* Return face properties in the 'properties' structure. */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Face_Properties( TT_Face              face,
-                                    TT_Face_Properties*  properties );
-
-
-  /* Set a face object's generic pointer */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Face_Pointer( TT_Face  face,
-                                 void*    data );
-
-
-  /* Get a face object's generic pointer */
-
-  EXPORT_DEF
-  void*     TT_Get_Face_Pointer( TT_Face  face );
-
-
-  /* Close a face's file handle to save system resources.  The file */
-  /* will be re-opened automatically on the next disk access.       */
-
-  EXPORT_DEF
-  TT_Error  TT_Flush_Face( TT_Face  face );
-
-  /* Get a face's glyph metrics expressed in font units.  Returns any   */
-  /* number of arrays.  Set the fields to NULL if you're not interested */
-  /* by a given array.                                                  */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Face_Metrics( TT_Face     face,
-                                 TT_UShort   firstGlyph,
-                                 TT_UShort   lastGlyph,
-                                 TT_Short*   leftBearings,
-                                 TT_UShort*  widths,
-                                 TT_Short*   topBearings,
-                                 TT_UShort*  heights );
-
-  /* Close a given font object, destroying all associated */
-  /* instances.                                           */
-
-  EXPORT_DEF
-  TT_Error  TT_Close_Face( TT_Face  face );
-
-
-  /* Get font or table data. */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Font_Data( TT_Face   face,
-                              TT_ULong  tag,
-                              TT_Long   offset,
-                              void*     buffer,
-                              TT_Long*  length );
-
-
-/* A simple macro to build table tags from ASCII chars */
-
-#define MAKE_TT_TAG( _x1, _x2, _x3, _x4 ) \
-          (((TT_ULong)_x1 << 24) |        \
-           ((TT_ULong)_x2 << 16) |        \
-           ((TT_ULong)_x3 << 8)  |        \
-            (TT_ULong)_x4)
-
-
-
-  /* ----------------------- instance management -------------------- */
-
-  /* Open a new font instance and returns an instance handle */
-  /* for it in '*instance'.                                  */
-
-  EXPORT_DEF
-  TT_Error  TT_New_Instance( TT_Face       face,
-                             TT_Instance*  instance );
-
-
-  /* Set device resolution for a given instance.  The values are      */
-  /* given in dpi (Dots Per Inch).  Default is 96 in both directions. */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_Resolutions( TT_Instance  instance,
-                                         TT_UShort    xResolution,
-                                         TT_UShort    yResolution );
-
-
-  /* Set the pointsize for a given instance.  Default is 10pt. */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_CharSize( TT_Instance  instance,
-                                      TT_F26Dot6   charSize );
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_CharSizes( TT_Instance  instance,
-                                       TT_F26Dot6   charWidth,
-                                       TT_F26Dot6   charHeight );
-
-#define TT_Set_Instance_PointSize( ins, ptsize )   \
-            TT_Set_Instance_CharSize( ins, ptsize*64 )
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_PixelSizes( TT_Instance  instance,
-                                        TT_UShort    pixelWidth,
-                                        TT_UShort    pixelHeight,
-                                        TT_F26Dot6   pointSize );
-
-
-  /* This function has been deprecated !! Do not use it, as it    */
-  /* doesn't work reliably. You can perfectly control hinting     */
-  /* yourself when loading glyphs, then apply transforms as usual */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_Transform_Flags( TT_Instance  instance,
-                                             TT_Bool      rotated,
-                                             TT_Bool      stretched );
-
-
-  /* Return instance metrics in 'metrics'. */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Instance_Metrics( TT_Instance           instance,
-                                     TT_Instance_Metrics*  metrics );
-
-
-  /* Set an instance's generic pointer. */
-
-  EXPORT_DEF
-  TT_Error  TT_Set_Instance_Pointer( TT_Instance  instance,
-                                     void*        data );
-
-
-  /* Get an instance's generic pointer. */
-
-  EXPORT_DEF
-  void*     TT_Get_Instance_Pointer( TT_Instance  instance );
-
-
-  /* Close a given instance object, destroying all associated data. */
-
-  EXPORT_DEF
-  TT_Error  TT_Done_Instance( TT_Instance  instance );
-
-
-
-  /* ----------------------- glyph management ----------------------- */
-
-  /* Create a new glyph object related to the given 'face'. */
-
-  EXPORT_DEF
-  TT_Error  TT_New_Glyph( TT_Face    face,
-                          TT_Glyph*  glyph );
-
-
-  /* Discard (and destroy) a given glyph object. */
-
-  EXPORT_DEF
-  TT_Error  TT_Done_Glyph( TT_Glyph  glyph );
-
-
-#define TTLOAD_SCALE_GLYPH  1
-#define TTLOAD_HINT_GLYPH   2
-
-#define TTLOAD_DEFAULT  (TTLOAD_SCALE_GLYPH | TTLOAD_HINT_GLYPH)
-
-
-  /* Load and process (scale/transform and hint) a glyph from the */
-  /* given 'instance'.  The glyph and instance handles must be    */
-  /* related to the same face object.  The glyph index can be     */
-  /* computed with a call to TT_Char_Index().                     */
-
-  /* The 'load_flags' argument is a combination of the macros     */
-  /* TTLOAD_SCALE_GLYPH and TTLOAD_HINT_GLYPH.  Hinting will be   */
-  /* applied only if the scaling is selected.                     */
-
-  /* When scaling is off (i.e., load_flags = 0), the returned     */
-  /* outlines are in EM square coordinates (also called FUnits),  */
-  /* extracted directly from the font with no hinting.            */
-  /* Other glyph metrics are also in FUnits.                      */
-
-  /* When scaling is on, the returned outlines are in fractional  */
-  /* pixel units (i.e. TT_F26Dot6 = 26.6 fixed floats).           */
-
-  /* NOTE:  The glyph index must be in the range 0..num_glyphs-1  */
-  /*        where 'num_glyphs' is the total number of glyphs in   */
-  /*        the font file (given in the face properties).         */
-
-  EXPORT_DEF
-  TT_Error  TT_Load_Glyph( TT_Instance  instance,
-                           TT_Glyph     glyph,
-                           TT_UShort    glyphIndex,
-                           TT_UShort    loadFlags );
-
-
-  /* Return glyph outline pointers in 'outline'.  Note that the returned */
-  /* pointers are owned by the glyph object, and will be destroyed with  */
-  /* it.  The client application should _not_ change the pointers.       */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Glyph_Outline( TT_Glyph     glyph,
-                                  TT_Outline*  outline );
-
-
-  /* Copy the glyph metrics into 'metrics'. */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Glyph_Metrics( TT_Glyph           glyph,
-                                  TT_Glyph_Metrics*  metrics );
-
-
-  /* Copy the glyph's big metrics into 'metrics'. */
-  /* Necessary to obtain vertical metrics.        */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Glyph_Big_Metrics( TT_Glyph               glyph,
-                                      TT_Big_Glyph_Metrics*  metrics );
-
-
-  /* Render the glyph into a bitmap, with given position offsets.     */
-
-  /*  Note:  Only use integer pixel offsets to preserve the fine      */
-  /*         hinting of the glyph and the 'correct' anti-aliasing     */
-  /*         (where vertical and horizontal stems aren't grayed).     */
-  /*         This means that xOffset and yOffset must be multiples    */
-  /*         of 64!                                                   */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Glyph_Bitmap( TT_Glyph        glyph,
-                                 TT_Raster_Map*  map,
-                                 TT_F26Dot6      xOffset,
-                                 TT_F26Dot6      yOffset );
-
-
-  /* Render the glyph into a pixmap, with given position offsets.     */
-
-  /*  Note : Only use integer pixel offsets to preserve the fine      */
-  /*         hinting of the glyph and the 'correct' anti-aliasing     */
-  /*         (where vertical and horizontal stems aren't grayed).     */
-  /*         This means that xOffset and yOffset must be multiples    */
-  /*         of 64!                                                   */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Glyph_Pixmap( TT_Glyph        glyph,
-                                 TT_Raster_Map*  map,
-                                 TT_F26Dot6      xOffset,
-                                 TT_F26Dot6      yOffset );
-
-
-
-  /* ----------------------- outline support ------------------------ */
-
-  /* Allocate a new outline.  Reserve space for 'numPoints' and */
-  /* 'numContours'.                                             */
-
-  EXPORT_DEF
-  TT_Error  TT_New_Outline( TT_UShort    numPoints,
-                            TT_Short     numContours,
-                            TT_Outline*  outline );
-
-
-  /* Release an outline. */
-
-  EXPORT_DEF
-  TT_Error  TT_Done_Outline( TT_Outline*  outline );
-
-
-  /* Copy an outline into another one. */
-
-  EXPORT_DEF
-  TT_Error  TT_Copy_Outline( TT_Outline*  source,
-                             TT_Outline*  target );
-
-
-  /* Render an outline into a bitmap. */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Outline_Bitmap( TT_Engine       engine,
-                                   TT_Outline*     outline,
-                                   TT_Raster_Map*  map );
-
-
-  /* Render an outline into a pixmap -- note that this function uses */
-  /* a different pixel scale, where 1.0 pixels = 128           XXXX  */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Outline_Pixmap( TT_Engine       engine,
-                                   TT_Outline*     outline,
-                                   TT_Raster_Map*  map );
-
-
-  /* Return an outline's bounding box -- this function is slow as it */
-  /* performs a complete scan-line process, without drawing, to get  */
-  /* the most accurate values.                                 XXXX  */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Outline_BBox( TT_Outline*  outline,
-                                 TT_BBox*     bbox );
-
-
-  /* Apply a transformation to a glyph outline. */
-
-  EXPORT_DEF
-  void      TT_Transform_Outline( TT_Outline*  outline,
-                                  TT_Matrix*   matrix );
-
-
-  /* Apply a translation to a glyph outline. */
-
-  EXPORT_DEF
-  void      TT_Translate_Outline( TT_Outline*  outline,
-                                  TT_F26Dot6   xOffset,
-                                  TT_F26Dot6   yOffset );
-
-
-  /* Apply a transformation to a vector. */
-
-  EXPORT_DEF
-  void      TT_Transform_Vector( TT_F26Dot6*  x,
-                                 TT_F26Dot6*  y,
-                                 TT_Matrix*   matrix );
-
-
-  /* Multiply a matrix with another -- computes "b := a*b". */
-
-  EXPORT_DEF
-  void      TT_Matrix_Multiply( TT_Matrix*  a,
-                                TT_Matrix*  b );
-
-
-  /* Invert a transformation matrix. */
-
-  EXPORT_DEF
-  TT_Error  TT_Matrix_Invert( TT_Matrix*  matrix );
-
-
-  /* Compute A*B/C with 64 bits intermediate precision. */
-
-  EXPORT_DEF
-  TT_Long   TT_MulDiv( TT_Long A, TT_Long B, TT_Long C );
-
-
-  /* Compute A*B/0x10000 with 64 bits intermediate precision. */
-  /* Useful to multiply by a 16.16 fixed float value.         */
-
-  EXPORT_DEF
-  TT_Long   TT_MulFix( TT_Long A, TT_Long B );
-
-
-
-  /* ----------------- character mappings support ------------- */
-
-  /* Return the number of character mappings found in this file. */
-  /* Returns -1 in case of failure (invalid face handle).        */
-  /*                                                             */
-  /* DON'T USE THIS FUNCTION! IT HAS BEEN DEPRECATED!            */
-  /*                                                             */
-  /* It is retained for backwards compatibility only and will    */
-  /* fail on 16bit systems.                                      */
-  /*                                                             */
-  /* You can now get the charmap count in the "num_CharMaps"     */
-  /* field of a face's properties.                               */
-  /*                                                             */
-
-  EXPORT_DEF
-  int  TT_Get_CharMap_Count( TT_Face  face );
-
-
-  /* Return the ID of charmap number 'charmapIndex' of a given face */
-  /* used to enumerate the charmaps present in a TrueType file.     */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_CharMap_ID( TT_Face     face,
-                               TT_UShort   charmapIndex,
-                               TT_UShort*  platformID,
-                               TT_UShort*  encodingID );
-
-
-  /* Look up the character maps found in 'face' and return a handle */
-  /* for the one matching 'platformID' and 'platformEncodingID'     */
-  /* (see the TrueType specs relating to the 'cmap' table for       */
-  /* information on these ID numbers).  Returns an error code.      */
-  /* In case of failure, the handle is set to NULL and is invalid.  */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_CharMap( TT_Face      face,
-                            TT_UShort    charmapIndex,
-                            TT_CharMap*  charMap );
-
-
-  /* Translate a character code through a given character map   */
-  /* and return the corresponding glyph index to be used in     */
-  /* a TT_Load_Glyph call.  This function returns 0 in case of  */
-  /* failure.                                                   */
-
-  EXPORT_DEF
-  TT_UShort  TT_Char_Index( TT_CharMap  charMap,
-                            TT_UShort   charCode );
-
-
-
-  /* --------------------- names table support ------------------- */
-
-  /* Return the number of name strings found in the name table.  */
-  /* Returns -1 in case of failure (invalid face handle).        */
-  /*                                                             */
-  /* DON'T USE THIS FUNCTION! IT HAS BEEN DEPRECATED!            */
-  /*                                                             */
-  /* It is retained for backwards compatibility only and will    */
-  /* fail on 16bit systems.                                      */
-  /*                                                             */
-  /* You can now get the number of name strings in a face with   */
-  /* the "num_Names" field of its properties..                   */
-  /*                                                             */
-
-  EXPORT_DEF
-  int  TT_Get_Name_Count( TT_Face  face );
-
-
-  /* Return the ID of the name number 'nameIndex' of a given face */
-  /* used to enumerate the charmaps present in a TrueType file.   */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Name_ID( TT_Face     face,
-                            TT_UShort   nameIndex,
-                            TT_UShort*  platformID,
-                            TT_UShort*  encodingID,
-                            TT_UShort*  languageID,
-                            TT_UShort*  nameID );
-
-
-  /* Return the address and length of the name number 'nameIndex' */
-  /* of a given face.  The string is part of the face object and  */
-  /* shouldn't be written to or released.                         */
-
-  /* Note that if for an invalid platformID a null pointer will   */
-  /* be returned.                                                 */
-
-  EXPORT_DEF
-  TT_Error  TT_Get_Name_String( TT_Face      face,
-                                TT_UShort    nameIndex,
-                                TT_String**  stringPtr, /* pointer address */
-                                TT_UShort*   length );  /* string length
-                                                           address */
-
-
-
-#ifdef __cplusplus
-  }
-#endif
-
-#endif /* TRUETYPE_H */
-
-
-/* END */
diff --git a/src/oldapi/ttapi.c b/src/oldapi/ttapi.c
deleted file mode 100644
index 1d07219..0000000
--- a/src/oldapi/ttapi.c
+++ /dev/null
@@ -1,2267 +0,0 @@
-/*******************************************************************
- *
- *  ttapi.c
- *
- *    High-level interface implementation
- *
- *  Copyright 1996-1998 by
- *  David Turner, Robert Wilhelm, and Werner Lemberg.
- *
- *  This file is part of the FreeType project, and may only be used,
- *  modified, and distributed under the terms of the FreeType project
- *  license, LICENSE.TXT.  By continuing to use, modify, or distribute
- *  this file you indicate that you have read the license and
- *  understand and accept it fully.
- *
- *  Notes:
- *
- *    This file is used to implement most of the functions that are
- *    defined in the file "freetype.h". However, two functions are
- *    implemented elsewhere :
- *
- ******************************************************************/
-
-#include <freetype/freetype.h>
-
-#include <freetype/internal/ftdebug.h>
-#include <freetype/internal/ftstream.h>
-#include <freetype/internal/ftcalc.h>
-#include <freetype/internal/ftlist.h>
-#include <freetype/internal/ftraster.h>
-
-#include <../truetype/ttdriver.h>
-#include <../truetype/ttobjs.h>
-#include <../truetype/ttcmap.h>
-
-#define _TRUETYPE_
-#include <truetype.h>  /* backwards compatible interface */
-
-
-
-/* required by the tracing mode */
-#undef  FT_COMPONENT
-#define FT_COMPONENT  trace_ttapi
-
-
-#define RENDER_POOL_SIZE  64000
-
-  static
-  const FT_DriverInterface*  tt_interface = &tt_driver_interface;
-
-  static
-  const TT_DriverInterface*  tt_extension = &tt_format_interface;
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Init_FreeType                                         */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Creates a new TrueType driver/engine object.                     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    engine   ::  handle to the new engine object                     */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function is provided for stand-alone compiles of the        */
-  /*    TrueType driver.                                                 */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Init_FreeType( TT_Engine*  engine )
-  {
-    FT_Library library;
-    FT_System  system;
-    TT_Error   error;
-
-    *engine = 0;
-
-    error = FT_New_System( &system );
-    if (error) return error;
-
-    error = FT_New_Library( system, &library );
-    if (!error)
-      /* Now create a new TrueType driver object */
-      error = FT_Add_Driver( library,
-                             (FT_DriverInterface*)&tt_driver_interface );
-    if (error)
-      FT_Done_Library(library);
-    else
-      *engine = (TT_Engine)library;
-
-    return error;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Done_FreeType                                         */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Destroys a given TrueType engine object created with             */
-  /*    TT_Init_FreeType. All associated objects, (i.e. faces, outlines  */
-  /*    and charmaps) will be destroyed..                                */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    engine   :: handle to the engine object                          */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function is provided for stand-alone compiles of the        */
-  /*    TrueType driver. The FreeType library uses the TT_Done_Engine    */
-  /*    API.                                                             */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Done_FreeType( TT_Engine  engine )
-  {
-    FT_Library  library = (FT_Library)engine;
-
-    FT_Done_FreeType( library );
-    return FT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Raster_Gray_Palette                               */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Sets the raster's gray 5-levels palette. Entry 0 correspond to   */
-  /*    the background, Entry 4 to the foreground. Intermediate entries  */
-  /*    correspond to gray levels..                                      */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    engine   :: handle to the engine object                          */
-  /*    palette  :: an array of 5 bytes used to render 8-bit pixmaps     */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function is provided for stand-alone compiles of the        */
-  /*    TrueType driver. The FreeType library accesses directly the      */
-  /*    raster object to set the palette.                                */
-  /*                                                                     */
-  /*    This function ONLY supports 5 levels of grays.                   */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Raster_Gray_Palette( TT_Engine       engine,
-                                        const TT_Byte*  palette )
-  {
-    FT_Library  library;
-
-    if (!engine)
-      return TT_Err_Invalid_Engine;
-
-    library = (FT_Library)engine;
-    return FT_Set_Raster_Palette( library, 5, (unsigned char*)palette );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Open_Face                                             */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Creates a new face object from a given resource. The file can    */
-  /*    be either a TrueType file (ttf) or a TrueType collection (ttc).  */
-  /*    In the latter case, only the first face is opened. The number    */
-  /*    of faces in a collection can be obtained in the face's           */
-  /*    properties field "num_Faces". Other faces can be opened with     */
-  /*    TT_Open_Collection (see below).                                  */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    engine    :: the parent engine object where to create the face   */
-  /*                 object.                                             */
-  /*                                                                     */
-  /*    pathname  :: pathname for the font file.                         */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    face      :: a handle to the fresh face object.                  */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success..                           */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    Yes.                                                             */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This API is provided fro backwards compatibility. Please use     */
-  /*    the functions TT_New_Face/TT_Done_Face now to create and         */
-  /*    discard face objects..                                           */
-  /*                                                                     */
-
-
-        static
-        TT_Error  open_face( FT_Library      library,
-                             const TT_Text*  pathname,
-                             TT_Int          face_index,
-                             TT_Face        *aface )
-        {
-          TT_Error    error;
-          FT_Resource resource;
-
-          *aface = 0;
-
-          error = FT_New_Resource( library, pathname, &resource );
-          if (error) return error;
-
-#if 0
-          error = FT_Add_Resource( library, resource );
-          if (error) goto Fail_Install;
-#endif
-          error = FT_New_Face( resource, face_index, (FT_Face*)aface );
-
-          /* Destroy glyph slot to comply with the 1.x API */
-          if (!error)
-            FT_Done_GlyphSlot( (*aface)->root.slot );
-
-          if (error)
-            FT_Done_Resource(resource);
-
-          return error;
-        }
-
-
-  EXPORT_DEF
-  TT_Error  TT_Open_Face( TT_Engine      engine,
-                          const TT_Text* pathname,
-                          TT_Face*       aface )
-  {
-    if (!engine)
-      return TT_Err_Invalid_Driver_Handle;
-
-    return  open_face( (FT_Library)engine, pathname, 0, aface );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Open_Collection                                       */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Loads a given face within a collection.                          */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    engine    :: TrueType engine object where to load the face       */
-  /*    pathname  :: the collection's pathname                           */
-  /*    fontIndex :: index of face within the collection. first is 0     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    face      :: handle to the new face object. Always set to NULL   */
-  /*                 in case of error                                    */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    Yes.                                                             */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This API is provided for backwards compatibility. Please use     */
-  /*    the functions TT_New_Collection/TT_Done_Face now to create and   */
-  /*    discard face/collection objects.                                 */
-  /*                                                                     */
-
-  EXPORT_DEF
-  TT_Error  TT_Open_Collection( TT_Engine       engine,
-                                const TT_Text*  pathname,
-                                TT_ULong        fontIndex,
-                                TT_Face*        aface )
-  {
-    if (!engine)
-      return TT_Err_Invalid_Driver_Handle;
-
-    return open_face( (FT_Library)engine, pathname, fontIndex, aface );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Close_Face                                            */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Destroys a given face object opened through either TT_Open_Face  */
-  /*    of TT_Open_Collection.                                           */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face  :: handle to the target face object                        */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This API is provided for backwards compatibility. Please use     */
-  /*    the functions TT_New_Face/TT_Done_Face now to create and         */
-  /*    discard face/collection objects.                                 */
-  /*                                                                     */
-
-  EXPORT_DEF
-  TT_Error  TT_Close_Face( TT_Face  face )
-  {
-    FT_Resource  resource;
-
-    if (!face)
-      return TT_Err_Invalid_Face_Handle;
-
-    resource = face->root.resource;
-    FT_Done_Face( (FT_Face)face );
-
-    /* uninstall corresponding resource */
-    FT_Done_Resource( resource );
-
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /***********************************************************************/
-  /***********************************************************************/
-  /***********************************************************************/
-  /***********                                                 ***********/
-  /***********   End of backwards compatible APIs..            ***********/
-  /***********                                                 ***********/
-  /***********************************************************************/
-  /***********************************************************************/
-  /***********************************************************************/
-  /***********************************************************************/
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Face_Properties                                   */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Return a given face's properties to the caller.                  */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face  :: handle to the source face object                        */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    properties :: target properties structure                        */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success.                            */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    Yes.                                                             */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Face_Properties( TT_Face              face,
-                                    TT_Face_Properties*  props )
-  {
-    props->num_Glyphs   = (TT_UShort)face->root.num_glyphs;
-    props->max_Points   = (TT_UShort)face->root.max_points;
-    props->max_Contours = (TT_UShort)face->root.max_contours;
-    props->num_CharMaps = (TT_UShort)face->root.num_charmaps;
-    props->num_Faces    = face->root.num_faces;
-    props->num_Names    = face->num_names;
-    props->header       = &face->header;
-    props->horizontal   = &face->horizontal;
-
-      /* The driver supports old Mac fonts where there are no OS/2  */
-      /* tables present in the file. However, this is not true of   */
-      /* FreeType 1.1. For the sake of backwards compatibility, we  */
-      /* always return the address of the face's os2 table, even if */
-      /* it is empty (in which case, the 'props.os2' field is set   */
-      /* to NULL..                                                  */
-      /*                                                            */
-      /* Note however, that the 'os2->version' field is set to      */
-      /* 0xFFFF to indicate a missing table though...               */
-      /*                                                            */
-
-    props->os2          = &face->os2;
-
-    props->postscript    = &face->postscript;
-    props->hdmx          = &face->hdmx;
-    props->vertical      = ( face->vertical_info ? &face->vertical : 0 );
-
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Face_Pointer.                                     */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Each face object contains a typeless pointer, which use is left  */
-  /*    to client applications (or the high-level library). This API is  */
-  /*    used to set this generic pointer. It is ignored by the driver.   */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face   :: target face object                                     */
-  /*    data   :: generic pointer's value                                */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    The generic pointer is used by the HLib when using the driver    */
-  /*    within the FreeType library.                                     */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Face_Pointer( TT_Face  face,
-                                 void*    data )
-  {
-    if ( !face )
-      return TT_Err_Invalid_Face_Handle;
-    else
-      face->root.generic.data = data;
-
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Face_Pointer                                      */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Each face object contains a typeless pointer, which use is left  */
-  /*    to client applications (or the high-level library). This API is  */
-  /*    used to retrieve this generic pointer, which is ignored by the   */
-  /*    driver.                                                          */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face    :: handle to source face object                          */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    generic pointer value. NULL if the face handle is invalid..      */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  void*  TT_Get_Face_Pointer( TT_Face  face )
-  {
-    return ( face ? face->root.generic.data : NULL );
-  }
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Face_Metrics                                      */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Get the metrics of a given array of glyphs. Returns any number   */
-  /*    of metrics arrays.                                               */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face       :: handle to the source face object                   */
-  /*    firstGlyph :: index of first glyph in the array                  */
-  /*    lastGlyph  :: index of last glyph in the array                   */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    leftBearings :: target array of shorts for the glyph left side   */
-  /*                    bearings. Set this field to NULL if you're not   */
-  /*                    interested in these metrics.                     */
-  /*                                                                     */
-  /*    widths :: target array of unsigned shorts for the glyph advance  */
-  /*              widths. Set this field to NULL if you're not           */
-  /*              interested in these metrics.                           */
-  /*                                                                     */
-  /*    topBearings :: target array of shorts for the glyph top side     */
-  /*                   bearings. Set this field to NULL if you're not    */
-  /*                   interested in these metrics.                      */
-  /*                                                                     */
-  /*    heights :: target array of unsigned shorts for the glyph advance */
-  /*               heights. Set this field to NULL if you're not         */
-  /*               interested in these metrics.                          */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success.                            */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-
-        /********************************************************/
-        /* Return horizontal or vertical metrics in font units  */
-        /* for a given glyph.  The metrics are the left side    */
-        /* bearing (resp. top side bearing) and advance width   */
-        /* (resp. advance height).                              */
-        /*                                                      */
-        /* This function will much probably move to another     */
-        /* component in the short future, but I haven't decided */
-        /* which yet...                                         */
-
-          static
-          void  get_metrics( TT_HoriHeader*  header,
-                             TT_Int          index,
-                             TT_Short*       bearing,
-                             TT_UShort*      advance )
-          {
-            TT_LongMetrics*  longs_m;
-
-            TT_UShort  k = header->number_Of_HMetrics;
-
-
-            if ( index < k )
-            {
-              longs_m = (TT_LongMetrics*)header->long_metrics + index;
-              *bearing = longs_m->bearing;
-              *advance = longs_m->advance;
-            }
-            else
-            {
-              *bearing = ((TT_ShortMetrics*)header->short_metrics)[index - k];
-              *advance = ((TT_LongMetrics*)header->long_metrics)[k - 1].advance;
-            }
-          }
-
-
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Face_Metrics( TT_Face     face,
-                                 TT_UShort   firstGlyph,
-                                 TT_UShort   lastGlyph,
-                                 TT_Short*   leftBearings,
-                                 TT_UShort*  widths,
-                                 TT_Short*   topBearings,
-                                 TT_UShort*  heights )
-  {
-    TT_UShort  num;
-
-    if ( !face )
-      return TT_Err_Invalid_Face_Handle;
-
-    /* Check the glyph range */
-    if ( lastGlyph >= face->root.num_glyphs || firstGlyph > lastGlyph )
-      return TT_Err_Invalid_Argument;
-
-    num = lastGlyph - firstGlyph;   /* number of elements-1 in each array */
-
-    /* store the left side bearings and advance widths first */
-    {
-      TT_UShort  n;
-      TT_Short   left_bearing;
-      TT_UShort  advance_width;
-
-
-      for ( n = 0; n <= num; n++ )
-      {
-        get_metrics( &face->horizontal,
-                      firstGlyph + n, &left_bearing, &advance_width );
-
-        if ( leftBearings )  leftBearings[n] = left_bearing;
-        if ( widths )        widths[n]       = advance_width;
-      }
-    }
-
-    /* check for vertical data if topBearings or heights is non-NULL */
-    if ( !topBearings && !heights )
-      return TT_Err_Ok;
-
-    if ( !face->vertical_info )
-      return TT_Err_No_Vertical_Data;
-
-    /* store the top side bearings */
-    {
-      TT_UShort  n;
-      TT_Short   top_bearing;
-      TT_UShort  advance_height;
-
-      for ( n = 0; n <= num; n++ )
-      {
-        get_metrics( (TT_HoriHeader*)&face->vertical,
-                     firstGlyph + n, &top_bearing, &advance_height );
-
-        if ( topBearings )  topBearings[n] = top_bearing;
-        if ( heights )      heights[n]     = advance_height;
-      }
-    }
-
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_New_Instance                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Creates a new instance object from a given face                  */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    face  :: handle to source/parent face object                     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    instance :: handle to fresh object. Set to NULL in case of       */
-  /*                error.                                               */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    Yes.                                                             */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    Any new instance uses a default resolution of 96x96 dpi, and     */
-  /*    a default point size of 10 pts. You can change these anytime     */
-  /*    with TT_Set_Instance_Resolutions/CharSize/CharSizes/PixelSizes   */
-  /*    (see below).                                                     */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_New_Instance( TT_Face       face,
-                             TT_Instance*  instance )
-  {
-    return FT_New_Size( (FT_Face)face, (FT_Size*)instance );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_Resolutions                              */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Sets an instance resolutions in dot-per-inches. Default values   */
-  /*    for "new" instances are 96x96 dpi, but these can be changed any  */
-  /*    time by calling this API.                                        */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance    :: handle to target instance object                  */
-  /*    xResolution :: horizontal device resolution in dpi.              */
-  /*    yResolution :: vertical device resolution in dpi.                */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    You should set the charsize or pixel size immediately after      */
-  /*    call in multi-htreaded programs. This will force the instance    */
-  /*    data to be resetted. Otherwise, you may encounter corruption     */
-  /*    when loading two glyphs from the same instance concurrently!     */
-  /*                                                                     */
-  /*    Happily, 99.99% will do just that :-)                            */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_Resolutions( TT_Instance  ins,
-                                         TT_UShort    xResolution,
-                                         TT_UShort    yResolution )
-  {
-    return FT_Set_Resolutions( (FT_Size)ins, xResolution, yResolution );
-  }
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_CharSizes                                */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Same as TT_Set_Instance_CharSize, but used to specify distinct   */
-  /*    horizontal and vertical coordinates.                             */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance   :: handle to target instance object                   */
-  /*    charWidth  :: horizontal character size (26.6 points)            */
-  /*    charHeight :: vertical character size (26.6 points)              */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    There is no check for overflow; with other words, the product    */
-  /*    of glyph dimensions times the device resolution must have        */
-  /*    reasonable values.                                               */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_CharSizes( TT_Instance  ins,
-                                       TT_F26Dot6   charWidth,
-                                       TT_F26Dot6   charHeight )
-  {
-    return FT_Set_Char_Sizes( (FT_Size)ins, charWidth, charHeight );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_CharSize                                 */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Sets an instance's character size. The size is in fractional     */
-  /*    (26.6) point units. This function sets the horizontal and        */
-  /*    vertical sizes to be equal. Use TT_Set_Instance_CharSizes        */
-  /*    for distinct X and Y char sizes.                                 */
-  /*                                                                     */
-  /*    The default charsize of a new instance object is 10 pts.         */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance  :: handle to target instance object                    */
-  /*    charSize  :: character size expressed in 26.6 fixed float        */
-  /*                 points. 1 point = 1/72 dpi.                         */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_CharSize( TT_Instance  instance,
-                                      TT_F26Dot6   charSize )
-  {
-    return TT_Set_Instance_CharSizes( instance, charSize, charSize );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_PixelSizes                               */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    This function is used to set an instance's pixel sizes directly  */
-  /*    It ignores the instance's resolutions fields, and you'll have to */
-  /*    specify the corresponding pointsize in 26.6 fixed float point    */
-  /*    units. The latter is a requirement of the TrueType bytecode      */
-  /*    interpreter but can be ignored (or more safely, set to the       */
-  /*    maximum pixel size multiplied by 64).                            */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance    :: handle to target instance object                  */
-  /*    pixelWidth  :: horizontal pixel width (integer value)            */
-  /*    pixelHeight :: vertical pixel height (integer value)             */
-  /*    pointSize   :: corresponding point size (26.6 points)            */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success.                            */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*   No.                                                               */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_PixelSizes( TT_Instance  ins,
-                                        TT_UShort    pixelWidth,
-                                        TT_UShort    pixelHeight,
-                                        TT_F26Dot6   pointSize )
-  {
-    /* The point size is now ignored by the driver */
-    (void)pointSize;
-
-    return FT_Set_Pixel_Sizes( (FT_Size)ins, pixelWidth, pixelHeight );
-  }
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Instance_Metrics                                  */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Returns an instance's metrics into caller space.                 */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance  :: handle to source instance object                    */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    metrics   :: target instance metrics structure                   */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    The TT_Instance_Metrics structure differs slightly from the      */
-  /*    FT_Instance_Metrics one, which is why we re-implement this       */
-  /*    function, rather than call a driver method for this..            */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Instance_Metrics( TT_Instance           ins,
-                                     TT_Instance_Metrics*  metrics )
-  {
-    TT_Size  size = (TT_Size)ins;
-
-    if (!ins)
-      return TT_Err_Invalid_Instance_Handle;
-
-    metrics->x_scale      = size->root.metrics.x_scale;
-    metrics->y_scale      = size->root.metrics.y_scale;
-    metrics->x_resolution = size->root.metrics.x_resolution;
-    metrics->y_resolution = size->root.metrics.y_resolution;
-    metrics->x_ppem       = size->root.metrics.x_ppem;
-    metrics->y_ppem       = size->root.metrics.y_ppem;
-
-    metrics->pointSize    = size->root.metrics.pointSize;
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_Pointer                                  */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Each instance object contains a typeless pointer, which use is   */
-  /*    left to client applications (or the high-level library). This    */
-  /*    API is used to set this generic pointer. It is ignored by the    */
-  /*    driver.                                                          */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance  :: handle to the target instance object                */
-  /*    data      :: value of the generic pointer                        */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_Pointer( TT_Instance  ins,
-                                     void*        data )
-  {
-    if ( !ins )
-      return TT_Err_Invalid_Instance_Handle;
-    else
-      ((FT_Size)ins)->generic.data = data;
-
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Instance_Pointer                                  */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Each instance object contains a typeless pointer, which use is   */
-  /*    left to client applications (or the high-level library). This    */
-  /*    API is used to retrieve this generic pointer. It is ignored by   */
-  /*    the driver.                                                      */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance  :: handle to source instance object                    */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    value of generic pointer. NULL if invalid instance               */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-
-  EXPORT_FUNC
-  void*  TT_Get_Instance_Pointer( TT_Instance  instance )
-  {
-    if ( !instance )
-      return NULL;
-    else
-      return ((FT_Size)instance)->generic.data;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Done_Instance                                         */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Destroys a given instance object. All instances are destroyed    */
-  /*    automatically when their parent face object is discarded.        */
-  /*    However, this API can be used to save memory.                    */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance  :: handle to target instance object                    */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-
-  EXPORT_FUNC
-  TT_Error  TT_Done_Instance( TT_Instance  ins )
-  {
-    FT_Done_Size( (FT_Size)ins );
-    return TT_Err_Ok;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Set_Instance_Transform_Flags                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Nothing. This function has been deprecated...                    */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    instance      :: handle to target instance object                */
-  /*    rotated       :: 'rotation' flag..                               */
-  /*    stretched     :: 'stretch' flag..                                */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    Always 0.                                                        */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function has been deprecated !! Do not use it, it doesn't   */
-  /*    do anything now..                                                */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Set_Instance_Transform_Flags( TT_Instance  instance,
-                                             TT_Bool      rotated,
-                                             TT_Bool      stretched )
-  {
-    (void)instance;   /* the parameters are unused, the (void) prevents */
-    (void)rotated;    /* warnings from pedantic compilers..             */
-    (void)stretched;
-
-    return TT_Err_Ok;
-  }
-
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function>                                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-/*******************************************************************
- *
- *  Function    :  TT_New_Glyph
- *
- *  Description :  Creates a new glyph object related to a given
- *                 face.
- *
- *  Input  :  face       the face handle
- *            glyph      address of target glyph handle
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_New_Glyph( TT_Face    face,
-                          TT_Glyph*  aglyph )
-  {
-    return FT_New_GlyphSlot( (FT_Face)face, (FT_GlyphSlot*)aglyph );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Done_Glyph
- *
- *  Description :  Destroys a given glyph object.
- *
- *  Input  :  glyph  the glyph handle
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Done_Glyph( TT_Glyph  glyph )
-  {
-    FT_Done_GlyphSlot( (FT_GlyphSlot)glyph );
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Load_Glyph
- *
- *  Description :  Loads a glyph.
- *
- *  Input  :  instance      the instance handle
- *            glyph         the glyph handle
- *            glyphIndex    the glyph index
- *            loadFlags     flags controlling how to load the glyph
- *                          (none, scaled, hinted, both)
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Load_Glyph( TT_Instance  instance,
-                           TT_Glyph     glyph,
-                           TT_UShort    glyphIndex,
-                           TT_UShort    loadFlags   )
-  {
-    TT_Int  result, flags;
-
-    flags = 0;
-
-    /* Convert load flags */
-    if ( (loadFlags & TTLOAD_SCALE_GLYPH) == 0 )
-      flags = FT_LOAD_NO_SCALE;
-
-    else if ( (loadFlags & TTLOAD_HINT_GLYPH) == 0 )
-      flags = FT_LOAD_NO_HINTING;
-
-    else
-      flags = FT_LOAD_DEFAULT;
-
-    flags |= FT_LOAD_NO_BITMAP |   /* prevent bitmap loading for */
-             FT_LOAD_LINEAR;       /* compatibility purposes..   */
-
-    return FT_Load_Glyph( (FT_GlyphSlot)glyph,
-                          (FT_Size)instance,
-                          glyphIndex,
-                          flags,
-                          &result );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Glyph_Outline
- *
- *  Description :  Returns the glyph's outline data.
- *
- *  Input  :  glyph     the glyph handle
- *            outline   address where the glyph outline will be returned
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!  Reads only semi-permanent data.
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Glyph_Outline( TT_Glyph     glyph,
-                                  TT_Outline*  outline )
-  {
-    FT_GlyphSlot  slot = (FT_GlyphSlot)glyph;
-
-    if (!glyph)
-      return TT_Err_Invalid_Glyph_Handle;
-
-    /* the structures TT_Outline and FT_Outline are equivalent */
-    *((FT_Outline*)outline) = slot->outline;
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Glyph_Metrics
- *
- *  Description :  Extracts the glyph's horizontal metrics information.
- *
- *  Input  :  glyph       glyph object handle
- *            metrics     address where metrics will be returned
- *
- *  Output :  Error code.
- *
- *  MT-Safe : NO!  Glyph containers can't be shared.
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Glyph_Metrics( TT_Glyph           glyph,
-                                  TT_Glyph_Metrics*  metrics )
-  {
-    FT_GlyphSlot  slot = (FT_GlyphSlot)glyph;
-
-    if (!glyph)
-      return TT_Err_Invalid_Glyph_Handle;
-
-    /* TT_Glyph_Metrics and FT_Glyph_Metrics are slightly different */
-    metrics->bbox.xMin = slot->metrics.horiBearingX;
-
-    metrics->bbox.xMax = slot->metrics.horiBearingX +
-                         slot->metrics.width;
-
-    metrics->bbox.yMax = slot->metrics.horiBearingY;
-
-    metrics->bbox.yMin = slot->metrics.horiBearingY -
-                         slot->metrics.height;
-
-    metrics->bearingX  = slot->metrics.horiBearingX;
-    metrics->bearingY  = slot->metrics.horiBearingY;
-    metrics->advance   = slot->metrics.horiAdvance;
-
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Big_Glyph_Metrics
- *
- *  Description :  Extracts the glyph's big metrics information.
- *
- *  Input  :  glyph       glyph object handle
- *            metrics     address where big metrics will be returned
- *
- *  Output :  Error code.
- *
- *  MT-Safe : NO!  Glyph containers can't be shared.
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Glyph_Big_Metrics( TT_Glyph               glyph,
-                                      TT_Big_Glyph_Metrics*  metrics )
-  {
-    FT_GlyphSlot       slot = (FT_GlyphSlot)glyph;
-    FT_Glyph_Metrics*  met;
-    FT_Glyph_Metrics*  met2;
-
-    if (!glyph)
-      return TT_Err_Invalid_Glyph_Handle;
-
-    met  = &slot->metrics;
-    met2 = &slot->metrics2;
-
-    metrics->bbox.xMin = met->horiBearingX;
-    metrics->bbox.xMax = met->horiBearingX + met->width;
-    metrics->bbox.yMin = met->horiBearingY - met->height;
-    metrics->bbox.yMax = met->horiBearingY;
-
-    metrics->horiBearingX = met->horiBearingX;
-    metrics->horiBearingY = met->horiBearingY;
-    metrics->horiAdvance  = met->horiAdvance;
-
-    metrics->vertBearingX = met->vertBearingX;
-    metrics->vertBearingY = met->vertBearingY;
-    metrics->vertAdvance  = met->vertAdvance;
-
-    metrics->linearHoriAdvance  = met2->horiAdvance;
-    metrics->linearHoriBearingX = met2->horiBearingX;
-
-    metrics->linearVertAdvance  = met2->vertAdvance;
-    metrics->linearVertBearingY = met2->vertBearingY;
-
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Glyph_Bitmap
- *
- *  Description :  Produces a bitmap from a glyph outline.
- *
- *  Input  :  glyph      the glyph container's handle
- *            map        target pixmap description block
- *            xOffset    x offset in fractional pixels (26.6 format)
- *            yOffset    y offset in fractional pixels (26.6 format)
- *
- *  Output :  Error code.
- *
- *  Note : Only use integer pixel offsets if you want to preserve
- *         the fine hints applied to the outline.  This means that
- *         xOffset and yOffset must be multiples of 64!
- *
- *  MT-Safe : NO!  Glyph containers can't be shared.
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Glyph_Bitmap( TT_Glyph        glyph,
-                                 TT_Raster_Map*  map,
-                                 TT_F26Dot6      xOffset,
-                                 TT_F26Dot6      yOffset )
-  {
-    FT_Library     library;
-    TT_Error       error;
-    FT_GlyphSlot   slot = (FT_GlyphSlot)glyph;
-    FT_Outline     outline;
-    FT_Raster_Map  bitmap;
-
-    if ( !glyph )
-      return TT_Err_Invalid_Glyph_Handle;
-
-    library = slot->face->resource->library;
-    outline = slot->outline;
-
-    /* XXX : For now, use only dropout mode 2    */
-    /* outline.dropout_mode = _glyph->scan_type; */
-    outline.dropout_mode = 2;
-
-    bitmap.width    = map->width;
-    bitmap.rows     = map->rows;
-    bitmap.cols     = map->cols;
-    bitmap.flow     = map->flow;
-    bitmap.pix_bits = 1;
-    bitmap.buffer   = map->bitmap;
-
-    FT_Translate_Outline( &outline, xOffset, yOffset );
-
-    error = FT_Get_Outline_Bitmap( library, &outline, &bitmap );
-
-    FT_Translate_Outline( &outline, -xOffset, -yOffset );
-
-    return error;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Glyph_Pixmap
- *
- *  Description :  Produces a grayscaled pixmap from a glyph
- *                 outline.
- *
- *  Input  :  glyph      the glyph container's handle
- *            map        target pixmap description block
- *            xOffset    x offset in fractional pixels (26.6 format)
- *            yOffset    y offset in fractional pixels (26.6 format)
- *
- *  Output :  Error code.
- *
- *  Note : Only use integer pixel offsets to preserve the fine
- *         hinting of the glyph and the 'correct' anti-aliasing
- *         (where vertical and horizontal stems aren't grayed).
- *         This means that xOffset and yOffset must be multiples
- *         of 64!
- *
- *         You can experiment with offsets of +32 to get 'blurred'
- *         versions of the glyphs (a nice effect at large sizes that
- *         some graphic designers may appreciate :)
- *
- *  MT-Safe : NO!  Glyph containers can't be shared.
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Glyph_Pixmap( TT_Glyph        glyph,
-                                 TT_Raster_Map*  map,
-                                 TT_F26Dot6      xOffset,
-                                 TT_F26Dot6      yOffset )
-  {
-    FT_Library     library;
-    TT_Error       error;
-    FT_GlyphSlot   slot = (FT_GlyphSlot)glyph;
-    FT_Outline     outline;
-    FT_Raster_Map  bitmap;
-
-    if ( !glyph )
-      return TT_Err_Invalid_Glyph_Handle;
-
-    library = slot->face->resource->library;
-    outline = slot->outline;
-
-    /* XXX : For now, use only dropout mode 2    */
-    /* outline.dropout_mode = _glyph->scan_type; */
-    outline.dropout_mode = 2;
-
-    bitmap.width    = map->width;
-    bitmap.rows     = map->rows;
-    bitmap.cols     = map->cols;
-    bitmap.flow     = map->flow;
-    bitmap.pix_bits = 8;
-    bitmap.buffer   = map->bitmap;
-
-    FT_Translate_Outline( &outline, xOffset, yOffset );
-
-    error = FT_Get_Outline_Bitmap( library, &outline, &bitmap );
-
-    FT_Translate_Outline( &outline, -xOffset, -yOffset );
-
-    return error;
-  }
-
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Outline_Bitmap                                    */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*     Renders an outline within a bitmap. The outline's image is      */
-  /*     simply or-ed to the target bitmap.                              */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*     engine  ::   handle to the TrueType driver object               */
-  /*     outline ::   pointer to the source outline descriptor           */
-  /*     raster  ::   pointer to the target bitmap descriptor            */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*     TrueType error code. 0 means success.                           */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*     Yes.                                                            */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Outline_Bitmap( TT_Engine       engine,
-                                   TT_Outline*     outline,
-                                   TT_Raster_Map*  map )
-  {
-    FT_Library     library = (FT_Library)engine;
-    FT_Raster_Map  bitmap;
-
-    if ( !engine )
-      return TT_Err_Invalid_Engine;
-
-    if ( !outline || !map )
-      return TT_Err_Invalid_Argument;
-
-    bitmap.width    = map->width;
-    bitmap.rows     = map->rows;
-    bitmap.cols     = map->cols;
-    bitmap.flow     = map->flow;
-    bitmap.pix_bits = 1;
-    bitmap.buffer   = map->bitmap;
-
-    return FT_Get_Outline_Bitmap( library, (FT_Outline*)outline, &bitmap );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Get_Outline_Pixmap                                    */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*     Renders an outline within a pixmap. The outline's image is      */
-  /*     simply or-ed to the target pixmap.                              */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*     engine  ::   handle to the TrueType driver object               */
-  /*     outline ::   pointer to the source outline descriptor           */
-  /*     raster  ::   pointer to the target pixmap descriptor            */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*     TrueType error code. 0 means success.                           */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*     Yes.                                                            */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Outline_Pixmap( TT_Engine       engine,
-                                   TT_Outline*     outline,
-                                   TT_Raster_Map*  map )
-  {
-    FT_Library     library = (FT_Library)engine;
-    FT_Raster_Map  bitmap;
-
-    if ( !engine )
-      return TT_Err_Invalid_Engine;
-
-    if ( !outline || !map )
-      return TT_Err_Invalid_Argument;
-
-    bitmap.width    = map->width;
-    bitmap.rows     = map->rows;
-    bitmap.cols     = map->cols;
-    bitmap.flow     = map->flow;
-    bitmap.pix_bits = 8;
-    bitmap.buffer   = map->bitmap;
-
-    return FT_Get_Outline_Bitmap( library, (FT_Outline*)outline, &bitmap );
-  }
-
-
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_New_Outline                                           */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Creates a new outline of a given size.                           */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    numPoints ::  maximum number of points within the outline        */
-  /*                                                                     */
-  /*    numContours :: maximum number of contours within the outline     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*    outline  :: target outline descriptor.                           */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    Yes.                                                             */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function uses 'malloc' to allocate the outline's array,     */
-  /*    _unlike_ all other functions in the TrueType API. This means     */
-  /*    that the outline won't be destroyed when the TrueType engine     */
-  /*    is finalized..                                                   */
-  /*                                                                     */
-  /*    It is provided for backwards compatibility ONLY. Use the new     */
-  /*    FT_New_Outline function defined in "ftoutln.h" instead if you're */
-  /*    working with the FreeType 2.0 API.                               */
-  /*                                                                     */
-
-#include <stdlib.h>  /* for malloc and free */
-
-  static  TT_Outline  null_api_outline = { 0, 0, NULL, NULL, NULL,
-                                           0, 0, 0, 0 };
-
-  EXPORT_FUNC
-  TT_Error  TT_New_Outline( TT_UShort    numPoints,
-                            TT_Short     numContours,
-                            TT_Outline*  outline )
-  {
-    if ( !outline )
-      return TT_Err_Invalid_Argument;
-
-    *outline = null_api_outline;
-
-    if ( numPoints > 0 && numContours > 0 )
-    {
-      outline->points   = (TT_Vector*)malloc( numPoints * sizeof(TT_Vector) );
-      outline->flags    = (TT_Byte*)  malloc( numPoints * sizeof(TT_Char)   );
-      outline->contours = (TT_UShort*)malloc( numPoints * sizeof(TT_UShort) );
-
-      if ( !outline->points || !outline->flags || !outline->contours )
-        goto Fail;
-
-      outline->n_points   = numPoints;
-      outline->n_contours = numContours;
-      outline->owner      = TRUE;
-    }
-    return TT_Err_Ok;
-
-  Fail:
-    outline->owner = TRUE;
-    TT_Done_Outline( outline );
-    return TT_Err_Out_Of_Memory;
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Done_Outline                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*    Destroys an outline created with FT_New_Outline                  */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*    outline ::                                                       */
-  /*       pointer to the outline destructor to discard. This function   */
-  /*       doesn't destroy the TT_Outline sturcture, only the data it    */
-  /*       contains/own.                                                 */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*    TrueType error code. 0 means success                             */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*    No.                                                              */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*    This function uses 'free' to discard the outline's arrays.       */
-  /*    You should only discard outline allocated with TT_New_Outline.   */
-  /*                                                                     */
-  /*    It is provided for backwards compatibility ONLY. Use the new     */
-  /*    FT_Done_Outline function defined in "ftoutln.h" instead if you're*/
-  /*    working with the FreeType 2.0 API.                               */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Done_Outline( TT_Outline*  outline )
-  {
-    if ( outline )
-    {
-      if ( outline->owner )
-      {
-        free( outline->points   );
-        free( outline->flags    );
-        free( outline->contours );
-      }
-      *outline = null_api_outline;
-      return TT_Err_Ok;
-    }
-    else
-      return TT_Err_Invalid_Argument;
-  }
-
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function> TT_Copy_Outline                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*     Copy an outline into another one. Both objects must have        */
-  /*     the same sizes ( num. points & num. contours ) when this        */
-  /*     function is called..                                            */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*     source  :: handle to source outline                             */
-  /*     target  :: handle to target outline                             */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*     TrueType error code. 0 means success                            */
-  /*                                                                     */
-
-  EXPORT_FUNC
-  TT_Error  TT_Copy_Outline( TT_Outline*  source,
-                             TT_Outline*  target )
-  {
-    return FT_Copy_Outline( (FT_Outline*)source,
-                            (FT_Outline*)target );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Transform_Outline
- *
- *  Description :  Applies a simple transformation to an outline.
- *
- *  Input  :  outline     the glyph's outline.  Can be extracted
- *                        from a glyph container through
- *                        TT_Get_Glyph_Outline().
- *
- *            matrix      simple matrix with 16.16 fixed floats
- *
- *  Output :  Error code (always TT_Err_Ok).
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  void  TT_Transform_Outline( TT_Outline*  outline,
-                              TT_Matrix*   matrix )
-  {
-    FT_Transform_Outline( (FT_Outline*)outline, (FT_Matrix*)matrix );
-  }
-
-/*******************************************************************
- *
- *  Function    :  TT_Transform_Vector
- *
- *  Description :  Apply a simple transform to a vector
- *
- *  Input  :  x, y        the vector.
- *
- *            matrix      simple matrix with 16.16 fixed floats
- *
- *  Output :  None.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  void  TT_Transform_Vector( TT_F26Dot6*  x,
-                             TT_F26Dot6*  y,
-                             TT_Matrix*   matrix )
-  {
-    FT_Transform_Vector( x, y, (FT_Matrix*) matrix );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Translate_Outline
- *
- *  Description :  Applies a simple translation.
- *
- *  Input  :  outline   no comment :)
- *            xOffset
- *            yOffset
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  void      TT_Translate_Outline( TT_Outline*  outline,
-                                  TT_F26Dot6   xOffset,
-                                  TT_F26Dot6   yOffset )
-  {
-    FT_Translate_Outline( (FT_Outline*)outline, xOffset, yOffset );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Outline_BBox
- *
- *  Description :  Returns an outline's bounding box.
- *
- *  Input  :  outline   no comment :)
- *            bbox      address where the bounding box is returned
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Outline_BBox( TT_Outline*  outline,
-                                 TT_BBox*     bbox )
-  {
-    return FT_Get_Outline_CBox( (FT_Outline*)outline, (FT_BBox*)bbox );
-  }
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function>                                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*                                                                     */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-  /* Compute A*B/C with 64 bits intermediate precision. */
-
-  EXPORT_FUNC
-  TT_Long   TT_MulDiv( TT_Long A, TT_Long B, TT_Long C )
-  {
-    return FT_MulDiv( A, B, C );
-  }
-
-
-  /***********************************************************************/
-  /*                                                                     */
-  /* <Function>                                                          */
-  /*                                                                     */
-  /* <Description>                                                       */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Input>                                                             */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Output>                                                            */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Return>                                                            */
-  /*                                                                     */
-  /*                                                                     */
-  /* <MT-Note>                                                           */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-  /* <Note>                                                              */
-  /*                                                                     */
-  /*                                                                     */
-  /*                                                                     */
-  /* Compute A*B/0x10000 with 64 bits intermediate precision. */
-  /* Useful to multiply by a 16.16 fixed float value.         */
-
-  EXPORT_FUNC
-  TT_Long   TT_MulFix( TT_Long A, TT_Long B )
-  {
-    return FT_MulFix( A, B );
-  }
-
-  /* ----------------- character mappings support ------------- */
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_CharMap_Count
- *
- *  Description :  Returns the number of charmaps in a given face.
- *
- *  Input  :  face   face object handle
- *
- *  Output :  Number of tables. -1 in case of error (bad handle).
- *
- *  Note   :  DON'T USE THIS FUNCTION! IT HAS BEEN DEPRECATED!
- *
- *            It is retained for backwards compatibility only and will
- *            fail on 16bit systems.
- *
- *  MT-Safe : YES !
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  int  TT_Get_CharMap_Count( TT_Face  face )
-  {
-    FT_Face  _face = (FT_Face)face;
-
-    return ( _face ? _face->num_charmaps : -1 );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_CharMap_ID
- *
- *  Description :  Returns the ID of a given charmap.
- *
- *  Input  :  face             face object handle
- *            charmapIndex     index of charmap in directory
- *            platformID       address of returned platform ID
- *            encodingID       address of returned encoding ID
- *
- *  Output :  error code
- *
- *  MT-Safe : YES !
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_CharMap_ID( TT_Face     face,
-                               TT_UShort   charmapIndex,
-                               TT_UShort*  platformID,
-                               TT_UShort*  encodingID )
-  {
-    TT_CharMap  cmap;
-
-    if ( !face )
-      return TT_Err_Invalid_Face_Handle;
-
-    if ( charmapIndex >= face->num_charmaps )
-      return TT_Err_Bad_Argument;
-
-    cmap = (TT_CharMap)face->charmaps + charmapIndex;
-
-    *platformID = cmap->root.platform_id;
-    *encodingID = cmap->root.encoding_id;
-
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_CharMap
- *
- *  Description :  Looks up a charmap.
- *
- *  Input  :  face          face object handle
- *            charmapIndex  index of charmap in directory
- *            charMap       address of returned charmap handle
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_CharMap( TT_Face      face,
-                            TT_UShort    charmapIndex,
-                            TT_CharMap*  charMap )
-  {
-    if ( !face )
-      return TT_Err_Invalid_Face_Handle;
-
-    if ( charmapIndex >= face->num_charmaps )
-      return TT_Err_Bad_Argument;
-
-    *charMap = (TT_CharMap)face->charmaps + charmapIndex;
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Char_Index
- *
- *  Description :  Returns the glyph index corresponding to
- *                 a given character code defined for the 'charmap'.
- *
- *  Input  :  charMap    charmap handle
- *            charcode   character code
- *
- *  Output :  glyph index.
- *
- *  Notes  :  Character code 0 is the unknown glyph, which should never
- *            be displayed.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_UShort  TT_Char_Index( TT_CharMap  charMap,
-                            TT_UShort   charCode )
-  {
-    return tt_interface->get_char_index( (FT_CharMap)charMap, charCode );
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Name_Count
- *
- *  Description :  Returns the number of strings found in the
- *                 name table.
- *
- *  Input  :  face   face handle
- *
- *  Output :  number of strings.
- *
- *  Notes  :  Returns -1 on error (invalid handle).
- *
- *            DON'T USE THIS FUNCTION! IT HAS BEEN DEPRECATED!
- *
- *            It is retained for backwards compatibility only and will
- *            fail on 16bit systems.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  int  TT_Get_Name_Count( TT_Face  face )
-  {
-    if ( !face )
-      return -1;
-
-    return face->num_names;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Name_ID
- *
- *  Description :  Returns the IDs of the string number 'nameIndex'
- *                 in the name table of a given face.
- *
- *  Input  :  face        face handle
- *            nameIndex   index of string. First is 0
- *            platformID  addresses of returned IDs
- *            encodingID
- *            languageID
- *            nameID
- *
- *  Output :  Error code.
- *
- *  Notes  :  Some files have a corrupt or unusual name table, with some
- *            entries having a platformID > 3.  These can usually
- *            be ignored by a client application.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Name_ID( TT_Face     face,
-                            TT_UShort   nameIndex,
-                            TT_UShort*  platformID,
-                            TT_UShort*  encodingID,
-                            TT_UShort*  languageID,
-                            TT_UShort*  nameID )
-  {
-    TT_NameRec*  name;
-
-    if (!face)
-      return TT_Err_Invalid_Face_Handle;
-
-    if ( nameIndex >= face->num_names )
-      return TT_Err_Bad_Argument;
-
-    name = face->name_table.names + nameIndex;
-
-    *platformID = name->platformID;
-    *encodingID = name->encodingID;
-    *languageID = name->languageID;
-    *nameID     = name->nameID;
-
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Name_String
- *
- *  Description :  Returns the address and length of a given
- *                 string found in the name table.
- *
- *  Input  :  face        face handle
- *            nameIndex   string index
- *            stringPtr   address of returned pointer to string
- *            length      address of returned string length
- *
- *  Output :  Error code.
- *
- *  Notes  :  If the string's platformID is invalid,
- *            stringPtr is NULL, and length is 0.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Name_String( TT_Face      face,
-                                TT_UShort    nameIndex,
-                                TT_String**  stringPtr,
-                                TT_UShort*   length )
-  {
-    TT_NameRec* name;
-
-    if (!face)
-      return TT_Err_Invalid_Face_Handle;
-
-    if ( nameIndex >= face->num_names )
-      return TT_Err_Bad_Argument;
-
-    name = face->name_table.names + nameIndex;
-
-    *stringPtr = (TT_String*)name->string;
-    *length    = name->stringLength;
-
-    return TT_Err_Ok;
-  }
-
-
-/*******************************************************************
- *
- *  Function    :  TT_Get_Font_Data
- *
- *  Description :  Loads any font table in client memory.  Used by
- *                 the TT_Get_Font_Data().
- *
- *  Input  :  face     Face object to look for.
- *
- *            tag      Tag of table to load.  Use the value 0 if you
- *                     want to access the whole font file, else set
- *                     this parameter to a valid TrueType table tag
- *                     that you can forge with the MAKE_TT_TAG
- *                     macro.
- *
- *            offset   Starting offset in the table (or the file
- *                     if tag == 0).
- *
- *            buffer   Address of target buffer
- *
- *            length   Address of decision variable:
- *
- *                       if length == NULL:
- *                             Load the whole table.  Returns an
- *                             an error if 'offset' != 0.
- *
- *                       if *length == 0 :
- *                             Exit immediately, returning the
- *                             length of the given table, or of
- *                             the font file, depending on the
- *                             value of 'tag'.
- *
- *                       if *length != 0 :
- *                             Load the next 'length' bytes of
- *                             table or font, starting at offset
- *                             'offset' (in table or font too).
- *
- *  Output :  Error code.
- *
- *  MT-Safe : YES!
- *
- ******************************************************************/
-
-  EXPORT_FUNC
-  TT_Error  TT_Get_Font_Data( TT_Face   face,
-                              TT_ULong  tag,
-                              TT_Long   offset,
-                              void*     buffer,
-                              TT_Long*  length )
-  {
-    return tt_extension->get_font_data( face, tag, offset, buffer, length );
-  }
-
-
-
-
-
-
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*                                                                 */
-  /*                                                                 */
-  /*  Postscript Names extension                                     */
-  /*                                                                 */
-  /*                                                                 */
-  /*                                                                 */
-  /*******************************************************************/
-
-  /* Initialise the Postscript Names extension */
-  EXPORT_FUNC
-  TT_Error TT_Init_Post_Extension( TT_Engine  engine )
-  {
-    (void)engine;
-    return TT_Err_Ok;
-  }
-
-  /* Load the Postscript Names table - notice that the 'post' parameter */
-  /* will be ignored in 2.0.                                            */
-  EXPORT_DEF
-  TT_Error TT_Load_PS_Names( TT_Face   face,
-                             void*     post )
-  {
-    (void)post;
-    (void)face;
-
-    /* the names are now loaded on demand in 2.0 */
-    return TT_Err_Ok;
-  }
-
-
-  /* The following is directly implemented in the TrueType driver */
-#if 0
-  /* Gets the postscript name of a single glyph */
-  EXPORT_DEF
-  TT_Error TT_Get_PS_Name( TT_Face      face,
-                           TT_UShort    index,
-                           TT_String**  PSname );
-#endif
-
-
-
-
-  /*******************************************************************/
-  /*                                                                 */
-  /*                                                                 */
-  /*                                                                 */
-  /*  Embedded Bitmap (sbits) extension                              */
-  /*                                                                 */
-  /*                                                                 */
-  /*                                                                 */
-  /*******************************************************************/
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Init_SBit_Extension                                 */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Initialise the embedded bitmaps extension for the      */
-  /*    FreeType engine.                                       */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    engine  :: handle to current FreeType library instance */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  EXPORT_FUNC
-  TT_Error  TT_Init_SBit_Extension( TT_Engine  engine )
-  {
-    (void)engine;
-    return TT_Err_Ok;
-  }
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Get_Face_Bitmaps                                    */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Loads the "EBLC" table from a font file, if any.       */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    face :: handle to the source TrueType font/face        */
-  /*                                                           */
-  /* <Output>                                                  */
-  /*    eblc_table :: a descriptor for the EBLC table          */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  /* <Note>                                                    */
-  /*    This function returns TT_Err_Table_Missing when the    */
-  /*    font contains no embedded bitmaps. All fields in       */
-  /*    "eblc_table" will then be set to 0.                    */
-  /*                                                           */
-  EXPORT_FUNC
-  TT_Error  TT_Get_Face_Bitmaps( TT_Face   face,
-                                 TT_EBLC  *eblc_table )
-  {
-    if (!face)
-      return FT_Err_Invalid_Face_Handle;
-
-    eblc_table->num_strikes = face->num_sbit_strikes;
-    eblc_table->strikes     = face->sbit_strikes;
-
-    if ( face->num_sbit_strikes > 0 )
-    {
-      eblc_table->version = 0x00002000;
-      return TT_Err_Ok;
-    }
-
-    eblc_table->version = 0;
-    return TT_Err_Table_Missing;
-  }
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_New_SBit_Image                                      */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Allocates a new embedded bitmap container              */
-  /*                                                           */
-  /* <Output>                                                  */
-  /*    image :: sbit image                                    */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  EXPORT_DEF
-  TT_Error  TT_New_SBit_Image( TT_SBit_Image*  *image )
-  {
-    *image = (TT_SBit_Image*)malloc( sizeof(**image) );
-    if ( !*image )
-      return TT_Err_Out_Of_Memory;
-
-    MEM_Set( *image, sizeof(**image), 0 );
-    return TT_Err_Ok;
-  }
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Done_SBit_Image                                     */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Releases an embedded bitmap container                  */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    image :: sbit image                                    */
-  /*                                                           */
-  EXPORT_DEF
-  void      TT_Done_SBit_Image( TT_SBit_Image*  image )
-  {
-    free( image->map.bitmap );
-    free( image );
-  }
-
-
-  /*************************************************************/
-  /*                                                           */
-  /* <Function>                                                */
-  /*    TT_Load_Glyph_Bitmap                                   */
-  /*                                                           */
-  /* <Description>                                             */
-  /*    Loads a given glyph embedded bitmap                    */
-  /*                                                           */
-  /* <Input>                                                   */
-  /*    face        :: handle to the source TrueType font/face */
-  /*    instance    :: current size/transform instance         */
-  /*    glyph_index :: index of source glyph                   */
-  /*    bitmap      :: target embedded bitmap descriptor       */
-  /*                                                           */
-  /* <Return>                                                  */
-  /*    Error code. 0 means success.                           */
-  /*                                                           */
-  /* <Note>                                                    */
-  /*    This function returns an error if there is no          */
-  /*    embedded bitmap for the glyph at the given             */
-  /*    instance.                                              */
-  /*                                                           */
-  EXPORT_FUNC
-  TT_Error  TT_Load_Glyph_Bitmap( TT_Face         face,
-                                  TT_Instance     instance,
-                                  TT_UShort       glyph_index,
-                                  TT_SBit_Image*  bitmap )
-  {
-    FT_GlyphSlot  slot;
-    TT_Error      error;
-
-    error = FT_New_GlyphSlot( (FT_Face)face, &slot );
-    if (error) goto Exit;
-
-    error = FT_Load_Glyph( slot, (FT_Size)instance, glyph_index,
-                           FT_LOAD_NO_OUTLINE, 0 );
-    if (!error)
-    {
-      /* copy bitmap */
-      bitmap->map.width  = slot->bitmap.width;
-      bitmap->map.rows   = slot->bitmap.rows;
-      bitmap->map.cols   = slot->bitmap.cols;
-      bitmap->map.flow   = slot->bitmap.flow;
-      bitmap->bit_depth  = slot->bitmap.pix_bits;
-      bitmap->map.bitmap = slot->bitmap.buffer;
-
-      /* copy metrics */
-      bitmap->metrics.bbox.xMin = slot->metrics.horiBearingX >> 6;
-      bitmap->metrics.bbox.xMax = bitmap->metrics.bbox.xMin +
-                                  (slot->metrics.width >> 6);
-      bitmap->metrics.bbox.yMax = slot->metrics.horiBearingY >> 6;
-      bitmap->metrics.bbox.yMin = bitmap->metrics.bbox.yMax -
-                                  (slot->metrics.height >> 6);
-
-      bitmap->metrics.horiBearingX = bitmap->metrics.bbox.xMin;
-      bitmap->metrics.horiBearingY = bitmap->metrics.bbox.yMax;
-      bitmap->metrics.horiAdvance  = slot->metrics.horiAdvance >> 6;
-
-      bitmap->metrics.vertBearingX = slot->metrics.vertBearingX >> 6;
-      bitmap->metrics.vertBearingY = slot->metrics.vertBearingY >> 6;
-      bitmap->metrics.vertAdvance  = slot->metrics.vertAdvance  >> 6;
-
-      slot->bitmap.buffer = 0;
-    }
-
-    FT_Done_GlyphSlot( slot );
-  Exit:
-    return error;
-  }
-
-/* END */