Removing trailing whitespace.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870
diff --git a/CHANGES b/CHANGES
index 23980f9..7c28839 100644
--- a/CHANGES
+++ b/CHANGES
@@ -28,7 +28,7 @@ LATEST CHANGES
- fixed two memory leaks:
- the memory manager (16 bytes) isn't released in FT_Done_FreeType !!
-
+
- using custom input streams, the copy of the original stream
was never released
@@ -42,14 +42,14 @@ LATEST CHANGES
BETA-8 (RELEASE CANDIDATE) CHANGES
- deactivated the trueType bytecode interpreter by default
-
+
- deactivated the "src/type1" font driver. Now "src/type1z" is
used by default..
- updates to the build system. We now compile the library correctly
under Unix system through "configure" which is automatically called
on the first "make" invocation.
-
+
- added the auto-hinting module !!. Fixing some bugs here and there..
- found some bugs in the composite loader (seac) of the Type1-based
@@ -59,7 +59,7 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
updated all relevant files..
- found a memory leak in the "type1" driver
-
+
- incorporated Tom's patches to support flex operators correctly
in OpenType/CFF fonts.. Now all I need is to support pure CFF
and CEF fonts to be done with this driver.. :-)
@@ -67,24 +67,24 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
- added the Windows FNT/FON driver in "src/winfonts". For now,
it always "simulates" a Unicode charmap, so it shouldn't be
considered completed right now..
-
+
It's there to be more a proof of concept than anything else
anyway. The driver is a single C source file, that compiles
to 3 Kb of code..
-
+
I'm still working on the PCF/BDF drivers.. but I'm too lazy
to finish them now..
- CHANGES TO THE HIGH-LEVEL API
-
+
o FT_Get_Kerning has a new parameter that allows you to select
the coordinates of the kerning vector ( font units, scaled,
scaled + grid-fitted ).
-
+
o the outline functions are now in <freetype/ftoutln.h> and not
part of <freetype/freetype.h> anymore
-
+
o <freetype/ftmodule.h> now contains declarations for
FT_New_Library, FT_Done_Library, FT_Add_Default_Modules
@@ -96,9 +96,9 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
(i.e. corresponds to render_mode == 0 == ft_render_mode_normal).
To generate a monochrome bitmap, use ft_render_mode_mono, or the
FT_LOAD_MONOCHROME flag in FT_Load_Glyph/FT_Load_Char.
-
+
FT_LOAD_ANTI_ALIAS is still defined, but values to 0.
-
+
o <freetype/freetype.h> now include <freetype/config/ftconfig.h>,
solving a few headaches :-)
@@ -107,7 +107,7 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
- CHANGES TO THE "ftglyph.h" API
-
+
This API has been severely modified in order to make it simpler,
clearer, and more efficient. It certainly now looks like a real
"glyph factory" object, and allows client applications to manage
@@ -121,59 +121,59 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
- cleaned up source code in order to avoid two functions with the
same name. Also changed the names of the files in "type1z" from
"t1XXXX" to "z1XXXX" in order to avoid any conflicts.
-
+
"make multi" now works well :-)
-
+
Also removed the use of "cidafm" for now, even if the source files
are still there. This functionality will certainly go into a specific
module..
- - ADDED SUPPORT FOR THE AUTO-HINTER
-
+ - ADDED SUPPORT FOR THE AUTO-HINTER
+
It works :-) I have a demo program which simply is a copy of "ftview"
that does a FT_Add_Module( library, &autohinter_module_class ) after
library initialisation, and Type 1 & OpenType/CFF fonts are now hinted.
-
+
CID fonts are not hinted, as they include no charmap and the auto-hinter
doesn't include "generic" global metrics computations yet..
-
+
Now, I need to release this thing to the FreeType 2 source..
-
-
+
+
- CHANGES TO THE RENDERER MODULES
-
+
the monochrome and smooth renderers are now in two distinct directories,
namely "src/raster1" and "src/smooth". Note that the old "src/renderer"
is now gone..
-
+
I ditched the 5-gray-levels renderers. Basically, it involved a simple
#define toggle in 'src/raster1/ftraster.c'
-
+
FT_Render_Glyph, FT_Outline_Render & FT_Outline_Get_Bitmap now select
the best renderer available, depending on render mode. If the current
renderer for a given glyph image format isn't capable of supporting
the render mode, another one will be found in the library's list.
-
+
This means that client applications do not need to switch or set the
renderers themselves (as in the latest change), they'll get what they
want automatically... At last..
-
+
Changed the demo programs accordingly..
-
-
+
+
- MAJOR INTERNAL REDESIGN:
-
+
A lot of internal modifications have been performed lately on the
source in order to provide the following enhancements:
-
+
- more generic module support:
-
+
The FT_Module type is now defined to represent a handle to a given
module. The file <freetype/ftmodule.h> contains the FT_Module_Class
definition, as well as the module-loading public API
@@ -187,10 +187,10 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
The FT_Renderer type is a pointer to a module used to perform various
operations on glyph image.
-
+
Each renderer is capable of handling images in a single format
(e.g. ft_glyph_format_outline). Its functions are used to:
-
+
- transform an glyph image
- render a glyph image into a bitmap
- return the control box (dimensions) of a given glyph image
@@ -199,16 +199,16 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
The scan converters "ftraster.c" and "ftgrays.c" have been moved
to the new directory "src/renderer", and are used to provide two
default renderer modules.
-
+
One corresponds to the "standard" scan-converter, the other to the
"smooth" one.
-
+
The current renderer can be set through the new function
FT_Set_Renderer.
-
+
The old raster-related function FT_Set_Raster, FT_Get_Raster and
FT_Set_Raster_Mode have now disappeared, in favor of the new:
-
+
FT_Get_Renderer
FT_Set_Renderer
@@ -223,7 +223,7 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
A new internal object, called a 'glyph loader' has been introduced
in the base layer. It is used by all scalable format font drivers
to load glyphs and composites.
-
+
This object has been created to reduce the code size of each driver,
as each one of them basically re-implemented its functionality.
@@ -236,20 +236,20 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
In order to support extended features (see below), the FT_GlyphSlot
structure has a few new fields:
-
+
linearHoriAdvance: this field gives the linearly scaled (i.e.
scaled but unhinted) advance width for the glyph,
expressed as a 16.16 fixed pixel value. This
is useful to perform WYSIWYG text.
-
+
linearVertAdvance: this field gives the linearly scaled advance
height for the glyph (relevant in vertical glyph
layouts only). This is useful to perform
- WYSIWYG text.
+ WYSIWYG text.
Note that the two above field replace the removed "metrics2" field
in the glyph slot.
-
+
advance: this field is a vector that gives the transformed
advance for the glyph. By default, it corresponds
to the advance width, unless FT_LOAD_VERTICAL_LAYOUT
@@ -261,7 +261,7 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
when the "format" field is set to
"ft_glyph_format_bitmap", for example, after calling
the new function FT_Render_Glyph.
-
+
bitmap_top: this field gives the distance in integer pixels from
the current pen position (located on the baseline) to
the top-most pixel of the glyph image WHEN IT IS A
@@ -275,7 +275,7 @@ BETA-8 (RELEASE CANDIDATE) CHANGES
Most of the functionality found in <freetype/ftglyph.h> has been
moved to the core library. Hence, the following:
-
+
- a transform can be specified for a face through FT_Set_Transform.
this transform is applied by FT_Load_Glyph to scalable glyph images
(i.e. NOT TO BITMAPS) before the function returns, unless the
@@ -307,7 +307,7 @@ OLD CHANGES FOR BETA 7
- bug-fixed the OpenType/CFF parser. It now loads and displays my two
fonts nicely, but I'm pretty certain that more testing is needed :-)
-
+
- fixed the crummy Type 1 hinter, it now handles accented characters
correctly (well, the accent is not always well placed, but that's
another problem..)
@@ -338,7 +338,7 @@ OLD CHANGES FOR BETA 7
- added support for Multiple Master fonts in "type1z". There is also
a new file named <freetype/ftmm.h> which defines functions to
manage them from client applications.
-
+
The new file "src/base/ftmm.c" is also optional to the engine..
- various formatting changes (e.g. EXPORT_DEF -> FT_EXPORT_DEF) +
diff --git a/INSTALL b/INSTALL
index cc7bcba..3890bd1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -11,7 +11,7 @@ directory. Quick starter: go to "freetype2-beta8", then:
Unix (+GNU Make):
-
+
- make (don't worry, this will invoke a configure script)
- make
@@ -22,21 +22,20 @@ directory. Quick starter: go to "freetype2-beta8", then:
- make
- Windows + gcc + GNU Make:
-
+ Windows + gcc + GNU Make:
+
- make
- make
Windows + Visual C++ + GNU Make:
- make setup visualc
- - make
-
+ - make
+
Windows + Win32-LCC + GNU Make:
-
+
- make setup lcc
- make
-
+
etc...
-
diff --git a/builds/compiler/unix-lcc.mk b/builds/compiler/unix-lcc.mk
index e1a925f..27394fc 100644
--- a/builds/compiler/unix-lcc.mk
+++ b/builds/compiler/unix-lcc.mk
@@ -70,7 +70,7 @@ endif
#
# LCC is pure ANSI anyway!
#
-# the "-A" flag simply increments verbosity about non ANSI code
+# the "-A" flag simply increments verbosity about non ANSI code
#
ANSIFLAGS := -A
@@ -82,5 +82,5 @@ ifndef CLEAN_LIBRARY
$(NO_OUTPUT)
endif
LINK_LIBRARY = $(AR) -r $@ $(OBJECTS_LIST)
-
+
# EOF
diff --git a/builds/compiler/win-lcc.mk b/builds/compiler/win-lcc.mk
index 6772686..6e9512a 100644
--- a/builds/compiler/win-lcc.mk
+++ b/builds/compiler/win-lcc.mk
@@ -75,7 +75,7 @@ ANSIFLAGS :=
# library linking
#
-#CLEAN_LIBRARY :=
+#CLEAN_LIBRARY :=
LINK_LIBRARY = lcclib /out:$(subst $(SEP),\\,$@) $(subst $(SEP),\\,$(OBJECTS_LIST))
-
+
# EOF
diff --git a/builds/cygwin/configure.in b/builds/cygwin/configure.in
index 33af220..8c1c7ef 100644
--- a/builds/cygwin/configure.in
+++ b/builds/cygwin/configure.in
@@ -79,7 +79,7 @@ AC_CHECK_FUNCS(memcpy memmove)
AM_PROG_LIBTOOL
-dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk'
+dnl create the CygWin-specific sub-Makefile `builds/cygwin/cygwin-def.mk'
dnl and 'builds/cygwin/cygwin-cc.mk' that will be used by the build system
dnl
AC_OUTPUT(cygwin-cc.mk:cygwin-cc.in cygwin-def.mk:cygwin-def.in)
diff --git a/builds/cygwin/cygwin.mk b/builds/cygwin/cygwin.mk
index 916d12d..1917846 100644
--- a/builds/cygwin/cygwin.mk
+++ b/builds/cygwin/cygwin.mk
@@ -30,13 +30,13 @@ ifdef BUILD_PROJECT
distclean_project: distclean_project_cygwin
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# this is compiler-specific
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
- ifdef CLEAN_LIBRARY
+ ifdef CLEAN_LIBRARY
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
- endif
+ endif
$(LINK_LIBRARY)
endif
diff --git a/builds/cygwin/detect.mk b/builds/cygwin/detect.mk
index 34a82a5..e27c3bf 100644
--- a/builds/cygwin/detect.mk
+++ b/builds/cygwin/detect.mk
@@ -20,7 +20,7 @@ ifeq ($(PLATFORM),ansi)
# work...
#
ifeq ($(OS),Windows_NT)
-
+
# Check if we are running on a CygWin system by checking the OSTYPE
# variable.
ifeq ($(OSTYPE),cygwin)
diff --git a/builds/cygwin/ftsystem.c b/builds/cygwin/ftsystem.c
index 570afa1..ded4342 100644
--- a/builds/cygwin/ftsystem.c
+++ b/builds/cygwin/ftsystem.c
@@ -194,7 +194,7 @@
void ft_close_stream( FT_Stream stream )
{
munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size );
-
+
stream->descriptor.pointer = NULL;
stream->size = 0;
stream->base = 0;
@@ -243,7 +243,7 @@
FT_ERROR(( " could not `fstat' file `%s'\n", filepathname ));
goto Fail_Map;
}
-
+
stream->size = stat_buf.st_size;
stream->pos = 0;
stream->base = (unsigned char *)mmap( NULL,
@@ -264,23 +264,23 @@
stream->descriptor.pointer = stream->base;
stream->pathname.pointer = (char*)filepathname;
-
+
stream->close = ft_close_stream;
stream->read = 0;
-
+
FT_TRACE1(( "FT_New_Stream:" ));
FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
filepathname, stream->size ));
return FT_Err_Ok;
-
+
Fail_Map:
close( file );
stream->base = NULL;
stream->size = 0;
stream->pos = 0;
-
+
return FT_Err_Cannot_Open_Stream;
}
@@ -299,7 +299,7 @@
FT_EXPORT_FUNC( FT_Memory ) FT_New_Memory( void )
{
FT_Memory memory;
-
+
memory = (FT_Memory)malloc( sizeof ( *memory ) );
if ( memory )
diff --git a/builds/dos/detect.mk b/builds/dos/detect.mk
index 377b709..3ce43f2 100644
--- a/builds/dos/detect.mk
+++ b/builds/dos/detect.mk
@@ -27,7 +27,7 @@ ifeq ($(PLATFORM),ansi)
#
ifneq ($(OSTYPE),cygwin)
is_dos := $(findstring Dos,$(shell ver))
-
+
# We try to recognize a Dos session under OS/2. The `ver' command
# returns `Operating System/2 ...' there, so `is_dos' should be empty.
#
diff --git a/builds/dos/dos-def.mk b/builds/dos/dos-def.mk
index 000bcd2..16f4e0d 100644
--- a/builds/dos/dos-def.mk
+++ b/builds/dos/dos-def.mk
@@ -52,7 +52,7 @@ LIBRARY := $(PROJECT)
# The NO_OUTPUT macro is used to ignore the output of commands.
-#
+#
NO_OUTPUT = &> nul
@@ -68,11 +68,11 @@ ifdef BUILD_PROJECT
clean_project: clean_project_dos
distclean_project: distclean_project_dos
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# It is part of the system-specific sub-Makefile because not all
# librarians accept a simple syntax like
#
- # librarian library_file {list of object files}
+ # librarian library_file {list of object files}
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
diff --git a/builds/link_dos.mk b/builds/link_dos.mk
index ee6fe69..09dda0a 100644
--- a/builds/link_dos.mk
+++ b/builds/link_dos.mk
@@ -25,13 +25,13 @@ ifdef BUILD_PROJECT
clean_project: clean_project_dos
distclean_project: distclean_project_dos
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# this is compiler-specific
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
-ifdef CLEAN_LIBRARY
+ifdef CLEAN_LIBRARY
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
-endif
+endif
$(LINK_LIBRARY)
endif
diff --git a/builds/link_std.mk b/builds/link_std.mk
index d9fc955..53133c0 100644
--- a/builds/link_std.mk
+++ b/builds/link_std.mk
@@ -25,13 +25,13 @@ ifdef BUILD_PROJECT
clean_project: clean_project_std
distclean_project: distclean_project_std
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# this is compiler-specific
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
-ifdef CLEAN_LIBRARY
+ifdef CLEAN_LIBRARY
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
-endif
+endif
$(LINK_LIBRARY)
endif
diff --git a/builds/os2/os2-def.mk b/builds/os2/os2-def.mk
index 486b978..42f505d 100644
--- a/builds/os2/os2-def.mk
+++ b/builds/os2/os2-def.mk
@@ -52,7 +52,7 @@ LIBRARY := $(PROJECT)
# The NO_OUTPUT macro is used to ignore the output of commands.
-#
+#
NO_OUTPUT = 2> nul
@@ -68,11 +68,11 @@ ifdef BUILD_LIBRARY
clean_project: clean_project_dos
distclean_project: distclean_project_dos
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# It is part of the system-specific sub-Makefile because not all
# librarians accept a simple syntax like
#
- # librarian library_file {list of object files}
+ # librarian library_file {list of object files}
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
diff --git a/builds/os2/os2-dev.mk b/builds/os2/os2-dev.mk
index 56a1f6f..cf1fbd2 100644
--- a/builds/os2/os2-dev.mk
+++ b/builds/os2/os2-dev.mk
@@ -124,11 +124,11 @@ ifdef BUILD_FREETYPE
FT_LIBRARIAN := $(AR) -r
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# It is part of the system-specific sub-Makefile because not all
# librarians accept a simple syntax like
#
- # librarian library_file {list of object files}
+ # librarian library_file {list of object files}
#
$(FT_LIBRARY): $(OBJECTS_LIST)
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_LIBRARY)) 2> nul
diff --git a/builds/os2/os2-gcc.mk b/builds/os2/os2-gcc.mk
index 7e57b60..af47bd7 100644
--- a/builds/os2/os2-gcc.mk
+++ b/builds/os2/os2-gcc.mk
@@ -123,11 +123,11 @@ ifdef BUILD_FREETYPE
FT_LIBRARIAN := $(AR) -r
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# It is part of the system-specific sub-Makefile because not all
# librarians accept a simple syntax like
#
- # librarian library_file {list of object files}
+ # librarian library_file {list of object files}
#
$(FT_LIBRARY): $(OBJECTS_LIST)
-$(DELETE) $(subst $(SEP),$(HOSTSEP),$(FT_LIBRARY)) 2> nul
diff --git a/builds/toplevel.mk b/builds/toplevel.mk
index fc7461f..58c0e16 100644
--- a/builds/toplevel.mk
+++ b/builds/toplevel.mk
@@ -66,7 +66,7 @@ ifdef check_platform
all: setup
- ifdef USE_MODULES
+ ifdef USE_MODULES
# If the module list $(MODULE_LIST) file is not present, generate it.
#
#modules: make_module_list setup
@@ -74,7 +74,7 @@ ifdef check_platform
include $(TOP)/builds/detect.mk
- ifdef USE_MODULES
+ ifdef USE_MODULES
include $(TOP)/builds/modules.mk
ifeq ($(wildcard $(MODULE_LIST)),)
diff --git a/builds/unix/configure.in b/builds/unix/configure.in
index d6488e1..33b2f08 100644
--- a/builds/unix/configure.in
+++ b/builds/unix/configure.in
@@ -79,7 +79,7 @@ AC_CHECK_FUNCS(memcpy memmove)
AM_PROG_LIBTOOL
-dnl create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
+dnl create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
dnl and 'builds/unix/unix-cc.mk' that will be used by the build system
dnl
AC_OUTPUT(unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in)
diff --git a/builds/unix/ftsystem.c b/builds/unix/ftsystem.c
index 570afa1..ded4342 100644
--- a/builds/unix/ftsystem.c
+++ b/builds/unix/ftsystem.c
@@ -194,7 +194,7 @@
void ft_close_stream( FT_Stream stream )
{
munmap( (MUNMAP_ARG_CAST)stream->descriptor.pointer, stream->size );
-
+
stream->descriptor.pointer = NULL;
stream->size = 0;
stream->base = 0;
@@ -243,7 +243,7 @@
FT_ERROR(( " could not `fstat' file `%s'\n", filepathname ));
goto Fail_Map;
}
-
+
stream->size = stat_buf.st_size;
stream->pos = 0;
stream->base = (unsigned char *)mmap( NULL,
@@ -264,23 +264,23 @@
stream->descriptor.pointer = stream->base;
stream->pathname.pointer = (char*)filepathname;
-
+
stream->close = ft_close_stream;
stream->read = 0;
-
+
FT_TRACE1(( "FT_New_Stream:" ));
FT_TRACE1(( " opened `%s' (%d bytes) successfully\n",
filepathname, stream->size ));
return FT_Err_Ok;
-
+
Fail_Map:
close( file );
stream->base = NULL;
stream->size = 0;
stream->pos = 0;
-
+
return FT_Err_Cannot_Open_Stream;
}
@@ -299,7 +299,7 @@
FT_EXPORT_FUNC( FT_Memory ) FT_New_Memory( void )
{
FT_Memory memory;
-
+
memory = (FT_Memory)malloc( sizeof ( *memory ) );
if ( memory )
diff --git a/builds/unix/unix.mk b/builds/unix/unix.mk
index f904548..027f3c9 100644
--- a/builds/unix/unix.mk
+++ b/builds/unix/unix.mk
@@ -30,16 +30,16 @@ ifdef BUILD_PROJECT
distclean_project: distclean_project_unix
- # This final rule is used to link all object files into a single library.
+ # This final rule is used to link all object files into a single library.
# It is part of the system-specific sub-Makefile because not all
# librarians accept a simple syntax like
#
- # librarian library_file {list of object files}
+ # librarian library_file {list of object files}
#
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
-ifdef CLEAN_LIBRARY
+ifdef CLEAN_LIBRARY
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
-endif
+endif
$(LINK_LIBRARY)
endif
diff --git a/builds/win32/detect.mk b/builds/win32/detect.mk
index 4ba0fbf..81638a3 100644
--- a/builds/win32/detect.mk
+++ b/builds/win32/detect.mk
@@ -20,7 +20,7 @@ ifeq ($(PLATFORM),ansi)
# work...
#
ifeq ($(OS),Windows_NT)
-
+
# Check if we are running on a CygWin system by checking the OSTYPE
# variable.
ifneq ($(OSTYPE),cygwin)
diff --git a/builds/win32/win32-def.mk b/builds/win32/win32-def.mk
index d1ba599..eabd59f 100644
--- a/builds/win32/win32-def.mk
+++ b/builds/win32/win32-def.mk
@@ -55,7 +55,7 @@ LIBRARY := $(PROJECT)
# The NO_OUTPUT macro is used to ignore the output of commands.
-#
+#
NO_OUTPUT = 2> nul
# EOF
diff --git a/docs/BUILD b/docs/BUILD
index 47daa94..86b2921 100644
--- a/docs/BUILD
+++ b/docs/BUILD
@@ -32,7 +32,7 @@ I. QUICK COMMAND-LINE GUIDE
Note that on Unix, the first `make' invocation will run a configure
script (which is located in `freetype2/builds/unix/'. You can also
pass parameters to this script with the CFG variable, as in:
-
+
make CFG="--prefix=/usr/local"
make
@@ -61,11 +61,11 @@ II. COMMAND-LINE COMPILATION
Make sure that you are invoking GNU Make from the command line, by
typing something like:
-
+
make -v
-
+
to display its version number.
-
+
b. Invoke `make'
Go to the root directory of FreeType 2, then simply invoke GNU
@@ -248,16 +248,16 @@ IV. Support for flat-directory compilation
Note that you still need to only compile the `wrapper' sources
described above. Define the `FT_FLAT_COMPILE' macro when
compiling. Here an example:
-
+
1. Copy all files in current directory:
-
+
cp freetype2/src/base/*.[hc] .
cp freetype2/src/raster1/*.[hc] .
cp freetype2/src/smooth/*.[hc] .
etc.
2. Compile sources:
-
+
cc -c -DFT_FLAT_COMPILE -Ifreetype2/include ftsystem.c
cc -c -DFT_FLAT_COMPILE -Ifreetype2/include ftinit.c
cc -c -DFT_FLAT_COMPILE -Ifreetype2/include ftdebug.c
diff --git a/docs/convntns.txt b/docs/convntns.txt
index 6653c21..327f438 100644
--- a/docs/convntns.txt
+++ b/docs/convntns.txt
@@ -102,7 +102,7 @@ points:
`numberOfPoints' or `number_Of_Points'
`IncredibleFunction' or `Incredible_Function'
-
+
And finally, always put a capital letter after an underscore,
except in variable labels that are all lowercase:
@@ -191,7 +191,7 @@ points:
PProfile next; /* next profile in same contour, used */
/* during drop-out control */
};
-
+
instead of
struct TProfile_
@@ -207,7 +207,7 @@ points:
PProfile next; /* next profile in same contour, used */
/* during drop-out control */
};
-
+
This comes from the fact that you are more interested in the field
and its function than in its type.
@@ -272,7 +272,7 @@ points:
same column. It makes it easier to separate a block from the rest
of the source, and it helps your _brain_ associate the accolades
easily (ask any Lisp programmer on the topic!).
-
+
Use two spaces for the next indentation level.
Never use tabs in FreeType 2 code; their widths may vary with
@@ -427,11 +427,11 @@ II. Design Conventions
have thus decided to stick to the following restrictions:
- The C version is written entirely in ANSI C.
-
+
- The library, if compiled with gcc, doesn't produce any warning
with the `-ansi -pedantic' flags. Other compilers with better
checks may produce ANSI warnings -- please report.
-
+
(NOTE: It can of course be compiled by an `average' C compiler,
and even by a C++ one.)
@@ -510,7 +510,7 @@ III. Usage conventions
goto Fail;
with
-
+
#define PERFORM_Action_1( parms_1 ) \
( error = Perform_Action_1( parms_1 ) )
#define PERFORM_Action_2( parms_1 ) \
@@ -525,7 +525,7 @@ III. Usage conventions
actual error handling performed. Another advantage is that the
structure of source files remain very similar, even though the
error handling may be different.
-
+
This convention is very close to the use of exceptions in
languages like C++, Pascal, Java, etc. where the developer
focuses on the actions to perform, and not on every little error
@@ -546,7 +546,7 @@ III. Usage conventions
and independence of a complete C library, it is possible to
re-implement the component for a specific system or OS, letting
it use system calls.
-
+
b. Frames
TrueType is tied to the big-endian format, which implies that
@@ -686,4 +686,4 @@ III. Usage conventions
access to it yourself with a simple mutex.
---- end of convntns.txt ---
+--- end of convntns.txt ---
diff --git a/docs/design/design-1.html b/docs/design/design-1.html
index c2d1b72..522d23a 100644
--- a/docs/design/design-1.html
+++ b/docs/design/design-1.html
@@ -76,7 +76,7 @@
</li>
<li>
<p><em>Customization</b>. It should be easy to build a version of the
- library that only contains the features needed by a specific project.
+ library that only contains the features needed by a specific project.
This really is important when you need to integrate it in a font
server for embedded graphics libraries.</p>
</li>
diff --git a/docs/design/design-2.html b/docs/design/design-2.html
index b8bcb85..7270474 100644
--- a/docs/design/design-2.html
+++ b/docs/design/design-2.html
@@ -71,7 +71,7 @@
<ul>
<li>
<p>Some parts of the base layer can be replaced for specific builds of
- the library, and can thus be considered as components themselves.
+ the library, and can thus be considered as components themselves.
This is the case for the <tt>ftsystem</tt> component, which is in
charge of implementing memory management & input stream access, as
well as <tt>ftinit</tt>, which is in charge of library initialization
@@ -119,7 +119,7 @@
<p>A replacable component can provide a function of the high-level
API. For example, <tt>ftinit</tt> provides
<tt>FT_Init_FreeType()</tt> to client applications.</p>
- </li>
+ </li>
</ul>
</td></tr>
diff --git a/docs/design/design-3.html b/docs/design/design-3.html
index 0c1bbd1..bc57b17 100644
--- a/docs/design/design-3.html
+++ b/docs/design/design-3.html
@@ -37,7 +37,7 @@
</h2>
<p>Though written in ANSI C, the library employs a few techniques,
- inherited from object-oriented programming, to make it easy to extend.
+ inherited from object-oriented programming, to make it easy to extend.
Hence, the following conventions apply in the FreeType 2 source
code:</p>
@@ -152,7 +152,7 @@
specific typeface with a specific style. For example, "Arial" and
"Arial Italic" correspond to two distinct faces.</p>
- <p>A face object is normally created through <tt>FT_New_Face()</tt>.
+ <p>A face object is normally created through <tt>FT_New_Face()</tt>.
This function takes the following parameters: an <tt>FT_Library</tt>
handle, a C file pathname used to indicate which font file to open, an
index used to decide which face to load from the file (a single file may
@@ -171,7 +171,7 @@
value.</p>
<p>Note that the face object contains several fields used to describe
- global font data that can be accessed directly by client applications.
+ global font data that can be accessed directly by client applications.
For example, the total number of glyphs in the face, the face's family
name, style name, the EM size for scalable formats, etc. For more
details, look at the <tt>FT_FaceRec</tt> definition in the
diff --git a/docs/design/design-4.html b/docs/design/design-4.html
index f71cf07..4a30618 100644
--- a/docs/design/design-4.html
+++ b/docs/design/design-4.html
@@ -92,19 +92,19 @@
<p>The function <tt>FT_New_Face()</tt> will always automatically create
a new stream object from the C pathname given as its second
argument. This is achieved by calling the function
- <tt>FT_New_Stream()</tt> provided by the <tt>ftsystem</tt> component.
+ <tt>FT_New_Stream()</tt> provided by the <tt>ftsystem</tt> component.
As the latter is replaceable, the implementation of streams may vary
greatly between platforms.</p>
<p>As an example, the default implementation of streams is located in
the file <tt>src/base/ftsystem.c</tt> and uses the ANSI
- <tt>fopen()</tt>, <tt>fseek()</tt>, and <tt>fread()</tt> calls.
+ <tt>fopen()</tt>, <tt>fseek()</tt>, and <tt>fread()</tt> calls.
However, the Unix build of FreeType 2 provides an alternative
implementation that uses memory-mapped files, when available on the host
platform, resulting in a significant access speed-up.</p>
- <p>FreeType distinguishes between memory-based and disk-based streams.
- In the first case, all data is directly accessed in memory (e.g.
+ <p>FreeType distinguishes between memory-based and disk-based streams.
+ In the first case, all data is directly accessed in memory (e.g.
ROM-based, write-only static data and memory-mapped files), while in the
second, portions of the font files are read in chunks called
<em>frames</em>, and temporarily buffered similarly through typical
@@ -222,7 +222,7 @@
</ul>
<p>Note that every <tt>FT_Face</tt> object is <em>owned</em> by the
- corresponding font driver, depending on the original font file's format.
+ corresponding font driver, depending on the original font file's format.
This means that all face objects are destroyed when a module is
removed/unregistered from a library instance (typically by calling the
<tt>FT_Remove_Module()</tt> function).</p>
diff --git a/docs/design/design-5.html b/docs/design/design-5.html
index 76634d2..b85badd 100644
--- a/docs/design/design-5.html
+++ b/docs/design/design-5.html
@@ -35,13 +35,13 @@
<ul>
<li>
- <p><em>Renderer</em> modules are used to manage scalable glyph images.
+ <p><em>Renderer</em> modules are used to manage scalable glyph images.
This means <em>transforming</em> them, computing their <em>bounding
box</em>, and <em>converting</em> them to either <em>monochrome</em>
or <em>anti-aliased</em> bitmaps</em>.</p>
<p>Note that FreeType 2 is capable of dealing with <em>any</em>
- kind of glyph images, as long as a renderer module is provided for it.
+ kind of glyph images, as long as a renderer module is provided for it.
The library comes by default with two renderers:</p>
<p><table cellpadding=8>
diff --git a/docs/design/modules.html b/docs/design/modules.html
index 118ddd4..fad6e62 100644
--- a/docs/design/modules.html
+++ b/docs/design/modules.html
@@ -210,7 +210,7 @@ modules:</p>
well as other variants (like TrueType fonts that only
contain embedded bitmaps).
</td></tr><tr valign=top><td>
-
+
<b><tt>psnames</tt></b>
</td><td>
used to provide various useful function related to glyph
diff --git a/docs/docmaker.py b/docs/docmaker.py
index dbfd8b7..85b17f2 100644
--- a/docs/docmaker.py
+++ b/docs/docmaker.py
@@ -157,8 +157,8 @@ class DocCode:
def __init__( self, margin = 0 ):
self.lines = []
- self.margin = margin
-
+ self.margin = margin
+
def add( self, line ):
# remove margin whitespace
if string.strip( line[: self.margin] ) == "":
@@ -176,7 +176,7 @@ class DocCode:
return "UNKNOWN_CODE_IDENTIFIER!!"
def dump_html( self ):
-
+
# clean the last empty lines
l = len( self.lines ) - 1
while l > 0 and string.strip( self.lines[l - 1] ) == "":
@@ -199,7 +199,7 @@ class DocParagraph:
def __init__( self ):
self.words = []
-
+
def add( self, line ):
# get rid of unwanted spaces in the paragraph
#
@@ -220,24 +220,24 @@ class DocParagraph:
# should never happen
return "UNKNOWN_PARA_IDENTIFIER!!"
-
-
+
+
def dump( self ):
max_width = 50
cursor = 0
line = ""
-
+
for word in self.words:
-
+
if cursor + len( word ) + 1 > max_width:
print line
cursor = 0
line = ""
-
+
line = line + word + " "
cursor = cursor + len( word ) + 1
-
+
if cursor > 0:
print line
@@ -245,7 +245,7 @@ class DocParagraph:
def dump_html( self ):
-
+
print para_header
self.dump()
print para_footer
@@ -277,7 +277,7 @@ class DocParagraph:
# [ ( None, [ DocParagraph, DocParagraph] ),
# ( "x", [ DocParagraph ] ),
# ( "y", [ DocParagraph, DocCode ] ) ]
-#
+#
# in self.items
#
# the DocContent object is entirely built at creation time, you must
@@ -293,14 +293,14 @@ class DocContent:
text = []
paragraph = None # represents the current DocParagraph
code = None # represents the current DocCode
-
+
elements = [] # the list of elements for the current field,
# contains DocParagraph or DocCode objects
-
+
field = None # the current field
for aline in lines_list:
-
+
if code_mode == 0:
line = string.lstrip( aline )
l = len( line )
@@ -309,26 +309,26 @@ class DocContent:
# if the line is empty, this is the end of the current
# paragraph
if l == 0 or line == '{':
-
+
if paragraph:
elements.append( paragraph )
paragraph = None
-
+
if line == "":
continue
-
+
code_mode = 1
code_margin = margin
code = None
continue
-
+
words = string.split( line )
-
+
# test for a field delimiter on the start of the line, i.e.
# the token `::'
#
if len( words ) >= 2 and words[1] == "::":
-
+
# start a new field - complete current paragraph if any
if paragraph:
elements.append( paragraph )
@@ -336,47 +336,47 @@ class DocContent:
# append previous "field" to self.items
self.items.append( ( field, elements ) )
-
+
# start new field and elements list
field = words[0]
elements = []
words = words[2 :]
-
+
# append remaining words to current paragraph
if len( words ) > 0:
line = string.join( words )
if not paragraph:
paragraph = DocParagraph()
paragraph.add( line )
-
+
else:
# we're in code mode..
line = aline
-
+
# the code block ends with a line that has a single '}' on it
# that is located at the same column that the opening
# accolade..
if line == " " * code_margin + '}':
-
+
if code:
elements.append( code )
code = None
-
+
code_mode = 0
code_margin = 0
-
+
# otherwise, add the line to the current paragraph
else:
if not code:
code = DocCode()
code.add( line )
-
+
if paragraph:
elements.append( paragraph )
if code:
elements.append( code )
-
+
self.items.append( ( field, elements ) )
@@ -388,7 +388,7 @@ class DocContent:
# should never happen
return "UNKNOWN_CONTENT_IDENTIFIER!!"
-
+
def dump( self ):
for item in self.items:
@@ -398,25 +398,25 @@ class DocContent:
for element in item[1]:
element.dump()
-
+
if field:
print "</field> "
def dump_html( self ):
-
+
n = len( self.items )
in_table = 0
-
+
for i in range( n ):
item = self.items[i]
field = item[0]
-
+
if not field:
-
+
if in_table:
print "</td></tr></table>"
in_table = 0
-
+
for element in item[1]:
element.dump_html()
else:
@@ -425,9 +425,9 @@ class DocContent:
in_table = 1
else:
print "</td></tr><tr valign=top><td>"
-
+
print "<b>" + field + "</b></td><td>"
-
+
for element in item[1]:
element.dump_html()
@@ -459,19 +459,19 @@ class DocBlock:
marker = None # current marker
content = [] # current content lines list
alphanum = string.letters + string.digits + "_"
-
+
for line in block_line_list:
line2 = string.lstrip( line )
l = len( line2 )
margin = len( line ) - l
-
+
if l > 3:
ender = None
if line2[0] == '<':
ender = '>'
elif line2[0] == '@':
ender = ':'
-
+
if ender:
i = 1
while i < l and line2[i] in alphanum:
@@ -484,12 +484,12 @@ class DocBlock:
line2 = string.lstrip( line2[i + 1 :] )
l = len( line2 )
line = " " * margin + line2
-
+
content.append( line )
-
+
if marker and content:
self.add( marker, content )
-
+
self.source = []
if self.items:
self.source = source_line_list
@@ -512,14 +512,14 @@ class DocBlock:
i = i + 1
lines = lines[i : l]
l = len( lines )
-
+
# add a new marker only if its marker and its content list aren't empty
if l > 0 and marker:
content = DocContent(lines)
self.items.append( ( string.lower(marker), content ) )
if not self.identifier:
self.identifier = content.get_identifier()
-
+
def dump( self ):
@@ -529,22 +529,22 @@ class DocBlock:
content.dump()
def dump_html( self ):
-
+
types = [ 'type', 'struct', 'functype', 'function', 'constant',
'enum', 'macro' ]
if not self.items:
return
-
+
# start of a block
print block_header
-
+
print "<h2>" + self.identifier + "</h2>"
# print source code
if not self.source:
return
-
+
lines = self.source
l = len( lines ) - 1
while l >= 0 and string.strip( lines[l] ) == "":
@@ -556,7 +556,7 @@ class DocBlock:
# dump each (marker,content) element
for element in self.items:
-
+
marker = element[0]
content = element[1]
@@ -564,13 +564,13 @@ class DocBlock:
print "<ul>"
content.dump_html()
print "</ul>"
-
+
elif not (marker in types):
print "<h4>" + marker + "</h4>"
print "<ul>"
content.dump_html()
print "</ul>"
-
+
print ""
print block_footer
@@ -581,7 +581,7 @@ class DocBlock:
# "type" (i.e. first marker) is in the "types" parameter
#
def filter_blocks( block_list, types ):
-
+
new_list = []
for block in block_list:
if block.items:
@@ -601,7 +601,7 @@ def block_lexicographical_compare( b1, b2 ):
return -1
if not b2.identifier:
return 1
-
+
id1 = string.lower(b1.identifier)
id2 = string.lower(b2.identifier)
if id1 < id2:
@@ -610,7 +610,7 @@ def block_lexicographical_compare( b1, b2 ):
return 0
else:
return 1
-
+
def block_make_list( source_block_list ):
list = []
@@ -627,10 +627,10 @@ def block_make_list( source_block_list ):
def dump_html_1( block_list ):
print html_header
-
+
for block in block_list:
block.dump_html()
-
+
print html_footer
@@ -642,7 +642,7 @@ def make_block_list():
list = []
block = []
format = 0
-
+
# we use "format" to store the state of our parser:
#
# 0 - wait for beginning of comment
@@ -652,7 +652,7 @@ def make_block_list():
# 4 - wait for beginning of source (or comment ??)
# 5 - process source
#
-
+
comment = []
source = []
state = 0
@@ -666,7 +666,7 @@ def make_block_list():
# stripped version of the line
line2 = string.strip( line )
l = len( line2 )
-
+
# if this line begins with a comment and we are processing some
# source, exit to state 0
#
@@ -718,7 +718,7 @@ def make_block_list():
if l == 0 or line2[0] != '*':
block = []
format = 0
-
+
# otherwise, we test for an end of block, which is an
# arbitrary number of '*', followed by '/'
else:
@@ -765,7 +765,7 @@ def make_block_list():
else:
# otherwise, add the line to the current block
block.append( line2 )
-
+
continue
@@ -774,18 +774,18 @@ def make_block_list():
if l > 0:
format = 5
-
+
if format == 5:
source.append( line )
if format >= 4:
list.append( [block, source] )
-
+
return list
-
+
# This function is only used for debugging
#
def dump_block_list( list ):
@@ -806,11 +806,11 @@ def main( argv ):
sys.stderr.write( "extracting comment blocks from sources...\n" )
list = make_block_list()
list = block_make_list(list)
-
+
list2 = filter_blocks( list, ['type','macro','enum','constant', 'functype'] )
#list2 = list
list2.sort( block_lexicographical_compare )
-
+
dump_html_1( list2 )
#dump_doc_blocks( list )
#dump_block_lists( list )
diff --git a/docs/freetype2.html b/docs/freetype2.html
index 3cc94c9..dbac6b9 100644
--- a/docs/freetype2.html
+++ b/docs/freetype2.html
@@ -17,7 +17,7 @@
alink="#FF0000">
-<font size=1>http://www.freetype.org</font><p>
+<font size=1>http://www.freetype.org</font><p>
<center>
<a href="freetype.html">
@@ -61,7 +61,7 @@ ubiquitous products.</p>
returns and manages outline font data (images & metrics).</p>
</ul>
</p></li>
-
+
<li><p>
<b>Support for several font formats through loadable modules:</b><br>
<ul>
@@ -71,8 +71,8 @@ ubiquitous products.</p>
the font.</p>
</ul>
</p></li>
-
-
+
+
<li><p>
<b>High-quality anti-aliasing:</b><br>
<ul>
@@ -95,9 +95,9 @@ ubiquitous products.</p>
memory, compressed file, network, etc..).
</p>
</ul>
-
+
</ul>
-
+
<p>Note that <em>the beta of FreeType 2 is available <b>now</b></em>. For more
info, check our <a href="download.html">Download page</a> or see the source
and its diffs through our <a href="cgi-bin/cvsweb.cgi">CVS Web interface</a>.
@@ -144,7 +144,7 @@ ubiquitous products.</p>
Apple. We're currently in contact with Apple to discuss the importance
of such patents and their use in open source projects like FreeType.
</p>
-
+
<p>In the meantime, we have developped our own alternative technology that
is capable of automatically hinting scalable glyph images. It is
now part of the FreeType 2 source tree as the "autohint" module,
@@ -166,12 +166,12 @@ ubiquitous products.</p>
only compile the features you need. As each module is between
10 and 20 Kb in size, it's possible to build a bare-bones
font engine that supports anti-aliasing in about 30 Kb !!</p>
-
+
<p>Configuration is performed by modifications of only two header
files (one to select global features, another one to select modules)
and don't need tweaking of source code. Note that it is however
possible to provide your own implementation of certain components.</p>
-
+
<p>For example, when building on Unix, the engine will automatically
use memory-mapped files when available on the target platform,
thus significantly increasing font file i/o.</p>
@@ -188,7 +188,7 @@ ubiquitous products.</p>
glyph images from font files. These images can be bitmaps, scalable
bezier outlines or even anything else. (e.g. bi-color or metafont
glyphs, as long as they're supported by a module).</p>
-
+
<p>Each scalable glyph image can be transformed, measured and
rendered into a monochrome or anti-aliased bitmaps easily
through a uniform interface.
@@ -205,10 +205,10 @@ ubiquitous products.</p>
<p>The FreeType 2 API is useful to retrieve advanced information from
various fonts:</p>
-
+
<ul>
<li>vertical metrics are available whenever found in the font file</li>
-
+
<li>kerning distances are available when found in the font file. It
is also possible to "attach" a given additional file to a given
font face. This is useful to load kerning distances from an
@@ -216,7 +216,7 @@ ubiquitous products.</p>
<li>provides ASCII glyph names whenever available in the font
(TrueType, OpenType, Type1, etc..)</li>
-
+
<li>provides access to important tables for SFNT-based font formats
(i.e. TrueType, OpenType, CEF, etc..), like the name table,
font header, maximum profile, etc...</li>
@@ -225,15 +225,15 @@ ubiquitous products.</p>
those fonts or formats that do not provide one. This is
extremely useful with Type 1 fonts which are normally
limited to a stupid 256-characters encoding.</li>
-</ul>
+</ul>
+
-
<h3>Simple & clean API</h3>
<p>The FreeType 2 high-level API is simple and straightforward, as it
has been specifically designed to make the most commmon font operations
easy</p>
-
+
<p>As a comparison, the number of function calls needed to perform a
the tasks of font face creation/opening and glyph loading/rendering
has been reduced by a factor of 4 !!</p>
@@ -242,7 +242,7 @@ ubiquitous products.</p>
it provides standard extensions to access format-specific tables and
information. More extensions can also be easily added through new
modules</p>
-
+
<h3>Robust & Portable code</h3>
@@ -257,7 +257,7 @@ ubiquitous products.</p>
a disk file, memory, or through a client-provided input stream. This
allows to support compressed font files, remote fonts, fonts embedded
in other streams (e.g. Type42 fonts), etc..</p>
-
+
<p>An advanced i/o sub-system is used to optimise file access, as well
as reduce memory usage of the library when the file is memory-based
( ROM, RAM, memory-mapped ).</p>
@@ -268,13 +268,13 @@ ubiquitous products.</p>
<p>Finally, FreeType 2 is released under its own BSD-like open source
license, one of the less restricting licenses available, and this
means that:</p>
-
+
<ul>
<li><p>
It can be included in all kinds of products, be they proprietary
or not.
</p></li>
-
+
<li><p>
As any module can be added or replaced anytime, any third party
vendor has the ability to provide its own set of modules (under
@@ -327,7 +327,7 @@ ubiquitous products.</p>
is covered by the Apple patents. However, this piece of code is never
compiled by default in this release (unlike in previous betas) making
a default build of the library <em>entirely patent-free !!</em></p>
-
+
<p>Note that in order to compile the interpreter, one needs to define
the configuration macro <tt><b>TT_CONFIG_OPTION_BYTECODE_INTERPRETER</b></tt> configuration
macro in the file "<tt>ftoption.h</tt>". More details are available in
diff --git a/docs/ft2faq.html b/docs/ft2faq.html
index 845aaa8..19b3f5a 100644
--- a/docs/ft2faq.html
+++ b/docs/ft2faq.html
@@ -161,7 +161,7 @@
FreeType 2</p>
<p>Finally, it would have been hard to distribute such a library without
- an alternative technology to replace the patented bytecode interpreter.
+ an alternative technology to replace the patented bytecode interpreter.
This involved significant research work that could only be performed
correctly full-time, and we had to found a company to fund such a
development and still make it available under a BSD-like license. Huge
@@ -199,7 +199,7 @@
connection to the XFree people, but we have been asked so frequently
about it that it deserves a prominent place in this FAQ :-)</p>
- <p>FreeType has been capable of anti-aliasing since version 1.0.
+ <p>FreeType has been capable of anti-aliasing since version 1.0.
The reason why XFree doesn't support it is directly related to the
limitations of the design and specification of X11. More
specifically:</p>
@@ -283,7 +283,7 @@
</h3>
<p>The library can be compiled in various ways, and a detailed
- documentation is available in the file <tt>freetype2/docs/BUILD</tt>.
+ documentation is available in the file <tt>freetype2/docs/BUILD</tt>.
However, we will summarize the process to a few cases:</p>
<h4>
@@ -296,7 +296,7 @@
<em>not</em> work with other Make tools).</p>
<p>Basically, you will need to invoke <tt>make</tt> a first time in
- the top-level FreeType 2 directory in order to set up the build.
+ the top-level FreeType 2 directory in order to set up the build.
This will detect your current platform and choose a configuration
sub-makefile to drive the build. A specific compiler can be selected
on some platforms by providing an additional target. For example, on
@@ -358,7 +358,7 @@
</h4>
<p>Well, the process is vastly similar to the one described in b.,
- except that you need to set the include paths, source code paths, etc.
+ except that you need to set the include paths, source code paths, etc.
in dialog boxes before running the compilation.</p>
<a name="builds-config">
@@ -403,7 +403,7 @@
is in the file <tt>src/base/ftinit.c</tt>.</p>
<p>The list of default modules used by <tt>ftinit.c</tt> is located in
- the configuration file <tt>include/freetype/config/ftmodule.h</tt>.
+ the configuration file <tt>include/freetype/config/ftmodule.h</tt>.
Normally, it is automatically generated by the build system by invoking
the "<tt><b>make modules</b></tt>" command in the top level
FreeType 2 directory (Note: this only works with GNU Make; you can
@@ -572,11 +572,11 @@
<p>Well, the engine already reads OpenType/CFF files perfectly. What it
doesn't do is handle "OpenType Layout" tables yet.</p>
-
+
<p>FreeType 1 comes with a set of extensions that are used to load
and manage OpenType Layout tables. It even has a demonstration program
named "<tt>ftstrtto</tt>" to show its capabilities.</p>
-
+
<p>For FreeType 2, we have decided that the layout operations
provided through these tables are better placed in a specific
text-layout library, (many people having asked for such a thing). This
diff --git a/docs/glnames.py b/docs/glnames.py
index 7b72669..f0e6904 100644
--- a/docs/glnames.py
+++ b/docs/glnames.py
@@ -86,11 +86,11 @@ mac_standard_names = \
# 120
"ntilde", "oacute", "ograve", "ocircumflex", "odieresis",
"otilde", "uacute", "ugrave", "ucircumflex", "udieresis",
-
+
# 130
"dagger", "degree", "cent", "sterling", "section",
"bullet", "paragraph", "germandbls", "registered", "copyright",
-
+
# 140
"trademark", "acute", "dieresis", "notequal", "AE",
"Oslash", "infinity", "plusminus", "lessequal", "greaterequal",
@@ -1502,7 +1502,7 @@ def count_extra_glyphs( alist, filter ):
filtered_index = filter.index( name )
except:
extras.append( name )
-
+
return extras
@@ -1521,7 +1521,7 @@ def dump_mac_indices( file ):
except:
write( " " + repr( count ) + ",\n" )
count = count + 1
-
+
write( " 0\n" )
write( " };\n" )
write( "\n" )
@@ -1555,7 +1555,7 @@ def dump_glyph_list( file, glyph_list, adobe_extra ):
write( " };\n" )
write( "\n" )
write( "\n" )
-
+
return name_list
@@ -1570,7 +1570,7 @@ def dump_unicode_values( file, base_list, adobe_list ):
write( " static const unsigned short names_to_unicode[" + \
repr( len( base_list ) + len( adobe_list ) + 1 ) + "] =\n" )
write( " {\n" )
-
+
for name in base_list:
try:
index = adobe_glyphs.index( name )
@@ -1626,13 +1626,13 @@ def main():
write = file.write
count_sid = len( t1_standard_strings )
-
+
# build mac index table & supplemental glyph names
mac_list = count_extra_glyphs( mac_standard_names, t1_standard_strings )
- count_mac = len( mac_list )
+ count_mac = len( mac_list )
t1_bias = count_mac
base_list = mac_list + t1_standard_strings
-
+
# build adobe unicode index table & supplemental glyph names
adobe_list = the_adobe_glyph_list()
adobe_list = count_extra_glyphs( adobe_list, base_list )
@@ -1664,7 +1664,7 @@ def main():
# dump glyph list
name_list = dump_glyph_list( file, base_list, adobe_list )
-
+
# dump t1_standard_list
write( " static const char** t1_standard_glyphs = " \
+ "standard_glyph_names + " + repr( t1_bias ) + ";\n" )
@@ -1684,17 +1684,17 @@ def main():
write( "\n" )
# dump mac indices table
- dump_mac_indices( file )
+ dump_mac_indices( file )
# discard mac names from base list
base_list = base_list[t1_bias:]
-
+
# dump unicode values table
dump_unicode_values( file, base_list, adobe_list )
dump_encoding( file, "t1_standard_encoding", t1_standard_encoding )
dump_encoding( file, "t1_expert_encoding", t1_expert_encoding )
-
+
write( "/* END */\n" )
diff --git a/docs/tutorial/step1.html b/docs/tutorial/step1.html
index 94fa25b..8af5c19 100644
--- a/docs/tutorial/step1.html
+++ b/docs/tutorial/step1.html
@@ -234,7 +234,7 @@
</font>
<p>As you can see, <tt>FT_New_Memory_Face()</tt> takes a pointer to
- the font file buffer and its size in bytes instead of a file pathname.
+ the font file buffer and its size in bytes instead of a file pathname.
Other than that, it has exactly the same semantics as
<tt>FT_New_Face()</tt>.</p>
diff --git a/docs/tutorial/step2.html b/docs/tutorial/step2.html
index 1c8c94d..dd00d5f 100644
--- a/docs/tutorial/step2.html
+++ b/docs/tutorial/step2.html
@@ -1431,7 +1431,7 @@
in an abstract grid called the <em>design space</em>, with coordinates
expressed in nominal <em>font units</em>. When a glyph image is loaded,
the font driver usually scales the outline to device space according to
- the current character pixel size found in a <tt>FT_Size</tt> object.
+ the current character pixel size found in a <tt>FT_Size</tt> object.
The driver may also modify the scaled outline in order to significantly
improve its appearance on a pixel-based surface (a process known as
<em>hinting</em> or <em>grid-fitting</em>).</p>
diff --git a/include/freetype/cache/ftcchunk.h b/include/freetype/cache/ftcchunk.h
index 0a493cb..7ef2f8a 100644
--- a/include/freetype/cache/ftcchunk.h
+++ b/include/freetype/cache/ftcchunk.h
@@ -69,7 +69,7 @@
FT_UShort cset_index;
FT_UShort num_elements;
FT_Byte* elements;
-
+
} FTC_ChunkNodeRec;
@@ -153,7 +153,7 @@
FTC_CacheRec root;
FT_Lru csets_lru; /* static chunk set lru list */
FTC_ChunkSet last_cset; /* small cache :-) */
-
+
} FTC_Chunk_CacheRec;
diff --git a/include/freetype/cache/ftcsbits.h b/include/freetype/cache/ftcsbits.h
index d95a817..bc10fed 100644
--- a/include/freetype/cache/ftcsbits.h
+++ b/include/freetype/cache/ftcsbits.h
@@ -20,7 +20,7 @@
#define FTCSBITS_H
-#include <freetype/cache/ftcchunk.h>
+#include <freetype/cache/ftcchunk.h>
#ifdef __cplusplus
@@ -34,7 +34,7 @@
/* handle to small bitmap cache */
typedef struct FTC_SBit_CacheRec_* FTC_SBit_Cache;
- /* a compact structure used to hold a single small bitmap */
+ /* a compact structure used to hold a single small bitmap */
typedef struct FTC_SBitRec_
{
FT_Byte width;
@@ -48,7 +48,7 @@
FT_Char yadvance;
FT_Byte* buffer;
-
+
} FTC_SBitRec;
diff --git a/include/freetype/cache/ftlru.h b/include/freetype/cache/ftlru.h
index 9e81681..71dd557 100644
--- a/include/freetype/cache/ftlru.h
+++ b/include/freetype/cache/ftlru.h
@@ -77,7 +77,7 @@
{
FT_ListNodeRec root;
FT_LruKey key;
-
+
} FT_LruNodeRec, *FT_LruNode;
@@ -90,26 +90,26 @@
typedef struct FT_Lru_Class_
{
FT_UInt lru_size; /* object size in bytes */
-
+
/* this method is used to initialize a new list element node */
FT_Error (*init_element)( FT_Lru lru,
FT_LruNode node );
-
+
/* this method is used to finalize a given list element node */
void (*done_element)( FT_Lru lru,
FT_LruNode node );
-
+
/* If defined, this method is called when the list if full */
/* during the lookup process -- it is used to change the contents */
/* of a list element node, instead of calling `done_element()', */
- /* then `init_element'. Set it to 0 for default behaviour. */
+ /* then `init_element'. Set it to 0 for default behaviour. */
FT_Error (*flush_element)( FT_Lru lru,
FT_LruNode node,
- FT_LruKey new_key );
+ FT_LruKey new_key );
/* If defined, this method is used to compare a list element node */
/* with a given key during a lookup. If set to 0, the `key' */
- /* fields will be directly compared instead. */
+ /* fields will be directly compared instead. */
FT_Bool (*compare_element)( FT_LruNode node,
FT_LruKey key );
@@ -133,11 +133,11 @@
FT_ListRec elements;
FT_Memory memory;
FT_Pointer user_data;
-
+
/* the following fields are only meaningful for static lru containers */
FT_ListRec free_nodes;
FT_LruNode nodes;
-
+
} FT_LruRec;
@@ -148,9 +148,9 @@
FT_Bool pre_alloc,
FT_Lru* alru );
- FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru );
+ FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru );
- FT_EXPORT_DEF( void ) FT_Lru_Done ( FT_Lru lru );
+ FT_EXPORT_DEF( void ) FT_Lru_Done ( FT_Lru lru );
FT_EXPORT_DEF( FT_Error ) FT_Lru_Lookup_Node( FT_Lru lru,
@@ -163,7 +163,7 @@
FT_EXPORT_DEF( void ) FT_Lru_Remove_Node( FT_Lru lru,
- FT_LruNode node );
+ FT_LruNode node );
FT_EXPORT_DEF( void ) FT_Lru_Remove_Selection( FT_Lru lru,
FT_Lru_Selector selector,
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h
index 5387409..0c14fdf 100644
--- a/include/freetype/ftcache.h
+++ b/include/freetype/ftcache.h
@@ -312,7 +312,7 @@
FTC_Font font,
FT_Face* aface,
FT_Size* asize );
-
+
/* a cache class is used to describe a unique cache type to the manager */
typedef struct FTC_Cache_Class_ FTC_Cache_Class;
diff --git a/include/freetype/internal/autohint.h b/include/freetype/internal/autohint.h
index bea7c92..cb9daf5 100644
--- a/include/freetype/internal/autohint.h
+++ b/include/freetype/internal/autohint.h
@@ -64,7 +64,7 @@
/* I initially thought that it would be a good idea to cache the glyph */
/* hints too. However, my general idea now is that if you really need */
/* to cache these too, you are simply in need of a new font format, */
- /* where all this information could be stored within the font file and */
+ /* where all this information could be stored within the font file and */
/* decoded on the fly. */
/* */
/*************************************************************************/
diff --git a/include/freetype/internal/ftobjs.h b/include/freetype/internal/ftobjs.h
index a2577b0..f6bc4d5 100644
--- a/include/freetype/internal/ftobjs.h
+++ b/include/freetype/internal/ftobjs.h
@@ -112,7 +112,7 @@
FT_Library library;
FT_Memory memory;
FT_Generic generic;
-
+
} FT_ModuleRec;
@@ -186,7 +186,7 @@
#define FT_FACE( x ) ((FT_Face)(x))
#define FT_SIZE( x ) ((FT_Size)(x))
#define FT_SLOT( x ) ((FT_GlyphSlot)(x))
-
+
#define FT_FACE_DRIVER( x ) FT_FACE( x )->driver
#define FT_FACE_LIBRARY( x ) FT_FACE_DRIVER( x )->root.library
#define FT_FACE_MEMORY( x ) FT_FACE( x )->memory
@@ -258,7 +258,7 @@
FT_UInt num_subglyphs; /* number of subglyphs */
FT_SubGlyph* subglyphs; /* subglyphs */
FT_Vector* extra_points; /* extra points table */
-
+
} FT_GlyphLoad;
@@ -274,27 +274,27 @@
FT_GlyphLoad current;
void* other; /* for possible future extension? */
-
+
};
BASE_DEF( FT_Error ) FT_GlyphLoader_New( FT_Memory memory,
FT_GlyphLoader** aloader );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Create_Extra(
- FT_GlyphLoader* loader );
-
+ FT_GlyphLoader* loader );
+
BASE_DEF( void ) FT_GlyphLoader_Done( FT_GlyphLoader* loader );
-
+
BASE_DEF( void ) FT_GlyphLoader_Reset( FT_GlyphLoader* loader );
-
+
BASE_DEF( void ) FT_GlyphLoader_Rewind( FT_GlyphLoader* loader );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Check_Points(
FT_GlyphLoader* loader,
FT_UInt n_points,
FT_UInt n_contours );
-
+
BASE_DEF( FT_Error ) FT_GlyphLoader_Check_Subglyphs(
FT_GlyphLoader* loader,
FT_UInt n_subs );
@@ -336,7 +336,7 @@
FT_Raster raster;
FT_Raster_Render_Func raster_render;
FTRenderer_render render;
-
+
} FT_RendererRec;
@@ -391,10 +391,10 @@
{
FT_ModuleRec root;
FT_Driver_Class* clazz;
-
+
FT_ListRec faces_list;
void* extensions;
-
+
FT_GlyphLoader* glyph_loader;
} FT_DriverRec;
diff --git a/include/freetype/internal/ftstream.h b/include/freetype/internal/ftstream.h
index 7b35a53..cc273ef 100644
--- a/include/freetype/internal/ftstream.h
+++ b/include/freetype/internal/ftstream.h
@@ -72,7 +72,7 @@
ft_frame_uoff3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 0, 1 ),
ft_frame_off3_be = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 0 ),
ft_frame_off3_le = FT_MAKE_FRAME_OP( FT_FRAME_OP_OFF3, 1, 1 ),
-
+
ft_frame_bytes = FT_MAKE_FRAME_OP( FT_FRAME_OP_BYTES, 0, 0 ),
ft_frame_skip = FT_MAKE_FRAME_OP( FT_FRAME_OP_BYTES, 0, 1 )
@@ -133,7 +133,7 @@
FT_FIELD_OFFSET( field ) \
}
#define FT_FRAME_SKIP_BYTES( count ) { ft_frame_skip, count, 0 }
-
+
/*************************************************************************/
@@ -330,7 +330,7 @@
#define EXTRACT_Frame( size, bytes ) \
FT_SET_ERROR( FT_Extract_Frame( stream, size, \
(FT_Byte**)&(bytes) ) )
-
+
#define RELEASE_Frame( bytes ) \
FT_Release_Frame( stream, (FT_Byte**)&(bytes) )
diff --git a/include/freetype/internal/psaux.h b/include/freetype/internal/psaux.h
index 83ac00c..7f8716d 100644
--- a/include/freetype/internal/psaux.h
+++ b/include/freetype/internal/psaux.h
@@ -63,16 +63,16 @@
FT_Error (*init) ( PS_Table* table,
FT_Int count,
FT_Memory memory );
-
- void (*done) ( PS_Table* table );
-
+
+ void (*done) ( PS_Table* table );
+
FT_Error (*add) ( PS_Table* table,
FT_Int index,
void* object,
FT_Int length );
- void (*release)( PS_Table* table );
-
+ void (*release)( PS_Table* table );
+
} PS_Table_Funcs;
@@ -186,7 +186,7 @@
/* do not remove */
t1_field_location_max
-
+
} T1_Field_Location;
@@ -297,10 +297,10 @@
FT_Memory memory );
void (*done) ( T1_Parser* parser );
-
+
void (*skip_spaces) ( T1_Parser* parser );
void (*skip_alpha) ( T1_Parser* parser );
-
+
FT_Long (*to_int) ( T1_Parser* parser );
FT_Fixed (*to_fixed) ( T1_Parser* parser,
FT_Int power_ten );
@@ -310,21 +310,21 @@
FT_Int (*to_fixed_array)( T1_Parser* parser,
FT_Int max_values,
FT_Fixed* values,
- FT_Int power_ten );
-
+ FT_Int power_ten );
+
void (*to_token) ( T1_Parser* parser,
T1_Token* token );
void (*to_token_array)( T1_Parser* parser,
T1_Token* tokens,
FT_UInt max_tokens,
FT_Int* pnum_tokens );
-
+
FT_Error (*load_field) ( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
FT_Error (*load_field_table)( T1_Parser* parser,
const T1_Field* field,
void** objects,
@@ -333,7 +333,7 @@
} T1_Parser_Funcs;
-
+
/*************************************************************************/
/* */
/* <Struct> */
@@ -362,7 +362,7 @@
FT_Byte* limit;
FT_Error error;
FT_Memory memory;
-
+
T1_Parser_Funcs funcs;
};
@@ -382,16 +382,16 @@
typedef FT_Error (*T1_Builder_Check_Points_Func) ( T1_Builder* builder,
FT_Int count );
-
+
typedef void (*T1_Builder_Add_Point_Func) ( T1_Builder* builder,
FT_Pos x,
FT_Pos y,
- FT_Byte flag );
-
+ FT_Byte flag );
+
typedef FT_Error (*T1_Builder_Add_Point1_Func) ( T1_Builder* builder,
FT_Pos x,
FT_Pos y );
-
+
typedef FT_Error (*T1_Builder_Add_Contour_Func) ( T1_Builder* builder );
typedef FT_Error (*T1_Builder_Start_Point_Func) ( T1_Builder* builder,
@@ -407,16 +407,16 @@
FT_Face face,
FT_Size size,
FT_GlyphSlot slot );
-
+
void (*done)( T1_Builder* builder );
-
+
T1_Builder_Check_Points_Func check_points;
T1_Builder_Add_Point_Func add_point;
T1_Builder_Add_Point1_Func add_point1;
T1_Builder_Add_Contour_Func add_contour;
T1_Builder_Start_Point_Func start_point;
T1_Builder_Close_Contour_Func close_contour;
-
+
} T1_Builder_Funcs;
@@ -543,7 +543,7 @@
FT_Byte* cursor;
FT_Byte* base;
FT_Byte* limit;
-
+
} T1_Decoder_Zone;
@@ -564,9 +564,9 @@
FT_Byte** glyph_names,
T1_Blend* blend,
T1_Decoder_Callback callback );
-
+
void (*done) ( T1_Decoder* decoder );
-
+
FT_Error (*parse_charstrings)( T1_Decoder* decoder,
FT_Byte* base,
FT_UInt len );
@@ -600,7 +600,7 @@
FT_Vector flex_vectors[7];
T1_Blend* blend; /* for multiple master support */
-
+
T1_Decoder_Callback parse_callback;
T1_Decoder_Funcs funcs;
};
diff --git a/include/freetype/internal/psnames.h b/include/freetype/internal/psnames.h
index c7eb22c..7254ca7 100644
--- a/include/freetype/internal/psnames.h
+++ b/include/freetype/internal/psnames.h
@@ -105,7 +105,7 @@
/* */
/* <Note> */
/* This function will not be compiled if the configuration macro */
- /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES is undefined. */
+ /* FT_CONFIG_OPTION_POSTSCRIPT_NAMES is undefined. */
/* */
typedef const char* (*PS_Macintosh_Name_Func)( FT_UInt name_index );
diff --git a/include/freetype/internal/sfnt.h b/include/freetype/internal/sfnt.h
index 0339258..0872881 100644
--- a/include/freetype/internal/sfnt.h
+++ b/include/freetype/internal/sfnt.h
@@ -450,7 +450,7 @@
TT_Load_Face_Func load_face;
TT_Done_Face_Func done_face;
SFNT_Get_Interface_Func get_interface;
-
+
TT_Load_Any_Func load_any;
TT_Load_SFNT_Header_Func load_sfnt_header;
TT_Load_Directory_Func load_directory;
diff --git a/include/freetype/internal/t1types.h b/include/freetype/internal/t1types.h
index a8a1cf4..b25f653 100644
--- a/include/freetype/internal/t1types.h
+++ b/include/freetype/internal/t1types.h
@@ -128,7 +128,7 @@
{
FT_UInt num_subrs;
FT_Byte** code;
-
+
} CID_Subrs;
@@ -185,7 +185,7 @@
CID_Info cid;
void* afm_data;
CID_Subrs* subrs;
-
+
} CID_FaceRec;
diff --git a/include/freetype/internal/t2types.h b/include/freetype/internal/t2types.h
index 2f9c9b8..c2a23ae 100644
--- a/include/freetype/internal/t2types.h
+++ b/include/freetype/internal/t2types.h
@@ -89,7 +89,7 @@
FT_ULong private_size;
FT_Long synthetic_base;
FT_UInt embedded_postscript;
- FT_UInt base_font_name;
+ FT_UInt base_font_name;
FT_UInt postscript;
/* these should only be used for the top-level font dictionary */
@@ -107,26 +107,26 @@
FT_UInt cid_font_name;
} CFF_Font_Dict;
-
-
+
+
typedef struct CFF_Private_
{
FT_Byte num_blue_values;
FT_Byte num_other_blues;
FT_Byte num_family_blues;
FT_Byte num_family_other_blues;
-
+
FT_Pos blue_values[14];
FT_Pos other_blues[10];
FT_Pos family_blues[14];
FT_Pos family_other_blues[10];
-
+
FT_Fixed blue_scale;
FT_Pos blue_shift;
FT_Pos blue_fuzz;
FT_Pos standard_width;
FT_Pos standard_height;
-
+
FT_Byte num_snap_widths;
FT_Byte num_snap_heights;
FT_Pos snap_widths[13];
@@ -140,7 +140,7 @@
FT_ULong local_subrs_offset;
FT_Pos default_width;
FT_Pos nominal_width;
-
+
} CFF_Private;
@@ -157,7 +157,7 @@
FT_UInt cache_first;
FT_UInt cache_count;
FT_Byte cache_fd;
-
+
} CFF_FD_Select;
@@ -167,7 +167,7 @@
{
CFF_Font_Dict font_dict;
CFF_Private private_dict;
-
+
CFF_Index local_subrs_index;
FT_UInt num_local_subrs;
FT_Byte** local_subrs;
@@ -177,7 +177,7 @@
/* maximum number of sub-fonts in a CID-keyed file */
#define CFF_MAX_CID_FONTS 16
-
+
typedef struct CFF_Font_
{
@@ -185,20 +185,20 @@
FT_Memory memory;
FT_UInt num_faces;
FT_UInt num_glyphs;
-
+
FT_Byte version_major;
FT_Byte version_minor;
FT_Byte header_size;
FT_Byte absolute_offsize;
-
+
CFF_Index name_index;
CFF_Index top_dict_index;
CFF_Index string_index;
CFF_Index global_subrs_index;
-
+
/* we don't load the Encoding and CharSet tables */
-
+
CFF_Index charstrings_index;
CFF_Index font_dict_index;
CFF_Index private_index;
diff --git a/include/freetype/internal/tttypes.h b/include/freetype/internal/tttypes.h
index 6dc50f5..d817268 100644
--- a/include/freetype/internal/tttypes.h
+++ b/include/freetype/internal/tttypes.h
@@ -99,7 +99,7 @@
FT_UShort search_range;
FT_UShort entry_selector;
FT_UShort range_shift;
-
+
} SFNT_Header;
@@ -965,7 +965,7 @@
TT_CMap4Segment* segments;
FT_UShort* glyphIdArray;
FT_UShort numGlyphId; /* control value */
-
+
TT_CMap4Segment* last_segment; /* last used segment; this is a small */
/* cache to potentially increase speed */
} TT_CMap4;
@@ -1162,7 +1162,7 @@
FT_ULong offset,
FT_UInt byte_count );
-
+
/*************************************************************************/
/* */
/* <FuncType> */
@@ -1180,7 +1180,7 @@
/* */
typedef
FT_Error (*TT_Load_Glyph_Element_Func)( TT_Loader* loader );
-
+
/*************************************************************************/
/* */
@@ -1574,7 +1574,7 @@
TT_ExecContext exec;
FT_Byte* instructions;
FT_ULong ins_pos;
-
+
/* for possible extensibility in other formats */
void* other;
diff --git a/src/autohint/CatharonLicense.txt b/src/autohint/CatharonLicense.txt
index e68bc23..789c8c9 100644
--- a/src/autohint/CatharonLicense.txt
+++ b/src/autohint/CatharonLicense.txt
@@ -4,7 +4,7 @@
2000-Jul-04
Copyright (C) 2000 by Catharon Productions, Inc.
-
+
Introduction
diff --git a/src/autohint/ahglyph.c b/src/autohint/ahglyph.c
index 348a813..030e55b 100644
--- a/src/autohint/ahglyph.c
+++ b/src/autohint/ahglyph.c
@@ -180,21 +180,21 @@
n = ah_test_extrema( outline, indices.xMin );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.yMin );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.xMax );
if ( n )
goto Exit;
-
+
n = ah_test_extrema( outline, indices.yMax );
if ( !n )
n = 1;
Exit:
- return n;
+ return n;
}
@@ -367,7 +367,7 @@
{
outline->vert_major_dir = ah_dir_down;
outline->horz_major_dir = ah_dir_right;
- }
+ }
#else
diff --git a/src/autohint/ahhint.c b/src/autohint/ahhint.c
index fcef730..9c1a963 100644
--- a/src/autohint/ahhint.c
+++ b/src/autohint/ahhint.c
@@ -1115,7 +1115,7 @@
( new_width + new_lsb - old_width - old_lsb );
hinter->pp1.x = ( ( new_lsb - old_lsb ) + 32 ) & -64;
- hinter->pp2.x = ( ( edge2->pos +
+ hinter->pp2.x = ( ( edge2->pos +
( old_advance - edge2->opos ) ) + 32 ) & -64;
}
diff --git a/src/autohint/ahoptim.c b/src/autohint/ahoptim.c
index d301dd7..deb440d 100644
--- a/src/autohint/ahoptim.c
+++ b/src/autohint/ahoptim.c
@@ -143,7 +143,7 @@
LOG(( " [%d-%d:%.1f:%1.f:%.1f]",
spring->stem1 - stems, spring->stem2 - stems,
FLOAT( spring->owidth ),
- FLOAT( spring->stem2->pos -
+ FLOAT( spring->stem2->pos -
( spring->stem1->pos + spring->stem1->width ) ),
FLOAT( spring->tension ) ));
}
diff --git a/src/autohint/mather.py b/src/autohint/mather.py
index b416fdf..8ad8b55 100644
--- a/src/autohint/mather.py
+++ b/src/autohint/mather.py
@@ -22,18 +22,18 @@ ag_pi = 256
def print_arctan( atan_bits ):
atan_base = 1 << atan_bits
-
+
print " static AH_Angle ag_arctan[1L << AG_ATAN_BITS] ="
print " {"
-
+
count = 0
line = " "
-
+
for n in range( atan_base ):
comma = ","
if ( n == atan_base - 1 ):
comma = ""
-
+
angle = math.atan( n * 1.0 / atan_base ) / math.pi * ag_pi
line = line + " " + repr( int( angle + 0.5 ) ) + comma
count = count + 1;
@@ -41,7 +41,7 @@ def print_arctan( atan_bits ):
count = 0
print line
line = " "
-
+
if ( count > 0 ):
print line
print " };"
@@ -55,7 +55,7 @@ def print_sines():
count = 0
line = " "
-
+
for n in range( ag_pi / 2 ):
sinus = math.sin( n * math.pi / ag_pi )
line = line + " " + repr( int( 65536.0 * sinus ) ) + ","
@@ -64,7 +64,7 @@ def print_sines():
count = 0
print line
line = " "
-
+
if ( count > 0 ):
print line
print " 65536"
diff --git a/src/autohint/module.mk b/src/autohint/module.mk
index adbdc23..edc9f4e 100644
--- a/src/autohint/module.mk
+++ b/src/autohint/module.mk
@@ -1,5 +1,5 @@
#
-# FreeType 2 auto-hinter module definition
+# FreeType 2 auto-hinter module definition
#
diff --git a/src/base/ftcalc.c b/src/base/ftcalc.c
index 85c4116..e78f3ba 100644
--- a/src/base/ftcalc.c
+++ b/src/base/ftcalc.c
@@ -300,7 +300,7 @@
{
FT_Int64 z;
-
+
z = (FT_Int64)(x) << 16;
return FT_Sqrt64( z );
}
@@ -773,7 +773,7 @@
{
FT_Int64 z;
-
+
z.hi = (FT_UInt32)((FT_Int32)(x) >> 16);
z.lo = (FT_UInt32)( x << 16 );
return FT_Sqrt64( &z );
diff --git a/src/base/ftglyph.c b/src/base/ftglyph.c
index 3026170..490f9ba 100644
--- a/src/base/ftglyph.c
+++ b/src/base/ftglyph.c
@@ -831,7 +831,7 @@
/* copy advance - thanks Karsten ;-) */
bitmap->root.advance = glyph->advance;
-
+
*the_glyph = FT_GLYPH( bitmap );
}
diff --git a/src/base/ftinit.c b/src/base/ftinit.c
index 5b56b8c..d00a73c 100644
--- a/src/base/ftinit.c
+++ b/src/base/ftinit.c
@@ -174,7 +174,7 @@ const FT_Module_Class* const ft_default_modules[] =
/* Discard the library object */
FT_Done_Library( library );
-
+
/* discard memory manager */
FT_Done_Memory( memory );
}
diff --git a/src/base/ftnames.c b/src/base/ftnames.c
index 2791e7c..8c9bd7c 100644
--- a/src/base/ftnames.c
+++ b/src/base/ftnames.c
@@ -44,8 +44,8 @@
{
return face && ( FT_IS_SFNT( face ) ? ((TT_Face)face)->num_names : 0 );
}
-
-
+
+
/*************************************************************************/
/* */
/* <Function> */
@@ -78,17 +78,17 @@
FT_SfntName* aname )
{
FT_Error error = FT_Err_Invalid_Argument;
-
+
if ( aname && face && FT_IS_SFNT( face ) )
{
TT_Face ttface = (TT_Face)face;
-
+
if ( index < ttface->num_names )
{
TT_NameRec* name = ttface->name_table.names + index;
-
+
aname->platform_id = name->platformID;
aname->encoding_id = name->encodingID;
@@ -96,13 +96,13 @@
aname->name_id = name->nameID;
aname->string = (FT_Byte*)name->string;
aname->string_len = name->stringLength;
-
+
error = FT_Err_Ok;
}
}
-
+
return error;
- }
+ }
#endif /* TT_CONFIG_OPTION_SFNT_NAMES */
diff --git a/src/base/ftsynth.c b/src/base/ftsynth.c
index 6f7f860..fd2a708 100644
--- a/src/base/ftsynth.c
+++ b/src/base/ftsynth.c
@@ -37,24 +37,24 @@
FT_Pos* advance )
{
FT_Matrix transform;
-
+
FT_UNUSED( original );
/* we don't touch the advance width */
FT_UNUSED( advance );
-
+
/* For italic, simply apply a shear transform, with an angle */
/* of about 12 degrees. */
-
+
transform.xx = 0x10000L;
transform.yx = 0x00000L;
-
+
transform.xy = 0x06000L;
transform.yy = 0x10000L;
-
+
FT_Outline_Transform( outline, &transform );
-
+
return 0;
}
@@ -272,15 +272,15 @@
n = ft_test_extrema( outline, indices.xMin );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.yMin );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.xMax );
if ( n )
goto Exit;
-
+
n = ft_test_extrema( outline, indices.yMax );
if ( !n )
n = 1;
diff --git a/src/cache/ftcchunk.c b/src/cache/ftcchunk.c
index f07fa2b..3347182 100644
--- a/src/cache/ftcchunk.c
+++ b/src/cache/ftcchunk.c
@@ -56,7 +56,7 @@
/* allocate elements array */
FT_Memory memory;
-
+
memory = cache->root.memory;
error = MEM_Alloc( node->elements, cset->element_size *
cset->element_count );
@@ -71,7 +71,7 @@
/* remove from parent set table */
cset->chunks[ node->cset_index ] = 0;
-
+
/* destroy the node */
cset->clazz->destroy_node( node );
}
@@ -135,7 +135,7 @@
goto Exit;
/* compute maximum number of nodes */
- cset->num_chunks = (cset->element_max +
+ cset->num_chunks = (cset->element_max +
cset->element_count - 1) / cset->element_count;
/* allocate chunk pointers table */
@@ -223,7 +223,7 @@
FT_UInt chunk_index = glyph_index/chunk_size;
FTC_ChunkNode* pnode = cset->chunks + chunk_index;
FTC_ChunkNode node = *pnode;
-
+
if (!node)
{
/* we didn't found the glyph image, we will now create a new one */
diff --git a/src/cache/ftcglyph.c b/src/cache/ftcglyph.c
index 27ce5d2..961f840 100644
--- a/src/cache/ftcglyph.c
+++ b/src/cache/ftcglyph.c
@@ -61,12 +61,12 @@
FT_LruNode gset_lru = cache->gsets_lru->nodes + node->gset_index;
FTC_GlyphSet gset = (FTC_GlyphSet)gset_lru->root.data;
FT_UInt hash = node->glyph_index % gset->hash_size;
-
+
/* remove the node from its gset's bucket list */
{
FTC_GlyphNode* pnode = gset->buckets + hash;
FTC_GlyphNode cur;
-
+
for (;;)
{
cur = *pnode;
@@ -77,7 +77,7 @@
" trying to delete an unlisted node !!!!" ));
return;
}
-
+
if (cur == node)
{
*pnode = cur->gset_next;
@@ -239,20 +239,20 @@
*anode = 0;
-
+
for ( ;; )
{
node = *pnode;
if (!node)
break;
-
+
if ( node->glyph_index == glyph_index )
{
/* we found it! -- move glyph to start of the lists */
*pnode = node->gset_next;
node->gset_next = bucket[0];
bucket[0] = node;
-
+
FT_List_Up( &manager->global_lru, FTC_GLYPHNODE_TO_LRUNODE( node ) );
*anode = node;
return 0;
diff --git a/src/cache/ftcimage.c b/src/cache/ftcimage.c
index 5d504e5..dcc3c7b 100644
--- a/src/cache/ftcimage.c
+++ b/src/cache/ftcimage.c
@@ -36,14 +36,14 @@
{
FTC_GlyphSetRec root;
FTC_Image_Desc description;
-
+
} FTC_ImageSetRec, *FTC_ImageSet;
typedef struct FTC_Image_CacheRec_
{
FTC_Glyph_CacheRec root;
-
+
} FTC_Image_CacheRec;
diff --git a/src/cache/ftcmanag.c b/src/cache/ftcmanag.c
index 994ff3a..ab70dd5 100644
--- a/src/cache/ftcmanag.c
+++ b/src/cache/ftcmanag.c
@@ -411,7 +411,7 @@
/* this should never happen! */
FT_ERROR(( "FTC_Manager_Compress: Cache Manager is corrupted!\n" ));
}
-
+
/* check, just in case of general corruption :-) */
if (manager->num_nodes <= 0)
{
@@ -464,7 +464,7 @@
cache->manager = manager;
cache->memory = memory;
cache->clazz = clazz;
-
+
/* THIS IS VERY IMPORTANT, THIS WILL WRECH THE MANAGER */
/* IF IT IS NOT SET CORRECTLY.. */
cache->cache_index = index;
diff --git a/src/cache/ftcsbits.c b/src/cache/ftcsbits.c
index 93d8fdb..7d414ec 100644
--- a/src/cache/ftcsbits.c
+++ b/src/cache/ftcsbits.c
@@ -15,7 +15,7 @@
typedef struct FTC_SBit_CacheRec_
{
FTC_Chunk_CacheRec root;
-
+
} FTC_SBit_CacheRec;
@@ -36,7 +36,7 @@
FT_Memory memory = cset->memory;
FT_UInt count = node->num_elements;
FTC_SBit sbit = (FTC_SBit)node->elements;
-
+
for ( ; count > 0; sbit++, count-- )
FREE( sbit->buffer );
@@ -124,7 +124,7 @@
/* always render glyphs to bitmaps */
load_flags |= FT_LOAD_RENDER;
-
+
if ( image_type & ftc_image_flag_unhinted )
load_flags |= FT_LOAD_NO_HINTING;
@@ -138,7 +138,7 @@
{
/* by default, indicates a "missing" glyph */
sbit->buffer = 0;
-
+
error = FT_Load_Glyph( face, glyph_index, load_flags );
if (!error)
{
@@ -150,7 +150,7 @@
/* check that our values fit in 8-bit containers !! */
/* if this is not the case, our bitmap is too large */
/* and we will leave it as "missing" with sbit.buffer = 0 */
-
+
#define CHECK_CHAR(d) ( temp = (FT_Char)d, temp == d )
#define CHECK_BYTE(d) ( temp = (FT_Byte)d, temp == d )
@@ -159,7 +159,7 @@
/* horizontal advance in pixels */
xadvance = (slot->metrics.horiAdvance+32) >> 6;
yadvance = (slot->metrics.vertAdvance+32) >> 6;
-
+
if ( CHECK_BYTE ( bitmap->rows ) &&
CHECK_BYTE ( bitmap->width ) &&
CHECK_CHAR ( bitmap->pitch ) &&
@@ -231,7 +231,7 @@
pitch = sbit->pitch;
if (pitch < 0)
pitch = -pitch;
-
+
/* add the size of a given glyph image */
size += pitch * sbit->height;
}
@@ -256,19 +256,19 @@
{
FT_Error error;
FT_Face face;
-
+
cset->element_count = FTC_SBITSET_ELEMENT_COUNT;
cset->element_size = sizeof(FTC_SBitRec);
-
+
/* lookup the FT_Face to obtain the number of glyphs */
error = FTC_Manager_Lookup_Face( cset->manager,
desc->font.face_id, &face );
if (!error)
cset->element_max = face->num_glyphs;
-
+
return error;
}
-
+
LOCAL_FUNC_X
diff --git a/src/cache/ftlru.c b/src/cache/ftlru.c
index 4b91299..53331eb 100644
--- a/src/cache/ftlru.c
+++ b/src/cache/ftlru.c
@@ -28,7 +28,7 @@
{
FT_LruNode node = nodes;
FT_LruNode limit = node + count;
-
+
free_list->head = free_list->tail = 0;
for ( ; node < limit; node++ )
@@ -45,7 +45,7 @@
{
FT_Error error;
FT_Lru lru;
-
+
if ( !alru )
return FT_Err_Invalid_Argument;
@@ -61,11 +61,11 @@
FREE( lru );
goto Exit;
}
-
+
/* build the `free_nodes' list from the array */
lru_build_free_list( lru->nodes, max_elements, &lru->free_nodes );
}
-
+
/* initialize common fields */
lru->clazz = (FT_Lru_Class*)clazz;
lru->max_elements = max_elements;
@@ -80,13 +80,13 @@
}
-
+
FT_EXPORT_DEF( void ) FT_Lru_Reset( FT_Lru lru )
{
FT_ListNode node;
FT_Lru_Class* clazz;
FT_Memory memory;
-
+
if ( !lru )
return;
@@ -98,15 +98,15 @@
while ( node )
{
FT_ListNode next = node->next;
-
+
clazz->done_element( lru, (FT_LruNode)node );
if ( !lru->nodes )
FREE( node );
-
+
node = next;
}
-
+
/* rebuild free list if necessary */
if ( lru->nodes )
lru_build_free_list( lru->nodes, lru->max_elements, &lru->free_nodes );
@@ -119,7 +119,7 @@
FT_EXPORT_DEF( void ) FT_Lru_Done( FT_Lru lru )
{
FT_Memory memory;
-
+
if ( !lru )
return;
@@ -138,9 +138,9 @@
FT_Error error = 0;
FT_ListNode node;
FT_Lru_Class* clazz;
- FT_LruNode found = 0;
+ FT_LruNode found = 0;
FT_Memory memory;
-
+
if ( !lru || !key || !anode )
return FT_Err_Invalid_Argument;
@@ -167,7 +167,7 @@
break;
}
}
-
+
if ( !found )
{
/* we haven't found the relevant element. We will now try */
@@ -177,12 +177,12 @@
/* this lru list is full; we will now flush */
/* the oldest node */
FT_LruNode lru_node;
-
-
+
+
node = lru->elements.tail;
lru_node = (FT_LruNode)node;
found = lru_node;
-
+
if ( clazz->flush_element )
error = clazz->flush_element( lru, lru_node, key );
else
@@ -203,19 +203,19 @@
/* in case of error, the node must be discarded */
FT_List_Remove( &lru->elements, node );
lru->num_elements--;
-
+
if ( lru->nodes )
FT_List_Insert( &lru->free_nodes, node );
else
FREE( lru_node );
-
+
found = 0;
}
}
else
- {
+ {
FT_LruNode lru_node;
-
+
/* create a new lru list node, then the element for it */
if ( lru->nodes )
@@ -223,18 +223,18 @@
node = lru->free_nodes.head;
lru_node = (FT_LruNode)node;
lru_node->key = key;
-
+
error = clazz->init_element( lru, lru_node );
if ( error )
goto Exit;
-
+
FT_List_Remove( &lru->free_nodes, node );
}
else
{
if ( ALLOC( lru_node, sizeof ( *lru_node ) ) )
goto Exit;
-
+
lru_node->key = key;
error = clazz->init_element( lru, lru_node );
if ( error )
@@ -243,17 +243,17 @@
goto Exit;
}
}
-
- found = lru_node;
+
+ found = lru_node;
node = (FT_ListNode)lru_node;
FT_List_Insert( &lru->elements, node );
lru->num_elements++;
}
}
-
- Exit:
+
+ Exit:
*anode = found;
- return error;
+ return error;
}
@@ -263,7 +263,7 @@
{
FT_Error error;
FT_LruNode node;
-
+
/* check for valid `lru' and `key' delayed to FT_Lru_Lookup_Node() */
@@ -274,7 +274,7 @@
error = FT_Lru_Lookup_Node( lru, key, &node );
if ( !error )
*aobject = node->root.data;
-
+
return error;
}
@@ -289,7 +289,7 @@
{
FT_List_Remove( &lru->elements, (FT_ListNode)node );
lru->clazz->done_element( lru, node );
-
+
if ( lru->nodes )
FT_List_Insert( &lru->free_nodes, (FT_ListNode)node );
else
@@ -317,7 +317,7 @@
FT_ListNode node = lru->elements.head;
FT_ListNode next;
-
+
while ( node )
{
next = node->next;
diff --git a/src/cff/module.mk b/src/cff/module.mk
index aae9bd7..68789c9 100644
--- a/src/cff/module.mk
+++ b/src/cff/module.mk
@@ -1,5 +1,5 @@
#
-# FreeType 2 CFF module definition
+# FreeType 2 CFF module definition
#
diff --git a/src/cid/cidgload.c b/src/cid/cidgload.c
index 94d5621..75e7138 100644
--- a/src/cid/cidgload.c
+++ b/src/cid/cidgload.c
@@ -145,7 +145,7 @@
FT_Error error;
T1_Decoder decoder;
FT_Int glyph_index;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
@@ -161,7 +161,7 @@
cid_load_glyph );
if ( error )
return error;
-
+
decoder.builder.metrics_only = 1;
decoder.builder.load_points = 0;
@@ -259,7 +259,7 @@
{
glyph->root.outline.flags &= ft_outline_owner;
glyph->root.outline.flags |= ft_outline_reverse_fill;
-
+
/* for composite glyphs, return only left side bearing and */
/* advance width */
if ( load_flags & FT_LOAD_NO_RECURSE )
diff --git a/src/cid/cidload.c b/src/cid/cidload.c
index 09735a0..8112344 100644
--- a/src/cid/cidload.c
+++ b/src/cid/cidload.c
@@ -154,7 +154,7 @@
}
dummy_object = object;
-
+
/* now, load the keyword data in the object's field(s) */
if ( keyword->type == t1_field_integer_array ||
keyword->type == t1_field_fixed_array )
@@ -219,7 +219,7 @@
matrix->yx = temp[1];
matrix->xy = temp[2];
matrix->yy = temp[3];
-
+
/* note that the font offsets are expressed in integer font units */
offset->x = temp[4] >> 16;
offset->y = temp[5] >> 16;
diff --git a/src/cid/cidobjs.c b/src/cid/cidobjs.c
index 0349f4f..cbcec11 100644
--- a/src/cid/cidobjs.c
+++ b/src/cid/cidobjs.c
@@ -157,7 +157,7 @@
{
psaux = (PSAux_Interface*)FT_Get_Module_Interface(
FT_FACE_LIBRARY( face ), "psaux" );
-
+
face->psaux = psaux;
}
diff --git a/src/cid/cidparse.c b/src/cid/cidparse.c
index c159435..6628401 100644
--- a/src/cid/cidparse.c
+++ b/src/cid/cidparse.c
@@ -72,7 +72,7 @@
MEM_Set( parser, 0, sizeof ( *parser ) );
psaux->t1_parser_funcs->init( &parser->root, 0, 0, memory );
-
+
parser->stream = stream;
base_offset = FILE_Pos();
diff --git a/src/psaux/psauxmod.c b/src/psaux/psauxmod.c
index c425960..e4248e3 100644
--- a/src/psaux/psauxmod.c
+++ b/src/psaux/psauxmod.c
@@ -75,7 +75,7 @@
&t1_parser_funcs,
&t1_builder_funcs,
&t1_decoder_funcs,
-
+
T1_Decrypt
};
@@ -87,9 +87,9 @@
"psaux",
0x10000L,
0x20000L,
-
+
&psaux_interface, /* module-specific interface */
-
+
(FT_Module_Constructor)0,
(FT_Module_Destructor) 0,
(FT_Module_Requester) 0
diff --git a/src/psaux/psobjs.c b/src/psaux/psobjs.c
index 7645891..4355fa6 100644
--- a/src/psaux/psobjs.c
+++ b/src/psaux/psobjs.c
@@ -879,7 +879,7 @@
if ( pflags )
*pflags |= 1L << field->flag_bit;
#else
- FT_UNUSED( pflags );
+ FT_UNUSED( pflags );
#endif
error = FT_Err_Ok;
@@ -944,7 +944,7 @@
if ( pflags )
*pflags |= 1L << field->flag_bit;
#else
- FT_UNUSED( pflags );
+ FT_UNUSED( pflags );
#endif
parser->cursor = old_cursor;
@@ -1025,7 +1025,7 @@
parser->cursor = base;
parser->memory = memory;
parser->funcs = t1_parser_funcs;
- }
+ }
LOCAL_FUNC
@@ -1098,7 +1098,7 @@
builder->left_bearing.y = 0;
builder->advance.x = 0;
builder->advance.y = 0;
-
+
builder->funcs = t1_builder_funcs;
}
diff --git a/src/psaux/psobjs.h b/src/psaux/psobjs.h
index c13a451..a631928 100644
--- a/src/psaux/psobjs.h
+++ b/src/psaux/psobjs.h
@@ -45,12 +45,12 @@
LOCAL_VAR
const T1_Builder_Funcs t1_builder_funcs;
-
+
LOCAL_DEF
FT_Error PS_Table_New( PS_Table* table,
FT_Int count,
FT_Memory memory );
-
+
LOCAL_DEF
FT_Error PS_Table_Add( PS_Table* table,
FT_Int index,
@@ -89,21 +89,21 @@
T1_Token* tokens,
FT_UInt max_tokens,
FT_Int* pnum_tokens );
-
+
LOCAL_DEF
FT_Error T1_Load_Field( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
LOCAL_DEF
FT_Error T1_Load_Field_Table( T1_Parser* parser,
const T1_Field* field,
void** objects,
FT_UInt max_objects,
FT_ULong* pflags );
-
+
LOCAL_DEF
FT_Long T1_ToInt( T1_Parser* parser );
@@ -151,11 +151,11 @@
LOCAL_DEF
void T1_Builder_Done( T1_Builder* builder );
-
+
LOCAL_DEF
FT_Error T1_Builder_Check_Points( T1_Builder* builder,
FT_Int count );
-
+
LOCAL_DEF
void T1_Builder_Add_Point( T1_Builder* builder,
FT_Pos x,
@@ -166,10 +166,10 @@
FT_Error T1_Builder_Add_Point1( T1_Builder* builder,
FT_Pos x,
FT_Pos y );
-
+
LOCAL_DEF
FT_Error T1_Builder_Add_Contour( T1_Builder* builder );
-
+
LOCAL_DEF
FT_Error T1_Builder_Start_Point( T1_Builder* builder,
diff --git a/src/psaux/t1decode.c b/src/psaux/t1decode.c
index d17f9d7..5d8067c 100644
--- a/src/psaux/t1decode.c
+++ b/src/psaux/t1decode.c
@@ -206,7 +206,7 @@
FT_ERROR(( " glyph names table not available in this font!\n" ));
return T1_Err_Syntax_Error;
}
-
+
bchar_index = t1_lookup_glyph_by_stdcharcode( decoder, bchar );
achar_index = t1_lookup_glyph_by_stdcharcode( decoder, achar );
@@ -919,12 +919,12 @@
zone++;
zone->base = decoder->subrs[index] + decoder->lenIV;
-
+
if (decoder->subrs_len)
zone->limit = zone->base + decoder->subrs_len[index];
else
zone->limit = decoder->subrs[index+1];
-
+
zone->cursor = zone->base;
if ( !zone->base )
@@ -1036,11 +1036,11 @@
T1_Decoder_Callback parse_callback )
{
MEM_Set( decoder, 0, sizeof ( *decoder ) );
-
+
/* retrieve PSNames interface from list of current modules */
{
PSNames_Interface* psnames = 0;
-
+
psnames = (PSNames_Interface*)FT_Get_Module_Interface(
FT_FACE_LIBRARY(face), "psnames" );
@@ -1050,16 +1050,16 @@
FT_ERROR(( "the `psnames' module is not available\n" ));
return FT_Err_Unimplemented_Feature;
}
-
+
decoder->psnames = psnames;
}
T1_Builder_Init( &decoder->builder, face, size, slot );
-
+
decoder->num_glyphs = face->num_glyphs;
decoder->glyph_names = glyph_names;
decoder->blend = blend;
decoder->parse_callback = parse_callback;
-
+
decoder->funcs = t1_decoder_funcs;
return 0;
diff --git a/src/sfnt/sfdriver.c b/src/sfnt/sfdriver.c
index 908e09e..336975b 100644
--- a/src/sfnt/sfdriver.c
+++ b/src/sfnt/sfdriver.c
@@ -100,23 +100,23 @@
{
FT_String* gname;
FT_Error error;
-
+
error = TT_Get_PS_Name( face, glyph_index, &gname );
if ( !error && buffer_max > 0 )
{
FT_UInt len = strlen( gname );
-
+
if ( len >= buffer_max )
len = buffer_max - 1;
-
+
MEM_Copy( buffer, gname, len );
((FT_Byte*)buffer)[len] = 0;
}
-
+
return error;
- }
+ }
#endif /* TT_CONFIG_OPTION_POSTSCRIPT_NAMES */
diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index 1da8ff5..e682489 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -516,15 +516,15 @@
root->ascender = face->horizontal.Ascender;
root->descender = face->horizontal.Descender;
-
+
root->height = root->ascender - root->descender +
face->horizontal.Line_Gap;
-
+
/* if the line_gap is 0, we add an extra 15% to the text height -- */
/* this computation is based on various versions of Times New Roman */
if ( face->horizontal.Line_Gap == 0 )
root->height = ( root->height * 115 + 50 ) / 100;
-
+
#if 0
/* some fonts have the OS/2 "sTypoAscender", "sTypoDescender" & */
@@ -532,11 +532,11 @@
if ( face->os2.version != 0xFFFF && root->ascender )
{
FT_Int height;
-
+
root->ascender = face->os2.sTypoAscender;
root->descender = -face->os2.sTypoDescender;
-
+
height = root->ascender + root->descender + face->os2.sTypoLineGap;
if ( height > root->height )
root->height = height;
diff --git a/src/truetype/ttdriver.c b/src/truetype/ttdriver.c
index 522df0b..02b6069 100644
--- a/src/truetype/ttdriver.c
+++ b/src/truetype/ttdriver.c
@@ -439,7 +439,7 @@
ft_module_driver_has_hinter,
#else
0,
-#endif
+#endif
sizeof ( TT_DriverRec ),
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index ad5bf3f..c636d91 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -545,7 +545,7 @@
FT_UNUSED( debug ); /* used by truetype interpreter only */
-
+
n_ins = load->glyph->control_len;
/* add shadow points */
@@ -648,7 +648,7 @@
#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
Exit:
-#endif
+#endif
return error;
}
diff --git a/src/type1/t1driver.c b/src/type1/t1driver.c
index 68c1f42..3fb1d8d 100644
--- a/src/type1/t1driver.c
+++ b/src/type1/t1driver.c
@@ -57,24 +57,24 @@
FT_UInt buffer_max )
{
FT_String* gname;
-
+
gname = face->type1.glyph_names[glyph_index];
if ( buffer_max > 0 )
{
FT_UInt len = strlen( gname );
-
+
if (len >= buffer_max)
len = buffer_max - 1;
-
+
MEM_Copy( buffer, gname, len );
((FT_Byte*)buffer)[len] = 0;
}
return T1_Err_Ok;
- }
+ }
/*************************************************************************/
diff --git a/src/type1/t1gload.c b/src/type1/t1gload.c
index e7ccaaf..fcda9f3 100644
--- a/src/type1/t1gload.c
+++ b/src/type1/t1gload.c
@@ -104,7 +104,7 @@
T1_Parse_Glyph );
if ( error )
return error;
-
+
decoder.builder.metrics_only = 1;
decoder.builder.load_points = 0;
@@ -168,7 +168,7 @@
glyph->root.outline.n_points = 0;
glyph->root.outline.n_contours = 0;
-
+
hinting = ( load_flags & FT_LOAD_NO_SCALE ) == 0 &&
( load_flags & FT_LOAD_NO_HINTING ) == 0;
@@ -183,13 +183,13 @@
T1_Parse_Glyph );
if ( error )
goto Exit;
-
+
decoder.builder.no_recurse = ( ( load_flags & FT_LOAD_NO_RECURSE ) != 0 );
decoder.num_subrs = type1->num_subrs;
decoder.subrs = type1->subrs;
decoder.subrs_len = type1->subrs_len;
-
+
/* now load the unscaled outline */
error = T1_Parse_Glyph( &decoder, glyph_index );
@@ -209,7 +209,7 @@
{
glyph->root.outline.flags &= ft_outline_owner;
glyph->root.outline.flags |= ft_outline_reverse_fill;
-
+
/* for composite glyphs, return only left side bearing and */
/* advance width */
if ( load_flags & FT_LOAD_NO_RECURSE )
diff --git a/src/type1/t1load.c b/src/type1/t1load.c
index eb1ab2a..7bb4b25 100644
--- a/src/type1/t1load.c
+++ b/src/type1/t1load.c
@@ -130,7 +130,7 @@
if ( blend->num_designs == 0 )
{
FT_UInt nn;
-
+
/* allocate the blend `private' and `font_info' dictionaries */
if ( ALLOC_ARRAY( blend->font_infos[1], num_designs, T1_FontInfo ) ||
@@ -142,13 +142,13 @@
blend->font_infos[0] = &face->type1.font_info;
blend->privates [0] = &face->type1.private_dict;
-
+
for ( nn = 2; nn <= num_designs; nn++ )
{
blend->privates[nn] = blend->privates [nn - 1] + 1;
blend->font_infos[nn] = blend->font_infos[nn - 1] + 1;
}
-
+
blend->num_designs = num_designs;
}
else if ( blend->num_designs != num_designs )
@@ -912,7 +912,7 @@
matrix->yx = temp[1];
matrix->xy = temp[2];
matrix->yy = temp[3];
-
+
/* note that the offsets must be expressed in integer font units */
offset->x = temp[4] >> 16;
offset->y = temp[5] >> 16;
@@ -926,7 +926,7 @@
T1_ParserRec* parser = &loader->parser;
FT_Byte* cur = parser->root.cursor;
FT_Byte* limit = parser->root.limit;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
@@ -972,7 +972,7 @@
/* We need to `zero' out encoding_table.elements */
for ( n = 0; n < count; n++ )
{
- char* notdef = ".notdef";
+ char* notdef = ".notdef";
T1_Add_Table( char_table, n, notdef, 8 );
@@ -1091,7 +1091,7 @@
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
-
+
loader->num_subrs = T1_ToInt( parser );
if ( parser->root.error )
return;
@@ -1123,7 +1123,7 @@
break;
index = T1_ToInt( parser );
-
+
if ( !read_binary_data( parser, &size, &base ) )
return;
@@ -1296,7 +1296,7 @@
/* index 0. Then take end of table name/code and place it into index */
/* notdef_index. */
- error = T1_Add_Table( name_table, n,
+ error = T1_Add_Table( name_table, n,
name_table->elements[0],
name_table->lengths [0] );
if ( error )
@@ -1339,7 +1339,7 @@
/* charstrings dictionary. Worry about /.notdef undefined. */
/* we take index 0 and add it to the end of the table(s) */
/* and add our own /.notdef glyph to index 0. */
-
+
/* 0 333 hsbw endchar */
FT_Byte notdef_glyph[] = {0x8B, 0xF7, 0xE1, 0x0D, 0x0E};
char* notdef_name = ".notdef";
@@ -1578,7 +1578,7 @@
T1_ParserRec* parser;
T1_Font* type1 = &face->type1;
FT_Error error;
-
+
PSAux_Interface* psaux = (PSAux_Interface*)face->psaux;
diff --git a/src/type1/t1objs.c b/src/type1/t1objs.c
index 57ee657..fa81eae 100644
--- a/src/type1/t1objs.c
+++ b/src/type1/t1objs.c
@@ -183,7 +183,7 @@
{
psaux = (PSAux_Interface*)
FT_Get_Module_Interface( FT_FACE_LIBRARY( face ), "psaux" );
-
+
face->psaux = psaux;
}
diff --git a/src/type1/t1parse.c b/src/type1/t1parse.c
index 00b29ab..71ddffc 100644
--- a/src/type1/t1parse.c
+++ b/src/type1/t1parse.c
@@ -85,7 +85,7 @@
{
FT_UShort tag;
FT_Long size;
-
+
} PFB_Tag;
@@ -247,7 +247,7 @@
/* free the base dictionary only when we have a disk stream */
if ( !parser->in_memory )
FREE( parser->base_dict );
-
+
parser->root.funcs.done( &parser->root );
}
diff --git a/src/winfonts/winfnt.c b/src/winfonts/winfnt.c
index aedbb81..2964b2f 100644
--- a/src/winfonts/winfnt.c
+++ b/src/winfonts/winfnt.c
@@ -462,7 +462,7 @@
if ( cur->header.pixel_height == size->root.metrics.y_ppem )
{
size->font = cur;
-
+
size->root.metrics.ascender = cur->header.ascent * 64;
size->root.metrics.descender = ( cur->header.pixel_height -
cur->header.ascent ) * 64;
@@ -528,7 +528,7 @@
glyph_index--;
else
glyph_index = font->header.default_char - font->header.first_char;
-
+
new_format = font->header.version == 0x300;
len = new_format ? 6 : 4;