Commit 21e046e0c40e25bccf995314bae3dfd7b1e4ba02

Werner Lemberg 2001-12-20T17:49:10

Formatting. * src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix tracing strings. * src/cache/ftccmap.c (ftc_cmap_family_init): Ditto. * src/cache/ftcmanag.c (ftc_family_table_alloc, ftc_family_table_free, FTC_Manager_Check): Ditto. * src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.

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
diff --git a/ChangeLog b/ChangeLog
index 4c307b1..cb1b2c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,36 +1,44 @@
-2001-12-20  David Turner  <david@freetype.org>
+2001-12-20  Werner Lemberg  <wl@gnu.org>
+
+	* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
+	tracing strings.
+	* src/cache/ftccmap.c (ftc_cmap_family_init): Ditto.
+	* src/cache/ftcmanag.c (ftc_family_table_alloc,
+	ftc_family_table_free, FTC_Manager_Check): Ditto.
+	* src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.
 
-        * include/freetype/config/ftoption.h: disabling bytecode interpreter
-        for new release
+2001-12-20  David Turner  <david@freetype.org>
 
-        * docs/CHANGES: updated for 2.0.6 release
+	* include/freetype/config/ftoption.h: Disabling bytecode interpreter
+	for new release.
 
-        * src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: updated
-        to mode the definition of encoding tables within "cffload.c" instead
-        of making them part of a shared header (causing problems in "multi"
-        builds)
+	* docs/CHANGES: Updated for 2.0.6 release.
 
-        * docs/TODO: added "stem3 and counter hints support" to the TODO list
-        for the Postscript hinter
+	* src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: Updated
+	to mode the definition of encoding tables within "cffload.c" instead
+	of making them part of a shared header (causing problems in "multi"
+	builds).
 
-        * docs/BUGS: closed the AUTOHINT-NO-SBITS bug.
+	* docs/TODO: Added "stem3 and counter hints support" to the TODO list
+	for the Postscript hinter.
 
-        * src/pshinter/pshrec.c (t2_hint_stems), src/cff/cffobjs.h,
-        src/cff/cffobjs.c, src/cff/cffload.c, src/cff/cffload.h,
-        src/cff/cffgload.c, src/cff/cffgload.h, src/cff/cffdriver.c,
-        include/freetype/internal/cfftypes.h: added Postscript hinter support
-        to the CFF driver
+	* docs/BUGS: Closed the AUTOHINT-NO-SBITS bug.
 
-        * src/base/ftobjs.c (FT_Done_Library): fixed a stupid bug that crashed
-        the library on exit
+	* src/pshinter/pshrec.c (t2_hint_stems), src/cff/cffobjs.h,
+	src/cff/cffobjs.c, src/cff/cffload.c, src/cff/cffload.h,
+	src/cff/cffgload.c, src/cff/cffgload.h, src/cff/cffdriver.c,
+	include/freetype/internal/cfftypes.h: added Postscript hinter support
+	to the CFF driver.
 
-        * src/type1/t1gload.c (T1_Load_Glyph): enable font matrix transform
-        on hinted glyphs..
+	* src/base/ftobjs.c (FT_Done_Library): Fixed a stupid bug that crashed
+	the library on exit.
 
-        * src/cid/cidgload.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
-        src/cid/cidriver.c, include/freetype/internal/t1types.h: added
-        Postscript hinter support to the CID font driver !!
+	* src/type1/t1gload.c (T1_Load_Glyph): Enable font matrix transform
+	on hinted glyphs.
 
+	* src/cid/cidgload.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
+	src/cid/cidriver.c, include/freetype/internal/t1types.h: Added
+	Postscript hinter support to the CID font driver.
 
 2001-12-19  David Turner  <david@freetype.org>
 
diff --git a/include/freetype/cache/ftccache.h b/include/freetype/cache/ftccache.h
index 94b6d7a..97d8bc8 100644
--- a/include/freetype/cache/ftccache.h
+++ b/include/freetype/cache/ftccache.h
@@ -1,23 +1,39 @@
-#ifndef __FT_CACHE_CACHE_H__
-#define __FT_CACHE_CACHE_H__
+/***************************************************************************/
+/*                                                                         */
+/*  ftccache.h                                                             */
+/*                                                                         */
+/*    FreeType internal cache interface (specification).                   */
+/*                                                                         */
+/*  Copyright 2000-2001 by                                                 */
+/*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
+/*                                                                         */
+/*  This file is part of the FreeType project, and may only be used,       */
+/*  modified, and distributed under the terms of the FreeType project      */
+/*  license, LICENSE.TXT.  By continuing to use, modify, or distribute     */
+/*  this file you indicate that you have read the license and              */
+/*  understand and accept it fully.                                        */
+/*                                                                         */
+/***************************************************************************/
+
+
+#ifndef __FTCCACHE_H__
+#define __FTCCACHE_H__
+
 
 FT_BEGIN_HEADER
 
   /* handle to cache object */
   typedef struct FTC_CacheRec_*  FTC_Cache;
 
-
   /* handle to cache class */
   typedef const struct FTC_Cache_ClassRec_*  FTC_Cache_Class;
 
+  /* handle to cache node family */
+  typedef struct FTC_FamilyRec_*  FTC_Family;
 
- /* handle to cache node family */
-  typedef struct FTC_FamilyRec_*    FTC_Family;
-
-
- /* handle to cache root query */
+  /* handle to cache root query */
   typedef struct FTC_QueryRec_*  FTC_Query;
-  
+
 
   /*************************************************************************/
   /*************************************************************************/
@@ -37,22 +53,24 @@ FT_BEGIN_HEADER
   /* the cache.  It can be an individual glyph image, a set of bitmaps     */
   /* glyphs for a given size, some metrics, etc.                           */
   /*                                                                       */
+  /*************************************************************************/
 
-
-  /* structure size should be 20 bytes on 32-bits machines */  
+  /* structure size should be 20 bytes on 32-bits machines */
   typedef struct  FTC_NodeRec_
   {
     FTC_Node   mru_next;     /* circular mru list pointer           */
     FTC_Node   mru_prev;     /* circular mru list pointer           */
-    FTC_Node   link;         /* used for hashing..                  */
-    FT_UInt32  hash;         /* used for hashing too..              */
+    FTC_Node   link;         /* used for hashing                    */
+    FT_UInt32  hash;         /* used for hashing too                */
     FT_UShort  fam_index;    /* index of family the node belongs to */
-    FT_Short   ref_count;    /* reference count for this node..     */
-  
+    FT_Short   ref_count;    /* reference count for this node       */
+
   } FTC_NodeRec;
 
-#define  FTC_NODE(x)    ((FTC_Node)(x))
-#define  FTC_NODE_P(x)  ((FTC_Node*)(x))
+
+#define FTC_NODE( x )    ( (FTC_Node)(x) )
+#define FTC_NODE_P( x )  ( (FTC_Node*)(x) )
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -66,7 +84,6 @@ FT_BEGIN_HEADER
   ftc_node_done( FTC_Node   node,
                  FTC_Cache  cache );
 
-
   /* reserved for manager's use */
   FT_EXPORT( void )
   ftc_node_destroy( FTC_Node     node,
@@ -81,11 +98,11 @@ FT_BEGIN_HEADER
   /*************************************************************************/
   /*************************************************************************/
 
- /* structure modelling a cache node query. the following fields must    */
- /* all be set by the @FTC_Family_CompareFunc method of a cache's family */
- /* list                                                                 */
- /*                                                                      */
-  typedef struct FTC_QueryRec_
+  /* A structure modelling a cache node query.  The following fields must  */
+  /* all be set by the @FTC_Family_CompareFunc method of a cache's family  */
+  /* list.                                                                 */
+  /*                                                                       */
+  typedef struct  FTC_QueryRec_
   {
     FTC_Family  family;
     FT_UFast    hash;
@@ -93,10 +110,8 @@ FT_BEGIN_HEADER
   } FTC_QueryRec;
 
 
-#define  FTC_QUERY(x)    ((FTC_Query)(x))
-#define  FTC_QUERY_P(x)  ((FTC_Query*)(x))
-
-
+#define FTC_QUERY( x )    ( (FTC_Query)(x) )
+#define FTC_QUERY_P( x )  ( (FTC_Query*)(x) )
 
 
   /*************************************************************************/
@@ -107,17 +122,18 @@ FT_BEGIN_HEADER
   /*************************************************************************/
   /*************************************************************************/
 
-  typedef struct FTC_FamilyRec_
+  typedef struct  FTC_FamilyRec_
   {
     FT_LruNodeRec  lru;
     FTC_Cache      cache;
     FT_UInt        num_nodes;
     FT_UInt        fam_index;
-    
+
   } FTC_FamilyRec;
 
-#define  FTC_FAMILY(x)    ((FTC_Family)(x))
-#define  FTC_FAMILY_P(x)  ((FTC_Family*)(x))
+
+#define FTC_FAMILY( x )    ( (FTC_Family)(x) )
+#define FTC_FAMILY_P( x )  ( (FTC_Family*)(x) )
 
 
   /*************************************************************************/
@@ -127,16 +143,16 @@ FT_BEGIN_HEADER
   /* cache sub-system internals.                                           */
   /*                                                                       */
 
- /* must be called by any FTC_Node_InitFunc routine */
-  FT_EXPORT(FT_Error)
+  /* must be called by any FTC_Node_InitFunc routine */
+  FT_EXPORT( FT_Error )
   ftc_family_init( FTC_Family  family,
                    FTC_Query   query,
                    FTC_Cache   cache );
 
 
- /* can be used as a FTC_Family_DoneFunc, otherwise, must be called */
- /* by any family finalizer function..                              */
-  FT_EXPORT(void)
+  /* can be used as a FTC_Family_DoneFunc; otherwise, must be called */
+  /* by any family finalizer function                                */
+  FT_EXPORT( void )
   ftc_family_done( FTC_Family  family );
 
 
@@ -148,7 +164,7 @@ FT_BEGIN_HEADER
   /*************************************************************************/
   /*************************************************************************/
 
- /* each cache really implements a dynamic hash table to manage its nodes */
+  /* each cache really implements a dynamic hash table to manage its nodes */
   typedef struct  FTC_CacheRec_
   {
     FTC_Manager          manager;
@@ -168,47 +184,57 @@ FT_BEGIN_HEADER
   } FTC_CacheRec;
 
 
-#define  FTC_CACHE(x)    ((FTC_Cache)(x))
-#define  FTC_CACHE_P(x)  ((FTC_Cache*)(x))
+#define FTC_CACHE( x )    ( (FTC_Cache)(x) )
+#define FTC_CACHE_P( x )  ( (FTC_Cache*)(x) )
 
 
   /* initialize a given cache */
-  typedef FT_Error  (*FTC_Cache_InitFunc)( FTC_Cache  cache );
+  typedef FT_Error
+  (*FTC_Cache_InitFunc)( FTC_Cache  cache );
 
   /* clear a cache */
-  typedef void      (*FTC_Cache_ClearFunc)( FTC_Cache  cache );
-  
- /* finalize a given cache */
-  typedef void      (*FTC_Cache_DoneFunc)( FTC_Cache   cache );
+  typedef void
+  (*FTC_Cache_ClearFunc)( FTC_Cache  cache );
+
+  /* finalize a given cache */
+  typedef void
+  (*FTC_Cache_DoneFunc)( FTC_Cache  cache );
+
 
+  typedef FT_Error
+  (*FTC_Family_InitFunc)( FTC_Family  family,
+                          FTC_Query   query,
+                          FTC_Cache   cache );
 
-  typedef FT_Error  (*FTC_Family_InitFunc)( FTC_Family  family,
-                                            FTC_Query   query,
-                                            FTC_Cache   cache );
+  typedef FT_Int
+  (*FTC_Family_CompareFunc)( FTC_Family  family,
+                             FTC_Query   query );
 
-  typedef FT_Int    (*FTC_Family_CompareFunc)( FTC_Family  family,
-                                               FTC_Query   query );
+  typedef void
+  (*FTC_Family_DoneFunc)( FTC_Family  family,
+                          FTC_Cache   cache );
 
-  typedef void      (*FTC_Family_DoneFunc)( FTC_Family  family,
-                                            FTC_Cache   cache );
-                                            
- /* initialize a new cache node */
-  typedef FT_Error  (*FTC_Node_InitFunc)( FTC_Node    node,
-                                          FT_Pointer  type,
-                                          FTC_Cache   cache );
+  /* initialize a new cache node */
+  typedef FT_Error
+  (*FTC_Node_InitFunc)( FTC_Node    node,
+                        FT_Pointer  type,
+                        FTC_Cache   cache );
 
   /* compute the weight of a given cache node */
-  typedef FT_ULong  (*FTC_Node_WeightFunc)( FTC_Node   node,
-                                            FTC_Cache  cache );
+  typedef FT_ULong
+  (*FTC_Node_WeightFunc)( FTC_Node   node,
+                          FTC_Cache  cache );
 
   /* compare a node to a given key pair */
-  typedef FT_Bool   (*FTC_Node_CompareFunc)( FTC_Node    node,
-                                             FT_Pointer  key,
-                                             FTC_Cache   cache );
+  typedef FT_Bool
+  (*FTC_Node_CompareFunc)( FTC_Node    node,
+                           FT_Pointer  key,
+                           FTC_Cache   cache );
 
   /* finalize a given cache node */
-  typedef void      (*FTC_Node_DoneFunc)( FTC_Node   node,
-                                          FTC_Cache  cache );
+  typedef void
+  (*FTC_Node_DoneFunc)( FTC_Node   node,
+                        FTC_Cache  cache );
 
 
   typedef struct  FTC_Cache_ClassRec_
@@ -222,17 +248,19 @@ FT_BEGIN_HEADER
     FTC_Family_InitFunc     family_init;
     FTC_Family_CompareFunc  family_compare;
     FTC_Family_DoneFunc     family_done;
-    
+
     FT_UInt                 node_size;
     FTC_Node_InitFunc       node_init;
     FTC_Node_WeightFunc     node_weight;
     FTC_Node_CompareFunc    node_compare;
     FTC_Node_DoneFunc       node_done;
-  
+
   } FTC_Cache_ClassRec;
 
+
   /* */
 
+
   /*************************************************************************/
   /*                                                                       */
   /* These functions are exported so that they can be called from          */
@@ -245,28 +273,28 @@ FT_BEGIN_HEADER
   FT_EXPORT( void )
   ftc_cache_done( FTC_Cache  cache );
 
-
   /* can be used directly as FTC_Cache_ClearFunc(), or called by custom */
-  /* cache clear routines..                                             */
+  /* cache clear routines                                               */
   FT_EXPORT( void )
   ftc_cache_clear( FTC_Cache  cache );
 
-
   /* initalize the hash table within the cache */
   FT_EXPORT( FT_Error )
   ftc_cache_init( FTC_Cache  cache );
 
+  /* can be called when the key's hash value has been computed */
+  FT_EXPORT( FT_Error )
+  ftc_cache_lookup( FTC_Cache  cache,
+                    FTC_Query  query,
+                    FTC_Node  *anode );
+
+ /* */
 
- /* can be called when the key's hash value has been computed */
-  FT_EXPORT(FT_Error)
-  ftc_cache_lookup( FTC_Cache    cache,
-                    FTC_Query    query,
-                    FTC_Node    *anode );
 
+FT_END_HEADER
 
 
- /* */
+#endif /* __FTCCACHE_H__ */
 
-FT_END_HEADER
 
-#endif /* __FT_CACHE_CACHE_H__ */
+/* END */
diff --git a/include/freetype/cache/ftccmap.h b/include/freetype/cache/ftccmap.h
index 3966016..03f44bb 100644
--- a/include/freetype/cache/ftccmap.h
+++ b/include/freetype/cache/ftccmap.h
@@ -2,7 +2,7 @@
 /*                                                                         */
 /*  ftccmap.h                                                              */
 /*                                                                         */
-/*    FreeType charmap cache                                               */
+/*    FreeType charmap cache (specification).                              */
 /*                                                                         */
 /*  Copyright 2000-2001 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
@@ -15,111 +15,119 @@
 /*                                                                         */
 /***************************************************************************/
 
-#ifndef __FT_CACHE_CHARMAP_H__
-#define __FT_CACHE_CHARMAP_H__
+
+#ifndef __FTCCMAP_H__
+#define __FTCCMAP_H__
 
 #include <ft2build.h>
 #include FT_CACHE_H
 
+
 FT_BEGIN_HEADER
 
- /************************************************************************
-  *
-  * @type: FTC_CmapCache
-  *
-  * @description:
-  *   opaque handle used to manager a charmap cache. This cache is used
-  *   to hold character codes -> glyph indices mappings
-  */
-  typedef struct FTC_CMapCacheRec_*    FTC_CMapCache;
-
-
- /************************************************************************
-  *
-  * @type: FTC_CMapDesc
-  *
-  * @description:
-  *   handle to a @FTC_CMapDescRec structure used to describe a given charmap
-  *   in a charmap cache.
-  *
-  *   each @FTC_CMapDesc describes which charmap, of which @FTC_Face we
-  *   want to use in @FTC_CMapCache_Lookup
-  */
-  typedef struct FTC_CMapDescRec_*         FTC_CMapDesc;
-
-
- /************************************************************************
-  *
-  * @enum: FTC_CMapType
-  *
-  * @description:
-  *   the list of valid @FTC_CMap types, they indicate how we want to
-  *   address a charmap within a @FTC_FaceID
-  *
-  * @values:
-  *   FTC_CMAP_BY_INDEX ::
-  *     used to indicate that we want to address a charmap by its index in
-  *     the corresponding @FT_Face
-  *
-  *   FTC_CMAP_BY_ENCODING ::
-  *     used to indicate that we want to use a @FT_Face charmap that
-  *     corresponds to a given encoding
-  *
-  *   FTC_CMAP_BY_ID ::
-  *     used to indicate that we want to use a @FT_Face charmap that
-  *     corresponds to a given (platform,encoding) id. see @FTC_CMapIdRec
-  */
-  typedef enum
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* @type:                                                                */
+  /*    FTC_CmapCache                                                      */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    An opaque handle used to manager a charmap cache.  This cache is   */
+  /*    to hold character codes -> glyph indices mappings.                 */
+  /*                                                                       */
+  typedef struct FTC_CMapCacheRec_*  FTC_CMapCache;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* @type:                                                                */
+  /*    FTC_CMapDesc                                                       */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    A handle to an @FTC_CMapDescRec structure used to describe a given */
+  /*    charmap in a charmap cache.                                        */
+  /*                                                                       */
+  /*    Each @FTC_CMapDesc describes which charmap (of which @FTC_Face) we */
+  /*    want to use in @FTC_CMapCache_Lookup.                              */
+  /*                                                                       */
+  typedef struct FTC_CMapDescRec_*  FTC_CMapDesc;
+
+
+  /*************************************************************************/
+  /*                                                                       */
+  /* @enum:                                                                */
+  /*    FTC_CMapType                                                       */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    The list of valid @FTC_CMap types.  They indicate how we want to   */
+  /*    address a charmap within an @FTC_FaceID.                           */
+  /*                                                                       */
+  /* @values:                                                              */
+  /*    FTC_CMAP_BY_INDEX ::                                               */
+  /*      Address a charmap by its index in the corresponding @FT_Face.    */
+  /*                                                                       */
+  /*    FTC_CMAP_BY_ENCODING ::                                            */
+  /*      Use a @FT_Face charmap that corresponds to a given encoding.     */
+  /*                                                                       */
+  /*    FTC_CMAP_BY_ID ::                                                  */
+  /*      Use an @FT_Face charmap that corresponds to a given              */
+  /*      (platform,encoding) ID.  See @FTC_CMapIdRec.                     */
+  /*                                                                       */
+  typedef enum  FTC_CMapType_
   {
     FTC_CMAP_BY_INDEX    = 0,
     FTC_CMAP_BY_ENCODING = 1,
     FTC_CMAP_BY_ID       = 2
-  
+
   } FTC_CMapType;
 
 
- /************************************************************************
-  *
-  * @struct: FTC_CMapIdRec
-  *
-  * @description:
-  *   a short structure used to identify a charmap by a (platform,encoding)
-  *   pair of values
-  *
-  * @fields:
-  *   platform :: platform ID
-  *   encoding :: encoding ID
-  */
-  typedef struct FTC_CMapIdRec_
+  /*************************************************************************/
+  /*                                                                       */
+  /* @struct:                                                              */
+  /*    FTC_CMapIdRec                                                      */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    A short structure to identify a charmap by a (platform,encoding)   */
+  /*    pair of values.                                                    */
+  /*                                                                       */
+  /* @fields:                                                              */
+  /*    platform :: The platform ID.                                       */
+  /*                                                                       */
+  /*    encoding :: The encoding ID.                                       */
+  /*                                                                       */
+  typedef struct  FTC_CMapIdRec_
   {
     FT_UInt  platform;
     FT_UInt  encoding;
-  
+
   } FTC_CMapIdRec;
 
 
- /************************************************************************
-  *
-  * @struct: FTC_CMapDescRec
-  *
-  * @description:
-  *   a structure used to describe a given charmap to the @FTC_CMapCache
-  *
-  * @fields:
-  *   face_id :: @FTC_FaceID of the face this charmap belongs to
-  *   type    :: type of charmap, see @FTC_CMapType
-  *
-  *   u.index    :: for @FTC_CMAP_BY_INDEX types, this is the charmap index
-  *                 (within a @FT_Face) we want to use.
-  *
-  *   u.encoding :: for @FTC_CMAP_BY_ENCODING types, this is the charmap
-  *                 encoding we want to use. see @FT_Encoding
-  *
-  *   u.id       :: for @FTC_CMAP_BY_ID types, this is the (platform,encoding)
-  *                 pair we want to use. see @FTC_CMapIdRec and
-  *                 @FT_CharMapRec
-  */
-  typedef struct FTC_CMapDescRec_
+  /*************************************************************************/
+  /*                                                                       */
+  /* @struct:                                                              */
+  /*    FTC_CMapDescRec                                                    */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    A structure to describe a given charmap to @FTC_CMapCache.         */
+  /*                                                                       */
+  /* @fields:                                                              */
+  /*    face_id    :: @FTC_FaceID of the face this charmap belongs to.     */
+  /*                                                                       */
+  /*    type       :: The type of charmap, see @FTC_CMapType.              */
+  /*                                                                       */
+  /*    u.index    :: For @FTC_CMAP_BY_INDEX types, this is the charmap    */
+  /*                  index (within a @FT_Face) we want to use.            */
+  /*                                                                       */
+  /*    u.encoding :: For @FTC_CMAP_BY_ENCODING types, this is the charmap */
+  /*                  encoding we want to use. see @FT_Encoding.           */
+  /*                                                                       */
+  /*    u.id       :: For @FTC_CMAP_BY_ID types, this is the               */
+  /*                  (platform,encoding) pair we want to use. see         */
+  /*                  @FTC_CMapIdRec and @FT_CharMapRec.                   */
+  /*                                                                       */
+  typedef struct  FTC_CMapDescRec_
   {
     FTC_FaceID    face_id;
     FTC_CMapType  type;
@@ -129,67 +137,73 @@ FT_BEGIN_HEADER
       FT_UInt        index;
       FT_Encoding    encoding;
       FTC_CMapIdRec  id;
-      
+
     } u;
-     
-  } FTC_CMapDescRec;
 
+  } FTC_CMapDescRec;
 
 
- /************************************************************************
-  *
-  * @function: FTC_CMapCache_New
-  *
-  * @description:
-  *   create a new charmap cache
-  *
-  * @input:
-  *   manager :: handle to cache manager
-  *
-  * @output:
-  *   acache  :: new cache handle. NULL in case of error
-  *
-  * @return:
-  *   FreeType error code. 0 means success
-  *
-  * @note:
-  *   like all other caches, this one will be destroyed with the
-  *   cache manager
-  */
+  /*************************************************************************/
+  /*                                                                       */
+  /* @function:                                                            */
+  /*    FTC_CMapCache_New                                                  */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    Creates a new charmap cache.                                       */
+  /*                                                                       */
+  /* @input:                                                               */
+  /*    manager :: A handle to the cache manager.                          */
+  /*                                                                       */
+  /* @output:                                                              */
+  /*    acache  :: A new cache handle.  NULL in case of error.             */
+  /*                                                                       */
+  /* @return:                                                              */
+  /*    FreeType error code.  0 means success.                             */
+  /*                                                                       */
+  /* @note:                                                                */
+  /*    Like all other caches, this one will be destroyed with the cache   */
+  /*    manager.                                                           */
+  /*                                                                       */
   FT_EXPORT( FT_Error )
   FTC_CMapCache_New( FTC_Manager     manager,
                      FTC_CMapCache  *acache );
 
 
-
- /************************************************************************
-  *
-  * @function: FTC_CMapCache_Lookup
-  *
-  * @description:
-  *   translate a character code into a glyph index, using the charmap
-  *   cache.
-  *
-  * @input:
-  *   cache     :: charmap cache handle
-  *   cmap_desc :: charmap descriptor handle
-  *   char_code :: character code (in the corresponding charmap)
-  *
-  * @return:
-  *   glyph index. 0 means "no glyph" !!
-  *
-  * @note:
-  *   this function doesn't return @FTC_Node handles, since there is
-  *   no real use for them with typical uses of charmaps
-  */
+  /*************************************************************************/
+  /*                                                                       */
+  /* @function:                                                            */
+  /*    FTC_CMapCache_Lookup                                               */
+  /*                                                                       */
+  /* @description:                                                         */
+  /*    Translates a character code into a glyph index, using the charmap  */
+  /*    cache.                                                             */
+  /*                                                                       */
+  /* @input:                                                               */
+  /*    cache     :: A charmap cache handle.                               */
+  /*                                                                       */
+  /*    cmap_desc :: A charmap descriptor handle.                          */
+  /*                                                                       */
+  /*    char_code :: The character code (in the corresponding charmap).    */
+  /*                                                                       */
+  /* @return:                                                              */
+  /*    Glyph index.  0 means "no glyph".                                  */
+  /*                                                                       */
+  /* @note:                                                                */
+  /*    This function doesn't return @FTC_Node handles, since there is no  */
+  /*    real use for them with typical uses of charmaps.                   */
+  /*                                                                       */
   FT_EXPORT( FT_UInt )
   FTC_CMapCache_Lookup( FTC_CMapCache  cache,
                         FTC_CMapDesc   cmap_desc,
                         FT_UInt32      char_code );
 
+  /* */
 
- /* */
 
 FT_END_HEADER
 
-#endif /* __FT_CACHE_CHARMAP_H__ */
+
+#endif /* __FTCCMAP_H__ */
+
+
+/* END */
diff --git a/include/freetype/cache/ftcglyph.h b/include/freetype/cache/ftcglyph.h
index bf9108b..ab88edb 100644
--- a/include/freetype/cache/ftcglyph.h
+++ b/include/freetype/cache/ftcglyph.h
@@ -64,18 +64,18 @@
 FT_BEGIN_HEADER
 
 
- /* each glyph set is caracterized by a "glyph set type" which must be */
- /* defined by sub-classes..                                           */
-  typedef struct FTC_GlyphFamilyRec_*     FTC_GlyphFamily;
+  /* each glyph set is characterized by a "glyph set type" which must be */
+  /* defined by sub-classes                                              */
+  typedef struct FTC_GlyphFamilyRec_*  FTC_GlyphFamily;
 
- /* handle to a glyph cache node */
-  typedef struct FTC_GlyphNodeRec_*       FTC_GlyphNode;
+  /* handle to a glyph cache node */
+  typedef struct FTC_GlyphNodeRec_*  FTC_GlyphNode;
 
 
- /* size should be 24 + chunk size on 32-bit machines               */
- /* note that the node's hash is ((gfam->hash << 16) | glyph_index) */
- /* this _must_ be set properly by the glyph node initializer..     */
- /*                                                                 */
+  /* size should be 24 + chunk size on 32-bit machines;                 */
+  /* note that the node's hash is ((gfam->hash << 16) | glyph_index) -- */
+  /* this _must_ be set properly by the glyph node initializer          */
+  /*                                                                    */
   typedef struct  FTC_GlyphNodeRec_
   {
     FTC_NodeRec   node;
@@ -84,9 +84,9 @@ FT_BEGIN_HEADER
 
   } FTC_GlyphNodeRec;
 
-#define  FTC_GLYPH_NODE(x)    ((FTC_GlyphNode)(x))
-#define  FTC_GLYPH_NODE_P(x)  ((FTC_GlyphNode*)(x))
 
+#define FTC_GLYPH_NODE( x )    ( (FTC_GlyphNode)(x) )
+#define FTC_GLYPH_NODE_P( x )  ( (FTC_GlyphNode*)(x) )
 
 
   typedef struct  FTC_GlyphQueryRec_
@@ -96,13 +96,12 @@ FT_BEGIN_HEADER
 
   } FTC_GlyphQueryRec, *FTC_GlyphQuery;
 
-#define FTC_GLYPH_QUERY(x)  ((FTC_GlyphQuery)(x))
 
+#define FTC_GLYPH_QUERY( x )  ( (FTC_GlyphQuery)(x) )
 
 
-
- /* a glyph set is used to categorize glyphs of a given type */
-  typedef struct FTC_GlyphFamilyRec_
+  /* a glyph set is used to categorize glyphs of a given type */
+  typedef struct  FTC_GlyphFamilyRec_
   {
     FTC_FamilyRec  family;
     FT_UInt32      hash;
@@ -112,42 +111,43 @@ FT_BEGIN_HEADER
   } FTC_GlyphFamilyRec;
 
 
-#define  FTC_GLYPH_FAMILY(x)     ((FTC_GlyphFamily)(x))
-#define  FTC_GLYPH_FAMILY_P(x)   ((FTC_GlyphFamily*)(x))
+#define FTC_GLYPH_FAMILY( x )         ( (FTC_GlyphFamily)(x) )
+#define FTC_GLYPH_FAMILY_P( x )       ( (FTC_GlyphFamily*)(x) )
 
-#define  FTC_GLYPH_FAMILY_MEMORY(x)  FTC_FAMILY(x)->cache->memory
+#define FTC_GLYPH_FAMILY_MEMORY( x )  FTC_FAMILY(x)->cache->memory
 
-/* each glyph node contains a 'chunk' of glyph items */
-/* translate a glyph index into a chunk index        */
-#define  FTC_GLYPH_FAMILY_CHUNK(gfam,gindex)   \
-      ( (gindex) / FTC_GLYPH_FAMILY(gfam)->item_count )
 
-/* find a glyph index's chunk, and return its start index */
-/*                                                        */
-#define  FTC_GLYPH_FAMILY_START(gfam,gindex)    \
-      ( FTC_GLYPH_FAMILY_CHUNK(gfam,gindex) * FTC_GLYPH_FAMILY(gfam)->item_count )
+  /* each glyph node contains a 'chunk' of glyph items; */
+  /* translate a glyph index into a chunk index         */
+#define FTC_GLYPH_FAMILY_CHUNK( gfam, gindex )                  \
+          ( ( gindex ) / FTC_GLYPH_FAMILY( gfam )->item_count )
 
-/* compute a glyph request's hash value */
-/*                                      */
-#define  FTC_GLYPH_FAMILY_HASH(gfam,gindex)                           \
-      ((FT_UFast)( (FTC_GLYPH_FAMILY(gfam)->hash << 16) |             \
-                   (FTC_GLYPH_FAMILY_CHUNK(gfam,gindex) & 0xFFFF) ))
+  /* find a glyph index's chunk, and return its start index */
+#define FTC_GLYPH_FAMILY_START( gfam, gindex )       \
+          ( FTC_GLYPH_FAMILY_CHUNK( gfam, gindex ) * \
+            FTC_GLYPH_FAMILY( gfam )->item_count )
 
-/* must be called in a FTC_Family_CompareFunc to update the query */
-/* whenever a glyph set is matched in the lookup.. or when it     */
-/* is created                                                     */
-/*                                                                */
-#define  FTC_GLYPH_FAMILY_FOUND(gfam,gquery)                                  \
-           do {                                                               \
-             FTC_QUERY(gquery)->family = FTC_FAMILY(gfam);                    \
-             FTC_QUERY(gquery)->hash   =                                      \
-                FTC_GLYPH_FAMILY_HASH(gfam,FTC_GLYPH_QUERY(gquery)->gindex);  \
-           } while (0)
+  /* compute a glyph request's hash value */
+#define FTC_GLYPH_FAMILY_HASH( gfam, gindex )                         \
+          ( (FT_UFast)(                                               \
+              ( FTC_GLYPH_FAMILY( gfam )->hash << 16 ) |              \
+              ( FTC_GLYPH_FAMILY_CHUNK( gfam, gindex ) & 0xFFFF ) ) )
 
+  /* must be called in an FTC_Family_CompareFunc to update the query */
+  /* whenever a glyph set is matched in the lookup, or when it       */
+  /* is created                                                      */
+#define FTC_GLYPH_FAMILY_FOUND( gfam, gquery )                            \
+          do                                                              \
+          {                                                               \
+            FTC_QUERY( gquery )->family = FTC_FAMILY( gfam );             \
+            FTC_QUERY( gquery )->hash =                                   \
+              FTC_GLYPH_FAMILY_HASH( gfam,                                \
+                                     FTC_GLYPH_QUERY( gquery )->gindex ); \
+          } while ( 0 )
 
-/* retrieve glyph index of glyph node */
-#define  FTC_GLYPH_NODE_GINDEX(x)  \
-             ((FT_UInt)(FTC_GLYPH_NODE(x)->node.hash & 0xFFFF))
+  /* retrieve glyph index of glyph node */
+#define FTC_GLYPH_NODE_GINDEX( x )                                 \
+          ( (FT_UInt)( FTC_GLYPH_NODE( x )->node.hash & 0xFFFF ) )
 
 
   /*************************************************************************/
@@ -159,18 +159,16 @@ FT_BEGIN_HEADER
 
   /* must be called by derived FTC_Node_InitFunc routines */
   FT_EXPORT( void )
-  ftc_glyph_node_init( FTC_GlyphNode     node,
-                       FT_UInt           gindex,  /* glyph index for node */
-                       FTC_GlyphFamily   gfam );
-
-  /* returns TRUE iff the query's glyph index correspond to the node  */
-  /* this assume that the "family" and "hash" fields of the query are */
-  /* already correctly set..                                          */
-  /*                                                                  */
-  FT_EXPORT( FT_Bool )
-  ftc_glyph_node_compare( FTC_GlyphNode    gnode,
-                          FTC_GlyphQuery   gquery );
+  ftc_glyph_node_init( FTC_GlyphNode    node,
+                       FT_UInt          gindex,  /* glyph index for node */
+                       FTC_GlyphFamily  gfam );
 
+  /* returns TRUE iff the query's glyph index correspond to the node;  */
+  /* this assumes that the "family" and "hash" fields of the query are */
+  /* already correctly set                                             */
+  FT_EXPORT( FT_Bool )
+  ftc_glyph_node_compare( FTC_GlyphNode   gnode,
+                          FTC_GlyphQuery  gquery );
 
   /* must be called by derived FTC_Node_DoneFunc routines */
   FT_EXPORT( void )
@@ -178,7 +176,8 @@ FT_BEGIN_HEADER
                        FTC_Cache      cache );
 
 
- /* must be called by derived FTC_Family_InitFunc, calls "ftc_family_init" */
+  /* must be called by derived FTC_Family_InitFunc; */
+  /* calls "ftc_family_init"                        */
   FT_EXPORT( FT_Error )
   ftc_glyph_family_init( FTC_GlyphFamily  gfam,
                          FT_UInt32        hash,
@@ -187,14 +186,16 @@ FT_BEGIN_HEADER
                          FTC_GlyphQuery   gquery,
                          FTC_Cache        cache );
 
-
   FT_EXPORT( void )
   ftc_glyph_family_done( FTC_GlyphFamily  gfam );
 
 
-
- /* */
+  /* */
  
 FT_END_HEADER
 
-#endif /* __FTC_GLYPH_H__ */
+
+#endif /* __FTCGLYPH_H__ */
+
+
+/* END */
diff --git a/include/freetype/cache/ftcimage.h b/include/freetype/cache/ftcimage.h
index 7614c1b..a8a4508 100644
--- a/include/freetype/cache/ftcimage.h
+++ b/include/freetype/cache/ftcimage.h
@@ -2,7 +2,7 @@
 /*                                                                         */
 /*  ftcimage.h                                                             */
 /*                                                                         */
-/*    FreeType Image cache (body).                                         */
+/*    FreeType Image cache (specification).                                */
 /*                                                                         */
 /*  Copyright 2000-2001 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
@@ -56,16 +56,16 @@ FT_BEGIN_HEADER
 #define FTC_IMAGE_FORMAT( x )  ( (x) & 7 )
 
 
-#define ftc_image_format_bitmap      0x0000
-#define ftc_image_format_outline     0x0001
+#define ftc_image_format_bitmap    0x0000
+#define ftc_image_format_outline   0x0001
 
-#define ftc_image_format_mask        0x000F
+#define ftc_image_format_mask      0x000F
 
-#define ftc_image_flag_monochrome    0x0010
-#define ftc_image_flag_unhinted      0x0020
-#define ftc_image_flag_autohinted    0x0040
-#define ftc_image_flag_unscaled      0x0080
-#define ftc_image_flag_no_sbits      0x0100
+#define ftc_image_flag_monochrome  0x0010
+#define ftc_image_flag_unhinted    0x0020
+#define ftc_image_flag_autohinted  0x0040
+#define ftc_image_flag_unscaled    0x0080
+#define ftc_image_flag_no_sbits    0x0100
 
   /* monochrome bitmap */
 #define ftc_image_mono             ftc_image_format_bitmap | \
@@ -85,16 +85,16 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A simple structure used to describe a given glyph image category.  */
-  /*    note that this is different from @FTC_Image_Desc                   */
+  /*    Note that this is different from @FTC_Image_Desc.                  */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    size    :: An FTC_SizeRec used to describe the glyph's face &      */
+  /*    size    :: An @FTC_SizeRec used to describe the glyph's face and   */
   /*               size.                                                   */
   /*                                                                       */
-  /*    type    :: The glyph image's type. note that it's a 32-bit uint    */
+  /*    type    :: The glyph image's type.  Note that it is a 32-bit uint. */
   /*                                                                       */
   /* <Note>                                                                */
-  /*   this type deprecates @FTC_Image_Desc                                */
+  /*    This type deprecates @FTC_Image_Desc.                              */
   /*                                                                       */
   typedef struct  FTC_ImageDesc_
   {
@@ -104,13 +104,15 @@ FT_BEGIN_HEADER
   } FTC_ImageDesc;
 
  /* */
-#define  FTC_IMAGE_DESC_COMPARE( d1, d2 )                        \
-             ( FTC_FONT_COMPARE( &(d1)->font, &(d2)->font ) &&   \
-               (d1)->type == (d2)->type         )
 
-#define  FTC_IMAGE_DESC_HASH(d)                         \
-             (FT_UFast)( FTC_FONT_HASH(&(d)->font) ^    \
-                         ((d)->type << 4)    )
+#define FTC_IMAGE_DESC_COMPARE( d1, d2 )                    \
+          ( FTC_FONT_COMPARE( &(d1)->font, &(d2)->font ) && \
+            (d1)->type == (d2)->type                     )
+
+#define FTC_IMAGE_DESC_HASH( d )                    \
+          (FT_UFast)( FTC_FONT_HASH( &(d)->font ) ^ \
+                      ( (d)->type << 4 )          )
+
 
   /*************************************************************************/
   /*                                                                       */
@@ -119,7 +121,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A handle to an glyph image cache object.  They are designed to     */
-  /*    hold many distinct glyph images, while not exceeding a certain     */
+  /*    hold many distinct glyph images while not exceeding a certain      */
   /*    memory threshold.                                                  */
   /*                                                                       */
   typedef struct FTC_ImageCacheRec_*  FTC_ImageCache;
@@ -153,10 +155,9 @@ FT_BEGIN_HEADER
   /*    FTC_ImageCache_Lookup                                              */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Retrieves a given glyph image from a glyph image cache             */
-  /*    and 'acquire' it. This prevents the glyph image from being         */
-  /*    flushed out of the cache, until @FTC_Image_Cache_Release is        */
-  /*    called                                                             */
+  /*    Retrieves a given glyph image from a glyph image cache and         */
+  /*    `acquires' it.  This prevents the glyph image from being flushed   */
+  /*    out of the cache, until @FTC_Image_Cache_Release is called.        */
   /*                                                                       */
   /* <Input>                                                               */
   /*    cache  :: A handle to the source glyph image cache.                */
@@ -166,13 +167,13 @@ FT_BEGIN_HEADER
   /*    gindex :: The glyph index to retrieve.                             */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    aglyph :: The corresponding FT_Glyph object.  0 in case of         */
+  /*    aglyph :: The corresponding @FT_Glyph object.  0 in case of        */
   /*              failure.                                                 */
   /*                                                                       */
-  /*    anode  :: an opaque cache node pointer that will be used           */
-  /*              to release the glyph once it becomes unuseful.           */
-  /*              can be NULL, in which case this function will            */
-  /*              have the same effect than @FTC_Image_Cache_Lookup        */
+  /*    anode  :: An opaque cache node pointer that will be used to        */
+  /*              release the glyph once it becomes unuseful.  Can be      */
+  /*              NULL, in which case this function will have the same     */
+  /*              effect as @FTC_Image_Cache_Release.   XXX                */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
@@ -180,20 +181,19 @@ FT_BEGIN_HEADER
   /* <Note>                                                                */
   /*    The returned glyph is owned and managed by the glyph image cache.  */
   /*    Never try to transform or discard it manually!  You can however    */
-  /*    create a copy with FT_Glyph_Copy() and modify the new one.         */
-  /*                                                                       */
-  /*    if 'anode' is NULL                                                 */
+  /*    create a copy with @FT_Glyph_Copy and modify the new one.          */
   /*                                                                       */
   /*    Because the glyph image cache limits the total amount of memory    */
   /*    taken by the glyphs it holds, the returned glyph might disappear   */
-  /*    on a later invocation of this function!  It's a cache after all... */
+  /*    on a later invocation of this function!  It is a cache after       */
+  /*    all...                                                             */
   /*                                                                       */
   FT_EXPORT( FT_Error )
   FTC_ImageCache_Lookup( FTC_ImageCache  cache,
                          FTC_ImageDesc*  desc,
-                         FT_UInt          gindex,
-                         FT_Glyph        *aglyph,
-                         FTC_Node        *anode );
+                         FT_UInt         gindex,
+                         FT_Glyph       *aglyph,
+                         FTC_Node       *anode );
 
   /* */
 
@@ -204,18 +204,16 @@ FT_BEGIN_HEADER
   /*    FTC_Image_Desc                                                     */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    THIS TYPE IS DEPRECATED. USE @FTC_ImageDesc instead..              */
+  /*    THIS TYPE IS DEPRECATED.  Use @FTC_ImageDesc instead.              */
+  /*                                                                       */
   /*    A simple structure used to describe a given glyph image category.  */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    size       :: An FTC_SizeRec used to describe the glyph's face &   */
-  /*                  size.                                                */
+  /*    size       :: An @FTC_SizeRec used to describe the glyph's face    */
+  /*                  and size.                                            */
   /*                                                                       */
   /*    image_type :: The glyph image's type.                              */
   /*                                                                       */
-  /* <Note>                                                                */
-  /*                                                                       */
-  /*                                                                       */
   typedef struct  FTC_Image_Desc_
   {
     FTC_FontRec  font;
@@ -230,19 +228,19 @@ FT_BEGIN_HEADER
   /*    FTC_Image_Cache                                                    */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    THIS TYPE IS DEPRECATED, USE @FTC_ImageCache instead               */
+  /*    THIS TYPE IS DEPRECATED.  Use @FTC_ImageCache instead.             */
   /*                                                                       */
   typedef FTC_ImageCache  FTC_Image_Cache;
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
   /*    FTC_Image_Cache_New                                                */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    THIS FUNCTION IS DEPRECATED, USE @FTC_ImageCache_New instead       */
+  /*    THIS FUNCTION IS DEPRECATED.  Use @FTC_ImageCache_New instead.     */
+  /*                                                                       */
   /*    Creates a new glyph image cache.                                   */
   /*                                                                       */
   /* <Input>                                                               */
@@ -265,7 +263,7 @@ FT_BEGIN_HEADER
   /*    FTC_Image_Cache_Lookup                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    THIS FUNCTION IS DEPRECATED. USE @FTC_ImageCache_Lookup instead    */
+  /*    THIS FUNCTION IS DEPRECATED.  Use @FTC_ImageCache_Lookup instead.  */
   /*                                                                       */
   /* <Input>                                                               */
   /*    cache  :: A handle to the source glyph image cache.                */
@@ -275,7 +273,7 @@ FT_BEGIN_HEADER
   /*    gindex :: The glyph index to retrieve.                             */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    aglyph :: The corresponding FT_Glyph object.  0 in case of         */
+  /*    aglyph :: The corresponding @FT_Glyph object.  0 in case of        */
   /*              failure.                                                 */
   /*                                                                       */
   /* <Return>                                                              */
@@ -284,14 +282,14 @@ FT_BEGIN_HEADER
   /* <Note>                                                                */
   /*    The returned glyph is owned and managed by the glyph image cache.  */
   /*    Never try to transform or discard it manually!  You can however    */
-  /*    create a copy with FT_Glyph_Copy() and modify the new one.         */
+  /*    create a copy with @FT_Glyph_Copy and modify the new one.          */
   /*                                                                       */
   /*    Because the glyph image cache limits the total amount of memory    */
   /*    taken by the glyphs it holds, the returned glyph might disappear   */
-  /*    on a later invocation of this function!  It's a cache after all... */
+  /*    on a later invocation of this function!  It is a cache after       */
+  /*    all...                                                             */
   /*                                                                       */
-  /*    use @FTC_ImageCache_Lookup to "lock" the glyph as long as you      */
-  /*    need it..                                                          */
+  /*    Use this function to "lock" the glyph as long as it is needed.     */
   /*                                                                       */
   FT_EXPORT( FT_Error )
   FTC_Image_Cache_Lookup( FTC_Image_Cache  cache,
@@ -303,6 +301,7 @@ FT_BEGIN_HEADER
 
 FT_END_HEADER
 
+
 #endif /* __FTCIMAGE_H__ */
 
 
diff --git a/include/freetype/cache/ftcmanag.h b/include/freetype/cache/ftcmanag.h
index 712101f..44e2dab 100644
--- a/include/freetype/cache/ftcmanag.h
+++ b/include/freetype/cache/ftcmanag.h
@@ -23,7 +23,7 @@
   /*  - Maintain a mapping between generic FTC_FaceIDs and live FT_Face    */
   /*    objects.  The mapping itself is performed through a user-provided  */
   /*    callback.  However, the manager maintains a small cache of FT_Face */
-  /*    & FT_Size objects in order to speed up things considerably.        */
+  /*    and FT_Size objects in order to speed up things considerably.      */
   /*                                                                       */
   /*  - Manage one or more cache objects.  Each cache is in charge of      */
   /*    holding a varying number of `cache nodes'.  Each cache node        */
@@ -68,6 +68,7 @@
 #include FT_CACHE_INTERNAL_LRU_H
 #include FT_CACHE_INTERNAL_CACHE_H
 
+
 FT_BEGIN_HEADER
 
 
@@ -81,24 +82,26 @@ FT_BEGIN_HEADER
 
 #define FTC_MAX_FACES_DEFAULT  2
 #define FTC_MAX_SIZES_DEFAULT  4
-#define FTC_MAX_BYTES_DEFAULT  200000L  /* ~200 KB bytes by default */
+#define FTC_MAX_BYTES_DEFAULT  200000L  /* ~200kByte by default */
 
   /* maximum number of caches registered in a single manager */
 #define FTC_MAX_CACHES         16
 
 
-  typedef struct FTC_FamilyEntryRec_
+  typedef struct  FTC_FamilyEntryRec_
   {
-    FTC_Family       family;
-    FTC_Cache        cache;
-    FT_UInt          index;
-    FT_UInt          link;
+    FTC_Family  family;
+    FTC_Cache   cache;
+    FT_UInt     index;
+    FT_UInt     link;
 
   } FTC_FamilyEntryRec, *FTC_FamilyEntry;
 
-#define  FTC_FAMILY_ENTRY_NONE  ((FT_UInt)-1)
 
-  typedef struct FTC_FamilyTableRec_
+#define FTC_FAMILY_ENTRY_NONE  ( (FT_UInt)-1 )
+
+
+  typedef struct  FTC_FamilyTableRec_
   {
     FT_UInt          count;
     FT_UInt          size;
@@ -113,7 +116,6 @@ FT_BEGIN_HEADER
                           FT_Memory         memory,
                           FTC_FamilyEntry  *aentry );
 
-
   FT_EXPORT( void )
   ftc_family_table_free( FTC_FamilyTable  table,
                          FT_UInt          index );
@@ -130,9 +132,9 @@ FT_BEGIN_HEADER
   /* <Fields>                                                              */
   /*    library      :: A handle to a FreeType library instance.           */
   /*                                                                       */
-  /*    faces_list   :: The lru list of FT_Face objects in the cache.      */
+  /*    faces_list   :: The lru list of @FT_Face objects in the cache.     */
   /*                                                                       */
-  /*    sizes_list   :: The lru list of FT_Size objects in the cache.      */
+  /*    sizes_list   :: The lru list of @FT_Size objects in the cache.     */
   /*                                                                       */
   /*    max_weight   :: The maximum cache pool weight.                     */
   /*                                                                       */
@@ -147,8 +149,10 @@ FT_BEGIN_HEADER
   /*    request_data :: User-provided data passed to the requester.        */
   /*                                                                       */
   /*    request_face :: User-provided function used to implement a mapping */
-  /*                    between abstract FTC_FaceIDs and real FT_Face      */
-  /*                    objects.                                           */
+  /*                    between abstract @FTC_FaceID values and real       */
+  /*                    @FT_Face objects.                                  */
+  /*                                                                       */
+  /*    families     :: XXX                                                */
   /*                                                                       */
   typedef struct  FTC_ManagerRec_
   {
@@ -167,7 +171,7 @@ FT_BEGIN_HEADER
     FT_Pointer          request_data;
     FTC_Face_Requester  request_face;
 
-    FTC_FamilyTableRec   families;
+    FTC_FamilyTableRec  families;
 
   } FTC_ManagerRec;
 
@@ -204,8 +208,8 @@ FT_BEGIN_HEADER
                               FTC_Cache       *acache );
 
 
- /* can be called to increment a node's reference count */
-  FT_EXPORT(void)
+  /* can be called to increment a node's reference count */
+  FT_EXPORT( void )
   FTC_Node_Ref( FTC_Node     node,
                 FTC_Manager  manager );
 
@@ -233,6 +237,7 @@ FT_BEGIN_HEADER
 
 FT_END_HEADER
 
+
 #endif /* __FTCMANAG_H__ */
 
 
diff --git a/include/freetype/cache/ftcsbits.h b/include/freetype/cache/ftcsbits.h
index d051b7c..8e04c89 100644
--- a/include/freetype/cache/ftcsbits.h
+++ b/include/freetype/cache/ftcsbits.h
@@ -42,7 +42,7 @@ FT_BEGIN_HEADER
   /*    FTC_SBit                                                           */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A handle to a small bitmap descriptor.  See the FTC_SBitRec        */
+  /*    A handle to a small bitmap descriptor.  See the @FTC_SBitRec       */
   /*    structure for details.                                             */
   /*                                                                       */
   typedef struct FTC_SBitRec_*  FTC_SBit;
@@ -98,31 +98,29 @@ FT_BEGIN_HEADER
   } FTC_SBitRec;
 
 
-
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
-  /*    FTC_SBit_Cache                                                     */
+  /*    FTC_SBitCache                                                      */
   /*                                                                       */
   /* <Description>                                                         */
   /*    A handle to a small bitmap cache.  These are special cache objects */
   /*    used to store small glyph bitmaps (and anti-aliased pixmaps) in a  */
   /*    much more efficient way than the traditional glyph image cache     */
-  /*    implemented by FTC_Image_Cache.                                    */
+  /*    implemented by @FTC_ImageCache.                                    */
   /*                                                                       */
-  typedef struct FTC_SBitCacheRec_*   FTC_SBitCache;
+  typedef struct FTC_SBitCacheRec_*  FTC_SBitCache;
   
+
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
   /*    FTC_SBit_Cache                                                     */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    deprecated. please use @FTC_SBitCache instead                      */
+  /*    DEPRECATED.  Use @FTC_SBitCache instead.                           */
   /*                                                                       */
-  typedef FTC_SBitCache   FTC_SBit_Cache;
-
-
+  typedef FTC_SBitCache  FTC_SBit_Cache;
 
 
   /*************************************************************************/
@@ -158,16 +156,18 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Input>                                                               */
   /*    cache  :: A handle to the source sbit cache.                       */
+  /*                                                                       */
   /*    desc   :: A pointer to the glyph image descriptor.                 */
+  /*                                                                       */
   /*    gindex :: The glyph index.                                         */
   /*                                                                       */
   /* <Output>                                                              */
   /*    sbit   :: A handle to a small bitmap descriptor.                   */
   /*                                                                       */
-  /*    anode  :: an opaque cache node pointer that will be used           */
+  /*    anode  :: An opaque cache node pointer that will be used           */
   /*              to release the sbit once it becomes unuseful.            */
-  /*              can be NULL, in which case this function will            */
-  /*              have the same effect than @FTC_SBit_Cache_Lookup         */
+  /*              Can be NULL, in which case this function will            */
+  /*              have the same effect as @FTC_SBitCache_Lookup. XXX       */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
@@ -198,6 +198,8 @@ FT_BEGIN_HEADER
   /*    FTC_SBit_Cache_New                                                 */
   /*                                                                       */
   /* <Description>                                                         */
+  /*    DEPRECATED.  Use @FTC_SBitCache_New instead.                       */
+  /*                                                                       */
   /*    Creates a new cache to store small glyph bitmaps.                  */
   /*                                                                       */
   /* <Input>                                                               */
@@ -220,11 +222,15 @@ FT_BEGIN_HEADER
   /*    FTC_SBit_Cache_Lookup                                              */
   /*                                                                       */
   /* <Description>                                                         */
+  /*    DEPRECATED.  Use @FTC_SBitCache_Lookup instead.                    */
+  /*                                                                       */
   /*    Looks up a given small glyph bitmap in a given sbit cache.         */
   /*                                                                       */
   /* <Input>                                                               */
   /*    cache  :: A handle to the source sbit cache.                       */
+  /*                                                                       */
   /*    desc   :: A pointer to the glyph image descriptor.                 */
+  /*                                                                       */
   /*    gindex :: The glyph index.                                         */
   /*                                                                       */
   /* <Output>                                                              */
diff --git a/include/freetype/cache/ftlru.h b/include/freetype/cache/ftlru.h
index 9d51e57..9e4507e 100644
--- a/include/freetype/cache/ftlru.h
+++ b/include/freetype/cache/ftlru.h
@@ -19,7 +19,7 @@
   /*************************************************************************/
   /*                                                                       */
   /* An LRU is a list that cannot hold more than a certain number of       */
-  /* elements (`max_elements').  All elements on the list are sorted in    */
+  /* elements (`max_elements').  All elements in the list are sorted in    */
   /* least-recently-used order, i.e., the `oldest' element is at the tail  */
   /* of the list.                                                          */
   /*                                                                       */
@@ -58,22 +58,25 @@
 #ifndef __FTLRU_H__
 #define __FTLRU_H__
 
+
 #include <ft2build.h>
 #include FT_FREETYPE_H
 
+
 FT_BEGIN_HEADER
 
+
   /* generic list key type */
   typedef FT_Pointer  FT_LruKey;
 
   /* a list list handle */
   typedef struct FT_LruListRec_*  FT_LruList;
 
-  /* list class handle */
+  /* a list class handle */
   typedef const struct FT_LruList_ClassRec_*  FT_LruList_Class;
 
-  /* an list node handle */
-  typedef struct  FT_LruNodeRec_*   FT_LruNode;
+  /* a list node handle */
+  typedef struct FT_LruNodeRec_*  FT_LruNode;
 
   /* the list node structure */
   typedef struct  FT_LruNodeRec_
@@ -87,53 +90,60 @@ FT_BEGIN_HEADER
   /* the list structure */
   typedef struct  FT_LruListRec_
   {
-    FT_Memory          memory;
-    FT_LruList_Class   clazz;
-    FT_LruNode         nodes;
-    FT_UInt            max_nodes;
-    FT_UInt            num_nodes;
-    FT_Pointer         data;
+    FT_Memory         memory;
+    FT_LruList_Class  clazz;
+    FT_LruNode        nodes;
+    FT_UInt           max_nodes;
+    FT_UInt           num_nodes;
+    FT_Pointer        data;
 
   } FT_LruListRec;
 
 
   /* initialize a list list */
-  typedef FT_Error  (*FT_LruList_InitFunc)( FT_LruList  list );
+  typedef FT_Error
+  (*FT_LruList_InitFunc)( FT_LruList  list );
 
- /* finalize a list list */
-  typedef void      (*FT_LruList_DoneFunc)( FT_LruList  list );
+  /* finalize a list list */
+  typedef void
+  (*FT_LruList_DoneFunc)( FT_LruList  list );
 
   /* this method is used to initialize a new list element node */
-  typedef FT_Error  (*FT_LruNode_InitFunc)( FT_LruNode  node,
-                                            FT_LruKey   key,
-                                            FT_Pointer  data );
+  typedef FT_Error
+  (*FT_LruNode_InitFunc)( FT_LruNode  node,
+                          FT_LruKey   key,
+                          FT_Pointer  data );
 
   /* this method is used to finalize a given list element node */
-  typedef void      (*FT_LruNode_DoneFunc)( FT_LruNode  node,
-                                            FT_Pointer  data );
+  typedef void
+  (*FT_LruNode_DoneFunc)( FT_LruNode  node,
+                          FT_Pointer  data );
 
   /* If defined, this method is called when the list if full        */
   /* during the lookup process -- it is used to change the contents */
-  /* of a list element node, instead of calling `done_element()',   */
+  /* of a list element node instead of calling `done_element()',    */
   /* then `init_element()'.  Set it to 0 for default behaviour.     */
-  typedef FT_Error  (*FT_LruNode_FlushFunc)( FT_LruNode  node,
-                                             FT_LruKey   new_key,
-                                             FT_Pointer  data );
+  typedef FT_Error
+  (*FT_LruNode_FlushFunc)( FT_LruNode  node,
+                           FT_LruKey   new_key,
+                           FT_Pointer  data );
 
   /* If defined, this method is used to compare a list element node */
   /* with a given key during a lookup.  If set to 0, the `key'      */
   /* fields will be directly compared instead.                      */
-  typedef FT_Bool   (*FT_LruNode_CompareFunc)( FT_LruNode  node,
-                                               FT_LruKey   key,
-                                               FT_Pointer  data );
+  typedef FT_Bool
+  (*FT_LruNode_CompareFunc)( FT_LruNode  node,
+                             FT_LruKey   key,
+                             FT_Pointer  data );
 
   /* A selector is used to indicate whether a given list element node */
   /* is part of a selection for FT_LruList_Remove_Selection().  The   */
   /* functrion must return true (i.e., non-null) to indicate that the */
   /* node is part of it.                                              */
-  typedef FT_Bool    (*FT_LruNode_SelectFunc)( FT_LruNode  node,
-                                               FT_Pointer  data,
-                                               FT_Pointer  list_data );
+  typedef FT_Bool
+  (*FT_LruNode_SelectFunc)( FT_LruNode  node,
+                            FT_Pointer  data,
+                            FT_Pointer  list_data );
 
   /* LRU class */
   typedef struct  FT_LruList_ClassRec_
@@ -164,22 +174,18 @@ FT_BEGIN_HEADER
   FT_EXPORT( void )
   FT_LruList_Reset( FT_LruList  list );
 
-
   FT_EXPORT( void )
   FT_LruList_Destroy ( FT_LruList  list );
 
-
   FT_EXPORT( FT_Error )
   FT_LruList_Lookup( FT_LruList  list,
                      FT_LruKey   key,
                      FT_LruNode *anode );
 
-
   FT_EXPORT( void )
   FT_LruList_Remove( FT_LruList  list,
                      FT_LruNode  node );
 
-
   FT_EXPORT( void )
   FT_LruList_Remove_Selection( FT_LruList             list,
                                FT_LruNode_SelectFunc  select_func,
@@ -189,6 +195,7 @@ FT_BEGIN_HEADER
 
 FT_END_HEADER
 
+
 #endif /* __FTLRU_H__ */
 
 
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h
index 0e49746..9796275 100644
--- a/include/freetype/ftcache.h
+++ b/include/freetype/ftcache.h
@@ -2,7 +2,7 @@
 /*                                                                         */
 /*  ftcache.h                                                              */
 /*                                                                         */
-/*    FreeType Cache subsystem.                                            */
+/*    FreeType Cache subsystem (specification).                            */
 /*                                                                         */
 /*  Copyright 1996-2001 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
@@ -122,7 +122,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A callback function provided by client applications.  It is used   */
-  /*    to translate a given FTC_FaceID into a new valid FT_Face object.   */
+  /*    to translate a given @FTC_FaceID into a new valid @FT_Face object. */
   /*                                                                       */
   /* <Input>                                                               */
   /*    face_id :: The face ID to resolve.                                 */
@@ -132,15 +132,15 @@ FT_BEGIN_HEADER
   /*    data    :: Application-provided request data.                      */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    aface   :: A new FT_Face handle.                                   */
+  /*    aface   :: A new @FT_Face handle.                                  */
   /*                                                                       */
   /* <Return>                                                              */
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
   /*    The face requester should not perform funny things on the returned */
-  /*    face object, like creating a new FT_Size for it, or setting a      */
-  /*    transformation through FT_Set_Transform()!                         */
+  /*    face object, like creating a new @FT_Size for it, or setting a     */
+  /*    transformation through @FT_Set_Transform!                          */
   /*                                                                       */
   typedef FT_Error
   (*FTC_Face_Requester)( FTC_FaceID  face_id,
@@ -175,7 +175,8 @@ FT_BEGIN_HEADER
   } FTC_FontRec;
 
 
- /* */
+  /* */
+
 
 #define FTC_FONT_COMPARE( f1, f2 )                  \
           ( (f1)->face_id    == (f2)->face_id    && \
@@ -189,13 +190,14 @@ FT_BEGIN_HEADER
                        ((f)->pix_width << 8)          ^ \
                        ((f)->pix_height)              )
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Type>                                                                */
   /*    FTC_Font                                                           */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A simple handle to a FTC_FontRec structure.                        */
+  /*    A simple handle to an @FTC_FontRec structure.                      */
   /*                                                                       */
   typedef FTC_FontRec*  FTC_Font;
 
@@ -217,8 +219,8 @@ FT_BEGIN_HEADER
   /*    FTC_Manager                                                        */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    This object is used to cache one or more FT_Face objects, along    */
-  /*    with corresponding FT_Size objects.                                */
+  /*    This object is used to cache one or more @FT_Face objects, along   */
+  /*    with corresponding @FT_Size objects.                               */
   /*                                                                       */
   typedef struct FTC_ManagerRec_*  FTC_Manager;
 
@@ -229,18 +231,18 @@ FT_BEGIN_HEADER
   /*    FTC_Node                                                           */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    an opaque handle to a cache node object. Each cache node is        */
-  /*    reference-counted. A node with a count of 0 might be flushed       */
-  /*    out of a full cache whenever a lookup request is performed         */
+  /*    An opaque handle to a cache node object.  Each cache node is       */
+  /*    reference-counted.  A node with a count of 0 might be flushed      */
+  /*    out of a full cache whenever a lookup request is performed.        */
   /*                                                                       */
-  /*    when you lookup nodes, you have the ability to "acquire" them,     */
-  /*    i.e. increment their reference count. This will prevent the node   */
-  /*    from being flushed out of the cache until you explicitely          */
-  /*    "release" it (see @FTC_Node_Release)                               */
+  /*    If you lookup nodes, you have the ability to "acquire" them, i.e., */
+  /*    to increment their reference count.  This will prevent the node    */
+  /*    from being flushed out of the cache until you explicitly "release" */
+  /*    it (see @FTC_Node_Release).                                        */
   /*                                                                       */
-  /*    see @FTC_BitsetCache_Lookup and @FTC_ImageCache_Lookup             */
+  /*    See also @FTC_BitsetCache_Lookup and @FTC_ImageCache_Lookup.       */
   /*                                                                       */
-  typedef struct FTC_NodeRec_*     FTC_Node;
+  typedef struct FTC_NodeRec_*  FTC_Node;
 
 
   /*************************************************************************/
@@ -264,10 +266,10 @@ FT_BEGIN_HEADER
   /*                 Use 0 for defaults.                                   */
   /*                                                                       */
   /*    requester :: An application-provided callback used to translate    */
-  /*                 face IDs into real FT_Face objects.                   */
+  /*                 face IDs into real @FT_Face objects.                  */
   /*                                                                       */
   /*    req_data  :: A generic pointer that is passed to the requester     */
-  /*                 each time it is called (see FTC_Face_Requester)       */
+  /*                 each time it is called (see @FTC_Face_Requester).     */
   /*                                                                       */
   /* <Output>                                                              */
   /*    amanager  :: A handle to a new manager object.  0 in case of       */
@@ -293,7 +295,7 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    Empties a given cache manager.  This simply gets rid of all the    */
-  /*    currently cached FT_Face & FT_Size objects within the manager.     */
+  /*    currently cached @FT_Face and @FT_Size objects within the manager. */
   /*                                                                       */
   /* <InOut>                                                               */
   /*    manager :: A handle to the manager.                                */
@@ -323,7 +325,7 @@ FT_BEGIN_HEADER
   /*    FTC_Manager_Lookup_Face                                            */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Retrieves the FT_Face object that corresponds to a given face ID   */
+  /*    Retrieves the @FT_Face object that corresponds to a given face ID  */
   /*    through a cache manager.                                           */
   /*                                                                       */
   /* <Input>                                                               */
@@ -338,15 +340,15 @@ FT_BEGIN_HEADER
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The returned FT_Face object is always owned by the manager.  You   */
+  /*    The returned @FT_Face object is always owned by the manager.  You  */
   /*    should never try to discard it yourself.                           */
   /*                                                                       */
-  /*    The FT_Face object doesn't necessarily have a current size object  */
+  /*    The @FT_Face object doesn't necessarily have a current size object */
   /*    (i.e., face->size can be 0).  If you need a specific `font size',  */
-  /*    use FTC_Manager_Lookup_Size() instead.                             */
+  /*    use @FTC_Manager_Lookup_Size instead.                              */
   /*                                                                       */
   /*    Never change the face's transformation matrix (i.e., never call    */
-  /*    the FT_Set_Transform() function) on a returned face!  If you need  */
+  /*    the @FT_Set_Transform function) on a returned face!  If you need   */
   /*    to transform glyphs, do it yourself after glyph loading.           */
   /*                                                                       */
   FT_EXPORT( FT_Error )
@@ -361,8 +363,8 @@ FT_BEGIN_HEADER
   /*    FTC_Manager_Lookup_Size                                            */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    Retrieves the FT_Face & FT_Size objects that correspond to a given */
-  /*    FTC_SizeID.                                                        */
+  /*    Retrieves the @FT_Face and @FT_Size objects that correspond to a   */
+  /*    given @FTC_SizeID.                                                 */
   /*                                                                       */
   /* <Input>                                                               */
   /*    manager :: A handle to the cache manager.                          */
@@ -380,19 +382,19 @@ FT_BEGIN_HEADER
   /*    FreeType error code.  0 means success.                             */
   /*                                                                       */
   /* <Note>                                                                */
-  /*    The returned FT_Face object is always owned by the manager.  You   */
+  /*    The returned @FT_Face object is always owned by the manager.  You  */
   /*    should never try to discard it yourself.                           */
   /*                                                                       */
   /*    Never change the face's transformation matrix (i.e., never call    */
-  /*    the FT_Set_Transform() function) on a returned face!  If you need  */
+  /*    the @FT_Set_Transform function) on a returned face!  If you need   */
   /*    to transform glyphs, do it yourself after glyph loading.           */
   /*                                                                       */
-  /*    Similarly, the returned FT_Size object is always owned by the      */
+  /*    Similarly, the returned @FT_Size object is always owned by the     */
   /*    manager.  You should never try to discard it, and never change its */
-  /*    settings with FT_Set_Pixel_Sizes() or FT_Set_Char_Size()!          */
+  /*    settings with @FT_Set_Pixel_Sizes or @FT_Set_Char_Size!            */
   /*                                                                       */
   /*    The returned size object is the face's current size, which means   */
-  /*    that you can call FT_Load_Glyph() with the face if you need to.    */
+  /*    that you can call @FT_Load_Glyph with the face if you need to.     */
   /*                                                                       */
   FT_EXPORT( FT_Error )
   FTC_Manager_Lookup_Size( FTC_Manager  manager,
diff --git a/src/cache/ftccache.c b/src/cache/ftccache.c
index 5eefb03..f32f7d4 100644
--- a/src/cache/ftccache.c
+++ b/src/cache/ftccache.c
@@ -1,3 +1,21 @@
+/***************************************************************************/
+/*                                                                         */
+/*  ftccache.c                                                             */
+/*                                                                         */
+/*    The FreeType internal cache interface (body).                        */
+/*                                                                         */
+/*  Copyright 2000-2001 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.                                        */
+/*                                                                         */
+/***************************************************************************/
+
+
 #include <ft2build.h>
 #include FT_CACHE_MANAGER_H
 #include FT_INTERNAL_OBJECTS_H
@@ -5,6 +23,7 @@
 
 #include "ftcerror.h"
 
+
   /*************************************************************************/
   /*************************************************************************/
   /*****                                                               *****/
@@ -13,13 +32,14 @@
   /*************************************************************************/
   /*************************************************************************/
 
-  FT_EXPORT_DEF(void)
+  FT_EXPORT_DEF( void )
   ftc_node_done( FTC_Node   node,
                  FTC_Cache  cache )
   {
     FTC_Family       family;
     FTC_FamilyEntry  entry;
 
+
     entry  = cache->manager->families.entries + node->fam_index;
     family = entry->family;
 
@@ -29,9 +49,7 @@
   }
 
 
-
-
- /* add a new node to the head of the manager's circular MRU list */
+  /* add a new node to the head of the manager's circular MRU list */
   static void
   ftc_node_mru_link( FTC_Node     node,
                      FTC_Manager  manager )
@@ -162,7 +180,7 @@
     /* find node's cache */
     if ( node->fam_index >= manager->families.count )
     {
-      FT_ERROR(( "FreeType.cache.node_destroy: invalid node handle\n" ));
+      FT_ERROR(( "ftc_node_destroy: invalid node handle\n" ));
       return;
     }
 #endif
@@ -173,7 +191,7 @@
 #ifdef FT_DEBUG_ERROR
     if ( cache == NULL )
     {
-      FT_ERROR(( "FreeType.cache.node_destroy: invalid node handle\n" ));
+      FT_ERROR(( "ftc_node_destroy: invalid node handle\n" ));
       return;
     }
 #endif
@@ -196,7 +214,7 @@
 
     /* check, just in case of general corruption :-) */
     if ( manager->num_nodes <= 0 )
-      FT_ERROR(( "FTC_Manager_Compress: Invalid cache node count! = %d\n",
+      FT_ERROR(( "ftc_node_destroy: invalid cache node count! = %d\n",
                   manager->num_nodes ));
   }
 
@@ -210,7 +228,7 @@
   /*************************************************************************/
 
 
-  FT_EXPORT_DEF(FT_Error)
+  FT_EXPORT_DEF( FT_Error )
   ftc_family_init( FTC_Family  family,
                    FTC_Query   query,
                    FTC_Cache   cache )
@@ -220,12 +238,13 @@
     FT_Memory        memory  = manager->library->memory;
     FTC_FamilyEntry  entry;
 
+
     family->cache     = cache;
     family->num_nodes = 0;
 
     /* now add to manager's family table */
     error = ftc_family_table_alloc( &manager->families, memory, &entry );
-    if (!error)
+    if ( !error )
     {
       entry->cache      = cache;
       entry->family     = family;
@@ -233,16 +252,17 @@
 
       query->family = family;   /* save family in query */
     }
+
     return error;
   }
 
 
-
-  FT_EXPORT_DEF(void)
+  FT_EXPORT_DEF( void )
   ftc_family_done( FTC_Family  family )
   {
     FTC_Manager  manager = family->cache->manager;
 
+
     /* remove from manager's family table */
     ftc_family_table_free( &manager->families, family->fam_index );
   }
@@ -318,7 +338,6 @@
             (c)->size*3  < (c)->nodes )
 
 
-
   static void
   ftc_cache_resize( FTC_Cache  cache )
   {
@@ -333,7 +352,8 @@
       FTC_Node*  new_buckets ;
       FT_ULong   i;
 
-      /* no need to report an error, we'll simply keep using the same */
+
+      /* no need to report an error; we'll simply keep using the same */
       /* buckets number / size                                        */
       if ( ALLOC_ARRAY( new_buckets, new_size, FTC_Node ) )
         return;
@@ -386,22 +406,23 @@
     {
       FT_LruList_ClassRec*  lru_class = &cache->family_class;
 
+
       lru_class->list_size = sizeof( FT_LruListRec );
       lru_class->list_init = NULL;
       lru_class->list_done = NULL;
 
       lru_class->node_size    = clazz->family_size;
-      lru_class->node_init    = (FT_LruNode_InitFunc)    clazz->family_init;
-      lru_class->node_done    = (FT_LruNode_DoneFunc)    clazz->family_done;
-      lru_class->node_flush   = (FT_LruNode_FlushFunc)   NULL;
-      lru_class->node_compare = (FT_LruNode_CompareFunc) clazz->family_compare;
+      lru_class->node_init    = (FT_LruNode_InitFunc)   clazz->family_init;
+      lru_class->node_done    = (FT_LruNode_DoneFunc)   clazz->family_done;
+      lru_class->node_flush   = (FT_LruNode_FlushFunc)  NULL;
+      lru_class->node_compare = (FT_LruNode_CompareFunc)clazz->family_compare;
 
       error = FT_LruList_New( (FT_LruList_Class) lru_class,
-                              0,  /* max items == 0 => unbounded list */
+                              0,    /* max items == 0 => unbounded list */
                               cache,
                               memory,
                               &cache->families );
-      if (error)
+      if ( error )
         FREE( cache->buckets );
     }
 
@@ -410,7 +431,7 @@
   }
 
 
-  FT_EXPORT_DEF(void)
+  FT_EXPORT_DEF( void )
   ftc_cache_clear( FTC_Cache  cache )
   {
     if ( cache )
@@ -425,6 +446,7 @@
       {
         FTC_Node  *pnode = cache->buckets + i, next, node = *pnode;
 
+
         while ( node )
         {
           next        = node->link;
@@ -453,6 +475,7 @@
     }
   }
 
+
   FT_EXPORT_DEF( void )
   ftc_cache_done( FTC_Cache  cache )
   {
@@ -460,6 +483,7 @@
     {
       FT_Memory  memory = cache->memory;
 
+
       ftc_cache_clear( cache );
 
       FREE( cache->buckets );
@@ -474,11 +498,10 @@
   }
 
 
-
   /* Look up a node in "top" of its cache's hash table. */
   /* If not found, create a new node.                   */
   /*                                                    */
-  FT_EXPORT_DEF(FT_Error)
+  FT_EXPORT_DEF( FT_Error )
   ftc_cache_lookup( FTC_Cache   cache,
                     FTC_Query   query,
                     FTC_Node   *anode )
@@ -497,35 +520,38 @@
     query->family = NULL;
 
     error = FT_LruList_Lookup( cache->families, query, &lru );
-    if (!error)
+    if ( !error )
     {
       FTC_Family  family = (FTC_Family) lru;
       FT_UFast    hash    = query->hash;
       FTC_Node*   bucket  = cache->buckets + (hash % cache->size);
 
-       if ( query->family     != family                        ||
-            family->fam_index >= cache->manager->families.size )
-       {
-         FT_ERROR(( "%s: invalid query (bad 'family' field)\n",
-                    "FreeType.cache.lookup" ));
-         return FT_Err_Invalid_Argument;
-       }
+
+      if ( query->family     != family                        ||
+           family->fam_index >= cache->manager->families.size )
+      {
+        FT_ERROR((
+          "ftc_cache_lookup: invalid query (bad 'family' field)\n" ));
+        return FT_Err_Invalid_Argument;
+      }
 
       if ( *bucket )
       {
         FTC_Node*             pnode   = bucket;
         FTC_Node_CompareFunc  compare = cache->clazz->node_compare;
 
+
         for ( ;; )
         {
           FTC_Node  node;
 
+
           node = *pnode;
           if ( node == NULL )
             break;
 
           if ( (FT_UInt)node->fam_index == family->fam_index &&
-                compare( node, query, cache ) )
+               compare( node, query, cache ) )
           {
             /* move to head of bucket list */
             if ( pnode != bucket )
@@ -582,8 +608,8 @@
           node->ref_count--;
         }
 
-        /* try to resize the hash table when appropriate */
-        if ( FTC_CACHE_RESIZE_TEST(cache) )
+        /* try to resize the hash table if appropriate */
+        if ( FTC_CACHE_RESIZE_TEST( cache ) )
           ftc_cache_resize( cache );
 
         *anode = node;
@@ -595,3 +621,4 @@
   }
 
 
+/* END */
diff --git a/src/cache/ftccmap.c b/src/cache/ftccmap.c
index 3badfba..d3c9240 100644
--- a/src/cache/ftccmap.c
+++ b/src/cache/ftccmap.c
@@ -2,7 +2,7 @@
 /*                                                                         */
 /*  ftccmap.c                                                              */
 /*                                                                         */
-/*    FreeType CharMap cache                                               */
+/*    FreeType CharMap cache (body)                                        */
 /*                                                                         */
 /*  Copyright 2000-2001 by                                                 */
 /*  David Turner, Robert Wilhelm, and Werner Lemberg.                      */
@@ -26,46 +26,47 @@
 
 #include "ftcerror.h"
 
+  /*************************************************************************/
+  /*                                                                       */
+  /* Each FTC_CMapNode contains a simple array to map a range of character */
+  /* codes to equivalent glyph indices.                                    */
+  /*                                                                       */
+  /* For now, the implementation is very basic: Each node maps a range of  */
+  /* 128 consecutive character codes to their correspondingglyph indices.  */
+  /*                                                                       */
+  /* We could do more complex things, but I don't think it is really very  */
+  /* useful.                                                               */
+  /*                                                                       */
+  /*************************************************************************/
 
 
- /* each FTC_CMapNode contains a simple array used to map a  */
- /* range of character codes to equivalent glyph indices     */
- /*                                                          */
- /* for now, the implementation is very basic: each node     */
- /* maps a range of 128 consecutive character codes to their */
- /* correspondingglyph indices..                             */
- /*                                                          */
- /* we could do more complex things, but I don't think it's  */
- /* really very useful..                                     */
- /*                                                          */
-
- /* number of glyph indices / character code per node */
-#define  FTC_CMAP_INDICES_MAX  128
+  /* number of glyph indices / character code per node */
+#define FTC_CMAP_INDICES_MAX  128
 
 
-  typedef struct FTC_CMapNodeRec_
+  typedef struct  FTC_CMapNodeRec_
   {
     FTC_NodeRec  node;
-    FT_UInt32    first;         /* first character in node      */
-    FT_UInt16    indices[ FTC_CMAP_INDICES_MAX ];  /* array of glyph indices */
+    FT_UInt32    first;                         /* first character in node */
+    FT_UInt16    indices[FTC_CMAP_INDICES_MAX]; /* array of glyph indices  */
 
   } FTC_CMapNodeRec, *FTC_CMapNode;
 
-#define  FTC_CMAP_NODE( x )       ((FTC_CMapNode)( x ))
 
- /* compute node hash value from cmap family and "requested" glyph index */
-#define  FTC_CMAP_HASH(cfam,cquery)   \
-              ((cfam)->hash + ((cquery)->char_code/FTC_CMAP_INDICES_MAX))
+#define FTC_CMAP_NODE( x ) ( (FTC_CMapNode)( x ) )
 
 
- /* if (indices[n] == FTC_CMAP_UNKNOWN), we assume that the corresponding */
- /* glyph indices hasn't been queried through @FT_Get_Glyph_Index yet..   */
- /*                                                                       */
-#define  FTC_CMAP_UNKNOWN  ((FT_UInt16)-1)
+  /* compute node hash value from cmap family and "requested" glyph index */
+#define FTC_CMAP_HASH( cfam, cquery )                                       \
+          ( (cfam)->hash + ( (cquery)->char_code / FTC_CMAP_INDICES_MAX ) )
+
+  /* if (indices[n] == FTC_CMAP_UNKNOWN), we assume that the corresponding */
+  /* glyph indices haven't been queried through FT_Get_Glyph_Index() yet   */
+#define FTC_CMAP_UNKNOWN  ( (FT_UInt16)-1 )
 
 
   /* the charmap query */
-  typedef struct FTC_CMapQueryRec_
+  typedef struct  FTC_CMapQueryRec_
   {
     FTC_QueryRec  query;
     FTC_CMapDesc  desc;
@@ -73,7 +74,8 @@
 
   } FTC_CMapQueryRec, *FTC_CMapQuery;
 
-#define  FTC_CMAP_QUERY( x )  ((FTC_CMapQuery)( x ))
+
+#define FTC_CMAP_QUERY( x )  ( (FTC_CMapQuery)( x ) )
 
 
   /* the charmap family */
@@ -86,8 +88,9 @@
 
   } FTC_CMapFamilyRec, *FTC_CMapFamily;
 
-#define  FTC_CMAP_FAMILY( x )           ((FTC_CMapFamily)( x ))
-#define  FTC_CMAP_FAMILY_MEMORY( x )     FTC_FAMILY(x)->memory
+
+#define FTC_CMAP_FAMILY( x )         ( (FTC_CMapFamily)( x ) )
+#define FTC_CMAP_FAMILY_MEMORY( x )  FTC_FAMILY( x )->memory
 
 
   /*************************************************************************/
@@ -99,7 +102,7 @@
   /*************************************************************************/
 
 
-  /* no need for specific finalizer, we'll use "ftc_node_done" directly */
+  /* no need for specific finalizer; we use "ftc_node_done" directly */
 
   /* initialize a new cmap node */
   FT_CALLBACK_DEF( FT_Error )
@@ -112,7 +115,8 @@
     FT_UNUSED( cache );
 
 
-    first = (cquery->char_code / FTC_CMAP_INDICES_MAX) * FTC_CMAP_INDICES_MAX;
+    first = ( cquery->char_code / FTC_CMAP_INDICES_MAX ) *
+            FTC_CMAP_INDICES_MAX;
 
     cnode->first = first;
     for ( n = 0; n < FTC_CMAP_INDICES_MAX; n++ )
@@ -122,15 +126,15 @@
   }
 
 
- /* compute the weight of a given cmap node */
+  /* compute the weight of a given cmap node */
   FT_CALLBACK_DEF( FT_ULong )
   ftc_cmap_node_weight( FTC_CMapNode  cnode )
   {
-    return sizeof(*cnode);
+    return sizeof ( *cnode );
   }
 
 
- /* compare a cmap node to a given query */
+  /* compare a cmap node to a given query */
   FT_CALLBACK_DEF( FT_Bool )
   ftc_cmap_node_compare( FTC_CMapNode   cnode,
                          FTC_CMapQuery  cquery )
@@ -166,74 +170,66 @@
     /* setup charmap descriptor */
     cfam->desc = *desc;
 
-    /* let's see if the rest is correct too */
+    /* let's see whether the rest is correct too */
     error = FTC_Manager_Lookup_Face( manager, desc->face_id, &face );
     if ( !error )
     {
       FT_UInt      count = face->num_charmaps;
       FT_UInt      index = count;
       FT_CharMap*  cur   = face->charmaps;
-      
+
+
       switch ( desc->type )
       {
-        case FTC_CMAP_BY_INDEX:
-          {
-            index = desc->u.index;
-            hash  = index*33;
-            break;
-          }
-
+      case FTC_CMAP_BY_INDEX:
+        index = desc->u.index;
+        hash  = index * 33;
+        break;
 
-        case FTC_CMAP_BY_ENCODING:
-          {
-            for ( index = 0; index < count; index++, cur++ )
-              if ( cur[0]->encoding == desc->u.encoding )
-                break;
-            
-            hash = index*67;
+      case FTC_CMAP_BY_ENCODING:
+        for ( index = 0; index < count; index++, cur++ )
+          if ( cur[0]->encoding == desc->u.encoding )
             break;
-          }
 
+        hash = index * 67;
+        break;
 
-        case FTC_CMAP_BY_ID:
+      case FTC_CMAP_BY_ID:
+        for ( index = 0; index < count; index++, cur++ )
+        {
+          if ( (FT_UInt)cur[0]->platform_id == desc->u.id.platform &&
+               (FT_UInt)cur[0]->encoding_id == desc->u.id.encoding )
           {
-            for ( index = 0; index < count; index++, cur++ )
-            {
-              if ( (FT_UInt) cur[0]->platform_id == desc->u.id.platform &&
-                   (FT_UInt) cur[0]->encoding_id == desc->u.id.encoding )
-              {
-                hash = ((desc->u.id.platform << 8) | desc->u.id.encoding)*7;
-                break;
-              }
-            }
+            hash = ( ( desc->u.id.platform << 8 ) | desc->u.id.encoding ) * 7;
             break;
           }
+        }
+        break;
 
-        default:
-          ;
+      default:
+        ;
       }
 
       if ( index >= count )
         goto Bad_Descriptor;
 
       /* compute hash value, both in family and query */
-      cfam->index             = index;
-      cfam->hash              = hash ^ FTC_FACE_ID_HASH(desc->face_id);
-      FTC_QUERY(cquery)->hash = FTC_CMAP_HASH(cfam,cquery);
+      cfam->index               = index;
+      cfam->hash                = hash ^ FTC_FACE_ID_HASH( desc->face_id );
+      FTC_QUERY( cquery )->hash = FTC_CMAP_HASH( cfam, cquery );
 
-      error = ftc_family_init( FTC_FAMILY(cfam), FTC_QUERY(cquery), cache );
+      error = ftc_family_init( FTC_FAMILY( cfam ),
+                               FTC_QUERY( cquery ), cache );
     }
-    
-    return error;
 
+    return error;
 
   Bad_Descriptor:
-    FT_ERROR(( "FreeType.cache.cmap.lookup: invalid charmap descriptor\n" ));
+    FT_ERROR(( "ftp_cmap_family_init: invalid charmap descriptor\n" ));
     return FT_Err_Invalid_Argument;
   }
 
 
-
   FT_CALLBACK_DEF( FT_Bool )
   ftc_cmap_family_compare( FTC_CMapFamily  cfam,
                            FTC_CMapQuery   cquery )
@@ -248,32 +244,32 @@
 
     switch ( cfam->desc.type )
     {
-      case FTC_CMAP_BY_INDEX:
-        result = ( cfam->desc.u.index == cquery->desc->u.index );
-        break;
+    case FTC_CMAP_BY_INDEX:
+      result = ( cfam->desc.u.index == cquery->desc->u.index );
+      break;
 
-      case FTC_CMAP_BY_ENCODING:
-        result = ( cfam->desc.u.encoding == cquery->desc->u.encoding );
-        break;
+    case FTC_CMAP_BY_ENCODING:
+      result = ( cfam->desc.u.encoding == cquery->desc->u.encoding );
+      break;
 
-      case FTC_CMAP_BY_ID:
-        result = ( cfam->desc.u.id.platform == cquery->desc->u.id.platform &&
-                   cfam->desc.u.id.encoding == cquery->desc->u.id.encoding );
-        break;
+    case FTC_CMAP_BY_ID:
+      result = ( cfam->desc.u.id.platform == cquery->desc->u.id.platform &&
+                 cfam->desc.u.id.encoding == cquery->desc->u.id.encoding );
+      break;
 
-      default:
-        ;
+    default:
+      ;
     }
 
-    if (result)
+    if ( result )
     {
       /* when found, update the 'family' and 'hash' field of the query */
-      FTC_QUERY(cquery)->family = FTC_FAMILY(cfam);
-      FTC_QUERY(cquery)->hash   = FTC_CMAP_HASH(cfam,cquery);
+      FTC_QUERY( cquery )->family = FTC_FAMILY( cfam );
+      FTC_QUERY( cquery )->hash   = FTC_CMAP_HASH( cfam, cquery );
     }
 
   Exit:
-    return FT_BOOL(result);
+    return FT_BOOL( result );
   }
 
 
@@ -286,25 +282,24 @@
   /*************************************************************************/
 
 
-
   FT_CALLBACK_TABLE_DEF
   const FTC_Cache_ClassRec  ftc_cmap_cache_class =
   {
-    sizeof( FTC_CacheRec ),
-    (FTC_Cache_InitFunc)       ftc_cache_init,
-    (FTC_Cache_ClearFunc)      ftc_cache_clear,
-    (FTC_Cache_DoneFunc)       ftc_cache_done,
-
-    sizeof( FTC_CMapFamilyRec ),
-    (FTC_Family_InitFunc)      ftc_cmap_family_init,
-    (FTC_Family_CompareFunc)   ftc_cmap_family_compare,
-    (FTC_Family_DoneFunc)      ftc_family_done,
-
-    sizeof( FTC_CMapNodeRec ),
-    (FTC_Node_InitFunc)        ftc_cmap_node_init,
-    (FTC_Node_WeightFunc)      ftc_cmap_node_weight,
-    (FTC_Node_CompareFunc)     ftc_cmap_node_compare,
-    (FTC_Node_DoneFunc)        ftc_node_done
+    sizeof ( FTC_CacheRec ),
+    (FTC_Cache_InitFunc) ftc_cache_init,
+    (FTC_Cache_ClearFunc)ftc_cache_clear,
+    (FTC_Cache_DoneFunc) ftc_cache_done,
+
+    sizeof ( FTC_CMapFamilyRec ),
+    (FTC_Family_InitFunc)   ftc_cmap_family_init,
+    (FTC_Family_CompareFunc)ftc_cmap_family_compare,
+    (FTC_Family_DoneFunc)   ftc_family_done,
+
+    sizeof ( FTC_CMapNodeRec ),
+    (FTC_Node_InitFunc)   ftc_cmap_node_init,
+    (FTC_Node_WeightFunc) ftc_cmap_node_weight,
+    (FTC_Node_CompareFunc)ftc_cmap_node_compare,
+    (FTC_Node_DoneFunc)   ftc_node_done
   };
 
 
@@ -333,42 +328,45 @@
     FT_Error          error;
     FT_UInt           gindex = 0;
 
+
     if ( !cache || !desc )
     {
-      FT_ERROR(( "FTC_CMapCache_Lookup: bad arguments, returning 0 !!\n" ));
+      FT_ERROR(( "FTC_CMapCache_Lookup: bad arguments, returning 0!\n" ));
       return 0;
     }
 
     cquery.desc      = desc;
     cquery.char_code = char_code;
 
-    error = ftc_cache_lookup( FTC_CACHE(cache),
-                              FTC_QUERY(&cquery),
-                              (FTC_Node*) &node );
+    error = ftc_cache_lookup( FTC_CACHE( cache ),
+                              FTC_QUERY( &cquery ),
+                              (FTC_Node*)&node );
     if ( !error )
     {
       FT_UInt  offset = (FT_UInt)( char_code - node->first );
 
+
       gindex = node->indices[offset];
       if ( gindex == FTC_CMAP_UNKNOWN )
       {
-        FT_Face     face;
+        FT_Face  face;
 
 
-        /* we need to use @FT_Get_Char_Index */
+        /* we need to use FT_Get_Char_Index */
         gindex = 0;
 
         error = FTC_Manager_Lookup_Face( FTC_CACHE(cache)->manager,
                                          desc->face_id,
                                          &face );
-        if (!error)
+        if ( !error )
         {
-          FT_CharMap   old, cmap  = NULL;
-          FT_UInt      cmap_index;
+          FT_CharMap  old, cmap  = NULL;
+          FT_UInt     cmap_index;
+
 
           /* save old charmap, select new one */
           old        = face->charmap;
-          cmap_index = FTC_CMAP_FAMILY( FTC_QUERY(&cquery)->family )->index;
+          cmap_index = FTC_CMAP_FAMILY( FTC_QUERY( &cquery )->family )->index;
           cmap       = face->charmaps[cmap_index];
 
           FT_Set_Charmap( face, cmap );
diff --git a/src/cache/ftcglyph.c b/src/cache/ftcglyph.c
index d1b5d49..aa21228 100644
--- a/src/cache/ftcglyph.c
+++ b/src/cache/ftcglyph.c
@@ -27,25 +27,23 @@
 #include "ftcerror.h"
 
 
-
-
   /* create a new chunk node, setting its cache index and ref count */
   FT_EXPORT_DEF( void )
   ftc_glyph_node_init( FTC_GlyphNode     gnode,
                        FT_UInt           gindex,
                        FTC_GlyphFamily   gfam )
   {
-    FT_UInt    len;
-    FT_UInt    start = FTC_GLYPH_FAMILY_START(gfam,gindex);
+    FT_UInt  len;
+    FT_UInt  start = FTC_GLYPH_FAMILY_START( gfam, gindex );
 
 
-    gnode->item_start = (FT_UShort) start;
+    gnode->item_start = (FT_UShort)start;
 
     len = gfam->item_total - start;
     if ( len > gfam->item_count )
       len = gfam->item_count;
 
-    gnode->item_count = (FT_UShort) len;
+    gnode->item_count = (FT_UShort)len;
     gfam->family.num_nodes++;
   }
 
@@ -58,18 +56,18 @@
     gnode->item_count = 0;
     gnode->item_start = 0;
 
-    ftc_node_done( FTC_NODE(gnode), cache );
+    ftc_node_done( FTC_NODE( gnode ), cache );
   }
 
 
   FT_EXPORT_DEF( FT_Bool )
-  ftc_glyph_node_compare( FTC_GlyphNode    gnode,
-                          FTC_GlyphQuery   gquery )
+  ftc_glyph_node_compare( FTC_GlyphNode   gnode,
+                          FTC_GlyphQuery  gquery )
   {
-    FT_UInt  start     = (FT_UInt) gnode->item_start;
-    FT_UInt  count     = (FT_UInt) gnode->item_count;
+    FT_UInt  start = (FT_UInt)gnode->item_start;
+    FT_UInt  count = (FT_UInt)gnode->item_count;
 
-    return FT_BOOL( (FT_UInt)(gquery->gindex - start) < count );
+    return FT_BOOL( (FT_UInt)( gquery->gindex - start ) < count );
   }
 
 
@@ -93,14 +91,14 @@
     FT_Error  error;
 
 
-    error = ftc_family_init( FTC_FAMILY(gfam), FTC_QUERY(gquery), cache );
-    if (!error)
+    error = ftc_family_init( FTC_FAMILY( gfam ), FTC_QUERY( gquery ), cache );
+    if ( !error )
     {
       gfam->hash       = hash;
       gfam->item_total = item_total;
       gfam->item_count = item_count;
       
-      FTC_GLYPH_FAMILY_FOUND(gfam,gquery);
+      FTC_GLYPH_FAMILY_FOUND( gfam, gquery );
     }
 
     return error;
@@ -110,9 +108,8 @@
   FT_EXPORT_DEF( void )
   ftc_glyph_family_done( FTC_GlyphFamily  gfam )
   {
-    ftc_family_done( FTC_FAMILY(gfam) );
+    ftc_family_done( FTC_FAMILY( gfam ) );
   }
 
 
-
 /* END */
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 291b1cc..39f0aa0 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -37,7 +37,7 @@
   } FTC_ImageNodeRec, *FTC_ImageNode;
 
 
-#define FTC_IMAGE_NODE( x )         ((FTC_ImageNode)( x ))
+#define FTC_IMAGE_NODE( x )         ( (FTC_ImageNode)( x ) )
 #define FTC_IMAGE_NODE_GINDEX( x )  FTC_GLYPH_NODE_GINDEX( x )
 
 
@@ -49,8 +49,8 @@
 
   } FTC_ImageQueryRec, *FTC_ImageQuery;
 
-#define  FTC_IMAGE_QUERY(x)  ((FTC_ImageQuery)(x))
 
+#define FTC_IMAGE_QUERY( x )  ( (FTC_ImageQuery)( x ) )
 
 
   /* the glyph image set type */
@@ -62,8 +62,8 @@
   } FTC_ImageFamilyRec, *FTC_ImageFamily;
 
 
-#define  FTC_IMAGE_FAMILY( x )         ((FTC_ImageFamily)( x ))
-#define  FTC_IMAGE_FAMILY_MEMORY( x )  FTC_GLYPH_FAMILY_MEMORY( &(x)->gfam )
+#define FTC_IMAGE_FAMILY( x )         ( (FTC_ImageFamily)( x ) )
+#define FTC_IMAGE_FAMILY_MEMORY( x )  FTC_GLYPH_FAMILY_MEMORY( &(x)->gfam )
 
 
   /*************************************************************************/
@@ -85,9 +85,9 @@
       FT_Done_Glyph( inode->glyph );
       inode->glyph = NULL;
     }
-    ftc_glyph_node_done( FTC_GLYPH_NODE(inode), cache );
-  }
 
+    ftc_glyph_node_done( FTC_GLYPH_NODE( inode ), cache );
+  }
 
 
   /* initialize a new glyph image node */
@@ -96,26 +96,26 @@
                        FTC_GlyphQuery  gquery,
                        FTC_Cache       cache )
   {
-    FTC_ImageFamily ifam = FTC_IMAGE_FAMILY( gquery->query.family );
-    FT_Error        error;
-    FT_Face         face;
-    FT_Size         size;
+    FTC_ImageFamily  ifam = FTC_IMAGE_FAMILY( gquery->query.family );
+    FT_Error         error;
+    FT_Face          face;
+    FT_Size          size;
 
 
     /* initialize its inner fields */
-    ftc_glyph_node_init( FTC_GLYPH_NODE(inode),
+    ftc_glyph_node_init( FTC_GLYPH_NODE( inode ),
                          gquery->gindex,
-                         FTC_GLYPH_FAMILY(ifam) );
+                         FTC_GLYPH_FAMILY( ifam ) );
 
     /* we will now load the glyph image */
-    error = FTC_Manager_Lookup_Size( FTC_FAMILY(ifam)->cache->manager,
+    error = FTC_Manager_Lookup_Size( FTC_FAMILY( ifam )->cache->manager,
                                      &ifam->desc.font,
                                      &face, &size );
     if ( !error )
     {
-      FT_UInt  gindex      = FTC_GLYPH_NODE_GINDEX(inode);
-      FT_UInt  load_flags  = FT_LOAD_DEFAULT;
-      FT_UInt  type        = ifam->desc.type;
+      FT_UInt  gindex     = FTC_GLYPH_NODE_GINDEX( inode );
+      FT_UInt  load_flags = FT_LOAD_DEFAULT;
+      FT_UInt  type       = ifam->desc.type;
 
 
       if ( FTC_IMAGE_FORMAT( type ) == ftc_image_format_bitmap )
@@ -242,11 +242,11 @@
                                      &face );
     if ( !error )
     {
-      error = ftc_glyph_family_init( FTC_GLYPH_FAMILY(ifam),
+      error = ftc_glyph_family_init( FTC_GLYPH_FAMILY( ifam ),
                                      FTC_IMAGE_DESC_HASH( &ifam->desc ),
                                      1,
                                      face->num_glyphs,
-                                     FTC_GLYPH_QUERY(iquery),
+                                     FTC_GLYPH_QUERY( iquery ),
                                      cache );
     }
 
@@ -263,7 +263,7 @@
 
     result = FT_BOOL( FTC_IMAGE_DESC_COMPARE( &ifam->desc, &iquery->desc ) );
     if ( result )
-      FTC_GLYPH_FAMILY_FOUND(ifam,iquery);
+      FTC_GLYPH_FAMILY_FOUND( ifam, iquery );
 
     return result;
   }
@@ -282,21 +282,21 @@
   FT_CALLBACK_TABLE_DEF
   const FTC_Cache_ClassRec  ftc_image_cache_class =
   {
-    sizeof( FTC_CacheRec ),
-    (FTC_Cache_InitFunc)       ftc_cache_init,
-    (FTC_Cache_ClearFunc)      ftc_cache_clear,
-    (FTC_Cache_DoneFunc)       ftc_cache_done,
-
-    sizeof( FTC_ImageFamilyRec ),
-    (FTC_Family_InitFunc)      ftc_image_family_init,
-    (FTC_Family_CompareFunc)   ftc_image_family_compare,
-    (FTC_Family_DoneFunc)      ftc_glyph_family_done,
-
-    sizeof( FTC_ImageNodeRec ),
-    (FTC_Node_InitFunc)        ftc_image_node_init,
-    (FTC_Node_WeightFunc)      ftc_image_node_weight,
-    (FTC_Node_CompareFunc)     ftc_glyph_node_compare,
-    (FTC_Node_DoneFunc)        ftc_image_node_done
+    sizeof ( FTC_CacheRec ),
+    (FTC_Cache_InitFunc) ftc_cache_init,
+    (FTC_Cache_ClearFunc)ftc_cache_clear,
+    (FTC_Cache_DoneFunc) ftc_cache_done,
+
+    sizeof ( FTC_ImageFamilyRec ),
+    (FTC_Family_InitFunc)   ftc_image_family_init,
+    (FTC_Family_CompareFunc)ftc_image_family_compare,
+    (FTC_Family_DoneFunc)   ftc_glyph_family_done,
+
+    sizeof ( FTC_ImageNodeRec ),
+    (FTC_Node_InitFunc)   ftc_image_node_init,
+    (FTC_Node_WeightFunc) ftc_image_node_weight,
+    (FTC_Node_CompareFunc)ftc_glyph_node_compare,
+    (FTC_Node_DoneFunc)   ftc_image_node_done
   };
 
 
@@ -339,17 +339,17 @@
     iquery.gquery.gindex = gindex;
     iquery.desc          = *desc;
 
-    error = ftc_cache_lookup( FTC_CACHE(cache),
-                              FTC_QUERY(&iquery),
-                              (FTC_Node*) &node );
+    error = ftc_cache_lookup( FTC_CACHE( cache ),
+                              FTC_QUERY( &iquery ),
+                              (FTC_Node*)&node );
     if ( !error )
     {
       *aglyph = node->glyph;
 
-      if (anode)
+      if ( anode )
       {
         *anode = (FTC_Node)node;
-        FTC_NODE(node)->ref_count++;
+        FTC_NODE( node )->ref_count++;
       }
     }
 
@@ -357,8 +357,7 @@
   }
 
 
-
- /* backwards-compatibility functions */
+  /* backwards-compatibility functions */
 
   FT_EXPORT_DEF( FT_Error )
   FTC_Image_Cache_New( FTC_Manager       manager,
@@ -376,11 +375,12 @@
   {
     FTC_ImageDesc  desc0;
 
+
     if ( !desc )
       return FT_Err_Invalid_Argument;
 
     desc0.font = desc->font;
-    desc0.type = (FT_UInt32) desc->image_type;
+    desc0.type = (FT_UInt32)desc->image_type;
 
     return FTC_ImageCache_Lookup( (FTC_ImageCache)icache,
                                    &desc0,
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 50941ea..efc74c8 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -62,9 +62,9 @@
 
 
   FT_CALLBACK_DEF( FT_Error )
-  ftc_face_node_init( FTC_FaceNode node,
-                      FTC_FaceID   face_id,
-                      FTC_Manager  manager )
+  ftc_face_node_init( FTC_FaceNode  node,
+                      FTC_FaceID    face_id,
+                      FTC_Manager   manager )
   {
     FT_Error  error;
 
@@ -84,7 +84,7 @@
   }
 
 
-  /* helper function for ftc_manager_done_face() */
+  /* helper function for ftc_face_node_done() */
   FT_CALLBACK_DEF( FT_Bool )
   ftc_size_node_select( FTC_SizeNode  node,
                         FT_Face       face )
@@ -116,8 +116,8 @@
   const FT_LruList_ClassRec  ftc_face_list_class =
   {
     sizeof ( FT_LruListRec ),
-    (FT_LruList_InitFunc)   0,
-    (FT_LruList_DoneFunc)   0,
+    (FT_LruList_InitFunc)0,
+    (FT_LruList_DoneFunc)0,
 
     sizeof ( FTC_FaceNodeRec ),
     (FT_LruNode_InitFunc)   ftc_face_node_init,
@@ -156,7 +156,6 @@
   }
 
 
-
   /*************************************************************************/
   /*************************************************************************/
   /*****                                                               *****/
@@ -258,8 +257,8 @@
   const FT_LruList_ClassRec  ftc_size_list_class =
   {
     sizeof ( FT_LruListRec ),
-    (FT_LruList_InitFunc)   0,
-    (FT_LruList_DoneFunc)   0,
+    (FT_LruList_InitFunc)0,
+    (FT_LruList_DoneFunc)0,
 
     sizeof ( FTC_SizeNodeRec ),
     (FT_LruNode_InitFunc)   ftc_size_node_init,
@@ -269,7 +268,6 @@
   };
 
 
-
   /* documentation is in ftcache.h */
 
   FT_EXPORT_DEF( FT_Error )
@@ -353,24 +351,27 @@
     FTC_FamilyEntry  entry;
     FT_Error         error = 0;
 
-   /* re-allocate table size when needed */
+
+    /* re-allocate table size when needed */
     if ( table->free == FTC_FAMILY_ENTRY_NONE && table->count >= table->size )
     {
       FT_UInt  old_size = table->size;
       FT_UInt  new_size, index;
 
+
       if ( old_size == 0 )
         new_size = 8;
       else
       {
-        new_size = old_size*2;
+        new_size = old_size * 2;
 
         /* check for (unlikely) overflow */
         if ( new_size < old_size )
           new_size = 65534;
       }
 
-      if ( REALLOC_ARRAY( table->entries, old_size, new_size, FTC_FamilyEntryRec ) )
+      if ( REALLOC_ARRAY( table->entries, old_size, new_size,
+                          FTC_FamilyEntryRec ) )
         return error;
 
       table->size = new_size;
@@ -378,9 +379,9 @@
       entry       = table->entries + old_size;
       table->free = old_size;
 
-      for ( index = old_size; index+1 < new_size; index++, entry++ )
+      for ( index = old_size; index + 1 < new_size; index++, entry++ )
       {
-        entry->link  = index+1;
+        entry->link  = index + 1;
         entry->index = index;
       }
 
@@ -399,7 +400,7 @@
     }
     else
     {
-      FT_ERROR(( "FreeType.cache.alloc_set: internal bug !!" ));
+      FT_ERROR(( "ftc_family_table_alloc: internal bug!" ));
       return FT_Err_Invalid_Argument;
     }
 
@@ -420,8 +421,9 @@
     {
       FTC_FamilyEntry  entry = table->entries + index;
 
+
       if ( entry->link != FTC_FAMILY_ENTRY_NONE )
-        FT_ERROR(( "FreeType.cache.set_free: internal bug !!\n" ));
+        FT_ERROR(( "ftc_family_table_free: internal bug!\n" ));
       else
       {
         entry->link = table->free;
@@ -569,10 +571,9 @@
   }
 
 
-
-
 #ifdef FT_DEBUG_ERROR
-  FT_EXPORT_DEF(void)
+
+  FT_EXPORT_DEF( void )
   FTC_Manager_Check( FTC_Manager  manager )
   {
     FTC_Node  node, first;
@@ -595,7 +596,7 @@
 
         if ( (FT_UInt)node->fam_index >= manager->families.count ||
              entry->link              != FTC_FAMILY_ENTRY_NONE  )
-          FT_ERROR(( "FTC_Manager_Compress: invalid node (family index = %ld\n",
+          FT_ERROR(( "FTC_Manager_Check: invalid node (family index = %ld\n",
                      node->fam_index ));
         else
         {
@@ -604,13 +605,12 @@
         }
 
         node = node->mru_next;
-      }
-      while (node != first);
+
+      } while ( node != first );
 
       if ( weight != manager->cur_weight )
-        FT_ERROR((
-          "FTC_Manager_Compress: invalid weight %ld instead of %ld\n",
-          manager->cur_weight, weight ));
+        FT_ERROR(( "FTC_Manager_Check: invalid weight %ld instead of %ld\n",
+                   manager->cur_weight, weight ));
     }
 
     /* check circular list */
@@ -624,15 +624,16 @@
       {
         count++;
         node = node->mru_next;
-      }
-      while (node != first);
+
+      } while ( node != first );
 
       if ( count != manager->num_nodes )
         FT_ERROR((
-          "FTC_Manager_Compress: invalid cache node count %d instead of %d\n",
+          "FTC_Manager_Check: invalid cache node count %d instead of %d\n",
           manager->num_nodes, count ));
     }
   }
+
 #endif /* FT_DEBUG_ERROR */
 
 
@@ -682,6 +683,8 @@
   }
 
 
+  /* documentation is in ftcmanag.h */
+
   FT_EXPORT_DEF( FT_Error )
   FTC_Manager_Register_Cache( FTC_Manager      manager,
                               FTC_Cache_Class  clazz,
@@ -746,12 +749,9 @@
   }
 
 
+  /* documentation is in ftcmanag.h */
 
-
-
-
-
-  FT_EXPORT_DEF(void)
+  FT_EXPORT_DEF( void )
   FTC_Node_Unref( FTC_Node     node,
                   FTC_Manager  manager )
   {
diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c
index 5711557..70ed44b 100644
--- a/src/cache/ftcsbits.c
+++ b/src/cache/ftcsbits.c
@@ -32,17 +32,17 @@
 #define FTC_SBIT_ITEMS_PER_NODE  16
 
 
-  typedef struct FTC_SBitNodeRec_*    FTC_SBitNode;
+  typedef struct FTC_SBitNodeRec_*  FTC_SBitNode;
 
-  typedef struct FTC_SBitNodeRec_
+  typedef struct  FTC_SBitNodeRec_
   {
-    FTC_GlyphNodeRec   gnode;
-    FTC_SBitRec        sbits[ FTC_SBIT_ITEMS_PER_NODE ];
+    FTC_GlyphNodeRec  gnode;
+    FTC_SBitRec       sbits[FTC_SBIT_ITEMS_PER_NODE];
 
   } FTC_SBitNodeRec;
 
-#define  FTC_SBIT_NODE(x)   ((FTC_SBitNode)(x))
 
+#define FTC_SBIT_NODE( x )  ( (FTC_SBitNode)( x ) )
 
 
   typedef struct  FTC_SBitQueryRec_
@@ -52,23 +52,23 @@
 
   } FTC_SBitQueryRec, *FTC_SBitQuery;
 
-#define  FTC_SBIT_QUERY(x)  ((FTC_SBitQuery)(x))
 
+#define FTC_SBIT_QUERY( x ) ( (FTC_SBitQuery)( x ) )
 
 
   typedef struct FTC_SBitFamilyRec_*  FTC_SBitFamily;
 
- /* sbit family structure */
+  /* sbit family structure */
   typedef struct  FTC_SBitFamilyRec_
   {
     FTC_GlyphFamilyRec  gfam;
     FTC_ImageDesc       desc;
 
   } FTC_SBitFamilyRec;
+ 
   
-#define FTC_SBIT_FAMILY( x )         ( (FTC_SBitFamily)(x) )
-#define FTC_SBIT_FAMILY_MEMORY( x )  FTC_GLYPH_FAMILY_MEMORY( &(x)->cset )
-
+#define FTC_SBIT_FAMILY( x )         ( (FTC_SBitFamily)( x ) )
+#define FTC_SBIT_FAMILY_MEMORY( x )  FTC_GLYPH_FAMILY_MEMORY( &( x )->cset )
 
 
   /*************************************************************************/
@@ -102,54 +102,54 @@
   }
 
 
-
   FT_CALLBACK_DEF( void )
   ftc_sbit_node_done( FTC_SBitNode  snode,
                       FTC_Cache     cache )
   {
     FTC_SBit   sbit  = snode->sbits;
-    FT_UInt    count = FTC_GLYPH_NODE(snode)->item_count;
+    FT_UInt    count = FTC_GLYPH_NODE( snode )->item_count;
     FT_Memory  memory = cache->memory;
 
 
     for ( ; count > 0; sbit++, count-- )
       FREE( sbit->buffer );
 
-    ftc_glyph_node_done( FTC_GLYPH_NODE(snode), cache );
+    ftc_glyph_node_done( FTC_GLYPH_NODE( snode ), cache );
   }
 
 
   static FT_Error
-  ftc_sbit_node_load( FTC_SBitNode   snode,
-                      FTC_Manager    manager,
-                      FTC_SBitFamily sfam,
-                      FT_UInt        gindex,
-                      FT_ULong      *asize )
+  ftc_sbit_node_load( FTC_SBitNode    snode,
+                      FTC_Manager     manager,
+                      FTC_SBitFamily  sfam,
+                      FT_UInt         gindex,
+                      FT_ULong       *asize )
   {
-    FT_Error          error;
-    FTC_GlyphNode     gnode = FTC_GLYPH_NODE(snode);
-    FT_Memory         memory;
-    FT_Face           face;
-    FT_Size           size;
-    FTC_SBit          sbit;
+    FT_Error       error;
+    FTC_GlyphNode  gnode = FTC_GLYPH_NODE( snode );
+    FT_Memory      memory;
+    FT_Face        face;
+    FT_Size        size;
+    FTC_SBit       sbit;
+
 
     if ( gindex <  (FT_UInt)gnode->item_start                     ||
          gindex >= (FT_UInt)gnode->item_start + gnode->item_count )
     {
-      FT_ERROR(( "FreeType.cache.sbit_load: invalid glyph index" ));
+      FT_ERROR(( "ftc_sbit_node_load: invalid glyph index" ));
       return FTC_Err_Invalid_Argument;
     }
 
     memory = manager->library->memory;
 
-    sbit = snode->sbits + (gindex - gnode->item_start);
+    sbit = snode->sbits + ( gindex - gnode->item_start );
 
     error = FTC_Manager_Lookup_Size( manager, &sfam->desc.font,
                                      &face, &size );
     if ( !error )
     {
-      FT_UInt   load_flags  = FT_LOAD_DEFAULT;
-      FT_UInt   type  = sfam->desc.type;
+      FT_UInt  load_flags = FT_LOAD_DEFAULT;
+      FT_UInt  type       = sfam->desc.type;
 
 
       /* determine load flags, depending on the font description's */
@@ -167,7 +167,7 @@
       else
       {
         FT_ERROR((
-          "FreeType.cache.sbit_load: cannot load scalable glyphs in an"
+          "ftc_sbit_node_load: cannot load scalable glyphs in an"
           " sbit cache, please check your arguments!\n" ));
         error = FTC_Err_Invalid_Argument;
         goto Exit;
@@ -215,14 +215,14 @@
              CHECK_CHAR( xadvance )          &&
              CHECK_CHAR( yadvance )          )
         {
-          sbit->width    = (FT_Byte) bitmap->width;
-          sbit->height   = (FT_Byte) bitmap->rows;
-          sbit->pitch    = (FT_Char) bitmap->pitch;
-          sbit->left     = (FT_Char) slot->bitmap_left;
-          sbit->top      = (FT_Char) slot->bitmap_top;
-          sbit->xadvance = (FT_Char) xadvance;
-          sbit->yadvance = (FT_Char) yadvance;
-          sbit->format   = (FT_Byte) bitmap->pixel_mode;
+          sbit->width    = (FT_Byte)bitmap->width;
+          sbit->height   = (FT_Byte)bitmap->rows;
+          sbit->pitch    = (FT_Char)bitmap->pitch;
+          sbit->left     = (FT_Char)slot->bitmap_left;
+          sbit->top      = (FT_Char)slot->bitmap_top;
+          sbit->xadvance = (FT_Char)xadvance;
+          sbit->yadvance = (FT_Char)yadvance;
+          sbit->format   = (FT_Byte)bitmap->pixel_mode;
 
           /* grab the bitmap when possible - this is a hack !! */
           if ( slot->flags & ft_glyph_own_bitmap )
@@ -238,16 +238,16 @@
 
           /* now, compute size */
           if ( asize )
-            *asize = ABS(sbit->pitch) * sbit->height;
+            *asize = ABS( sbit->pitch ) * sbit->height;
 
         }  /* glyph dimensions ok */
 
       } /* glyph loading successful */
 
-      /* ignore the errors that might have occurred --        */
-      /* we recognize unloaded glyphs with `sbit.buffer == 0' */
-      /* and 'width == 255', 'height == 0'                    */
-      /*                                                      */
+      /* ignore the errors that might have occurred --   */
+      /* we mark unloaded glyphs with `sbit.buffer == 0' */
+      /* and 'width == 255', 'height == 0'               */
+      /*                                                 */
       if ( error )
       {
         sbit->width = 255;
@@ -268,17 +268,18 @@
   {
     FT_Error  error;
 
-    ftc_glyph_node_init( FTC_GLYPH_NODE(snode),
+
+    ftc_glyph_node_init( FTC_GLYPH_NODE( snode ),
                          gquery->gindex,
-                         FTC_GLYPH_FAMILY(gquery->query.family) );
+                         FTC_GLYPH_FAMILY( gquery->query.family ) );
 
     error = ftc_sbit_node_load( snode,
                                 cache->manager,
-                                FTC_SBIT_FAMILY( FTC_QUERY(gquery)->family ),
+                                FTC_SBIT_FAMILY( FTC_QUERY( gquery )->family ),
                                 gquery->gindex,
                                 NULL );
     if ( error )
-      ftc_glyph_node_done( FTC_GLYPH_NODE(snode), cache );
+      ftc_glyph_node_done( FTC_GLYPH_NODE( snode ), cache );
 
     return error;
   }
@@ -287,7 +288,7 @@
   FT_CALLBACK_DEF( FT_ULong )
   ftc_sbit_node_weight( FTC_SBitNode  snode )
   {
-    FTC_GlyphNode  gnode = FTC_GLYPH_NODE(snode);
+    FTC_GlyphNode  gnode = FTC_GLYPH_NODE( snode );
     FT_UInt        count = gnode->item_count;
     FTC_SBit       sbit  = snode->sbits;
     FT_Int         pitch;
@@ -295,10 +296,10 @@
 
 
     /* the node itself */
-    size  = sizeof ( *snode );
+    size = sizeof ( *snode );
 
     /* the sbit records */
-    size += FTC_GLYPH_NODE(snode)->item_count * sizeof ( FTC_SBitRec );
+    size += FTC_GLYPH_NODE( snode )->item_count * sizeof ( FTC_SBitRec );
 
     for ( ; count > 0; count--, sbit++ )
     {
@@ -322,25 +323,28 @@
                          FTC_SBitQuery  squery,
                          FTC_Cache      cache )
   {
-    FTC_GlyphQuery  gquery = FTC_GLYPH_QUERY(squery);
-    FTC_GlyphNode   gnode  = FTC_GLYPH_NODE(snode);
+    FTC_GlyphQuery  gquery = FTC_GLYPH_QUERY( squery );
+    FTC_GlyphNode   gnode  = FTC_GLYPH_NODE( snode );
     FT_Bool         result;
 
+
     result = ftc_glyph_node_compare( gnode, gquery );
     if ( result )
     {
       /* check if we need to load the glyph bitmap now */
       FT_UInt   gindex = gquery->gindex;
-      FTC_SBit  sbit   = snode->sbits + (gindex - gnode->item_start);
+      FTC_SBit  sbit   = snode->sbits + ( gindex - gnode->item_start );
+
 
       if ( sbit->buffer == NULL && sbit->width != 255 )
       {
         FT_ULong  size;
 
+
         /* yes, it's safe to ignore errors here */
         ftc_sbit_node_load( snode,
                             cache->manager,
-                            FTC_SBIT_FAMILY( FTC_QUERY(squery)->family ),
+                            FTC_SBIT_FAMILY( FTC_QUERY( squery )->family ),
                             gindex,
                             &size );
 
@@ -370,6 +374,7 @@
     FT_Error     error;
     FT_Face      face;
 
+
     sfam->desc = squery->desc;
 
     /* we need to compute "cquery.item_total" now */
@@ -378,11 +383,11 @@
                                      &face );
     if ( !error )
     {
-      error = ftc_glyph_family_init( FTC_GLYPH_FAMILY(sfam),
+      error = ftc_glyph_family_init( FTC_GLYPH_FAMILY( sfam ),
                                      FTC_IMAGE_DESC_HASH( &sfam->desc ),
                                      FTC_SBIT_ITEMS_PER_NODE,
                                      face->num_glyphs,
-                                     FTC_GLYPH_QUERY(squery),
+                                     FTC_GLYPH_QUERY( squery ),
                                      cache );
     }
 
@@ -391,24 +396,23 @@
 
 
   FT_CALLBACK_DEF( FT_Bool )
-  ftc_sbit_family_compare( FTC_SBitFamily    sfam,
-                        FTC_SBitQuery  squery )
+  ftc_sbit_family_compare( FTC_SBitFamily  sfam,
+                           FTC_SBitQuery   squery )
   {
     FT_Bool  result;
 
 
     /* we need to set the "cquery.cset" field or our query for */
-    /* faster glyph comparisons in ftc_sbit_node_compare..         */
-    /*                                                             */
+    /* faster glyph comparisons in ftc_sbit_node_compare       */
+    /*                                                         */
     result = FT_BOOL( FTC_IMAGE_DESC_COMPARE( &sfam->desc, &squery->desc ) );
     if ( result )
-      FTC_GLYPH_FAMILY_FOUND(sfam,squery);
+      FTC_GLYPH_FAMILY_FOUND( sfam, squery );
 
     return result;
   }
 
 
-
   /*************************************************************************/
   /*************************************************************************/
   /*****                                                               *****/
@@ -418,25 +422,24 @@
   /*************************************************************************/
 
 
-
   FT_CALLBACK_TABLE_DEF
   const FTC_Cache_ClassRec  ftc_sbit_cache_class =
   {
-    sizeof( FTC_CacheRec ),
-    (FTC_Cache_InitFunc)  ftc_cache_init,
-    (FTC_Cache_ClearFunc) ftc_cache_clear,
-    (FTC_Cache_DoneFunc)  ftc_cache_done,
-
-    sizeof( FTC_SBitFamilyRec ),
-    (FTC_Family_InitFunc)    ftc_sbit_family_init,
-    (FTC_Family_CompareFunc) ftc_sbit_family_compare,
-    (FTC_Family_DoneFunc)    ftc_glyph_family_done,
-
-    sizeof( FTC_SBitNodeRec ),
-    (FTC_Node_InitFunc)     ftc_sbit_node_init,
-    (FTC_Node_WeightFunc)   ftc_sbit_node_weight,
-    (FTC_Node_CompareFunc)  ftc_sbit_node_compare,
-    (FTC_Node_DoneFunc)     ftc_sbit_node_done
+    sizeof ( FTC_CacheRec ),
+    (FTC_Cache_InitFunc) ftc_cache_init,
+    (FTC_Cache_ClearFunc)ftc_cache_clear,
+    (FTC_Cache_DoneFunc) ftc_cache_done,
+
+    sizeof ( FTC_SBitFamilyRec ),
+    (FTC_Family_InitFunc)   ftc_sbit_family_init,
+    (FTC_Family_CompareFunc)ftc_sbit_family_compare,
+    (FTC_Family_DoneFunc)   ftc_glyph_family_done,
+
+    sizeof ( FTC_SBitNodeRec ),
+    (FTC_Node_InitFunc)   ftc_sbit_node_init,
+    (FTC_Node_WeightFunc) ftc_sbit_node_weight,
+    (FTC_Node_CompareFunc)ftc_sbit_node_compare,
+    (FTC_Node_DoneFunc)   ftc_sbit_node_done
   };
 
 
@@ -465,7 +468,8 @@
     FTC_SBitQueryRec  squery;
     FTC_SBitNode      node;
 
-    /* argument checks delayed to ftc_cache_lookup */
+
+    /* other argument checks delayed to ftc_cache_lookup */
     if ( !ansbit )
       return FTC_Err_Invalid_Argument;
 
@@ -477,25 +481,24 @@
     squery.gquery.gindex = gindex;
     squery.desc          = *desc;
 
-    error = ftc_cache_lookup( FTC_CACHE(cache),
-                              FTC_QUERY(&squery),
-                              (FTC_Node*) &node );
+    error = ftc_cache_lookup( FTC_CACHE( cache ),
+                              FTC_QUERY( &squery ),
+                              (FTC_Node*)&node );
     if ( !error )
     {
-      *ansbit = node->sbits + (gindex - FTC_GLYPH_NODE(node)->item_start);
+      *ansbit = node->sbits + ( gindex - FTC_GLYPH_NODE( node )->item_start );
 
       if ( anode )
       {
-        *anode = FTC_NODE(node);
-        FTC_NODE(node)->ref_count ++;
+        *anode = FTC_NODE( node );
+        FTC_NODE( node )->ref_count++;
       }
     }
     return error;
   }
 
 
-
- /* backwards-compatibility functions */
+  /* backwards-compatibility functions */
 
   FT_EXPORT_DEF( FT_Error )
   FTC_SBit_Cache_New( FTC_Manager      manager,
@@ -513,11 +516,12 @@
   {
     FTC_ImageDesc  desc0;
     
+
     if ( !desc )
       return FT_Err_Invalid_Argument;
       
     desc0.font = desc->font;
-    desc0.type = (FT_UInt32) desc->image_type;
+    desc0.type = (FT_UInt32)desc->image_type;
 
     return FTC_SBitCache_Lookup( (FTC_SBitCache)cache,
                                   &desc0,
@@ -527,5 +531,4 @@
   }
 
 
-
 /* END */
diff --git a/src/cache/ftlru.c b/src/cache/ftlru.c
index 6d2c897..c2bae67 100644
--- a/src/cache/ftlru.c
+++ b/src/cache/ftlru.c
@@ -46,7 +46,7 @@
       list->clazz      = clazz;
       list->memory     = memory;
       list->max_nodes  = max_nodes;
-      list->data  = user_data;
+      list->data       = user_data;
 
       if ( clazz->list_init )
       {