Commit 7f74a52a210fc20a8fcc0f8160ce92dfe0f84c48

Werner Lemberg 2002-07-26T09:09:10

Fixing ChangeLog entries. Some formatting. * src/truetype/ttgload.c (load_truetype_glyph) [FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/. * src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning. * src/cff/cffload.c (cff_encoding_load): Remove `memory' variable. * src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames' variable. * src/truetype/ttgload.c (load_truetype_glyph): Remove statement without effect. * src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.

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
diff --git a/ChangeLog b/ChangeLog
index ef1f6ca..c4c212c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,190 +1,380 @@
+2002-07-26  Werner Lemberg  <wl@gnu.org>
+
+	* src/truetype/ttgload.c (load_truetype_glyph)
+	[FT_CONFIG_OPTION_INCREMENTAL]: s/memset/ft_memset/.
+
+	* src/autohint/ahhint.c (ah_hint_edges_3): Fix compiler warning.
+	* src/cff/cffload.c (cff_encoding_load): Remove `memory' variable.
+	* src/cff/cffcmap.c (cff_cmap_encoding_init): Remove `psnames'
+	variable.
+	* src/truetype/ttgload.c (load_truetype_glyph): Remove statement
+	without effect.
+	* src/truetype/ttdriver (Get_Char_Index, Get_Next_Char): Removed.
+
 2002-07-24  Graham Asher  <graham.asher@btinternet.com>
 
-    * src/truetype/ttobjs.c: fix for bug reported by Sven Neumann [sven@gimp.org]
-    on the FreeType development forum: "If FT_CONFIG_OPTION_INCREMENTAL is undefined
-    (this is the default), the TrueType loader crashes in line 852 of src/truetype/ttgload.c
-    when it tries to access face->glyph_locations."
+	* src/truetype/ttobjs.c: Fix for bug reported by Sven Neumann
+	[sven@gimp.org] on the FreeType development forum: "If
+	FT_CONFIG_OPTION_INCREMENTAL is undefined (this is the default), the
+	TrueType loader crashes in line 852 of src/truetype/ttgload.c when
+	it tries to access face->glyph_locations."
 
 2002-07-18  Graham Asher  <graham.asher@btinternet.com>
 
-    * include/freetype/freetype.h:
-    Added types and structures to support incremental typeface loading.
-    The FT_Incremental_Interface structure, defined in freetype.h,
-    is designed to be passed to FT_Open_Face to provide callback
-    functions to obtain glyph recipes and metrics, for fonts like
-    those passed from PostScript that do not necessarily provide
-    all, or any, glyph information, when first opened.
+	Added types and structures to support incremental typeface loading. 
+	The FT_Incremental_Interface structure, defined in freetype.h, is
+	designed to be passed to FT_Open_Face to provide callback functions
+	to obtain glyph recipes and metrics, for fonts like those passed
+	from PostScript that do not necessarily provide all, or any, glyph
+	information, when first opened.
+
+	* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
+	New configuration macro to enable incremental face loading.  By
+	default it is not defined.
+
+	* include/freetype/freetype.h (FT_Basic_Glyph_Metrics,
+	FT_Get_Glyph_Data_Func, FT_Get_Glyph_Metrics_Func,
+	FT_Incremental_Interface_Funcs, FT_Incremental_Interface)
+	[FT_CONFIG_OPTION_INCREMENTAL]: New.
+	(FT_Open_Args, FT_FaceRec) [FT_CONFIG_OPTION_INCREMENTAL]: New field
+	`incremental_interface'.
+	(FT_Open_Flags) [FT_CONFIG_OPTION_INCREMENTAL]: New enum
+	`ft_open_incremental'.
+
+	* include/freetype/fttypes.h: Include FT_CONFIG_CONFIG_H.
+	(FT_Data): New structure to represent binary data.
+
+	* src/base/ftobjs.c (open_face) [FT_CONFIG_OPTION_INCREMENTAL]:
+	Add parameter for incremental loading.
+	(FT_Open_Face) [FT_CONFIG_OPTION_INCREMENTAL]: Use incremental
+	interface.
+
+	* src/truetype/ttgload.c (load_truetype_glyph)
+	[FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
+	for the TrueType driver.
+	(compute_glyph_metrics): Return FT_Error.
+	[FT_CONFIG_OPTION_INCREMENTAL]: Check for overriding metrics.
+	(TT_Load_Glyph) [FT_CONFIG_OPTION_INCREMENTAL]: Don't look for
+	the glyph table while handling an incremental font.
+	Get glyph offset.
+
+	* src/truetype/ttobjs.c (TT_Face_Init)
+	[FT_CONFIG_OPTION_INCOREMENTAL]: Added the incremental loading
+	system for the TrueType driver.
+
+	* src/cid/cidgload.c (cid_load_glyph)
+	[FT_CONFIG_OPTION_INCREMENTAL]: Added the incremental loading system
+	for the CID driver.
+
+	* src/sfnt/sfobjs.c (SFNT_Load_Face) [FT_CONFIG_OPTION_INCREMENTAL]:
+	Changes to support incremental Type 42 fonts: Assume a font has
+	glyphs if it has an incremental interface object.
+
+	* src/type1/t1gload.c (T1_Parse_Glyph): Renamed to...
+	(T1_Parse_Glyph_And_Get_Char_String): This.
+	[FT_CONFIG_OPTION_INCREMENTAL]: Added support for incrementally
+	loaded Type 1 faces.
+	(T1_Parse_Glyph): New function.
+	(T1_Load_Glyph): Updated.
 
-    * include/freetype/config/ftoption.h
-    Added a new configuration macro, FT_CONFIG_OPTION_INCREMENTAL,
-    to enable incremental face loading. By default it is not defined.
-
-    * /src/base/ftobjs.c
-    Added incremental loading capability to FT_Open_Face.
+2002-07-17  David Turner  <david@freetype.org>
 
-    * /src/truetype/ttgload.c
-    Added the incremental loading system for the TrueType driver.
+	Cleaning up the cache sub-system code; linear hashing is now the
+	default.
 
-    * /src/truetype/ttobjs.c
-    Added the incremental loading system for the TrueType driver.
+	* include/freetype/cache/ftccache.h, src/cache/ftccache.i,
+	src/cache/ftccache.c [!FTC_CACHE_USE_LINEAR_HASHING]: Removed.
+	(FTC_CACHE_USE_LINEAR_HASHING: Removed also.
 
-    * /src/cid/cidgload.c
-    Added the incremental loading system for the CID driver.
+	FT_CONFIG_OPTION_USE_CMAPS is now the default.
 
-    * /src/sfnt/sfobjs.c
-    Changes to support incremental Type 42 fonts: assume a font has glyphs if it
-    has an incremental interface object.
+	* include/freetype/internal/ftdriver.h (FT_Driver_ClassRec): Remove
+	`get_char_index' and `get_next_char'.
 
-    * /src/type1/t1gload.c
-    Added support for incrementally loaded Type 1 faces.
+	* include/freetype/config/ftoption.h,
+	include/freetype/internal/tttypes.h, src/base/ftobjs.c,
+	src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/pcf/pcfdrivr.c,
+	src/pfr/pfrdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
+	src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
+	src/type42/t42objs.c, src/winfonts/winfnt.c
+	[!FT_CONFIG_OPTION_USE_CMAPS]: Removed.  The new cmap code is now
+	the default.
 
-2002-07-17  David Turner  <david@freetype.org>
+	* src/type42/t42objs.c (T42_CMap_CharIndex, T42_CMap_CharNext):
+	Removed.
+	* src/type42/t42objs.h: Updated.
 
-    * include/freetype/cache/ftccache.h, src/cache/ftccache.i,
-    src/cache/ftccache.c: cleaning up the cache sub-system code, linear
-    hashing is now the default
+	* src/cid/cidriver.c (Cid_Get_Char_Index, Cid_Get_Next_Char):
+	Removed.
+	(t1_cid_driver_class): Updated.
+	* src/truetype/ttdriver.c (tt_driver_class): Updated.
+	* src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Removed
+	(t1_driver_class): Updated.
+	* src/type42/t42drivr.c (t42_driver_class): Updated.
 
-    * include/freetype/config/ftoption.h, include/freetype/internal/tttypes.h,
-    src/base/ftobjs.c, src/bdf/bdfdrivr.c, src/cff/cffobjs.c,
-    src/pcf/pcfdrivr.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c,
-    src/sfnt/ttcmap0.h, src/sfnt/ttload.c, src/type1/t1objs.c,
-    src/type42/t42objs.c, src/type42/t42objs.h, src/type42/t42drivr.c,
-    src/winfonts/winfnt.c: code cleanup, FT_CONFIG_OPTION_USE_CMAPS is now
-    the default
+	* src/base/ftobjs.c (open_face): Select Unicode cmap by default.
 
-    * src/sfnt/ttload.c (TT_Load_SFNT_Header): fixed a recent bug that prevented
-    OpenType fonts to be recognized by FreeType
+	* src/sfnt/ttload.c (TT_Load_SFNT_Header): Fixed a recent bug that
+	prevented OpenType fonts to be recognized by FreeType.
 
 2002-07-11  David Turner  <david@freetype.org>
 
-    * src/sfnt/ttload.c, src/sfnt/ttload.h, src/sfnt/ttdriver.c: changing
-    the SFNT loader to check for SFNT-based font files differently. We now
-    ignore the range "helper" fields and check the "head" table's magic
-    number instead.
+	Changing the SFNT loader to check for SFNT-based font files
+	differently.  We now ignore the range "helper" fields and check the
+	"head" table's magic number instead.
+
+	* include/freetype/internal/tttypes.h (SFNT_HeaderRec): Add `offset'
+	field.
+
+	* src/sfnt/ttload.c (sfnt_dir_check): New function.
+	(TT_Load_SFNT_HeaderRec): Renamed to...
+	(TT_Load_SFNT_Header): This.
+	Implement new functionality.
+	* src/sfnt/ttload.h: Updated.
+	* src/sfnt/sfdriver.c (sfnt_interface): Updated.
+
+	* src/base/ftobject.c, src/base/fthash.c: Updated object sub-system
+	and dynamic hash table implementation (still experimental, don't
+	use).
+	* include/freetype/internal/fthash.h: Updated.
+	* include/freetype/internal/ftobjs.h (FT_LibraryRec): New member
+	`meta_class'.
+
+	Fixing a bug in the Type 1 loader that prevented valid font bounding
+	boxes to be loaded from multiple master fonts.
+
+	* include/freetype/t1tables.h (PS_BlendRec): Add `bboxes' field.
+
+	* include/freetype/internal/psaux.h (T1_FieldType): Add
+	`T1_FIELD_TYPE_BBOX'.
+	(T1_FieldLocation): Add `T1_FIELD_LOCATION_BBOX'.
+	(T1_FIELD_BBOX): New macro.
+
+	* src/psaux/psobjs.c (PS_Parser_LoadField): Handle T1_FIELD_TYPE_BBOX.
+	* src/type1/t1load.c (t1_allocate_blend): Create blend->bboxes.
+	(T1_Done_Blend): Free blend->bboxes.
+	(t1_load_keyword): Handle T1_FIELD_LOCATION_BBOX.
+	(parse_font_bbox): Commented out.
+	(t1_keywords): Comment out `parse_font_bbox'.
+	* src/type1/t1tokens.h: Define `FontBBox' field.
 
-    * src/base/ftobject.c, src/base/fthash.c: updated object sub-system and
-    dynamic hash table implementation (still experimental, don't use)
+2002-07-10  David Turner  <david@freetype.org>
 
-    * include/freetype/t1tables.h, include/freetype/internal/psaux.h,
-    src/psaux/psobjs.c, src/type1/t1load.c, src/type1/t1tokens.h:
-    fixing a bug in the Type 1 loader that prevented valid font bounding
-    boxes to be loaded from multiple master fonts.
+	* src/cff/cffobjs.c: Small fix to select the Unicode charmap by
+	default when needed.
+	Small fix to allow OpenType fonts to support Adobe charmaps when
+	needed.
 
-2002-07-10  David Turner  <david@freetype.org>
+	* src/cff/cffcmap.c, src/cff/cffcmap.h: New files to support
+	charmaps for CFF fonts.
+
+	* src/cff/cff.c, src/cff/Jamfile, src/cff/rules.mk: Updated.
+
+	* include/freetype/internal/cfftypes.h (CFF_EncodingRec): Use
+	fixed-length arrays for `sids' and `codes'.  Add `count' member.
+	(CFF_FontRec): Add `psnames' member.
+
+	* src/cff/cffdrivr.c, src/cff/cffload.c, src/cff/cffload.h,
+	src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
+	src/cffparse.h, src/cff/cffgload.c, src/cff/cffgload.h: Adding
+	support for CFF charmaps, reformatting the sources, and removing
+	some bugs in the Encoding and Charset loaders.
+	Many fonts renamed to use lowercase only:
+
+	  CFF_Builder_Init -> cff_builder_init
+	  CFF_Builder_Done -> cff_builder_done
+	  CFF_Init_Decoder -> cff_decoder_init
+	  CFF_Parse_CharStrings -> cff_decoder_parse_charstrings
+	  CFF_Load_Glyph -> cff_slot_load
+	  CFF_Init_Decoder -> cff_decoder_init
+	  CFF_Prepare_Decoder -> cff_decoder_prepare
+	  CFF_Get_Standard_Encoding -> cff_get_standard_encoding
+	  CFF_Access_Element -> cff_index_access_element
+	  CFF_Forget_Element -> cff_index_forget_element
+	  CFF_Get_Name -> cff_index_get_name
+	  CFF_Get_String -> cff_index_get_sid_string
+	  CFF_Get_FD -> cff_fd_select_get
+	  CFF_Done_Charset -> cff_charset_done
+	  CFF_Load_Charset -> cff_charset_load
+	  CFF_Done_Encoding -> cff_encoding_done
+	  CFF_Load_Encoding -> cff_encoding_load
+	  CFF_Done_SubFont -> cff_subfont_done
+	  CFF_Load_Font -> cff_font_load
+	  CFF_Done_Font -> cff_font_done
+	  CFF_Size_Get_Global_Funcs -> cff_size_get_global_funcs
+	  CFF_Size_Done -> cff_size_done
+	  CFF_Size_Init -> cff_size_init
+	  CFF_Size_Reset -> cff_size_reset
+	  CFF_GlyphSlot_Done -> cff_slot_done
+	  CFF_GlyphSlot_Init -> cff_slot_init
+	  CFF_StrCopy -> cff_strcpy
+	  CFF_Face_Init -> cff_face_init
+	  CFF_Face_Done -> cff_face_done
+	  CFF_Driver_Init -> cff_driver_init
+	  CFF_Driver_Done -> cff_driver_done
+	  CFF_Parser_Init -> cff_parser_init
+	  CFF_Parser_Run -> cff_parser_run
+
+	  add_point -> cff_builder_add_point
+	  add_point1 -> cff_builder_add_point1
+	  add_contour -> cff_builder_add_contour
+	  close_contour -> cff_builder_close_contour
+	  cff_explicit_index -> cff_index_get_pointers
+
+2002-07-09  Owen Taylor  <owen@redhat.com>
+
+	* src/pshinter/pshglob.c (psh_globals_new): Fixed a bug that
+	prevented the hinter from using correct standard width and height
+	values, resulting in hinting bugs with certain fonts (e.g. Utopia).
 
-    * src/cff/cffobjs.c: small fix to select the Unicode charmap by default
-    when needed
+2002-07-07  David Turner  <david@freetype.org>
 
-    * src/cff/cffobjs.c: small fix to allow OpenType fonts to support Adobe
-    charmaps when needed.
+	* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Added code to return
+	successfully when the function is called with a bitmap glyph (the
+	previous code simply returned with an error).
 
-    * src/cff/cffcmap.c, src/cff/cffcmap.h, Jamfile, rules.mk: new files added
-    to support charmaps for CFF fonts
+	* docs/DEBUG.TXT: Adding debugging support documentation.
 
-    * src/cff/cffload.c, src/cff/cffload.h, src/cff/cffobjs.c,
-    src/cff/cffobjs.h, src/cff/cffparse.c, src/cffparse.h, src/cff/cffgload.c,
-    src/cff/cffgload.h: adding support for CFF charmaps, reformatting the
-    sources, and removing some bugs in the Encoding and Charset loaders
+	* src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c
+	(ft_debug_init), builds/amiga/src/ftdebug.c (ft_debug_init): Changed
+	the syntax of the FT2_DEBUG environment variable used to control
+	debugging output (i.e. logging and error messages).  It must now
+	look like:
 
-2002-07-09  Owen Taylor   <owen@redhat.com>
+	  any:6 memory:4 io:3   or
+	  any:6,memory:4,io:3   or
+	  any:6;memory:4;io:3
 
-    * src/pshinter/pshglob.c: fixed a bug that prevented the hinter from using
-    correct standard width and height values. resulting in hinting bugs with
-    certain fonts (e.g. Utopia)
+2002-07-07  Owen Taylor  <owen@redhat.com>
 
-2002-07-07  David Turner  <david@freetype.org>
+	* src/pshinter/pshglob.c (psh_blues_snap_stem): Adding support for
+	blue fuzz.
+	* src/pshinter/pshglob.h (PSH_BluesRec): Add `blue_fuzz' field.
+	* src/type1/t1load.c (T1_Open_Face): Initialize `blue_fuzz'.
 
-    * src/base/ftglyph.c (FT_Glyph_To_Bitmap): added code to return succesfully
-    when the function is called with a bitmap glyph (the previous code simply
-    returned with an error)
+	Adding support for hinter-specific bit flags, and the new
+	FT_Set_Hint_Flags high-level API.
 
-    * docs/DEBUG.TXT: adding debugging support documentation
+	* include/freetype/freetype.h (FT_Set_Hint_Flags): New function.
+	(FT_HINT_NO_INTEGER_STEM, FT_HINT_NO_HSTEM_ALIGN,
+	FT_HINT_NO_VSTEM_ALIGN): New macros.
 
-    * src/base/ftdebug.c (ft_debug_init), builds/win32/ftdebug.c
-    (ft_debug_init), builds/amiga/src/ftdebug.c (ft_debug_init): changed the
-    syntax of the FT2_DEBUG environment variable  used to control debugging
-    output (i.e. logging and error messages). It must now look like:
+	* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Add
+	`hint_flags' member.
 
-       any:6 memory:4 io:3   or
-       any:6,memory:4,io:3   or
-       any:6;memory:4;io:3
+	* src/base/ftobjs.c (FT_Set_Hint_Flags): New function.
 
-2002-07-07  Owen Taylor  <owen@redhat.com>
+	* include/freetype/internal/psaux.h (T1_DecoderRec): Add `hint_flags'
+	member.
 
-    * src/pshinter/pshglob.h, src/pshinter/pshglob.c: adding support for
-    blue fuzz
+	* include/freetype/internal/pshints.h (T1_Hints_ApplyFunc,
+	T2_Hints_ApplyFunc): Add parameter to pass hint flags.
 
-    * include/freetype/freetype.h, src/base/ftobjs.h,
-    freetype/internal/ftobjs.h, freetype/internal/psaux.h,
-    freetype/internal/pshints.h, src/psaux/t1decode.c, src/cff/cffgload.h,
-    src/cff/cffgload.c, src/pshinter/pshalgo1.h, src/pshinter/pshalgo1.c,
-    src/pshinter/pshalgo2.h, src/pshinter/pshalgo2.c, src/pshinter/pshalgo3.h,
-    src/pshinter/pshalgo3.c: Adding support for hinter-specific bit flags,
-    and the new FT_Set_Hint_Flags high-level API
+	* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings,
+	T1_Decoder_Init): Use decoder->hint_flags.
+	* src/cff/cffgload.h (CFF_Builder): Add `hint_flags' field.
+	* src/cff/cffgload.c (CFF_Builder_Init): Set builder->hint_flags.
+	(CFF_Parse_CharStrings): Updated.
+	* src/pshinter/pshalgo1.c (ps1_hints_apply): Add parameter to handle
+	hint flags (unused).
+	* src/pshinter/pshalgo1.h: Updated.
+	* src/pshinter/pshalgo2.c (ps2_hints_apply): Add parameter to handle
+	hint flags (unused).
+	* src/pshinter/pshalgo2.h: Updated.
+	* src/pshinter/pshalgo3.c (ps3_hints_apply): Add parameter to handle
+	hint flags.
+	* src/pshinter/pshalgo3.h: Updated.
 
 2002-07-04  David Turner  <david@freetype.org>
 
-    * src/pfr/pfrobjs.c (pfr_slot_load): fixed a small bug that returned
-    incorrect advances when the outline resolution was different from the
-    metrics resolution
+	* src/pfr/pfrobjs.c (pfr_slot_load): Fixed a small bug that returned
+	incorrect advances when the outline resolution was different from
+	the metrics resolution.
 
-    * src/autohint/ahhint.c: removing compiler warnings
+	* src/autohint/ahhint.c: Removing compiler warnings.
 
-    * src/autohint/ahglyph.c: slight improvements to the serif detection
-    code. More work is needed though..
+	* src/autohint/ahglyph.c: s/FT_MEM_SET/FT_ZERO/ where appropriate.
+	(ah_outline_link_segments): Slight improvements to the serif
+	detection code.  More work is needed though.
 
 2002-07-03  David Turner  <david@freetype.org>
 
-    * src/autohint/ahglobal.c, src/autohint/ahtypes.h, src/autohint/ahhint.c:
-    small improvements to the automatic hinter. un-even stem-widths have now
-    disappeared and everything looks much better, even if there are still
-    issues with serifed fonts.
+	Small improvements to the automatic hinter.  Uneven stem-widths have
+	now disappeared and everything looks much better, even if there are
+	still issues with serifed fonts.
+
+	* src/autohint/ahtypes.h (AH_Globals): Added `stds' array.
+	* src/autohint/ahhint.c (OPTIM_STEM_SNAP): New #define.
+	(ah_snap_width): Commented out.
+	(ah_align_linked_edge): Renamed to...
+	(ah_compute_stem_width): This.
+	Don't allow uneven stem-widths.
+	(ah_align_linked_edge): New function.
+	(ah_align_serifed_edge): Don't strengthen serifs.
+	(ah_hint_edges_3, ah_hinter_scale_globals): Updated.
 
 2002-07-03  Owen Taylor  <owen@redhat.com>
 
-    * src/pshinter/pshalgo3.c, src/pshinter/pshalgo3.h, src/pshinter/pshalgo.h,
-    src/pshinter/pshinter.c: adding new algorithm based on Owen Taylor's recent
-    work
+	Adding new algorithm based on Owen Taylor's recent work.
+
+	* src/pshinter/pshalgo3.c, src/pshinter/pshalgo3.h: New files.
+	* src/pshinter/pshalgo.h: Updated.
+	Use pshalgo3 by default.
+	* src/pshinter/pshinter.c: Include pshalgo3.c.
+
+	* src/pshinter/Jamfile, src/pshinter/rules.mk: Updated.
 
 2002-07-01  Owen Taylor  <owen@redhat.com>
 
-    * src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points): fix a bug
-    where, if a glyph has more than hint mask, the second mask gets applied
-    to points that should have been covered by the first mask.
+	* src/pshinter/pshalgo2.c (psh2_glyph_find_strong_points): Fix a bug
+	where, if a glyph has more than hint mask, the second mask gets
+	applied to points that should have been covered by the first mask.
 
 2002-07-01  Keith Packard  <keithp@keithp.com>
 
-    * src/sfnt/ttcmap0.c: fixing the cmap 8 and 12 parsing routines
+	* src/sfnt/ttcmap0.c (tt_cmap8_char_next, tt_cmap12_char_next):
+	Fixing the cmap 8 and 12 parsing routines.
+
+2002-07-01  David Turner  <david@freetype.org>
+
+	* src/base/ftsynth.c: Include FT_TRIGONOMETRY_H.
+	(FT_Outline_Embolden): Renamed to...
+	(FT_GlyphSlot_Embolden): This.
+	Updated to new trigonometric functions.
+	(FT_Outline_Oblique): Renamed to...
+	(FT_GlyphSlot_Oblique): This.
+	(ft_norm): Removed.
+	* include/freetype/ftsynth.h: Updated.
 
-2002-07-01  David Turner
+2002-06-26  David Turner  <david@freetype.org>
 
-    * include/freetype/ftsynth.h, src/base/ftsynth.c: rewriting the automatic
-    style synthesis functions, now renamed to FT_GlyphSlot_Oblique and
-    FT_GlyphSlot_Embolden
+	* include/freetype/internal/ftobject.h: Updating the object
+	sub-system definitions (still experimental).
 
-2002-06-26  David Turner
+	* src/base/fthash.c (ft_hash_remove): Fixing a small reallocation
+	bug.
+
+	* src/base/fttrigon.c (FT_Vector_From_Polar, FT_Angle_Diff): New
+	functions.
+	* include/freetype/fttrigon.h: Updated.
 
-    * include/freetype/internal/ftobject.h: updating the object sub-system
-    definitions (still experimental)
 
-    * src/base/fthash.c (ft_hash_remove): fixing a small reallocation bug
+	Adding path stroker component (work in progress).
 
-    * include/freetype/fttrigon.h, src/base/fttrigon.c: adding
-    FT_Vector_From_Polar and FT_Angle_Diff to the trigonometric functions
+	* include/freetype/ftstroker.h, src/base/ftstroker.c: New files.
+	* src/base/Jamfile: Updated.
 
-    * include/freetype/ftstroker.h, src/base/ftstroker.c, src/base/Jamfile:
-    adding path stroker component (work in progress)
+	* include/freetype/config/ftheader.h (FT_STROKER_H): New macro.
 
-    * src/truetype/ttgload.c (TT_Load_Composite_Glyph),
-    src/base/ftoutln.c (FT_Vector_Transform): fixed Werner's latest
-    fix. FT_Vector_Transform wasn't buggy, the TrueType composite loader
-    was...
+
+	* src/truetype/ttgload.c (TT_Load_Composite_Glyph),
+	src/base/ftoutln.c (FT_Vector_Transform): Fixed Werner's latest fix.
+	FT_Vector_Transform wasn't buggy, the TrueType composite loader was.
 
 2002-06-24  Werner Lemberg  <wl@gnu.org>
 
 	* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
 
-
 2002-06-21  David Turner  <david@freetype.org>
 
 
@@ -272,7 +462,7 @@
 
 	Updated Win32/VC++ projects to include the new PFR driver.
 
-	* builds\win32\visualc\freetype.dsp: Updated.
+	* builds/win32/visualc/freetype.dsp: Updated.
 
 2002-06-16  Anthony Fok  <fok@debian.org>
 
@@ -814,16 +1004,21 @@
 	function.  This will be used in the near future to panic in case of
 	unexpected exception (which shouldn't happen in theory).
 
-	* include/freetype/internal/fthash.h, src/base/fthash.c: Adding a
-	generic implementation of dynamic hash tables using a linear
-	algorithm (to get rid of `stalls' during resizes).  This will be
-	used in the future in at least three parts of the library: the cache
+	* include/freetype/internal/fthash.h, src/base/fthash.c: New files.
+	This is generic implementation of dynamic hash tables using a linear
+	algorithm (to get rid of `stalls' during resizes).  In the future
+	this will be used in at least three parts of the library: the cache
 	sub-system, the object sub-system, and the memory debugger.
 
-	* include/freetype/internal/ftcore.h: Added this header file to
-	group all new definitions related to exception handling and memory
-	management.  It is very likely that this file will disappear or be
-	renamed in the future.
+	* src/base/Jamfile: Updated.
+
+	* include/freetype/internal/internal.h (FT_INTERNAL_HASH_H,
+	FT_INTERNAL_OBJECT_H): New macros.
+
+	* include/freetype/internal/ftcore.h: New file to group all new
+	definitions related to exception handling and memory management.  It
+	is very likely that this file will disappear or be renamed in the
+	future.
 
 	* include/freetype/internal/ftobject.h, include/freetype/ftsysmem.h:
 	Adding comments to better explain the object sub-system as well as
diff --git a/docs/DEBUG.TXT b/docs/DEBUG.TXT
index 86ffbcf..ef7faa1 100644
--- a/docs/DEBUG.TXT
+++ b/docs/DEBUG.TXT
@@ -1,164 +1,162 @@
 Debugging within the FreeType sources:
 ======================================
 
-I. Configuration macros:
-========================
+I. Configuration macros
+-----------------------
 
-There are several ways to enable debugging features in a FreeType 2 builds.
-This is controled through the definition of special macros located in the
-file "ftoptions.h". The macros are:
+There  are several ways  to enable  debugging features  in a  FreeType 2
+builds.   This is controlled  through the  definition of  special macros
+located in the file "ftoptions.h".  The macros are:
 
 
-  FT_DEBUG_LEVEL_ERROR ::
+  FT_DEBUG_LEVEL_ERROR
 
-    #define this macro if you want to compile the FT_ERROR macro calls
-    used to print error messages during program execution. This will not
-    stop the program, but is very useful to spot invalid fonts during
-    development and code wordarounds for them.
+    #define this macro  if you want to compile  the FT_ERROR macro calls
+    used to  print error messages  during program execution.   This will
+    not  stop the  program, but  is very  useful to  spot  invalid fonts
+    during development and code wordarounds for them.
 
+  FT_DEBUG_LEVEL_TRACE
 
-  FT_DEBUG_LEVEL_TRACE ::
+    #define this  macro if you want  to compile both  the FT_ERROR macro
+    and the  FT_TRACE one.  This  also includes the  variants FT_TRACE0,
+    FT_TRACE1, FT_TRACE2, ..., FT_TRACE6.
 
-    #define this macro if you want to compile both the FT_ERROR macro and
-    the FT_TRACE one. This also includes the variants FT_TRACE0, FT_TRACE1,
-    FT_TRACE2, ..., FT_TRACE6.
+    The  trace  macros are  used  to  send  debugging messages  when  an
+    appropriate  "debug  level" is  configured  at  runtime through  the
+    FT2_DEBUG environment variable (more on this later).
 
-    The trace macros are used to send debugging messages when an appropriate
-    "debug level" is configured at runtime through the FT2_DEBUG environment
-    variable (more on this later)
+  FT_DEBUG_MEMORY
 
+    If this  macro is  #defined, the FreeType  engines is linked  with a
+    small  but  effective  debugging  memory  manager  that  tracks  all
+    allocations and frees that are performed within the font engine.
 
-  FT_DEBUG_MEMORY ::
-
-    when this macro is #defined, the FreeType engines is linked with a small
-    but effective debugging memory manager that tracks all allocations and
-    frees that are performed within the font engine.
-
-    When the FT2_DEBUG_MEMORY environment variable is defined at runtime, a
-    call to FT_Done_FreeType will dump memory statistics, including the list of
-    leaked memory blocks with the source locations where these were allocated.
-    It's always a very good idea to define this in development builds. This
-    works with _any_ program linked to FreeType, but requires a big deal of
-    memory (the debugging memory manager never frees the blocks to the
-    heap in order to detect double frees).
+    When  the  FT2_DEBUG_MEMORY   environment  variable  is  defined  at
+    runtime,  a call  to FT_Done_FreeType  will dump  memory statistics,
+    including the list of leaked memory blocks with the source locations
+    where these were allocated.  It's  always a very good idea to define
+    this in development builds.  This works with _any_ program linked to
+    FreeType, but  requires a big  deal of memory (the  debugging memory
+    manager never frees the blocks to the heap in order to detect double
+    frees).
 
     When FT2_DEBUG_MEMORY isn't defined at runtime, the debugging memory
     manager is ignored, and performance is un-affected.
 
 
-II. Debugging macros:
-=====================
+II. Debugging macros
+--------------------
 
-  Several macros can be used within the FreeType sources to help debugging
-  its code:
+Several macros can be used within the FreeType sources to help debugging
+its code:
 
- 1. FT_ERROR(( .. ))
+  1. FT_ERROR(( ... ))
 
-   this macro is used to send debug messages that indicate relatively serious
-   errors (like broken font files), but will not stop the execution of the
-   running program. Its code is compiled only when either FT_DEBUG_LEVEL_ERROR
-   or FT_DEBUG_LEVEL_TRACE are defined in "ftoption.h"
+    This macro is  used to send debug messages  that indicate relatively
+    serious  errors (like  broken font  files),  but will  not stop  the
+    execution of  the running program.   Its code is compiled  only when
+    either FT_DEBUG_LEVEL_ERROR  or FT_DEBUG_LEVEL_TRACE are  defined in
+    "ftoption.h".
 
-   Note that you must use with a printf-like signature, but with double
-   parentheses, like in:
+    Note that you must use with a printf-like signature, but with double
+    parentheses, like in:
 
-     FT_ERROR(( "your %s is not %s\n", "foo", "bar" ));
+      FT_ERROR(( "your %s is not %s\n", "foo", "bar" ));
 
 
- 2. FT_ASSERT( condition )
+  2. FT_ASSERT( condition )
 
-   this macro is used to check strong assertions at runtime. If its condition
-   isn't TRUE, the program will abort with a panic message. Its code is
-   compiled when either FT_DEBUG_LEVEL_ERROR or FT_DEBUG_LEVEL_TRACE are
-   defined. You don't need double-parentheses here. For example:
+    This macro  is used to check  strong assertions at  runtime.  If its
+    condition isn't TRUE,  the program will abort with  a panic message.
+    Its   code   is  compiled   when   either  FT_DEBUG_LEVEL_ERROR   or
+    FT_DEBUG_LEVEL_TRACE are defined.  You don't need double-parentheses
+    here.  For example:
 
-     FT_ASSERT( ptr != NULL );
+      FT_ASSERT( ptr != NULL );
 
 
- 3. FT_TRACE( level, (message...) )
+  3. FT_TRACE( level, (message...) )
 
-   the FT_TRACE macro is used to send general-purpose debugging messages
-   during program execution. This macro uses an *implicit* macro named
-   FT_COMPONENT used to name the current FreeType component being run.
+    The  FT_TRACE  macro  is  used  to  send  general-purpose  debugging
+    messages during  program execution.   This macro uses  an *implicit*
+    macro named FT_COMPONENT used to name the current FreeType component
+    being run.
 
-   The developer should always define FT_COMPONENT as appropriate, for
-   example as in:
+    The developer should always  define FT_COMPONENT as appropriate, for
+    example as in:
 
-     #undef  FT_COMPONENT
-     #define FT_COMPONENT  trace_io
+      #undef  FT_COMPONENT
+      #define FT_COMPONENT  trace_io
 
-   the value of the FT_COMPONENT macro is an enumeration named trace_XXXX
-   where XXXX is one of the component names defined in the internal file
-   <freetype/internal/fttrace.h>
+    The  value  of  the  FT_COMPONENT  macro  is  an  enumeration  named
+    trace_XXXX where XXXX  is one of the component  names defined in the
+    internal file <freetype/internal/fttrace.h>.
 
-   Each such component is assigned a "debug level", ranging from 0 to 6
-   when a program linked with FreeType starts, through the use of the FT2_DEBUG
-   environment variable, described later.
+    Each such component is assigned a "debug level", ranging from 0 to 6
+    when a program  linked with FreeType starts, through  the use of the
+    FT2_DEBUG environment variable, described later.
 
-   When FT_TRACE is called, its level is compared to the one of the
-   corresponding component. Messages with trace levels *higher* than the
-   corresponding component level are filtered and never printed.
+    When FT_TRACE  is called, its  level is compared  to the one  of the
+    corresponding component.   Messages with trace  levels *higher* than
+    the corresponding component level are filtered and never printed.
 
-   this means that trace messages with level 0 are always printed, those
-   with level 2 are only printed when the component level is *at least* 2
+    This  means that  trace messages  with level  0 are  always printed,
+    those with level 2 are only  printed when the component level is *at
+    least* 2.
 
-   The second parameter to FT_TRACE must contain parentheses and correspond
-   to a print-like call, as in:
+    The  second  parameter  to  FT_TRACE must  contain  parentheses  and
+    correspond to a print-like call, as in:
 
-     FT_TRACE( 2, ( "your %s is not %s\n", "foo", "bar" ) )
+      FT_TRACE( 2, ( "your %s is not %s\n", "foo", "bar" ) )
 
-   The shortcut macros FT_TRACE0, FT_TRACE1, FT_TRACE2_, ... FT_TRACE6 can
-   be used with constant level indices, and are much cleaner to use, as in
+    The shortcut macros  FT_TRACE0, FT_TRACE1, FT_TRACE2_, ... FT_TRACE6
+    can be  used with  constant level indices,  and are much  cleaner to
+    use, as in
 
      FT_TRACE2(( "your %s is not %s\n", "foo", "bar" ));
 
 
-III. Environment variables:
-===========================
+III. Environment variables
+--------------------------
 
- The following environment variables control debugging output and behaviour
- of FreeType at runtime:
+The  following  environment   variables  control  debugging  output  and
+behaviour of FreeType at runtime:
 
 
   FT2_DEBUG
-    this variable is only used when FreeType is built with FT_DEBUG_LEVEL_TRACE
-    defined. It contains a list of component level definitions, following this
-    format:
 
-        component1:level1 component2:level2 component3:level3 ...
+    This   variable  is   only  used   when  FreeType   is   built  with
+    FT_DEBUG_LEVEL_TRACE defined.  It contains a list of component level
+    definitions, following this format:
+
+       component1:level1 component2:level2 component3:level3 ...
 
     where "componentX" is the name of a tracing component, as defined in
-    "fttrace.h", but without the "trace_" prefix, and "levelX" is the
+    "fttrace.h", but  without the "trace_"  prefix, and "levelX"  is the
     corresponding level to use at runtime.
 
-    "any" is a special component name that will be interpreted as
-    "any/all components". For example, the following definitions
+    "any"  is a  special  component  name that  will  be interpreted  as
+    "any/all components".  For example, the following definitions
 
        set FT2_DEBUG=any:2 memory:5 io:4        (on Windows)
        export FT2_DEBUG="any:2 memory:5 io:4"   (on Linux)
 
-    both stipulate that all components should have level 2, except for the
-    memory and io components which will be set to trace levels 5 and 4
-    respectively.
-
+    both stipulate that  all components should have level  2, except for
+    the memory and io components which will be set to trace levels 5 and
+    4 respectively.
 
   FT2_DEBUG_MEMORY
-    this environment variable, when defined, tells FreeType to use a debugging
-    memory manager that will track leaked memory blocks as well as other common
-    errors like double frees. It is also capable of reporting _where_ the
-    leaked blocks were allocated, which considerably saves time when
-    debugging new additions to the library.
-
-    This code is only compiled when FreeType is built with the FT_DEBUG_MEMORY
-    macro #defined in "ftoption.h" though, it will be ignored in other builds.
-
-
-Voila,
 
-- David Turner
+    This  environment variable, when  defined, tells  FreeType to  use a
+    debugging  memory manager that  will track  leaked memory  blocks as
+    well as other  common errors like double frees.   It is also capable
+    of  reporting  _where_  the  leaked  blocks  were  allocated,  which
+    considerably saves time when debugging new additions to the library.
 
+    This  code  is  only  compiled  when  FreeType  is  built  with  the
+    FT_DEBUG_MEMORY macro  #defined in  "ftoption.h" though, it  will be
+    ignored in other builds.
 
 
-    used like printf( format, ... ), but with double quotes. This will
-    send a message to the standard error descriptor (stderr on most systems)
-    in certain builds of the library
\ No newline at end of file
+End of file
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h
index f53608d..c64b7b9 100644
--- a/include/freetype/freetype.h
+++ b/include/freetype/freetype.h
@@ -207,21 +207,22 @@ FT_BEGIN_HEADER
   /*    FT_Basic_Glyph_Metrics                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A small glyph metrics structure used to return information         */
-  /*    for incrementally defined fonts (see FT_Incremental_Interface).    */
+  /*    A small glyph metrics structure used to return information for     */
+  /*    incrementally defined fonts (see @FT_Incremental_Interface).       */
   /*                                                                       */
   /* <Fields>                                                              */
   /*    bearing_x :: Left side bearing in font units.                      */
   /*                                                                       */
   /*    bearing_y :: Top side bearing in font units.                       */
   /*                                                                       */
-  /*    advance :: Advance in font units.                                  */
+  /*    advance   :: Advance in font units.                                */
   /*                                                                       */
-  typedef struct FT_Basic_Glyph_Metrics_
+  typedef struct  FT_Basic_Glyph_Metrics_
   {
-	FT_Long bearing_x;
-	FT_Long bearing_y;
-	FT_Long advance;
+    FT_Long  bearing_x;
+    FT_Long  bearing_y;
+    FT_Long  advance;
+
   } FT_Basic_Glyph_Metrics;
 
 #endif /* #ifdef FT_CONFIG_OPTION_INCREMENTAL */
@@ -508,6 +509,7 @@ FT_BEGIN_HEADER
 
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
+
   
   /*************************************************************************/
   /*                                                                       */
@@ -515,23 +517,26 @@ FT_BEGIN_HEADER
   /*    FT_Get_Glyph_Data_Func                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A type definition for a function to get glyph data from a          */
-  /*    face that supplies glyph data incrementally, after the face        */
-  /*    object has been created                                            */
+  /*    A type definition for a function to get glyph data from a face     */
+  /*    that supplies glyph data incrementally, after the face object has  */
+  /*    been created.                                                      */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    object :: a pointer to the user's data, specified by the 'object'  */
-  /*    field in FT_Incremental_Interface                                  */
+  /*    object :: A pointer to the user's data, specified by the `object'  */
+  /*              field in @FT_Incremental_Interface.                      */
   /*                                                                       */
-  /*    index :: the glyph index                                           */
+  /*    index  :: The glyph index.                                         */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    data :: the position and length of the data                        */
+  /*    data   :: The position and length of the data.                     */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    a standard error code                                              */
+  /*    FreeType error code.  O means success.                             */
   /*                                                                       */
-  typedef FT_Error (*FT_Get_Glyph_Data_Func)(void* object,FT_UInt index,FT_Data* data);
+  typedef FT_Error
+  (*FT_Get_Glyph_Data_Func)( void*     object,
+                             FT_UInt   index,
+                             FT_Data*  data );
 
 
   /*************************************************************************/
@@ -540,26 +545,30 @@ FT_BEGIN_HEADER
   /*    FT_Get_Glyph_Metrics_Func                                          */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A type definition for a function to get glyph metrics from a       */
-  /*    face that supplies glyph metrics incrementally, after the face     */
-  /*    object has been created                                            */
+  /*    A type definition for a function to get glyph metrics from a face  */
+  /*    that supplies glyph metrics incrementally, after the face object   */
+  /*    has been created.                                                  */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    object :: a pointer to the user's data, specified by the 'object'  */
-  /*    field in FT_Incremental_Interface                                  */
+  /*    object   :: A pointer to the user's data, specified by the         */
+  /*                `object' field in @FT_Incremental_Interface.           */
   /*                                                                       */
-  /*    index :: the glyph index                                           */
+  /*    index    :: The glyph index.                                       */
   /*                                                                       */
-  /*    vertical :: true for vertical layout, false for horizontal layout  */
+  /*    vertical :: True for vertical layout, false for horizontal layout. */
   /*                                                                       */
   /* <Output>                                                              */
-  /*    metrics :: the glyph metrics in font units                         */
+  /*    metrics  :: The glyph metrics in font units.                       */
   /*                                                                       */
   /* <Return>                                                              */
-  /*    a standard error code                                              */
+  /*    FreeType error code.  O means success.                             */
   /*                                                                       */
-  typedef FT_Error (*FT_Get_Glyph_Metrics_Func)(void* object,FT_UInt index,FT_Bool vertical,
-	FT_Basic_Glyph_Metrics* metrics,FT_Bool* found);
+  typedef FT_Error
+  (*FT_Get_Glyph_Metrics_Func)( void*                    object,
+                                FT_UInt                  index,
+                                FT_Bool                  vertical,
+                                FT_Basic_Glyph_Metrics*  metrics,
+                                FT_Bool*                 found );
 
 
   /*************************************************************************/
@@ -569,20 +578,21 @@ FT_BEGIN_HEADER
   /*                                                                       */
   /* <Description>                                                         */
   /*    A table of functions for accessing fonts that load data            */
-  /*    incrementally. Used in FT_Incremental_Interface                    */
+  /*    incrementally.  Used in @FT_Incremental_Interface.                 */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    get_glyph_data :: The function to get glyph data. Must not be      */
-  /*                      null.                                            */
+  /*    get_glyph_data    :: The function to get glyph data.  Must not be  */
+  /*                         null.                                         */
   /*                                                                       */
-  /*    get_glyph_metrics :: The function to get glyph metrics. May be     */
+  /*    get_glyph_metrics :: The function to get glyph metrics.  May be    */
   /*                         null if the font does not provide             */
   /*                         overriding glyph metrics.                     */
   /*                                                                       */
-  typedef struct FT_Incremental_Interface_Funcs_
+  typedef struct  FT_Incremental_Interface_Funcs_
   {
-    FT_Get_Glyph_Data_Func get_glyph_data;
-	FT_Get_Glyph_Metrics_Func get_glyph_metrics;	
+    FT_Get_Glyph_Data_Func     get_glyph_data;
+    FT_Get_Glyph_Metrics_Func  get_glyph_metrics;
+
   } FT_Incremental_Interface_Funcs;
 
 
@@ -592,28 +602,30 @@ FT_BEGIN_HEADER
   /*    FT_Incremental_Interface                                           */
   /*                                                                       */
   /* <Description>                                                         */
-  /*     This interface structure is provided to FT_Open_Face to allow     */
-  /*     incremental faces to be opened.                                   */
+  /*    This interface structure is provided to @FT_Open_Face to allow     */
+  /*    incremental faces to be opened.                                    */
   /*                                                                       */
-  /*     A incremental face supplies no glyph data when it is opened.      */
-  /*     Instead the glyph data is supplied using a callback function.     */
-  /*     Optionally, metrics that override the metrics in the typeface     */
-  /*     data can also be supplied using another callback function.        */
+  /*    An incremental face supplies no glyph data when it is opened.      */
+  /*    Instead, the glyph data is supplied using a callback function.     */
+  /*    Optionally, metrics that override the metrics in the typeface data */
+  /*    can also be supplied using another callback function.              */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*     funcs :: The table of functions                                   */
+  /*     funcs  :: The table of functions.                                 */
   /*                                                                       */
-  /*     object :: The pointer passed to the functions. Usually it         */
-  /*               points to the object from which glyph and metric        */
-  /*               data is obtained.                                       */
+  /*     object :: The pointer passed to the functions.  Usually it points */
+  /*               to the object from which glyph and metric data is       */
+  /*               obtained.                                               */
   /*                                                                       */
-  typedef struct FT_Incremental_Interface_
-  {	
-    const FT_Incremental_Interface_Funcs* funcs;	
-	void* object;			
+  typedef struct  FT_Incremental_Interface_
+  {
+    const FT_Incremental_Interface_Funcs*  funcs;
+    void*                                  object;
+
   } FT_Incremental_Interface;
 
-#endif /* #ifdef FT_CONFIG_OPTION_INCREMENTAL */
+
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
 
 
   /*************************************************************************/
@@ -848,7 +860,7 @@ FT_BEGIN_HEADER
     FT_Face_Internal  internal;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	FT_Incremental_Interface* incremental_interface;
+    FT_Incremental_Interface*  incremental_interface;
 #endif
 
     /*@private end */
@@ -1578,18 +1590,20 @@ FT_BEGIN_HEADER
   /*    `flags' field of the @FT_Open_Args structure.                      */
   /*                                                                       */
   /* <Fields>                                                              */
-  /*    ft_open_memory   :: This is a memory-based stream.                 */
+  /*    ft_open_memory      :: This is a memory-based stream.              */
   /*                                                                       */
-  /*    ft_open_stream   :: Copy the stream from the `stream' field.       */
+  /*    ft_open_stream      :: Copy the stream from the `stream' field.    */
   /*                                                                       */
-  /*    ft_open_pathname :: Create a new input stream from a C pathname.   */
+  /*    ft_open_pathname    :: Create a new input stream from a C          */
+  /*                           path name.                                  */
   /*                                                                       */
-  /*    ft_open_driver   :: Use the `driver' field.                        */
+  /*    ft_open_driver      :: Use the `driver' field.                     */
   /*                                                                       */
-  /*    ft_open_params   :: Use the `num_params' & `params' field.         */
+  /*    ft_open_params      :: Use the `num_params' & `params' field.      */
   /*                                                                       */
-  /*    ft_open_incremental :: Use the 'incremental_interface' field.	   */
-  /*        (Available if FT_CONFIG_OPTION_INCREMENTAL is defined.)        */
+  /*    ft_open_incremental :: Use the 'incremental_interface' field.      */
+  /*                           (Available if @FT_CONFIG_OPTION_INCREMENTAL */
+  /*                           is defined.)                                */
   /*                                                                       */
   /* <Note>                                                                */
   /*    The `ft_open_memory', `ft_open_stream', and `ft_open_pathname'     */
@@ -1603,7 +1617,7 @@ FT_BEGIN_HEADER
     ft_open_driver   = 8,
     ft_open_params   = 16
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	,ft_open_incremental = 32
+    ,ft_open_incremental = 32
 #endif
 
   } FT_Open_Flags;
@@ -1666,10 +1680,10 @@ FT_BEGIN_HEADER
   /*    params      :: Extra parameters passed to the font driver when     */
   /*                   opening a new face.                                 */
   /*                                                                       */
-  /*	incremental_interface		:: If non-null, an interface used to   */
-  /*				   implement incremental font loading. This field      */
-  /*                   exists only if FT_CONFIG_OPTION_INCREMENTAL is      */
-  /*                   defined.                                            */
+  /*    incremental_interface ::                                           */
+  /*                   If non-null, an interface used to implement         */
+  /*                   incremental font loading.  This field exists only   */
+  /*                   if @FT_CONFIG_OPTION_INCREMENTAL is defined.        */
   /*                                                                       */
   /* <Note>                                                                */
   /*    The stream type is determined by the contents of `flags' which     */
@@ -1692,21 +1706,21 @@ FT_BEGIN_HEADER
   /*    otherwise.                                                         */
   /*                                                                       */
   /*    If the `ft_open_incremental' bit is set 'incremental_interface'    */
-  /*    will be used, else it is ignored. This feature is available only   */
-  /*    if FT_CONFIG_OPTION_INCREMENTAL is defined.                        */
+  /*    will be used, else it is ignored.  This feature is available only  */
+  /*    if @FT_CONFIG_OPTION_INCREMENTAL is defined.                       */
   /*                                                                       */
   typedef struct  FT_Open_Args_
   {
-    FT_Open_Flags                flags;
-    const FT_Byte*               memory_base;
-    FT_Long                      memory_size;
-    FT_String*                   pathname;
-    FT_Stream                    stream;
-    FT_Module                    driver;
-    FT_Int                       num_params;
-    FT_Parameter*                params;
+    FT_Open_Flags              flags;
+    const FT_Byte*             memory_base;
+    FT_Long                    memory_size;
+    FT_String*                 pathname;
+    FT_Stream                  stream;
+    FT_Module                  driver;
+    FT_Int                     num_params;
+    FT_Parameter*              params;
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	FT_Incremental_Interface*   incremental_interface;
+    FT_Incremental_Interface*  incremental_interface;
 #endif
 
   } FT_Open_Args;
@@ -2934,7 +2948,6 @@ FT_BEGIN_HEADER
                        FT_Matrix*  matrix );
 
 
-
   /*@***********************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
@@ -2948,16 +2961,16 @@ FT_BEGIN_HEADER
   /*    face   :: A handle to the source face object.                      */
   /*                                                                       */
   /* <Input>                                                               */
-  /*    flags  :: A set of bit flags that control the hinting process      */
-  /*              see the FT_HINT_XXX constants for details.               */
+  /*    flags  :: A set of bit flags that control the hinting process.     */
+  /*              See the FT_HINT_XXX constants for details.               */
   /*                                                                       */
   /* <Note>                                                                */
   /*    The interpretation of the flags depends on the hinter module in    */
-  /*    use. Not all modules will support all flags                        */
+  /*    use.  Not all modules will support all flags.                      */
   /*                                                                       */
   FT_EXPORT( void )
-  FT_Set_Hint_Flags( FT_Face     face,
-                     FT_ULong    hint_flags );
+  FT_Set_Hint_Flags( FT_Face   face,
+                     FT_ULong  hint_flags );
 
 
   /*@***********************************************************************/
@@ -2966,10 +2979,11 @@ FT_BEGIN_HEADER
   /*    FT_HINT_NO_INTEGER_STEM                                            */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
-  /*    snapping of stem widths to integer values                          */
+  /*    A bit-field constant, used with @FT_Set_Hint_Flags to to suppress  */
+  /*    snapping of stem widths to integer values.                         */
   /*                                                                       */
-#define FT_HINT_NO_INTEGER_STEM 1
+#define FT_HINT_NO_INTEGER_STEM  1
+
 
   /*@***********************************************************************/
   /*                                                                       */
@@ -2977,10 +2991,11 @@ FT_BEGIN_HEADER
   /*    FT_HINT_NO_HSTEM_ALIGN                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
+  /*    A bit-field constant, used with @FT_Set_Hint_Flags to to suppress  */
   /*    alignment of horizontal stems with the pixel grid.                 */
   /*                                                                       */
-#define FT_HINT_NO_HSTEM_ALIGN 2
+#define FT_HINT_NO_HSTEM_ALIGN  2
+
 
   /*@***********************************************************************/
   /*                                                                       */
@@ -2988,13 +3003,15 @@ FT_BEGIN_HEADER
   /*    FT_HINT_NO_VSTEM_ALIGN                                             */
   /*                                                                       */
   /* <Description>                                                         */
-  /*    A bit-field constant, used with FT_Set_Hint_Flags() to to suppress */
-  /*    alignment of vertical stems with the pixel grid                    */
+  /*    A bit-field constant, used with @FT_Set_Hint_Flags to to suppress  */
+  /*    alignment of vertical stems with the pixel grid.                   */
   /*                                                                       */
-#define FT_HINT_NO_VSTEM_ALIGN 4
+#define FT_HINT_NO_VSTEM_ALIGN  4
+
 
   /* */
 
+
 FT_END_HEADER
 
 #endif /* __FREETYPE_H__ */
diff --git a/include/freetype/fttrigon.h b/include/freetype/fttrigon.h
index 2474206..3b8257b 100644
--- a/include/freetype/fttrigon.h
+++ b/include/freetype/fttrigon.h
@@ -179,15 +179,16 @@ FT_BEGIN_HEADER
   /*    FT_Angle_Diff                                                      */
   /*                                                                       */
   /* @description:                                                         */
-  /*    Returns the difference between two angles. The result is always    */
-  /*    constrained to the ]-PI..PI] interval                              */
+  /*    Return the difference between two angles.  The result is always    */
+  /*    constrained to the ]-PI..PI] interval.                             */
   /*                                                                       */
   /* @input:                                                               */
-  /*    angle1 :: first angle                                              */
-  /*    angle2 :: second angle                                             */
+  /*    angle1 :: First angle.                                             */
+  /*                                                                       */
+  /*    angle2 :: Second angle.                                            */
   /*                                                                       */
   /* @return:                                                              */
-  /*    contrainted value of 'value2-value1'                               */
+  /*    Contrainted value of `value2-value1'.                              */
   /*                                                                       */
   FT_EXPORT( FT_Angle )
   FT_Angle_Diff( FT_Angle  angle1,
diff --git a/include/freetype/fttypes.h b/include/freetype/fttypes.h
index c46bbd5..396a036 100644
--- a/include/freetype/fttypes.h
+++ b/include/freetype/fttypes.h
@@ -360,7 +360,7 @@ FT_BEGIN_HEADER
   /*************************************************************************/
   /*                                                                       */
   /* <Struct>                                                              */
-  /*    FT_Data													           */
+  /*    FT_Data	                                                           */
   /*                                                                       */
   /* <Description>                                                         */
   /*    Read-only binary data represented as a pointer and a length.       */
@@ -368,12 +368,13 @@ FT_BEGIN_HEADER
   /* <Fields>                                                              */
   /*    pointer :: The data.                                               */
   /*                                                                       */
-  /*    length :: The length of the data in bytes.                         */
+  /*    length  :: The length of the data in bytes.                        */
   /*                                                                       */
-  typedef struct FT_Data_
+  typedef struct  FT_Data_
   {
-    const FT_Byte* pointer;
-	FT_Int length;
+    const FT_Byte*  pointer;
+    FT_Int          length;
+
   } FT_Data;
 
 
diff --git a/include/freetype/internal/ftdebug.h b/include/freetype/internal/ftdebug.h
index 2820ebe..129c91f 100644
--- a/include/freetype/internal/ftdebug.h
+++ b/include/freetype/internal/ftdebug.h
@@ -15,8 +15,8 @@
 /*                                                                         */
 /*                                                                         */
 /*  IMPORTANT: A description of FreeType's debugging support can be        */
-/*             found in "docs/DEBUG.TXT". Read it if you need to use       */
-/*             or understand this code.                                    */
+/*             found in "docs/DEBUG.TXT".  Read it if you need to use or   */
+/*             understand this code.                                       */
 /*                                                                         */
 /***************************************************************************/
 
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h
index 6b94a6f..c613b74 100644
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -292,7 +292,7 @@ FT_BEGIN_HEADER
   /*                        Only used by the convenience functions.        */
   /*                                                                       */
   /*    hint_flags       :: Some flags used to change the hinters'         */
-  /*                        behaviour. Only used for debugging for now     */
+  /*                        behaviour.  Only used for debugging for now.   */
   /*                                                                       */
   /*    postscript_name  :: Postscript font name for this face.            */
   /*                                                                       */
diff --git a/include/freetype/internal/pshints.h b/include/freetype/internal/pshints.h
index e7fd76f..5af27b1 100644
--- a/include/freetype/internal/pshints.h
+++ b/include/freetype/internal/pshints.h
@@ -261,13 +261,13 @@ FT_BEGIN_HEADER
   /*    been recorded.                                                     */
   /*                                                                       */
   /* @input:                                                               */
-  /*   hints   :: A handle to the Type 1 hints recorder.                   */
+  /*   hints      :: A handle to the Type 1 hints recorder.                */
   /*                                                                       */
-  /*   outline :: A pointer to the target outline descriptor.              */
+  /*   outline    :: A pointer to the target outline descriptor.           */
   /*                                                                       */
-  /*   globals :: The hinter globals for this font.                        */
+  /*   globals    :: The hinter globals for this font.                     */
   /*                                                                       */
-  /*   hint_flags :: hinter bit flags                                      */
+  /*   hint_flags :: Hinter bit flags.                                     */
   /*                                                                       */
   /* @return:                                                              */
   /*   FreeType error code.  0 means success.                              */
@@ -542,13 +542,13 @@ FT_BEGIN_HEADER
   /*    method.                                                            */
   /*                                                                       */
   /* @input:                                                               */
-  /*    hints   :: A handle to the Type 2 hints recorder.                  */
+  /*    hints      :: A handle to the Type 2 hints recorder.               */
   /*                                                                       */
-  /*    outline :: A pointer to the target outline descriptor.             */
+  /*    outline    :: A pointer to the target outline descriptor.          */
   /*                                                                       */
-  /*    globals :: The hinter globals for this font.                       */
+  /*    globals    :: The hinter globals for this font.                    */
   /*                                                                       */
-  /*    hint_flags :: hinter bit flags                                     */
+  /*    hint_flags :: Hinter bit flags.                                    */
   /*                                                                       */
   /* @return:                                                              */
   /*   FreeType error code.  0 means success.                              */
diff --git a/src/autohint/ahglyph.c b/src/autohint/ahglyph.c
index 2439c20..5ce8c43 100644
--- a/src/autohint/ahglyph.c
+++ b/src/autohint/ahglyph.c
@@ -983,14 +983,14 @@
               if ( max > seg2->max_coord )
                 max = seg2->max_coord;
 
-              len   = max - min;
+              len = max - min;
               if ( len >= 8 )
               {
-                dist  = seg2->pos - seg1->pos;
+                dist = seg2->pos - seg1->pos;
                 if ( dist < 0 )
                   dist = -dist;
   
-                score = dist + 3000/len;
+                score = dist + 3000 / len;
   
                 if ( score < best_score )
                 {
@@ -1009,7 +1009,6 @@
           best_segment->num_linked++;
         }
 
-
       } /* edges 1 */
 
       /* now, compute the `serif' segments */
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index 813f4a4..243b4d0 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -98,6 +98,7 @@
     FT_Pos       dist    = width;
     FT_Int       sign    = 0;
 
+
     if ( dist < 0 )
     {
       dist = -width;
@@ -111,6 +112,7 @@
     {
       FT_Pos  delta = dist - globals->stds[vertical];
 
+
       if ( delta < 0 )
         delta = -delta;
 
@@ -121,27 +123,25 @@
           dist = 32;
       }
 
+      if ( dist < 3 * 64 )
       {
-        if ( dist < 3*64 )
-        {
-          delta = (dist & 63);
-          dist &= -64;
+        delta = ( dist & 63 );
+        dist &= -64;
 
-          if ( delta < 10 )
-            dist += delta;
+        if ( delta < 10 )
+          dist += delta;
 
-          else if ( delta < 32 )
-            dist += 10;
+        else if ( delta < 32 )
+          dist += 10;
 
-          else if ( delta < 54 )
-            dist += 54;
+        else if ( delta < 54 )
+          dist += 54;
 
-          else
-            dist += delta;
-        }
         else
-          dist = (dist+32) & -64;
+          dist += delta;
       }
+      else
+        dist = ( dist + 32 ) & -64;
     }
 #else
     if ( vertical )
@@ -199,7 +199,8 @@
                         AH_Edge*    stem_edge,
                         int         vertical )
   {
-    FT_Pos       dist    = stem_edge->opos - base_edge->opos;
+    FT_Pos  dist = stem_edge->opos - base_edge->opos;
+
 
     stem_edge->pos = base_edge->pos +
                      ah_compute_stem_width( hinter, vertical, dist );
@@ -348,12 +349,12 @@
 
         /* now, align the stem */
 
-        /* this should not happen, but it's better to be safe.. */
+        /* this should not happen, but it's better to be safe. */
         if ( edge2->blue_edge || edge2 < edge )
         {
 
 #if 0
-          printf( "strange blue alignement, edge %d to %d\n",
+          printf( "strange blue alignment, edge %d to %d\n",
                   edge - edges, edge2 - edges );
 #endif
 
@@ -363,7 +364,10 @@
         }
 
         {
+#if 0
           FT_Bool  min = 0;
+#endif
+
 
           if ( !anchor )
           {
@@ -382,17 +386,17 @@
 
             org_pos    = anchor->pos + (edge->opos - anchor->opos);
             org_len    = edge2->opos - edge->opos;
-            org_center = org_pos + (org_len >> 1);
+            org_center = org_pos + ( org_len >> 1 );
 
             cur_len    = ah_compute_stem_width( hinter, dimension, org_len );
 
             cur_pos1   = ( org_pos + 32 ) & -64;
-            delta1     = ( cur_pos1 + (cur_len >> 1) - org_center );
+            delta1     = ( cur_pos1 + ( cur_len >> 1 ) - org_center );
             if ( delta1 < 0 )
               delta1 = -delta1;
 
-            cur_pos2   = (( org_pos + org_len + 32 ) & -64) - cur_len;
-            delta2     = ( cur_pos2 + (cur_len >> 1) - org_center );
+            cur_pos2   = ( ( org_pos + org_len + 32 ) & -64 ) - cur_len;
+            delta2     = ( cur_pos2 + ( cur_len >> 1 ) - org_center );
             if ( delta2 < 0 )
               delta2 = -delta2;
 
@@ -434,9 +438,7 @@
           continue;
 
         if ( edge->serif )
-        {
           ah_align_serif_edge( hinter, edge->serif, edge, dimension );
-        }
         else if ( !anchor )
         {
           edge->pos = ( edge->opos + 32 ) & -64;
diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c
index b0c7d88..90b38fa 100644
--- a/src/base/ftobjs.c
+++ b/src/base/ftobjs.c
@@ -702,7 +702,7 @@
              FT_Parameter*  params,
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-			 FT_Incremental_Interface*	incremental_interface,
+             FT_Incremental_Interface*  incremental_interface,
 #endif
 
              FT_Face*       aface )
@@ -730,7 +730,7 @@
     face->memory   = memory;
     face->stream   = stream;
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	face->incremental_interface = incremental_interface;
+    face->incremental_interface = incremental_interface;
 #endif
 
     error = clazz->init_face( stream,
@@ -746,6 +746,7 @@
       FT_Int      nn;
       FT_CharMap  unicmap = NULL, cmap;
 
+
       for ( nn = 0; nn < face->num_charmaps; nn++ )
       {
         cmap = face->charmaps[nn];
@@ -877,8 +878,9 @@
         FT_Parameter*  params     = 0;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-		FT_Incremental_Interface* incremental_interface =
-			(args->flags & ft_open_incremental) ? args->incremental_interface : 0;
+        FT_Incremental_Interface*  incremental_interface =
+          ( args->flags & ft_open_incremental ) ? args->incremental_interface
+                                                : 0;
 #endif
 
         if ( args->flags & ft_open_params )
@@ -920,8 +922,9 @@
           FT_Parameter*  params     = 0;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-		  FT_Incremental_Interface* incremental_interface =
-            (args->flags & ft_open_incremental) ? args->incremental_interface : 0;
+          FT_Incremental_Interface* incremental_interface =
+            ( args->flags & ft_open_incremental ) ? args->incremental_interface
+                                                  : 0;
 #endif
 
           driver = FT_DRIVER( cur[0] );
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
index ae05365..2e10fbe 100644
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -41,6 +41,7 @@
     FT_Matrix    transform;
     FT_Outline*  outline = &slot->outline;
 
+
     /* only oblique outline glyphs */
     if ( slot->format != ft_glyph_format_outline )
       return;
@@ -209,6 +210,7 @@
     FT_Angle     rotate, angle_in, angle_out;
     FT_Int       c, n, first, orientation;
 
+
     /* only embolden outline glyph images */
     if ( slot->format != ft_glyph_format_outline )
       return;
diff --git a/src/cff/cffcmap.c b/src/cff/cffcmap.c
index cbed837..9cced30 100644
--- a/src/cff/cffcmap.c
+++ b/src/cff/cffcmap.c
@@ -12,10 +12,10 @@
   FT_CALLBACK_DEF( FT_Error )
   cff_cmap_encoding_init( CFF_CMapStd  cmap )
   {
-    TT_Face          face     = (TT_Face)FT_CMAP_FACE( cmap );
-    CFF_Font         cff      = face->extra.data;
-    CFF_Encoding     encoding = &cff->encoding;
-    PSNames_Service  psnames  = cff->psnames;
+    TT_Face       face     = (TT_Face)FT_CMAP_FACE( cmap );
+    CFF_Font      cff      = face->extra.data;
+    CFF_Encoding  encoding = &cff->encoding;
+
 
     cmap->count = encoding->count;
     cmap->gids  = encoding->codes;
diff --git a/src/cff/cffdrivr.c b/src/cff/cffdrivr.c
index 91ce882..dcc2cc9 100644
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -399,21 +399,21 @@
     sizeof( FT_SizeRec ),
     sizeof( CFF_GlyphSlotRec ),
 
-    (FT_Face_InitFunc)        cff_face_init,
-    (FT_Face_DoneFunc)        cff_face_done,
-    (FT_Size_InitFunc)        cff_size_init,
-    (FT_Size_DoneFunc)        cff_size_done,
-    (FT_Slot_InitFunc)        cff_slot_init,
-    (FT_Slot_DoneFunc)        cff_slot_done,
+    (FT_Face_InitFunc)       cff_face_init,
+    (FT_Face_DoneFunc)       cff_face_done,
+    (FT_Size_InitFunc)       cff_size_init,
+    (FT_Size_DoneFunc)       cff_size_done,
+    (FT_Slot_InitFunc)       cff_slot_init,
+    (FT_Slot_DoneFunc)       cff_slot_done,
 
-    (FT_Size_ResetPointsFunc) cff_size_reset,
-    (FT_Size_ResetPixelsFunc) cff_size_reset,
+    (FT_Size_ResetPointsFunc)cff_size_reset,
+    (FT_Size_ResetPixelsFunc)cff_size_reset,
 
-    (FT_Slot_LoadFunc)        Load_Glyph,
+    (FT_Slot_LoadFunc)       Load_Glyph,
 
-    (FT_Face_GetKerningFunc)  Get_Kerning,
-    (FT_Face_AttachFunc)      0,
-    (FT_Face_GetAdvancesFunc) 0,
+    (FT_Face_GetKerningFunc) Get_Kerning,
+    (FT_Face_AttachFunc)     0,
+    (FT_Face_GetAdvancesFunc)0,
   };
 
 
diff --git a/src/cff/cffgload.c b/src/cff/cffgload.c
index b46473b..cf8ac93 100644
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -434,7 +434,7 @@
 
   /* check space for a new on-curve point, then add it */
   static FT_Error
-  cff_builder_cff_builder_add_point1( CFF_Builder*  builder,
+  cff_builder_add_point1( CFF_Builder*  builder,
                           FT_Pos        x,
                           FT_Pos        y )
   {
@@ -492,7 +492,7 @@
       builder->path_begun = 1;
       error = cff_builder_add_contour( builder );
       if ( !error )
-        error = cff_builder_cff_builder_add_point1( builder, x, y );
+        error = cff_builder_add_point1( builder, x, y );
     }
 
     return error;
@@ -627,7 +627,7 @@
 
     /* First load `bchar' in builder */
     error = cff_index_access_element( &cff->charstrings_index, bchar_index,
-                                &charstring, &charstring_len );
+                                      &charstring, &charstring_len );
     if ( !error )
     {
       error = cff_decoder_parse_charstrings( decoder, charstring, charstring_len );
@@ -651,7 +651,7 @@
 
     /* Now load `achar' on top of the base outline. */
     error = cff_index_access_element( &cff->charstrings_index, achar_index,
-                                &charstring, &charstring_len );
+                                      &charstring, &charstring_len );
     if ( !error )
     {
       error = cff_decoder_parse_charstrings( decoder, charstring, charstring_len );
@@ -705,8 +705,8 @@
   /*                                                                       */
   FT_LOCAL_DEF( FT_Error )
   cff_decoder_parse_charstrings( CFF_Decoder*  decoder,
-                         FT_Byte*      charstring_base,
-                         FT_Int        charstring_len )
+                                 FT_Byte*      charstring_base,
+                                 FT_Int        charstring_len )
   {
     FT_Error           error;
     CFF_Decoder_Zone*  zone;
@@ -1175,8 +1175,8 @@
         case cff_op_rlineto:
           FT_TRACE4(( " rlineto" ));
 
-          if ( cff_builder_start_point ( builder, x, y )         ||
-               check_points( builder, num_args / 2 ) )
+          if ( cff_builder_start_point ( builder, x, y ) ||
+               check_points( builder, num_args / 2 )     )
             goto Memory_Error;
 
           if ( num_args < 2 || num_args & 1 )
@@ -1214,7 +1214,7 @@
               else
                 y += args[0];
 
-              if ( cff_builder_cff_builder_add_point1( builder, x, y ) )
+              if ( cff_builder_add_point1( builder, x, y ) )
                 goto Memory_Error;
 
               args++;
@@ -1231,8 +1231,8 @@
           if ( num_args % 6 != 0 )
             goto Stack_Underflow;
 
-          if ( cff_builder_start_point ( builder, x, y )         ||
-               check_points( builder, num_args / 2 ) )
+          if ( cff_builder_start_point ( builder, x, y ) ||
+               check_points( builder, num_args / 2 )     )
             goto Memory_Error;
 
           args = stack;
@@ -1385,8 +1385,8 @@
             if ( num_args < 8 || ( num_args - 6 ) & 1 )
               goto Stack_Underflow;
 
-            if ( cff_builder_start_point( builder, x, y )           ||
-                 check_points( builder, num_lines + 3 ) )
+            if ( cff_builder_start_point( builder, x, y ) ||
+                 check_points( builder, num_lines + 3 )   )
               goto Memory_Error;
 
             args = stack;
@@ -1425,7 +1425,7 @@
             if ( num_args < 8 || ( num_args - 2 ) % 6 )
               goto Stack_Underflow;
 
-            if ( cff_builder_start_point ( builder, x, y )             ||
+            if ( cff_builder_start_point ( builder, x, y ) ||
                  check_points( builder, num_curves*3 + 2 ) )
               goto Memory_Error;
 
@@ -1468,7 +1468,7 @@
             /* make sure we have enough space for the start point if it    */
             /* needs to be added..                                         */
             if ( cff_builder_start_point( builder, x, y ) ||
-                 check_points( builder, 6 )   )
+                 check_points( builder, 6 )               )
               goto Memory_Error;
 
             /* Record the starting point's y postion for later use */
@@ -1519,7 +1519,7 @@
 
             /* adding six more points; 4 control points, 2 on-curve points */
             if ( cff_builder_start_point( builder, x, y ) ||
-                 check_points ( builder, 6 )  )
+                 check_points ( builder, 6 )              )
               goto Memory_Error;
 
             /* record the starting point's y-position for later use */
@@ -1571,7 +1571,7 @@
 
             /* adding six more points; 4 control points, 2 on-curve points */
             if ( cff_builder_start_point( builder, x, y ) ||
-                 check_points( builder, 6 )   )
+                 check_points( builder, 6 )               )
                goto Memory_Error;
 
             /* record the starting point's x, y postion for later use */
@@ -1634,7 +1634,7 @@
             FT_TRACE4(( " flex" ));
 
             if ( cff_builder_start_point( builder, x, y ) ||
-                 check_points( builder, 6 )   )
+                 check_points( builder, 6 )               )
               goto Memory_Error;
 
             args = stack;
@@ -1643,7 +1643,7 @@
               x += args[0];
               y += args[1];
               cff_builder_add_point( builder, x, y,
-                         (FT_Bool)( count == 3 || count == 0 ) );
+                                     (FT_Bool)( count == 3 || count == 0 ) );
               args += 2;
             }
 
@@ -1974,7 +1974,8 @@
 
             if ( zone - decoder->zones >= CFF_MAX_SUBRS_CALLS )
             {
-              FT_ERROR(( "cff_decoder_parse_charstrings: too many nested subrs\n" ));
+              FT_ERROR(( "cff_decoder_parse_charstrings:"
+                         " too many nested subrs\n" ));
               goto Syntax_Error;
             }
 
@@ -1987,7 +1988,8 @@
 
             if ( !zone->base )
             {
-              FT_ERROR(( "cff_decoder_parse_charstrings: invoking empty subrs!\n" ));
+              FT_ERROR(( "cff_decoder_parse_charstrings:"
+                         " invoking empty subrs!\n" ));
               goto Syntax_Error;
             }
 
@@ -2014,7 +2016,8 @@
 
             if ( zone - decoder->zones >= CFF_MAX_SUBRS_CALLS )
             {
-              FT_ERROR(( "cff_decoder_parse_charstrings: too many nested subrs\n" ));
+              FT_ERROR(( "cff_decoder_parse_charstrings:"
+                         " too many nested subrs\n" ));
               goto Syntax_Error;
             }
 
@@ -2027,7 +2030,8 @@
 
             if ( !zone->base )
             {
-              FT_ERROR(( "cff_decoder_parse_charstrings: invoking empty subrs!\n" ));
+              FT_ERROR(( "cff_decoder_parse_charstrings:"
+                         " invoking empty subrs!\n" ));
               goto Syntax_Error;
             }
 
@@ -2042,7 +2046,8 @@
 
           if ( decoder->zone <= decoder->zones )
           {
-            FT_ERROR(( "cff_decoder_parse_charstrings: unexpected return\n" ));
+            FT_ERROR(( "cff_decoder_parse_charstrings:"
+                       " unexpected return\n" ));
             goto Syntax_Error;
           }
 
@@ -2140,11 +2145,12 @@
 
       /* now get load the unscaled outline */
       error = cff_index_access_element( &cff->charstrings_index, glyph_index,
-                                  &charstring, &charstring_len );
+                                        &charstring, &charstring_len );
       if ( !error )
       {
         cff_decoder_prepare( &decoder, glyph_index );
-        error = cff_decoder_parse_charstrings( &decoder, charstring, charstring_len );
+        error = cff_decoder_parse_charstrings( &decoder,
+                                               charstring, charstring_len );
 
         cff_index_forget_element( &cff->charstrings_index, &charstring );
       }
@@ -2225,19 +2231,21 @@
 
       /* now load the unscaled outline */
       error = cff_index_access_element( &cff->charstrings_index, glyph_index,
-                                  &charstring, &charstring_len );
+                                        &charstring, &charstring_len );
       if ( !error )
       {
         CFF_IndexRec csindex = cff->charstrings_index;
 
 
         cff_decoder_prepare( &decoder, glyph_index );
-        error = cff_decoder_parse_charstrings( &decoder, charstring, charstring_len );
+        error = cff_decoder_parse_charstrings( &decoder,
+                                               charstring, charstring_len );
 
         cff_index_forget_element( &cff->charstrings_index, &charstring );
 
         /* We set control_data and control_len if charstrings is loaded.  */
-        /* See how charstring loads at cff_index_access_element() in cffload.c. */
+        /* See how charstring loads at cff_index_access_element() in      */
+        /* cffload.c.                                                     */
 
         glyph->root.control_data =
           csindex.bytes + csindex.offsets[glyph_index] - 1;
diff --git a/src/cff/cffload.c b/src/cff/cffload.c
index e206ab1..1ecc241 100644
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -1535,7 +1535,7 @@
       case 0:
         if ( num_glyphs > 0 )
         {
-          if ( FT_FRAME_ENTER( (num_glyphs-1)*2 ) )
+          if ( FT_FRAME_ENTER( ( num_glyphs - 1 ) * 2 ) )
             goto Exit;
             
           for ( j = 1; j < num_glyphs; j++ )
@@ -1699,7 +1699,6 @@
                      FT_ULong      base_offset,
                      FT_ULong      offset )
   {
-    FT_Memory   memory = stream->memory;
     FT_Error    error  = 0;
     FT_UInt     count;
     FT_UInt     j;
@@ -1744,7 +1743,7 @@
            FT_READ_BYTE( count )              )
         goto Exit;
 
-      encoding->count = (count+1);
+      encoding->count = count + 1;
 
       switch ( encoding->format & 0x7F )
       {
@@ -1752,10 +1751,11 @@
         {
           FT_Byte*  p;
           
+
           if ( FT_FRAME_ENTER( count ) )
             goto Exit;
 
-          p = (FT_Byte*) stream->cursor;
+          p = (FT_Byte*)stream->cursor;
           
           for ( j = 1; j <= count; j++ )
           {
@@ -1778,9 +1778,9 @@
 
       case 1:
         {
-          FT_Byte   nleft;
-          FT_UInt   i = 1;
-          FT_UInt   k;
+          FT_Byte  nleft;
+          FT_UInt  i = 1;
+          FT_UInt  k;
 
 
           /* Parse the Format1 ranges. */
@@ -1981,8 +1981,8 @@
         goto Exit;
 
       error = cff_parser_run( &parser,
-                             (FT_Byte*)stream->cursor,
-                             (FT_Byte*)stream->limit );
+                              (FT_Byte*)stream->cursor,
+                              (FT_Byte*)stream->limit );
       FT_FRAME_EXIT();
       if ( error )
         goto Exit;
@@ -2001,7 +2001,7 @@
 
       font->num_local_subrs = font->local_subrs_index.count;
       error = cff_index_get_pointers( &font->local_subrs_index,
-                                  &font->local_subrs );
+                                      &font->local_subrs );
       if ( error )
         goto Exit;
     }
@@ -2178,7 +2178,7 @@
     font->num_glyphs       = font->charstrings_index.count;
 
     error = cff_index_get_pointers( &font->global_subrs_index,
-                                &font->global_subrs ) ;
+                                    &font->global_subrs ) ;
 
     if ( error )
       goto Exit;
diff --git a/src/cff/cffobjs.c b/src/cff/cffobjs.c
index bb04664..3b83031 100644
--- a/src/cff/cffobjs.c
+++ b/src/cff/cffobjs.c
@@ -225,7 +225,7 @@
 
   static FT_String*
   cff_strcpy( FT_Memory         memory,
-               const FT_String*  source )
+              const FT_String*  source )
   {
     FT_Error    error;
     FT_String*  result = 0;
@@ -402,8 +402,8 @@
           root->style_name = cff_strcpy( memory, "Regular" );  /* XXXX */
         else
           root->style_name = cff_index_get_sid_string( &cff->string_index,
-                                             dict->weight,
-                                             psnames );
+                                                       dict->weight,
+                                                       psnames );
 
         /*******************************************************************/
         /*                                                                 */
@@ -453,24 +453,25 @@
       /* Compute char maps.                                              */
       /*                                                                 */
 
-      /* try to synthetize a Unicode charmap if there is none available */
-      /* already. If an OpenType font contains a Unicode "cmap", we     */
-      /* will use it, wathever be in the CFF part of the file..         */
+      /* Try to synthetize a Unicode charmap if there is none available */
+      /* already.  If an OpenType font contains a Unicode "cmap", we    */
+      /* will use it, whatever be in the CFF part of the file.          */
       {
         FT_CharMapRec  cmaprec;
         FT_CharMap     cmap;
         FT_UInt        nn;
         CFF_Encoding   encoding = &cff->encoding;
 
+
         for ( nn = 0; nn < (FT_UInt) root->num_charmaps; nn++ )
         {
           cmap = root->charmaps[nn];
 
-          /* Windows Unicode (3,1) ? */
+          /* Windows Unicode (3,1)? */
           if ( cmap->platform_id == 3 && cmap->encoding_id == 1 )
             goto Skip_Unicode;
 
-          /* Deprecated Unicode platform id  ?? */
+          /* Deprecated Unicode platform id? */
           if ( cmap->platform_id == 0 )
             goto Skip_Unicode; /* Standard Unicode (deprecated) */
         }
@@ -494,6 +495,7 @@
         {
           FT_CMap_Class  clazz;
 
+
           cmaprec.face        = root;
           cmaprec.platform_id = 7;  /* Adobe platform id */
 
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 78088e0..b49679d 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -47,54 +47,69 @@
     FT_Stream     stream = face->root.stream;
     FT_Error      error  = 0;
     FT_Byte*      charstring = 0;
-	FT_Memory     memory = face->root.memory;
+    FT_Memory     memory = face->root.memory;
     FT_UInt       glyph_length = 0;
 
+
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	/* For incremental fonts get the character data using the callback function. */
-    if (face->root.incremental_interface)
+
+    /* For incremental fonts get the character data using */
+    /* the callback function.                             */
+    if ( face->root.incremental_interface )
     {
-      FT_Data glyph_data;
-      error = face->root.incremental_interface->funcs->get_glyph_data(face->root.incremental_interface->object,
-        glyph_index,&glyph_data);
-      if (error)
+      FT_Data  glyph_data;
+
+
+      error = face->root.incremental_interface->funcs->get_glyph_data(
+                face->root.incremental_interface->object,
+                glyph_index,
+                &glyph_data );
+      if ( error )
         goto Exit;
-      p = (FT_Byte*)glyph_data.pointer;
-      fd_select = (FT_UInt)cid_get_offset(&p,(FT_Byte)cid->fd_bytes);
+
+      p         = (FT_Byte*)glyph_data.pointer;
+      fd_select = (FT_UInt)cid_get_offset( &p, (FT_Byte)cid->fd_bytes );
+
       glyph_data.pointer += cid->fd_bytes;
-      glyph_data.length -= cid->fd_bytes;
-      glyph_length = glyph_data.length;
+      glyph_data.length  -= cid->fd_bytes;
+      glyph_length        = glyph_data.length;
 
-      if (glyph_length == 0)
+      if ( glyph_length == 0 )
         goto Exit;
-      if (FT_ALLOC(charstring,glyph_length))
+      if ( FT_ALLOC( charstring, glyph_length ) )
         goto Exit;
-      ft_memcpy(charstring,glyph_data.pointer,glyph_length);
+      ft_memcpy( charstring, glyph_data.pointer, glyph_length );
     }
-else
+
+    else
+
 #endif
 
-    /* For ordinary fonts read the CID font dictionary index and charstring offset from the CIDMap. */
+    /* For ordinary fonts read the CID font dictionary index */
+    /* and charstring offset from the CIDMap.                */
     {
-      FT_UInt entry_len = cid->fd_bytes + cid->gd_bytes;
-      FT_ULong off1;
+      FT_UInt   entry_len = cid->fd_bytes + cid->gd_bytes;
+      FT_ULong  off1;
+
+
       if ( FT_STREAM_SEEK( cid->data_offset + cid->cidmap_offset +
-           glyph_index * entry_len ) ||
-           FT_FRAME_ENTER( 2 * entry_len ) )
+                           glyph_index * entry_len )               ||
+           FT_FRAME_ENTER( 2 * entry_len )                         )
         goto Exit;
 
-      p = (FT_Byte*)stream->cursor;
-      fd_select = (FT_UInt) cid_get_offset( &p, (FT_Byte)cid->fd_bytes );
-      off1      = (FT_ULong)cid_get_offset( &p, (FT_Byte)cid->gd_bytes );
-      p        += cid->fd_bytes;
+      p            = (FT_Byte*)stream->cursor;
+      fd_select    = (FT_UInt) cid_get_offset( &p, (FT_Byte)cid->fd_bytes );
+      off1         = (FT_ULong)cid_get_offset( &p, (FT_Byte)cid->gd_bytes );
+      p           += cid->fd_bytes;
       glyph_length = cid_get_offset( &p, (FT_Byte)cid->gd_bytes ) - off1;
       FT_FRAME_EXIT();
 
-      if (glyph_length == 0)
+      if ( glyph_length == 0 )
         goto Exit;
-      if (FT_ALLOC(charstring,glyph_length))
+      if ( FT_ALLOC( charstring, glyph_length ) )
         goto Exit;
-      if (FT_STREAM_READ_AT(cid->data_offset + off1,charstring,glyph_length))
+      if ( FT_STREAM_READ_AT( cid->data_offset + off1,
+                              charstring, glyph_length ) )
         goto Exit;
     }
 
@@ -102,7 +117,8 @@ else
     {
       CID_FaceDict  dict;
       CID_Subrs     cid_subrs = face->subrs + fd_select;
-	  FT_Int  cs_offset;
+      FT_Int        cs_offset;
+
 
       /* Set up subrs */
       decoder->num_subrs = cid_subrs->num_subrs;
@@ -116,7 +132,7 @@ else
       decoder->font_offset = dict->font_offset;
       decoder->lenIV       = dict->private_dict.lenIV;
 
-	  /* Decode the charstring. */
+      /* Decode the charstring. */
 
       /* Adjustment for seed bytes. */
       cs_offset = ( decoder->lenIV >= 0 ? decoder->lenIV : 0 );
@@ -127,27 +143,34 @@ else
 
       error = decoder->funcs.parse_charstrings( decoder,
                                                 charstring + cs_offset,
-                                                glyph_length  - cs_offset  );
-      }
+                                                glyph_length - cs_offset  );
+    }
 
     FT_FREE( charstring );
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
+
     /* Incremental fonts can optionally override the metrics. */
-    if (!error && face->root.incremental_interface && face->root.incremental_interface->funcs->get_glyph_metrics)
+    if ( !error                                                     &&
+         face->root.incremental_interface                           &&
+         face->root.incremental_interface->funcs->get_glyph_metrics )
     {
-      FT_Bool found = FALSE;
-      FT_Basic_Glyph_Metrics metrics;
-      error = face->root.incremental_interface->funcs->get_glyph_metrics(face->root.incremental_interface->object,
-        glyph_index,FALSE,&metrics,&found);
-      if (found)
+      FT_Bool                 found = FALSE;
+      FT_Basic_Glyph_Metrics  metrics;
+
+
+      error = face->root.incremental_interface->funcs->get_glyph_metrics(
+                face->root.incremental_interface->object,
+                glyph_index, FALSE, &metrics, &found );
+      if ( found )
       {
         decoder->builder.left_bearing.x = metrics.bearing_x;
         decoder->builder.left_bearing.y = metrics.bearing_y;
-        decoder->builder.advance.x = metrics.advance;
-        decoder->builder.advance.y = 0;
+        decoder->builder.advance.x      = metrics.advance;
+        decoder->builder.advance.y      = 0;
       }
     }
+
 #endif
 
   Exit:
diff --git a/src/cid/cidriver.c b/src/cid/cidriver.c
index 3a175b8..9ab86a4 100644
--- a/src/cid/cidriver.c
+++ b/src/cid/cidriver.c
@@ -90,23 +90,23 @@
     sizeof( CID_SizeRec ),
     sizeof( CID_GlyphSlotRec ),
 
-    (FT_Face_InitFunc)        CID_Face_Init,
-    (FT_Face_DoneFunc)        CID_Face_Done,
+    (FT_Face_InitFunc)       CID_Face_Init,
+    (FT_Face_DoneFunc)       CID_Face_Done,
 
-    (FT_Size_InitFunc)        CID_Size_Init,
-    (FT_Size_DoneFunc)        CID_Size_Done,
-    (FT_Slot_InitFunc)        CID_GlyphSlot_Init,
-    (FT_Slot_DoneFunc)        CID_GlyphSlot_Done,
+    (FT_Size_InitFunc)       CID_Size_Init,
+    (FT_Size_DoneFunc)       CID_Size_Done,
+    (FT_Slot_InitFunc)       CID_GlyphSlot_Init,
+    (FT_Slot_DoneFunc)       CID_GlyphSlot_Done,
 
-    (FT_Size_ResetPointsFunc) CID_Size_Reset,
-    (FT_Size_ResetPixelsFunc) CID_Size_Reset,
+    (FT_Size_ResetPointsFunc)CID_Size_Reset,
+    (FT_Size_ResetPixelsFunc)CID_Size_Reset,
 
-    (FT_Slot_LoadFunc)        CID_Load_Glyph,
+    (FT_Slot_LoadFunc)       CID_Load_Glyph,
 
-    (FT_Face_GetKerningFunc)  0,
-    (FT_Face_AttachFunc)      0,
+    (FT_Face_GetKerningFunc) 0,
+    (FT_Face_AttachFunc)     0,
 
-    (FT_Face_GetAdvancesFunc) 0,
+    (FT_Face_GetAdvancesFunc)0,
   };
 
 
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 6bbb1ca..7f7373d 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -859,6 +859,7 @@
       FT_Byte*     old_cur   = parser->cursor;
       FT_Byte*     old_limit = parser->limit;
       
+
       parser->cursor = token.start;
       parser->limit  = token.limit;
       
@@ -945,10 +946,11 @@
           FT_Fixed  temp[4];
           FT_BBox*  bbox = (FT_BBox*)q;
           
+
           /* we need the '[' and ']' delimiters */
           token.start--;
           token.limit++;
-          (void) t1_tofixedarray( &token.start, token.limit, 4, temp, 0 );
+          (void)t1_tofixedarray( &token.start, token.limit, 4, temp, 0 );
 
           bbox->xMin = FT_RoundFix( temp[0] );
           bbox->yMin = FT_RoundFix( temp[1] );
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index 0cb5a47..e5464e4 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -537,7 +537,7 @@
       if ( delta < -blues->blue_fuzz )
         break;
 
-      if ( stem_top <= zone->org_top + blues->blue_fuzz)
+      if ( stem_top <= zone->org_top + blues->blue_fuzz )
       {
         if ( no_shoots || delta <= blues->blue_threshold )
         {
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 609f000..a10d290 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -433,12 +433,12 @@
 
     /* do we have outlines in there? */
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-    has_outline   = FT_BOOL( face->root.incremental_interface != 0 ||
+    has_outline   = FT_BOOL( face->root.incremental_interface != 0   ||
                              TT_LookUp_Table( face, TTAG_glyf ) != 0 ||
-                             TT_LookUp_Table( face, TTAG_CFF ) != 0 );
+                             TT_LookUp_Table( face, TTAG_CFF ) != 0  );
 #else
     has_outline   = FT_BOOL( TT_LookUp_Table( face, TTAG_glyf ) != 0 ||
-                             TT_LookUp_Table( face, TTAG_CFF ) != 0 );
+                             TT_LookUp_Table( face, TTAG_CFF ) != 0  );
 #endif
 
     is_apple_sbit = 0;
diff --git a/src/sfnt/ttload.c b/src/sfnt/ttload.c
index c2de229..f73c4d0 100644
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -135,33 +135,32 @@
   }
 
 
- /* in theory, we should check the values of `search_range',               */
- /* `entry_selector' and `range_shift' to detect non-SFNT based files      */
+ /* In theory, we should check the values of `search_range',               */
+ /* `entry_selector', and `range_shift' to detect non-SFNT based files     */
  /* whose header might also start with 0x100000L (yes, these exist).       */
  /*                                                                        */
  /* Very unfortunately, many TrueType fonts don't have these fields        */
- /* set correctly and we must ignore them to support them. An alternative  */
+ /* set correctly and we must ignore them to support them.  An alternative */
  /* way to check the font file is thus to:                                 */
  /*                                                                        */
  /* - check that `num_tables' is valid                                     */
  /* - look for a "head" table, check its size, and parse it to             */
- /*   see if its "magic" field is correctly set to                         */
+ /*   see if its "magic" field is correctly set                            */
  /*                                                                        */
- /* Voila, here comes robust though tolerant font format checking :-)      */
- /*                                                                        */
- /* When checking directory entries ignore the tables 'glyx' and 'locx'    */
- /* which are hacked-out versions of 'glyf' and 'loca' in some PostScript  */
+ /* When checking directory entries, ignore the tables `glyx' and `locx'   */
+ /* which are hacked-out versions of `glyf' and `loca' in some PostScript  */
  /* Type 42 fonts, and will generally be invalid.                          */
  /*                                                                        */
- static FT_Error
-  sfnt_dir_check( FT_Stream    stream,
-                  FT_ULong     offset,
-                  FT_UInt      num_tables )
+  static FT_Error
+  sfnt_dir_check( FT_Stream  stream,
+                  FT_ULong   offset,
+                  FT_UInt    num_tables )
    {
-    FT_Error  error;
-    FT_UInt   nn, has_head = 0;
-	const FT_ULong glyx_tag = FT_MAKE_TAG('g','l','y','x');
-	const FT_ULong locx_tag = FT_MAKE_TAG('l','o','c','x');
+    FT_Error        error;
+    FT_UInt         nn, has_head = 0;
+
+	const FT_ULong  glyx_tag = FT_MAKE_TAG('g','l','y','x');
+	const FT_ULong  locx_tag = FT_MAKE_TAG('l','o','c','x');
 
     static const FT_Frame_Field  sfnt_dir_entry_fields[] =
     {
@@ -176,11 +175,13 @@
       FT_FRAME_END
     };
 
+
     /* if 'num_tables' is 0, read the table count from the file */
     if ( num_tables == 0 )
     {
       FT_ULong  format_tag;
 
+
       if ( FT_STREAM_SEEK( offset )     ||
            FT_READ_ULONG ( format_tag ) ||
            FT_READ_USHORT( num_tables ) ||
@@ -197,17 +198,19 @@
     {
       TT_TableRec  table;
 
+
       if ( FT_STREAM_READ_FIELDS( sfnt_dir_entry_fields, &table ) )
         goto Bad_Format;
 
       if ( offset + table.Offset + table.Length > stream->size &&
-		   table.Tag != glyx_tag && table.Tag != locx_tag )
+		   table.Tag != glyx_tag && table.Tag != locx_tag      )
         goto Bad_Format;
 
       if ( table.Tag == TTAG_head )
       {
         FT_UInt32  magic;
 
+
         has_head = 1;
 
         if ( table.Length != 0x36                         ||
@@ -232,6 +235,7 @@
     goto Exit;
   }
 
+
   /*************************************************************************/
   /*                                                                       */
   /* <Function>                                                            */
@@ -263,10 +267,10 @@
   /*    values of `search_range', `entry_selector', and `range_shift'.     */
   /*                                                                       */
   FT_LOCAL_DEF( FT_Error )
-  TT_Load_SFNT_Header( TT_Face       face,
-                       FT_Stream     stream,
-                       FT_Long       face_index,
-                       SFNT_Header   sfnt )
+  TT_Load_SFNT_Header( TT_Face      face,
+                       FT_Stream    stream,
+                       FT_Long      face_index,
+                       SFNT_Header  sfnt )
   {
     FT_Error   error;
     FT_ULong   format_tag, offset;
diff --git a/src/sfnt/ttload.h b/src/sfnt/ttload.h
index f7981dd..ca38f6c 100644
--- a/src/sfnt/ttload.h
+++ b/src/sfnt/ttload.h
@@ -41,15 +41,15 @@ FT_BEGIN_HEADER
 
 
   FT_LOCAL( FT_Error )
-  TT_Load_SFNT_Header( TT_Face       face,
-                       FT_Stream     stream,
-                       FT_Long       face_index,
-                       SFNT_Header   sfnt );
+  TT_Load_SFNT_Header( TT_Face      face,
+                       FT_Stream    stream,
+                       FT_Long      face_index,
+                       SFNT_Header  sfnt );
 
   FT_LOCAL( FT_Error )
-  TT_Load_Directory( TT_Face       face,
-                     FT_Stream     stream,
-                     SFNT_Header   sfnt );
+  TT_Load_Directory( TT_Face      face,
+                     FT_Stream    stream,
+                     SFNT_Header  sfnt );
 
   FT_LOCAL( FT_Error )
   TT_Load_Any( TT_Face    face,
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 62ba577..d07427d 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -339,112 +339,6 @@
   /*************************************************************************/
   /****                                                                 ****/
   /****                                                                 ****/
-  /****             C H A R A C T E R   M A P P I N G S                 ****/
-  /****                                                                 ****/
-  /****                                                                 ****/
-  /*************************************************************************/
-  /*************************************************************************/
-  /*************************************************************************/
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    Get_Char_Index                                                     */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Uses a charmap to return a given character code's glyph index.     */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    charmap  :: A handle to the source charmap object.                 */
-  /*    charcode :: The character code.                                    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    Glyph index.  0 means `undefined character code'.                  */
-  /*                                                                       */
-  static FT_UInt
-  Get_Char_Index( TT_CharMap  charmap,
-                  FT_Long     charcode )
-  {
-    FT_Error      error;
-    TT_Face       face;
-    TT_CMapTable  cmap;
-
-
-    cmap = &charmap->cmap;
-    face = (TT_Face)charmap->root.face;
-
-    /* Load table if needed */
-    if ( !cmap->loaded )
-    {
-      SFNT_Service  sfnt = (SFNT_Service)face->sfnt;
-
-
-      error = sfnt->load_charmap( face, cmap, face->root.stream );
-      if ( error )
-        return 0;
-
-      cmap->loaded = TRUE;
-    }
-
-    if ( cmap->get_index )
-      return cmap->get_index( cmap, charcode );
-    else
-      return 0;
-  }
-
-
-  /*************************************************************************/
-  /*                                                                       */
-  /* <Function>                                                            */
-  /*    Get_Next_Char                                                      */
-  /*                                                                       */
-  /* <Description>                                                         */
-  /*    Uses a charmap to return the next encoded char.                    */
-  /*                                                                       */
-  /* <Input>                                                               */
-  /*    charmap  :: A handle to the source charmap object.                 */
-  /*    charcode :: The character code.                                    */
-  /*                                                                       */
-  /* <Return>                                                              */
-  /*    Next char code.  0 means `no more encoded characters'.             */
-  /*                                                                       */
-  static FT_UInt
-  Get_Next_Char( TT_CharMap  charmap,
-                 FT_Long     charcode )
-  {
-    FT_Error      error;
-    TT_Face       face;
-    TT_CMapTable  cmap;
-
-
-    cmap = &charmap->cmap;
-    face = (TT_Face)charmap->root.face;
-
-    /* Load table if needed */
-    if ( !cmap->loaded )
-    {
-      SFNT_Service  sfnt = (SFNT_Service)face->sfnt;
-
-
-      error = sfnt->load_charmap( face, cmap, face->root.stream );
-      if ( error )
-        return 0;
-
-      cmap->loaded = TRUE;
-    }
-
-    if ( cmap->get_next_char )
-      return cmap->get_next_char ( cmap, charcode );
-    else
-      return 0;
-  }
-
-
-  /*************************************************************************/
-  /*************************************************************************/
-  /*************************************************************************/
-  /****                                                                 ****/
-  /****                                                                 ****/
   /****                D R I V E R  I N T E R F A C E                   ****/
   /****                                                                 ****/
   /****                                                                 ****/
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 25b9212..cdefc9b 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -756,11 +756,11 @@
     FT_Bool         opened_frame = 0;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	struct FT_StreamRec_ inc_stream;
+    struct FT_StreamRec_  inc_stream;
 #endif
 
+
     /* check glyph index */
-    glyph_index;
     if ( glyph_index >= (FT_UInt)face->root.num_glyphs )
     {
       error = TT_Err_Invalid_Glyph_Index;
@@ -784,21 +784,27 @@
       FT_UShort  advance_width = 0;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	  FT_Bool metrics_found = FALSE;
+      FT_Bool    metrics_found = FALSE;
+
 
-	  /* If this is an incrementally loaded font see if there are overriding metrics for this glyph. */
-      if (face->root.incremental_interface && face->root.incremental_interface->funcs->get_glyph_metrics)
+      /* If this is an incrementally loaded font see if there are */
+      /* overriding metrics for this glyph.                       */
+      if ( face->root.incremental_interface &&
+           face->root.incremental_interface->funcs->get_glyph_metrics )
       {
-        FT_Basic_Glyph_Metrics m;
-        error = face->root.incremental_interface->funcs->get_glyph_metrics(face->root.incremental_interface->object,
-            glyph_index,FALSE,&m,&metrics_found);
-        if (error)
-	      goto Exit;
-        left_bearing = (FT_Short)m.bearing_x;
+        FT_Basic_Glyph_Metrics  m;
+
+
+        error = face->root.incremental_interface->funcs->get_glyph_metrics(
+                  face->root.incremental_interface->object,
+                  glyph_index, FALSE, &m, &metrics_found );
+        if ( error )
+          goto Exit;
+        left_bearing  = (FT_Short)m.bearing_x;
         advance_width = (FT_UShort)m.advance;
       }
 
-	  if (!metrics_found)
+      if ( !metrics_found )
         Get_HMetrics( face, glyph_index,
                       (FT_Bool)!( loader->load_flags &
                                   FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ),
@@ -806,13 +812,14 @@
                       &advance_width );
 
 #else
+
       Get_HMetrics( face, glyph_index,
                     (FT_Bool)!( loader->load_flags &
                                 FT_LOAD_IGNORE_GLOBAL_ADVANCE_WIDTH ),
                     &left_bearing,
                     &advance_width );
 
-#endif
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
 
       loader->left_bearing = left_bearing;
       loader->advance      = advance_width;
@@ -825,28 +832,36 @@
     }
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	/*
-	Set 'offset' to the start of the glyph program relative to the start of the 'glyf' table,
-	and 'count' to the length of the glyph program in bytes.
-
-	If we are loading glyph data via the incremental interface, set the loader stream to a memory
-	stream reading the data returned by the interface.
-	*/
-    if (face->root.incremental_interface)
+
+    /* Set `offset' to the start of the glyph program relative to the  */
+    /* start of the 'glyf' table, and `count' to the length of the     */
+    /* glyph program in bytes.                                         */
+    /*                                                                 */
+    /* If we are loading glyph data via the incremental interface, set */
+    /* the loader stream to a memory stream reading the data returned  */
+    /* by the interface.                                               */
+
+    if ( face->root.incremental_interface )
     {
       FT_Data data;
-      error = face->root.incremental_interface->funcs->get_glyph_data(face->root.incremental_interface->object,
-	          glyph_index,&data);
-      if (error)
+
+
+      error = face->root.incremental_interface->funcs->get_glyph_data(
+                face->root.incremental_interface->object,
+                glyph_index, &data );
+      if ( error )
         goto Exit;
+
       offset = 0;
-      count = data.length;
-      memset(&inc_stream,0,sizeof(inc_stream));
-      FT_Stream_OpenMemory(&inc_stream,data.pointer,data.length);
+      count  = data.length;
+      ft_memset( &inc_stream, 0, sizeof ( inc_stream ) );
+      FT_Stream_OpenMemory( &inc_stream, data.pointer, data.length );
       loader->stream = &inc_stream;
     }
+
     else
-#endif
+
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
 
     {
       offset = face->glyph_locations[glyph_index];
@@ -1335,19 +1350,27 @@
       FT_Bool    metrics_found = FALSE;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-      /* If this is an incrementally loaded font see if there are overriding metrics for this glyph. */
-      if (face->root.incremental_interface && face->root.incremental_interface->funcs->get_glyph_metrics)
+
+      /* If this is an incrementally loaded font see if there are */
+      /* overriding metrics for this glyph.                       */
+      if ( face->root.incremental_interface &&
+           face->root.incremental_interface->funcs->get_glyph_metrics )
       {
-        FT_Basic_Glyph_Metrics m;
-        FT_Error error =
-          face->root.incremental_interface->funcs->get_glyph_metrics(face->root.incremental_interface->object,
-            glyph_index,TRUE,&m,&metrics_found);
-        if (error)
+        FT_Basic_Glyph_Metrics  m;
+        FT_Error                error =
+          face->root.incremental_interface->funcs->get_glyph_metrics(
+            face->root.incremental_interface->object,
+            glyph_index, TRUE, &m, &metrics_found );
+
+
+        if ( error )
           return error;
-        top_bearing = (FT_Short)m.bearing_y;
+
+        top_bearing    = (FT_Short)m.bearing_y;
         advance_height = (FT_UShort)m.advance;
       }
-#endif
+
+#endif /* FT_CONFIG_OPTION_INCREMENTAL */
 
       /* Get the unscaled top bearing and advance height. */
       if ( !metrics_found && face->vertical_info &&
@@ -1568,18 +1591,22 @@
     /* seek to the beginning of the glyph table.  For Type 42 fonts      */
     /* the table might be accessed from a Postscript stream or something */
     /* else...                                                           */
+
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-	/* Don't look for the glyph table if this is an incremental font. */
-    if (!face->root.incremental_interface)
+
+    /* Don't look for the glyph table if this is an incremental font. */
+    if ( !face->root.incremental_interface )
+
 #endif
-	{
+
+    {
       error = face->goto_table( face, TTAG_glyf, stream, 0 );
       if ( error )
       {
         FT_ERROR(( "TT_Load_Glyph: could not access glyph table\n" ));
         goto Exit;
       }
-	}
+    }
 
     FT_MEM_SET( &loader, 0, sizeof ( loader ) );
 
@@ -1628,11 +1655,14 @@
     loader.stream = stream;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-    if (face->root.incremental_interface)
+
+    if ( face->root.incremental_interface )
       loader.glyf_offset = 0;
-	else
+    else
+
 #endif
-      loader.glyf_offset  = FT_STREAM_POS();
+
+      loader.glyf_offset = FT_STREAM_POS();
 
 #ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
 
diff --git a/src/truetype/ttobjs.c b/src/truetype/ttobjs.c
index 710fb2a..55f9a35 100644
--- a/src/truetype/ttobjs.c
+++ b/src/truetype/ttobjs.c
@@ -198,18 +198,24 @@
 
     if ( face->root.face_flags & FT_FACE_FLAG_SCALABLE )
       {
+
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
+
         if ( !face->root.incremental_interface )
           error = TT_Load_Locations( face, stream );
         if ( !error )
           error = TT_Load_CVT      ( face, stream ) ||
                   TT_Load_Programs ( face, stream );
+
 #else
+
         if ( !error )
           error = TT_Load_Locations( face, stream ) ||
                   TT_Load_CVT      ( face, stream ) ||
                   TT_Load_Programs ( face, stream );
+
 #endif
+
       }
 
     /* initialize standard glyph loading routines */
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index 9ae4937..545a4e3 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -53,50 +53,64 @@
   /*************************************************************************/
 
 
-FT_LOCAL_DEF(FT_Error) T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder,
-                                                           FT_UInt glyph_index,
-                                                           FT_Data* char_string )
+  FT_LOCAL_DEF( FT_Error )
+  T1_Parse_Glyph_And_Get_Char_String( T1_Decoder  decoder,
+                                      FT_UInt     glyph_index,
+                                      FT_Data*    char_string )
   {
-    T1_Face face = (T1_Face)decoder->builder.face;
-    T1_Font type1 = &face->type1;
-    FT_Error error = 0;
+    T1_Face   face  = (T1_Face)decoder->builder.face;
+    T1_Font   type1 = &face->type1;
+    FT_Error  error = 0;
+
 
     decoder->font_matrix = type1->font_matrix;
     decoder->font_offset = type1->font_offset;
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
-    /* For incremental fonts get the character data using the callback function. */
-    if (face->root.incremental_interface)
-      error = face->root.incremental_interface->funcs->get_glyph_data(face->root.incremental_interface->object,
-        glyph_index,char_string);
+
+    /* For incremental fonts get the character data using the */
+    /* callback function.                                     */
+    if ( face->root.incremental_interface )
+      error = face->root.incremental_interface->funcs->get_glyph_data(
+                face->root.incremental_interface->object,
+                glyph_index, char_string );
     else
+
 #endif
 
     /* For ordinary fonts get the character data stored in the face record. */
     {
       char_string->pointer = type1->charstrings[glyph_index];
-      char_string->length = type1->charstrings_len[glyph_index];
+      char_string->length  = type1->charstrings_len[glyph_index];
     }
 
-    if (!error)
-      error = decoder->funcs.parse_charstrings(decoder,(FT_Byte*)char_string->pointer,char_string->length);
+    if ( !error )
+      error = decoder->funcs.parse_charstrings(
+                decoder, (FT_Byte*)char_string->pointer,
+                char_string->length );
 
 #ifdef FT_CONFIG_OPTION_INCREMENTAL
+
     /* Incremental fonts can optionally override the metrics. */
-    if (!error && face->root.incremental_interface && face->root.incremental_interface->funcs->get_glyph_metrics)
+    if ( !error && face->root.incremental_interface                 &&
+         face->root.incremental_interface->funcs->get_glyph_metrics )
     {
-      FT_Bool found = FALSE;
-      FT_Basic_Glyph_Metrics metrics;
-      error = face->root.incremental_interface->funcs->get_glyph_metrics(face->root.incremental_interface->object,
-        glyph_index,FALSE,&metrics,&found);
-      if (found)
+      FT_Bool                 found = FALSE;
+      FT_Basic_Glyph_Metrics  metrics;
+
+
+      error = face->root.incremental_interface->funcs->get_glyph_metrics(
+                face->root.incremental_interface->object,
+                glyph_index, FALSE, &metrics, &found );
+      if ( found )
       {
         decoder->builder.left_bearing.x = metrics.bearing_x;
         decoder->builder.left_bearing.y = metrics.bearing_y;
-        decoder->builder.advance.x = metrics.advance;
-        decoder->builder.advance.y = 0;
+        decoder->builder.advance.x      = metrics.advance;
+        decoder->builder.advance.y      = 0;
       }
     }
+
 #endif
 
   return error;
@@ -107,8 +121,10 @@ FT_LOCAL_DEF(FT_Error) T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder,
   T1_Parse_Glyph( T1_Decoder  decoder,
                   FT_UInt     glyph_index )
   {
-    FT_Data data;
-    return T1_Parse_Glyph_And_Get_Char_String(decoder,glyph_index,&data);
+    FT_Data  data;
+
+
+    return T1_Parse_Glyph_And_Get_Char_String( decoder, glyph_index, &data );
   }
 
 
@@ -230,7 +246,8 @@ FT_LOCAL_DEF(FT_Error) T1_Parse_Glyph_And_Get_Char_String( T1_Decoder decoder,
     decoder.subrs_len = type1->subrs_len;
 
     /* now load the unscaled outline */
-    error = T1_Parse_Glyph_And_Get_Char_String( &decoder, glyph_index, &char_string );
+    error = T1_Parse_Glyph_And_Get_Char_String( &decoder, glyph_index,
+                                                &char_string );
     if ( error )
       goto Exit;