1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984
|
2002-06-11 David Turner <david@freetype.org>
* builds/win32/ftdebug.c: added a missing #endif
* src/sfnt/ttload.c, src/bdf/bdflib.c: removing compiler warnings
* src/type42/t42objs.c: removed the bug that prevented un-hinted
outlines to be loaded
2002-06-08 Juliusz Chroboczek <jch@pps.jussieu.fr>
* include/freetype/internal/ftobjs.h, src/autohint/ahglyph.c,
src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/smooth/ftgrays.c: Don't
use `setjmp', `longjmp', and `jmp_buf' but `ft_setjmp', `ft_longjmp',
and `ft_jmp_buf'.
Removed direct references to <stdio.h> and <setjmp.h> when
appropriate, to eventually replace them with a
FT_CONFIG_STANDARD_LIBRARY_H. Useful for the XFree86 Font Server
backend based on FT2.
* src/base/fttype1.c (FT_Has_PS_Glyph_Names): Fix return value.
2002-06-08 David Turner <david@freetype.org>
* src/pcf/pcfdriver.c (pcf_cmap_char_next): Fixed a bug that caused
the function to return invalid values.
* src/cache/ftccache.i: Removing a typo that prevented
the source's compilation.
* src/cache/ftccache.c (ftc_node_hash_unlink): Fixed a
bug that caused nasty memory overwrites. The hash table's
buckets array wasn't correctly resized when shrinked.
2002-06-08 Detlef Wrkner <TetiSoft@apg.lahn.de>
* builds/amiga/smakefile, builds/amiga/makefile: Updated.
2002-06-08 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link)
[FTC_CACHE_USE_LINEAR_HASHING]: Fix returned error code.
Fix debugging messages.
* src/cache/ftccache.i (GEN_CACHE_LOOKUP): Move declaration of
`family' and `hash' up to make it compilable with g++.
* src/type42/t42error.h: New file.
* src/type42/t42drivr.c, src/type42/t42objs.c,
src/type42/t42parse.c: Use t42 error codes.
* src/type42/rules.mk: Updated.
* src/base/ftnames.c: Include FT_INTERNAL_STREAM_H.
2002-06-08 David Turner <david@freetype.org>
* src/cache/ftccmap.c: GEN_CACHE_FAMILY_COMPARE,
GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
New macros.
(ftc_cmap_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
ftc_cache_lookup.
(FTC_CMapCache_Lookup): Updated.
Adding various experimental optimizations to the cache manager.
* include/freetype/cache/ftccache.h (FTC_CACHE_USE_INLINE,
FTC_CACHE_USE_LINEAR_HASHING): New options.
(FTC_CacheRec) [FTC_CACHE_USE_LINEAR_HASHING]: New elements `p',
`mask', and `slack'.
* src/cache/ftccache.c (FTC_HASH_MAX_LOAD, FTC_HASH_MIN_LOAD,
FTC_HASH_SUB_LOAD) [FTC_CACHE_USE_LINEAR_HASHING,
FTC_HASH_INITIAL_SIZE]: New macros.
(ftc_node_mru_link, ftc_node_mru_up): Optimized.
(ftc_node_hash_unlink, ftc_node_hash_link)
[FTC_CACHE_USE_LINEAR_HASHING]: New variants.
(FTC_PRIMES_MIN, FTC_PRIMES_MAX, ftc_primes, ftc_prime_closest,
FTC_CACHE_RESIZE_TEST, ftc_cache_resize)
[!FTC_CACHE_USE_LINEAR_HASHING]: Define it conditionally.
(ftc_cache_init, ftc_cache_clear) [FTC_CACHE_USE_LINEAR_HASHING]:
Updated.
(ftc_cache_lookup) [FTC_CACHE_USE_LINEAR_HASHING]: Implement it.
* src/cache/ftccache.i: New file.
* src/cache/ftcsbits.c (GEN_CACHE_FAMILY_COMPARE,
GEN_CACHE_NODE_COMPARE, GEN_CACHE_LOOKUP) [FTC_CACHE_USE_INLINE]:
New macros.
(ftc_sbit_cache_lookup) [!FTC_CACHE_USE_INLINE]: Typedef to
ftc_cache_lookup.
(FTC_SBitCache_Lookup): Updated.
* src/type42/t42parse.c: Removing duplicate function.
2002-06-07 Graham Asher <graham.asher@btinternet.com>
* src/base/ftobjs.c (FT_Render_Glyph_Internal): Changed definition
from FT_EXPORT_DEF to FT_BASE_DEF.
2002-06-07 David Turner <david@freetype.org>
Fixed the bug that prevented the correct display of fonts with
"ftview".
* src/type42/t42drivr.c: Split into...
* src/type42/t42drivr.h, src/type42/t42parse.c,
src/type42/t42parse.h, src/type42/t42objs.h, src/type42/t42objs.c,
src/type42/type42.c: New files.
(t42_get_glyph_name, t42_get_ps_name, t42_get_name_index): Use
`face->type1'.
(Get_Interface): Renamed to...
(T42_Get_Interface): This.
Updated.
(T42_Open_Face, T42_Face_Done): Updated.
(T42_Face_Init): Add new cmap support.
Updated.
(T42_Driver_Init, T42_Driver_Done, T42_Size_Init, T42_Size_Done,
T42_GlyphSlot_Init, T42_GlyphSlot_Done): Updated.
(Get_Char_Index, Get_Next_Char): Renamed to...
(T42_CMap_CharIndex, T42_CMap_CharNext): This.
Updated.
(T42_Char_Size, T42_Pixel_Size): Renamed to...
(T42_Size_SetChars, T42_Size_SetPixels): This.
(T42_Load_Glyph): Renamed to...
(T42_GlyphSlot_Load): This.
(t42_init_loader, t42_done_loader): Renamed to...
(t42_loader_init, t42_loader_done): This.
(T42_New_Parser, T42_Finalize_Parser): Renamed to...
(t42_parser_init, t42_parser_done): This.
(parse_dict): Renamed to...
(t42_parse_dict): This.
(is_alpha, is_space, hexval): Renamed to...
(t42_is_alpha, t42_is_space, t42_hexval): This.
(parse_font_name, parse_font_bbox, parse_font_matrix,
parse_encoding, parse_sfnts, parse_charstrings, parse_dict):
Renamed to...
(t42_parse_font_name, t42_parse_font_bbox, t42_parse_font_matrix,
t42_parse_encoding, t42_parse_sfnts, t42_parse_charstrings,
t42_parse_dict): This.
Updated.
(t42_keywords): Updated.
* src/type42/Jamfile, src/type42/descrip.mms: Updated.
2002-06-03 Werner Lemberg <wl@gnu.org>
Add 8bpp support to BDF driver.
* src/bdf/bdflib.c (_bdf_parse_start): Handle 8bpp.
* src/bdf/bdfdrivr.c (BDF_Glyph_Load): Ditto.
* src/bdf/README: Updated.
2002-06-02 Detlef Wrkner <TetiSoft@apg.lahn.de>
* src/pfr/pfrload.c (pfr_phy_font_done): Free `blue_values' array.
2002-05-29 Detlef Wrkner <TetiSoft@apg.lahn.de>
* src/bdf/bdflib.c (_bdf_readstream): Allocate `buf' dynamically.
(_bdf_parse_glyphs): Use correct size for allocating
`font->unencoded'.
(bdf_load_font): Free array conditionally.
Return proper error code in case of failure.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Make it more robust against
unusual fonts.
2002-05-29 Werner Lemberg <wl@gnu.org>
* src/bdf/descrip.mms, src/type42/descrip.mms: New files.
* descrip.mms (all): Updated.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Fix typo which prevented
compilation.
* src/pshglob.c (psh_blues_scale_zones): Fix compiler warning.
2002-05-28 Detlef Wrkner <TetiSoft@apg.lahn.de>
* builds/amiga/makefile, builds/amiga/smakefile,
amiga/include/freetype/config/ftmodule.h: Updated to include
support for BDF and Type42 drivers.
* docs/modules.txt: Updated.
2005-05-28 David Turner <david@freetype.org>
* docs/CHANGES: Updating file for next release (2.1.1).
* src/bdf/bdflib.c: Removing compiler warnings.
* include/freetype/ftxf86.h, src/base/ftxf86.c: New files.
They provide a new API (FT_Get_X11_Font_Format) to retrieve an
X11-compatible string describing the font format of a given face.
This was put in a new optional base source file, corresponding to a
new public header (named FT_XFREE86_H since this function should
only be used within the XFree86 font server IMO).
* include/freetype/config/ftheader.h (FT_XFREE86_H): New macro (not
documented yet).
* src/base/fttype1.c: New file, provoding two new API functions
(FT_Get_PS_Font_Info and FT_Has_PS_Glyph_Names).
* include/freetype/t1tables.h: Updated.
* src/base/Jamfile, src/base/rules.mk, src/base/descrip.mms:
Updating build control files for the new files "ftxf86.c" and
"fttype1.c" in src/base.
* src/pshinter/pshglob.c (psh_blues_scale_zones): Fixed a bug that
prevented family blue zones substitution from hapenning correctly.
* include/freetype/ftbdf.h FT_Get_BDF_Charset_ID): Adding
documentation comment.
2002-05-28 Werner Lemberg <wl@gnu.org>
* src/base/ftnames.c (FT_Get_Sfnt_Name): Don't use FT_STREAM_READ_AT
but FT_STREAM_READ.
Declare `stream' variable.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Replace floating point math
with calls to `FT_MulDiv'.
2002-05-28 David Turner <david@freetype.org>
Fixing the SFNT name table loader to support various buggy fonts.
It now ignores empty name entries, entries with invalid pointer
Offsets and certain fonts containing tables with broken
"storageOffset" fields.
Name strings are now loaded on demand, which reduces the memory
requirements for a given FT_Face tremendously (for example, the name
table of Arial.ttf is about 10Kb and contains 70 names).
This is a temporary fix. The whole name table loader and interface
will be rewritten in a much more cleanly way shortly, once CSEH have
been introduced in the sources.
* include/freetype/internal/tttypes.h (TT_NameEntryRec): Change
type of `stringOffset' to FT_ULong.
(TT_NameTableRec): Change type of `numNameRecords' and
`storageOffset' to FT_UInt.
Replace `storage' with `stream'.
* src/base/ftnames.c (FT_Get_Sfnt_Name): Load name on demand.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
Make code more robust.
* src/sfnt/sfobjs.c (TT_NameEntry_ConvertFunc): New typedef.
(tt_face_get_name): Use it.
Make code more robust.
* src/sfnt/ttload.c (TT_Load_Names): Use `static' for arrays.
Handle invalid `storageOffset' data better.
Set length fields to zero for invalid or ignored data.
Remove code within FT_DEBUG_LEVEL_TRACE.
(TT_Free_Names): Updated.
2002-05-24 Tim Mooney <enchanter@users.sourceforge.net>
* builds/unix/ft-munmap.m4: New file, extracted FT_MUNMAP_DECL and
FT_MUNMAP_PARAM from aclocal.m4 into here, so aclocal.m4 can be
rebuilt from sources. Set macro serial to 1, and use third argument
to AC_DEFINE for our two custom symbols, so ftconfig.in could one day
be rebuilt with autoheader (not recommended now, ftconfig.in is a
custom source file)
2002-05-22 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftheader.h (FT_BEZIER_H): Removed.
(FT_BDF_H): New macro for accessing `ftbdf.h'.
* src/type42/t42drivr.c (hexval): Fix typo.
2002-05-21 Martin Muskens <mmuskens@aurelon.com>
* src/psaux/psobjs.c (T1Radix): New function.
(t1_toint): Use it to handle numbers in radix format.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Add dummy
for undocumented, obsolete opcode 15.
2002-05-21 David Turner <david@freetype.org>
* src/bdf/bdflib.c: Removed compiler warning, and changed all tables
to the "static const" storage specifier (instead of simply
`static').
* src/type42/t42drivr.c (hexval): Use more efficient code.
Removing compiler warnings.
* src/bdf/bdfdrivr.c: Removing compiler warnings.
* include/freetype/internal/ftbdf.h, src/base/ftbdf.c,
src/base/descrip.mms, src/base/Jamfile, src/base/rules.mk
(FT_Get_BDF_Charset_ID): New API to retrieve BDF-specific strings
from a face. This is much cleaner than accessing the internal types
"BDF_Public_Face" defined in FT_INTERNAL_BDF_TYPES_H.
2002-05-21 Werner Lemberg <wl@gnu.org>
* src/bdf/README: Mention Microsoft's SBIT tool.
* src/cff/cffdrivr.c, src/cid/cidriver.c, src/pcf/pcfdriver.c,
src/truetype/ttdriver.c, src/type1/t1driver.c,
src/winfonts/winfnt.c, src/type42/t42drivr.c, src/bdf/bdfdrivr.c
[FT_CONFIG_OPTION_DYNAMIC_DRIVERS]: Completely removed. It has
been never used.
2002-05-21 Roberto Alameda <ojancano@geekmail.de>.
* src/type42/t42drivr.c: s/T42_ENCODING_TYPE_/T1_ENCODING_TYPE_/.
(parse_font_matrix): Remove unnecessary code.
(parse_sfnts): Initialize some variables.
(t42_driver_class) [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Use
ft_module_driver_has_hinter conditionally.
Moved some type 42 specific structure definitions to...
* include/freetype/internal/t42types.h: New file.
* include/freetype/internal/internal.h (FT_INTERNAL_T42_TYPES_H):
New macro.
2002-05-20 Werner Lemberg <wl@gnu.org>
* include/freetype/cache/ftcsbits.h (FTC_SBit): Added a new field
`num_grays' for specifying the number of used gray levels.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Initialize it.
2002-05-19 Werner Lemberg <wl@gnu.org>
Adding a driver for BDF fonts written by Francesco Zappa Nardelli
<Francesco.Zappa.Nardelli@ens.fr>. Heavily modified by me to
better adapt it to FreeType, removing unneeded stuff. Additionally,
it now supports Mark Leisher's BDF extension for anti-aliased
bitmap glyphs with 2 and 4 bpp.
* src/bdf/*: New driver.
* include/freetype/internal/bdftypes.h: New file.
* include/freetype/internal/fttrace.h: Added BDF driver components.
* include/freetype/fterrdef.h: Added error codes for BDF driver.
* include/freetype/config/ftmodule.h, src/Jamfile: Updated.
* include/freetype/internal/internal.h (FT_INTERNAL_BDF_TYPES_H):
New macro.
* include/freetype/config/ftstdlib.h (ft_sprintf): New alias for
sprintf.
2002-05-18 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/fttrace.h: Added Type 42 driver
component.
* src/type42/t42drivr.c: Use it.
* include/freetype/internal/internal.h (FT_INTERNAL_PCF_TYPES_H):
New macro.
2002-05-17 Werner Lemberg <wl@gnu.org>
* src/type42/Jamfile: New file.
2002-05-14 Werner Lemberg <wl@gnu.org>
Adding a driver for Type42 fonts written by Roberto Alameda
<ojancano@geekmail.de>.
* src/type42/*: New driver.
* include/freetype/config/ftmodule.h, src/Jamfile: Updated.
* include/freetype/config/ftstdlib.h (ft_xdigit, ft_memcmp,
ft_atoi): New aliases for xdigit, memcmp, and atoi, respectively.
2002-05-12 Owen Taylor <otaylor@redhat.com>
* src/sfnt/ttload.c (TT_LookUp_Table): Protect against tables
with a zero length value.
2002-05-12 Michael Pfeiffer <michael.pfeiffer@utanet.at>
* builds/beos/beos.mk: Include `link-std.mk'.
2002-05-12 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.h (T1_Loader): Renamed to...
(T1_LoaderRec): This.
(T1_Loader): Now pointer to T1_LoaderRec.
* src/type1/t1load.c: Updated.
* include/freetype/internal/t1types.h, src/type1/t1load.c,
src/type1/t1objs.c:
s/T1_ENCODING_TYPE_EXPORT/T1_ENCODING_TYPE_EXPERT/.
2002-05-06 Werner Lemberg <wl@gnu.org>
* README: Add a note regarding libttf vs. libfreetype.
2002-05-05 Werner Lemberg <wl@gnu.org>
FreeType 2 can now be built in an external directory with the
configure script also.
* builds/freetype.mk (INCLUDES): Add `OBJ_DIR'.
* builds/unix/detect.mk (have_mk): New variable to test for
external build.
(unix-def.mk): Defined according to value of `have_mk'.
* builds/unix/unix.mk (have_mk): New variable to test for
external build.
Select include paths for unix-def.mk and unix-cc.mk according
to value of `have_mk'.
* builds/unix/unix-def.in (OBJ_BUILD): New variable.
(DISTCLEAN): Use it.
* builds/unix/unix-cc.in (LIBTOOL): Define default value only
if not yet defined.
* builds/unix/install.mk (install): Use `OBJ_BUILD' for installing
freetype-config.
* configure: Don't depend on bash features.
(ft2_dir, abs_curr_dir, abs_ft2_dir): New variables (code
partially taken from Autoconf).
Build a dummy Makefile if not building in source tree.
* docs/INSTALL: Document it.
2002-05-04 David Turner <david@freetype.org>
* src/truetype/ttgload.c (TT_Load_Glyph): Finally fixing the last
bug that prevented FreeType 2.x and FreeType 1.x to produce
bit-by-bit identical monochrome glyph bitmaps with native TrueType
hinting. The culprit was a single-bit flag that wasn't set
correctly by the TrueType glyph loader.
* src/otlayout/otlayout.h, src/otlayout/otlbase.c,
src/otlayout/otlbase.h, src/otlayout/otlconf.h,
src/otlayout/otlgdef.c, src/otlayout/otlgdef.h,
src/otlayout/otlgpos.c, src/otlayout/otlgpos.h,
src/otlayout/otlgsub.c, src/otlayout/otlgsub.h,
src/otlayout/otljstf.c, src/otlayout/otljstf.h,
src/otlayout/otltable.c, src/otlayout/otltable.h,
src/otlayout/otltags.h: New OpenType Layout source files. The
module is still incomplete.
2002-05-02 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttcmap0.c (tt_cmap4_char_index): Fix serious typo
(0xFFFU -> 0xFFFFU).
2002-05-01 Werner Lemberg <wl@gnu.org>
* docs/INSTALL: Fix URL of makepp.
2002-05-01 David Turner <david@freetype.org>
* src/sfnt/sfobjs.c (tt_face_get_name): Fixing a bug that caused
FreeType to crash when certain broken fonts (e.g. "hya6gb.ttf")
were opened.
* src/sfnt/ttload.c (TT_Load_Names): Applied a small work-around to
manage fonts containing a broken name table (e.g. "hya6gb.ttf").
* src/sfnt/ttcmap0.c (tt_cmap4_validate): Fixed over-restrictive
validation test. The charmap validator now accepts overlapping
ranges in format 4 charmaps.
* src/sfnt/ttcmap0.c (tt_cmap4_char_index): Switched to a binary
search algorithm. Certain fonts contain more than 170 distinct
segments!
* include/freetype/config/ftstdlib.h: Adding an alias for the `exit'
function. This will be used in the near future to panic in case of
unexpected exception (which shouldn't happen in theory).
* include/freetype/internal/fthash.h, src/base/fthash.c: Adding a
generic implementation of dynamic hash tables using a linear
algorithm (to get rid of `stalls' during resizes). This will be
used in the future in at least three parts of the library: the cache
sub-system, the object sub-system, and the memory debugger.
* include/freetype/internal/ftcore.h: Added this header file to
group all new definitions related to exception handling and memory
management. It is very likely that this file will disappear or be
renamed in the future.
* include/freetype/internal/ftobject.h, include/freetype/ftsysmem.h:
Adding comments to better explain the object sub-system as well as
the new memory manager interface.
2002-04-30 Wenlin Institute (Tom Bishop) <wenlin@wenlin.com>
* src/base/ftmac.c (p2c_str): Removed.
(file_spec_from_path) [TARGET_API_MAC_CARBON]: Added support for
OS X.
(is_dfont) [TARGET_API_MAC_CARBON]: Define only for OS X.
Handle `nameLen' <= 6 also.
(parse_fond): Remove unused variable `name_table'.
Use functionality of old p2c_str directly.
Add safety checks.
(read_lwfn): Initialize `size_p'.
Check for size_p == NULL.
(new_memory_stream, open_face_from_buffer): Updated to FreeType 2.1.
(FT_New_Face_From_LWFN): Remove unused variable `memory'.
Remove some dead code.
(FT_New_Face_From_SFNT): Remove unused variable `stream'.
(FT_New_Face_From_dfont) [TARGET_API_MAC_CARBON]: Define only for
OS X.
(FT_New_Face_From_FOND): Remove unused variable `error'.
(ResourceForkSize): New function.
(FT_New_Face): Use it.
Handle empty resource forks.
Conditionalize some code for OS X.
Add code to call normal loader as a fallback.
2002-04-30 Werner Lemberg <wl@gnu.org>
`interface' is reserved on the Mac.
* include/freetype/ftoutln.h, include/freetype/internal/sfnt.h,
src/base/ftoutln.c: s/interface/func_interface/.
* src/base/ftbbox.c (FT_Outline_Get_BBox):
s/interface/bbox_interface/.
* src/cff/cffdrivr.c: s/interface/module_interface/.
* src/cff/cffload.c, src/cff/cffload.h:
s/interface/psnames_interface/.
* src/cid/cidriver.c: s/interface/cid_interface/.
* src/sfnt/sfdriver.c: s/interface/module_interface/.
* src/smooth/ftgrays.c: s/interface/func_interface/.
* src/truetype/ttdriver.c: s/interface/tt_interface/.
* src/type1/t1driver.c: s/interface/t1_interface/.
Some more variable renames to avoid troubles on the Mac.
* src/raster/ftraster.c:
s/Unknown|Ascending|Descending|Flat/\1_State/.
* src/smooth/ftgrays.c: s/TScan/TCoord/.
Other changes for the Mac.
* include/freetype/config/ftconfig.h: Define FT_MACINTOSH for
Mac platforms.
* src/base/ftobjs.c: s/macintosh/FT_MACINTOSH/.
* src/raster/ftrend1.c (ft_raster1_render): Make `pitch' always
an even number.
2002-04-29 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
* descrip.mms (all): Add pfr driver.
2002-04-28 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrerror.h: New file.
* include/freetype/ftmoderr.h: Add PFR error codes.
* src/pfr/pfrgload.c: Include pfrerror.h.
Use PCF error codes.
(pfr_extra_item_load_stem_snaps): Fix debug message.
* src/pfr/pfrgload.c: Include pfrerror.h.
Use PCF error codes.
(pfr_extra_item_load_bitmap_info, pfr_glyph_load_simple,
pfr_glyph_load_compound): Fix debug message.
* src/pfr/pfrobjs.c: Include pfrerror.h.
Use PCF error codes.
(pfr_face_init): Return PFR_Err_Unknown_File_Format.
* src/pfr/rules.mk (PFR_DRV_H): Include pfrerror.h.
* src/pcf/pcfdriver.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_CMAPS]:
`root' -> `face->root'.
* src/sfnt/ttcmap0.c (TT_Build_CMaps) [!FT_CONFIG_OPTION_USE_CMAPS]:
Removed.
* src/sfnt/ttcmap0.c: Declare TT_Build_CMaps only for
FT_CONFIG_OPTION_USE_CMAPS.
2002-04-27 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_cache_lookup),
src/cache/ftccmap.c (ftc_cmap_family_init),
src/cache/ftcmanag.c (ftc_family_table_alloc),
src/cache/ftcsbits.c (FTC_SBit_Cache_Lookup): Use FTC_Err_*.
src/cache/ftcimage.c (FTC_Image_Cache_Lookup): Use FTC_Err_*.
(FTC_ImageCache_Lookup): Fix handling of invalid arguments.
2002-04-22 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.ac: Set `version_info' to 9:1:3 (FT2
version 2.0.9 has 9:0:3).
* builds/unix/configure: Regenerated (using autoconf 2.53).
2002-04-19 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrload.c (pfr_extra_items_farse): Fix debug message.
(pfr_phy_font_load): s/size/Size/ for local variable to avoid
compiler warning.
* src/pfr/pfrobjs.c (pfr_face_init): Fix debug message.
(pfr_slot_load): Remove redundant local variable.
2002-04-19 David Turner <david@freetype.org>
Adding a PFR font driver to the FreeType sources. Note that it
doesn't support embedded bitmaps or kerning tables yet.
src/pfr/*: New files.
* include/freetype/config/ftmodule.h,
include/freetype/internal/fttrace.h, src/Jamefile: Updated.
* src/type1/t1gload.h (T1_Load_Glyph), src/type1/t1gload.c
(T1_Load_Glyph): Fixed incorrect parameter sign-ness in callback
function.
* include/freetype/internal/ftmemory.h (FT_MEM_ZERO, FT_ZERO): New
macros.
* include/freetype/internal/ftstream.h (FT_NEXT_OFF3, FT_NEXT_UOFF3,
FT_NEXT_OFF3_LE, FT_NEXT_UOFF3_LE): New macros to parse in-memory
24-bit integers.
2002-04-18 David Turner <david@freetype.org>
* src/base/ftobjs.c, builds/win32/ftdebug.c,
builds/amiga/src/base/ftdebug.c: Version 2.1.0 couldn't be linked
against applications in Win32 and Amiga builds due to changes to
"src/base/ftdebug.c" that were not properly propagated to
"builds/win32" and "builds/amiga". This has been fixed.
* include/freetype/internal/ftobject.h,
include/freetype/internal/ftexcept.h, include/freetype/ftsysmem.h,
include/freetype/ftsysio.h, src/base/ftsysmem.c, src/base/ftsysio.c:
New experimental files.
2002-04-17 David Turner <david@freetype.org>
* Version 2.1.0 released.
=========================
2002-04-17 Michael Jansson <mjan@em2-solutions.com>
* src/type1/t1gload.c (T1_Compute_Max_Advance): Fixed a small bug
that prevented the function to return the correct value.
2002-04-16 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
* src/pcf/pcfread (pcf_get_accell): Fix parsing of accelerator
tables.
2002-04-15 David Turner <david@freetype.org>
* docs/FTL.txt: Formatting.
* include/freetype/config/ftoption.h: Reduce the size of the
render pool from 32kByte to 16kByte.
* src/pcf/pcfread.c (pcf_seek_to_table_type): Remove compiler
warning.
* include/freetype/config/ftoption.h (FT_MAX_EXTENSIONS): Removed.
* docs/CHANGES: Preparing 2.1.0 release.
2002-04-13 Werner LEMBERG <wl@gnu.org>
* src/cff/cffgload.c (CFF_Parse_CharStrings): s/rand/Rand/ to avoid
compiler warning.
2002-04-12 David Turner <david@freetype.org>
* README.UNX: Updated the Unix-specific quick-compilation guide to
warn about the GNU Make requirement at compile time.
* include/freetype/config/ftstdlib.h,
include/freetype/config/ftconfig.h,
include/freetype/config/ftheader.h,
include/freetype/internal/ftmemory.h,
include/freetype/internal/ftobjs.h,
src/autohint/ahoptim.c,
src/base/ftdbgmem.c, src/base/ftdebug.c, src/base/ftmac.c,
src/base/ftobjs.c, src/base/ftsystem.c,
src/cache/ftcimage.c, src/cache/ftcsbits.c,
src/cff/cffdriver.c, src/cff/cffload.c, src/cff/cffobjs.c,
src/cid/cidload.c, src/cid/cidparse.c, src/cid/cidriver.c,
src/pcf/pcfdriver.c, src/pcf/pcfread.c,
src/psaux/t1cmap.c, src/psaux/t1decode.c,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.c,
src/pshinter/pshrec.c,
src/psnames/psmodule.c,
src/raster/ftraster.c,
src/sfnt/sfdriver.c, src/sfnt/ttload.c,
src/smooth/ftgrays.c,
src/type1/t1afm.c, src/type1/t1driver.c, src/type1/t1gload.c,
src/type1/t1load.c, src/type1/t1objs.c, src/type1/t1parse.c,
builds/unix/ftconfig.in, builds/vms/ftconfig.h,
builds/amiga/src/base/ftdebug.c:
Added the new configuration file "ftstdlib.h" used to define
aliases for all ISO C library functions used by the engine
(e.g. strlen, qsort, setjmp, etc.).
This eases the porting of FreeType 2 to environments like
XFree86 modules/extensions.
Also removed many #include <string.h>, #include <stdlib.h>, etc.
from the engine's sources where they are not needed.
* src/sfnt/ttpost.c: Use macro name for psnames.h.
2002-04-12 Vincent Caron <v.caron@zerodeux.net>
* configure, builds/detect.mk: Updated the build system to print
a warning message in case GNU Make isn't used to build the library.
2002-04-11 David Turner <david@freetype.org>
* README, docs/CHANGES, Jamfile.in: Updates for the 2.1.0 release.
* docs/FTL.txt: Updated license text to provide a preferred
disclaimer and adjust copyright dates/extents.
* include/freetype/cache/ftcglyph.h: Removing obsolete (and
confusing) comment.
* Jamfile.in: New file.
2002-04-11 Maxim Shemanarev <mcseemagg@yahoo.com>
* src/smooth/ftgrays.c (gray_hline): Minor optimization.
2002-04-02 Werner Lemberg <wl@gnu.org>
Fixes from the stable branch:
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_OLD_CALCS):
Removed.
[FT_CONFIG_OPTION_OLD_CALCS]: Removed.
* include/freetype/internal/ftcalc.h, src/base/ftcalc.c
[FT_CONFIG_OPTION_OLD_CALCS]: Removed.
* src/base/fttrigon.c (FT_Vector_Length): Change algorithm to match
output of FreeType 1.
* src/pshinter/pshglob.c (psh_globals_scale_widths): Fixed a small
bug that created un-even stem widths when hinting Postscript fonts.
* src/type1/t1driver.c, src/type1/t1parse.c: 16bit fixes.
2002-04-01 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c: 16bit fixes.
(TT_Load_Simple_Glyph): Improve debug messages.
(load_truetype_glyph): Remove dead code.
* src/truetype/ttinterp.c: 16bit fixes.
* src/truetype/ttobjs.c: Ditto.
* include/freetype/ftsnames.h, include/freetype/internal/sfnt.h,
src/cff/cffload.h, src/psaux/psobjs.h, src/truetype/ttinterp.[ch],
src/sfnt/ttpost.h: s/index/idx/.
2002-03-31 Yao Zhang <yaoz@vidar.niaaa.nih.gov>
* src/truetype/ttobjs.c (TT_Size_Init): Fix typo.
2002-03-31 Werner Lemberg <wl@gnu.org>
* src/otlayout/otlcommn.c, src/otlayout/otlcommn.h: s/index/idx/.
* src/psaux/t1cmap.c: Ditto.
* src/sfnt/ttcmap0.c: Ditto.
* include/freetype/internal/tttypes.h,
include/freetype/internal/sfnt.h (TT_Goto_Table_Func): Renamed to ...
(TT_Loader_GotoTableFunc): This.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix debug
messages.
* src/psnames/psmodule.c (psnames_interface)
[!FT_CONFIG_OPTION_ADOBE_GLYPH_LIST]: Fix typo.
* src/sfnt/sfdriver.c (get_sfnt_table): 16bit fix.
* src/sfnt/ttcmap.c: 16bit fixes (0xFFFF -> 0xFFFFU).
* src/sfnt/ttcmap0.c: 16bit fixes.
(TT_Build_CMaps): Simplify debug messages.
(tt_cmap12_char_next): Fix offset.
* src/sfnt/ttload.c (TT_Load_Names, TT_Load_CMap): Fix debug
messages.
(TT_Load_OS2): 16bit fix.
2002-03-30 David Turner <david@freetype.org>
* include/freetype/internal/tttypes.h: Adding comments to some of
the TT_FaceRec fields.
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Removed compiler warnings.
* src/sfnt/sfobjs.c (tt_name_entry_ascii_from_{utf16,ucs4,other}:
New functions.
(tt_face_get_name): Use them to properly extract an ascii font name.
2002-03-30 Werner Lemberg <wl@gnu.org>
* include/freetype/t1tables.h (t1_blend_max): Fix typo.
* src/base/ftstream.c: Simplify FT_ERROR calls.
* src/cff/cffdrivr.c (cff_get_glyph_name): Fix debug message.
* src/cff/cffobjs.c (CFF_Driver_Init, CFF_Driver_Done)
[TT_CONFIG_OPTION_EXTEND_ENGINE]: Removed.
* src/cff/sfobjs.c (SFNT_Load_Face)
[TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
* src/truetype/ttobjs.c (TT_Init_Driver, TT_Done_Driver)
[TT_CONFIG_OPTION_EXTEND_ENGINE]: Ditto.
* src/truetype/ttdriver.c, src/truetype/ttobjs.c,
src/truetype/ttobjs.h: Renaming driver functions to the
FT_<Subject>_<Action> scheme:
TT_Init_Driver => TT_Driver_Init
TT_Done_Driver => TT_Driver_Done
TT_Init_Face => TT_Face_Init
TT_Done_Face => TT_Face_Done
TT_Init_Size => TT_Size_Init
TT_Done_Size => TT_Size_Done
TT_Reset_Size => TT_Size_Reset
2002-03-29 Werner Lemberg <wl@gnu.org>
* builds/vms/ftconfig.h: Rename LOCAL_DEF and LOCAL_FUNC to
FT_LOCAL and FT_LOCAL_DEF, respectively, as with other ftconfig.h
files.
* builds/unix/ftconfig.in: Add argument to FT_LOCAL and
FT_LOCAL_DEF.
* src/truetype/ttinterp.c: s/FT_Assert/FT_ASSERT/.
* builds/unix/configure.ac: Temporarily deactivate creation of
../../Jamfile.
* builds/unix/configure: Updated.
2002-03-28 KUSANO Takayuki <AE5T-KSN@asahi-net.or.jp>
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fix serious typos.
2002-03-28 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (PSAux_ServiceRec): Fix
compiler warnings.
* include/freetype/internal/t1types.h (T1_FaceRec): Use `const' for
some members.
* src/base/ftapi.c (FT_New_Memory_Stream): Fix typos.
* src/psaux/t1cmap.c (t1_cmap_std_init, t1_cmap_unicode_init): Add
cast.
(t1_cmap_{standard,expert,custom,unicode}_class_rec): Use
`FT_CALLBACK_TABLE_DEF'.
* src/psaux/t1cmap.h: Updated.
* src/sfnt/ttcmap0.c (TT_Build_CMaps): Use `ft_encoding_none'
instead of zero.
* src/type1/t1objs.c (T1_Face_Init): Use casts.
2002-03-26 David Turner <david@freetype.org>
* src/sfnt/sfdriver.c, src/sfnt/sfobjs.c, src/sfnt/ttcmap0.c:
Fixed a small bug in the FT_CMaps support code.
2002-03-25 David Turner <david@freetype.org>
* src/truetype/ttinterp.c (Norm): Replaced with...
(TT_VecLen): This.
(TT_MulFix14, TT_DotFix14): New functions.
(Project, Dual_Project, Free_Project, Compute_Point_Displacement,
Ins_SHPIX, Ins_MIAP, Ins_MIRP): Use them.
[FT_CONFIG_OPTION_OLD_CALCS]: Removed all code.
2002-03-22 David Turner <david@freetype.org>
* src/base/ftobjs.c, src/sfnt/ttcmap0.c, src/type1/t1objs.c:
Various fixes to make the FT_CMaps support work correctly (more
tests are still needed).
* include/freetype/internal/ftobjs.h, src/sfnt/Jamfile,
src/sfnt/rules.mk, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
src/sfnt/ttload.c, src/sfnt/ttcmap0.c, src/sfnt/ttcmap0.h: Updated
the SFNT charmap support to use FT_CMaps.
* include/freetype/fterrdef.h: New file.
* include/freetype/fterrors.h: Include it. It contains all error
codes.
* include/freetype/config/ftheader.h (FT_ERROR_DEFINITIONS_H): New
macro.
* include/freetype/internal/ftmemory.h, and a lot of other files:
Changed the names of memory macros. Examples:
MEM_Set => FT_MEM_SET
MEM_Copy => FT_MEM_COPY
MEM_Move => FT_MEM_MOVE
ALLOC => FT_ALLOC
FREE => FT_FREE
REALLOC = >FT_REALLOC
FT_NEW was introduced to allocate a new object from a _typed_
pointer.
Note that ALLOC_ARRAY and REALLOC_ARRAY have been replaced by
FT_NEW_ARRAY and FT_RENEW_ARRAY which take _typed_ pointer
arguments.
This results in _lots_ of sources being changed, but makes the code
more generic and less error-prone.
* include/freetype/internal/ftstream.h, src/base/ftstream.c,
src/cff/cffload.c, src/pcf/pcfread.c, src/sfnt/ttcmap.c,
src/sfnt/ttcmap0.c, src/sfnt/ttload.c, src/sfnt/ttpost.c,
src/sfnt/ttsbit.c, src/truetype/ttgload.c, src/truetype/ttpload.c,
src/winfonts/winfnt.c: Changed the definitions of stream macros.
Examples:
NEXT_Byte => FT_NEXT_BYTE
NEXT_Short => FT_NEXT_SHORT
NEXT_UShortLE => FT_NEXT_USHORT_LE
READ_Short => FT_READ_SHORT
GET_Long => FT_GET_LONG
etc.
Also introduced the FT_PEEK_XXXX functions.
* src/cff/cffobjs.c (CFF_Build_Unicode_Charmap): Removed commented
out function.
(find_encoding): Removed.
(CFF_Face_Init): Remove charmap support.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_USE_CMAPS,
TT_CONFIG_CMAP_FORMAT{0,2,4,6,8,10,12}): New macros to fine-tune
support of cmaps.
2002-03-21 David Turner <david@freetype.org>
* src/base/ftobjs.c, src/pcf/pcfdriver.c, src/pcf/pcfread.c: Updated
to new FT_CMap definitions.
* src/psaux/t1cmap.h, src/psaux/t1cmap.c, src/type1/t1cmap.h,
src/type1/t1cmap.c: Updating and moving the Type 1 FT_CMap support
from "src/type1" to "src/psaux" since it is going to be shared by
the Type 1 and CID font drivers.
* src/psaux/Jamfile, src/psaux/psaux.c, src/psaux/psauxmod.c,
src/psaux/rules.mk, include/freetype/internal/psaux.h: Added support
for Type 1 FT_CMaps.
2002-03-20 David Turner <david@freetype.org>
* src/base/ftgloadr.c (FT_GlyphLoader_CheckSubGlyphs): Fixed a
memory allocation bug that was due to un-careful renaming of the
FT_SubGlyph type.
* src/base/ftdbgmem.c (ft_mem_table_destroy): Fixed a small bug that
caused the library to crash with Electric Fence when memory
debugging is used.
* Renaming stream macros. Examples:
FILE_Skip => FT_STREAM_SKIP
FILE_Read => FT_STREAM_READ
ACCESS_Frame => FT_FRAME_ENTER
FORGET_Frame => FT_FRAME_EXIT
etc.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed memory leak.
* include/freetype/internal/ftobjs.h: Changing the definition of
FT_CMap_CharNextFunc slightly.
* src/cff/*.c: Updating CFF type definitions.
2002-03-14 David Turner <david@freetype.org>
* include/freetype/internal/autohint.h, src/autohint/ahmodule.c,
src/base/ftapi.c, src/base/ftobjs.c: Updating the type definitions
for the auto-hinter module.
FT_AutoHinter_Interface => FT_AutoHinter_ServiceRec
FT_AutoHinter_Interface* => FT_AutoHinter_Service
etc.
FT_AutoHinter_Get_Global_Func => FT_AutoHinter_GlobalGetFunc
FT_AutoHinter_Done_Global_Func => FT_AutoHinter_GlobalDoneFunc
etc.
* ahloader.h [_STANDALONE_]: Removed all conditional code.
* include/freetype/internal/cfftypes.h, src/cff/*.c: Updating the
type definitions of the CFF font driver.
CFF_Font => CFF_FontRec
CFF_Font* => CFF_Font
etc.
* include/freetype/internal/fnttypes.h, src/winfonts/*.c: Updating
type definitions of the Windows FNT font driver.
* include/freetype/internal/ftdriver.h,
include/freetype/internal/ftobjs.h, src/base/ftapi.c,
src/base/ftobjs.c, src/cff/cffdrivr.c, src/cff/cffdrivr.h,
src/cid/cidriver.c, src/cid/cidriver.h, src/pcf/pcfdriver.c,
src/pcf/pcfdriver.h, src/truetype/ttdriver.c,
src/truetype/ttdriver.h, src/type1/t1driver.c, src/type1/t1driver.h,
src/winfonts/winfnt.c, src/winfonts/winfnt.h: Updating type
definitions for font drivers.
FTDriver_initFace => FT_Face_InitFunc
FTDriver_initGlyphSlot => FT_Slot_InitFunc
etc.
* src/cid/cidobjs.c (CID_Face_Init): Remove dead code.
* include/freetype/internal/ftobjs.h, src/base/ftobjs.c: Updated a
few face method definitions:
FT_PSName_Requester => FT_Face_GetPostscriptNameFunc
FT_Glyph_Name_Requester => FT_Face_GetGlyphNameFunc
FT_Name_Index_Requester => FT_Face_GetGlyphNameIndexFunc
* src/base/ftapi.c: New file. It contains backwards compatibility
functions.
* include/freetype/internal/psaux.h, src/cid/cidload.c,
src/cidtoken.h, src/psaux/psobjs.c, src/psaux/psobjs.h,
src/psaux/t1decode.c, stc/type1/t1load.c, src/type1/t1tokens.h:
Updated common PostScript type definitions.
Renamed all enumeration values like to uppercase variants:
t1_token_any => T1_TOKEN_TYPE_ANY
t1_field_cid_info => T1_FIELD_LOCATION_CID_INFO
etc.
* include/freetype/internal/psglobals.h: Removed.
* include/freetype/internal/pshints.h, src/pshinter/pshglob.h:
Updated.
* include/freetype/internal/tttypes.h,
include/freetype/internal/sfnt.h, src/base/ftnames.c,
src/cff/cffdrivr.c, src/sfnt/*.c, src/truetype/*.c: Updated
SFNT/TrueType type definitions.
* include/freetype/freetype.h, include/freetype/internal/ftgloadr.h:
Updating type defintiions for the glyph loader.
2002-03-13 Antoine Leca <antoine@oriolnet.com>
* include/freetype/config/ftoption.h: Changed the automatic
detection of Microsoft C compilers to automatically support 64-bit
integers only since revision 9.00 (i.e. >= Visual C++ 2.0).
2002-03-08 Werner Lemberg <wl@gnu.org>
* src/base/ftutil.c (FT_Realloc): Use MEM_Set instead of memset.
2002-03-07 Werner Lemberg <wl@gnu.org>
* src/base/ftdbgmem.c (ft_mem_table_resize, ft_mem_table_new,
ft_mem_table_set, ft_mem_debug_alloc, ft_mem_debug_free,
ft_mem_debug_realloc, ft_mem_debug_done, FT_Alloc_Debug,
FT_Realloc_Debug, FT_Free_Debug): Fix compiler warnings.
* src/base/ftcalc.c (FT_MulFix): Ditto.
* src/cff/cffdrivr.c (cff_get_name_index): Ditto.
* src/cff/cffobjs.c (CFF_Size_Get_Global_Funcs, CFF_Size_Init,
CFF_GlyphSlot_Init): Ditto.
* src/cid/cidobjs.c (CID_GlyphSlot_Init,
CID_Size_Get_Globals_Funcs): Ditto.
* src/type1/t1objs.c (T1_Size_Get_Globals_Funcs, T1_GlyphSlot_Init):
Ditto.
* src/pshinter/pshmod.c (pshinter_interface): Use `static const'.
* src/winfonts/winfnt.c (FNT_Get_Next_Char): Remove unused
variables.
* include/freetype/internal/psaux.h (T1_Builder_Funcs): Renamed
to...
(T1_Builder_FuncsRec): This.
(T1_Builder_Funcs): New typedef.
(PSAux_Interface): Remove compiler warnings.
* src/psaux/psauxmod.c (t1_builder_funcs), src/psaux/psobjs.h
(t1_builder_funcs): Updated.
* src/pshinter/pshglob.h (PSH_Blue_Align): Replaced with ...
(PSH_BLUE_ALIGN_{NONE,TOP,BOT}): New defines.
(PSH_AlignmentRec): Updated.
* include/freetype/internal/ftstream.h (GET_Char, GET_Byte): Fix
typo.
* include/freetype/internal/ftgloadr.h (FT_SubGlyph): Ditto.
* src/base/ftstream (FT_Get_Char): Rename to...
(FT_Stream_Get_Char): This.
* src/base/ftnames.c (FT_Get_Sfnt_Name): s/index/idx/ -- `index' is
a built-in function in gcc, causing warning messages with gcc 3.0.
* src/autohint/ahglyph.c (ah_outline_load): Ditto.
* src/autohint/ahglobal.c (ah_hinter_compute_blues): Ditto.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
ftc_family_table_free, FTC_Manager_Done, FTC_Manager_Register_Cache):
Ditto.
* src/cff/cffload.c (cff_new_index, cff_done_index,
cff_explicit_index, CFF_Access_Element, CFF_Forget_Element,
CFF_Get_Name, CFF_Get_String, CFF_Load_SubFont, CFF_Load_Font,
CFF_Done_Font): Ditto.
* src/psaux/psobjs.c (PS_Table_Add, PS_Parser_LoadField): Ditto.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Ditto.
* src/pshinter/pshrec.c (ps_mask_test_bit, ps_mask_clear_bit,
ps_mask_set_bit, ps_dimension_add_t1stem, ps_hints_t1stem3,
* src/pshinter/pshalgo1.c (psh1_hint_table_record,
psh1_hint_table_record_mask, psh1_hint_table_activate_mask): Ditto.
* src/pshinter/pshalgo2.c (psh2_hint_table_record,
psh2_hint_table_record_mask, psh2_hint_table_activate_mask): Ditto.
* src/sfnt/ttpost.c (Load_Format_20, Load_Format_25,
TT_Get_PS_Name): Ditto.
* src/truetype/ttgload.c (TT_Get_Metrics, Get_HMetrics,
load_truetype_glyph): Ditto.
* src/type1/t1load.c (parse_subrs, T1_Open_Face): Ditto.
* src/type1/t1afm.c (T1_Get_Kerning): Ditto.
* include/freetype/cache/ftcmanag.h (ftc_family_table_free): Ditto.
2002-03-06 David Turner <david@freetype.org>
* src/type1/t1objs.c (T1_Face_Init), src/cid/cidobjs.c
(CID_Face_Init): Fixed another bug related to the
ascender/descender/text height of Postscript fonts.
* src/pshinter/pshalgo2.c (print_zone): Renamed to ...
(psh2_print_zone): This.
* src/pshinter/pshalgo1.c (print_zone): Renamed to ...
(psh1_print_zone): This.
* include/freetype/freetype.h, include/freetype/internal/ftobjs.h,
src/base/ftobjs.c: Adding the new FT_Library_Version API to return
the library's current version in dynamic links.
* src/base/ftinit.c (FT_Init_FreeType): Updated.
2002-03-06 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshglob.h (PSH_DimensionRec): s/std/stdw/.
* src/pshinter/pshglob.c (psh_global_scale_widths,
psh_dimension_snap_width, psh_globals_destroy, psh_globals_new):
Ditto.
2002-03-05 David Turner <david@freetype.org>
* src/type1/t1objs.c (T1_Face_Init), src/cff/cffobjs.c
(CFF_Face_Init), src/cid/cidobjs.c (CID_Face_Init): Removing the bug
that returned global BBox values in 16.16 fixed format (instead of
integer font units).
* src/cid/cidriver.c (cid_get_postscript_name): Fixed a bug that
caused the CID driver to return Postscript font names with a leading
slash ("/") as in "/MOEKai-Regular".
* src/sfnt/ttload.c (TT_Load_Names), src/sfnt/sfobjs.c (Get_Name),
src/sfnt/sfdriver.c (get_sfnt_postscript_name): Fixed the loader so
that it accepts broken fonts like "foxjump.ttf", which made FreeType
crash when trying to load them.
Also improved the name table parser to be able to load
Windows-encoded entries before Macintosh or Unicode ones, since it
seems some fonts don't have reliable values here anyway.
* include/freetype/internal/psnames.h: Add typedef for
`PSNames_Service'.
2002-03-05 Werner Lemberg <wl@gnu.org>
* builds/unix/aclocal.m4, builds/unix/ltmain.sh: Update to libtool
1.4.2.
Apply a small patch for AIX to make shared libraries work (this
patch is already in the CVS version of libtool).
* builds/unix/config.sub, builds/unix/config.guess: Updated to
recent versions.
* builds/unix/configure.ac: Fix typo
(AC_CONFIG_FILE->AC_CONFIG_FILES).
* builds/unix/configure: Regenerated.
2002-02-28 David Turner <david@freetype.org>
* include/freetype/ftconfig.h: Changed `FT_LOCAL xxxx' to
`FT_LOCAL( xxxx )' everywhere in the source. The same goes for
`FT_LOCAL_DEF xxxx' which is translated to `FT_LOCAL_DEF( xxxxx )'.
* include/freetype/freetype.h (FREETYPE_MINOR, FREETYPE_PATCH):
Changing version to 2.1.0 to indicate an unstable branch.
Added the declarations of FT_Get_First_Char and FT_Get_Next_Char.
* src/base/ftobjs.c: Implement FT_Get_First_Char and
FT_Get_Next_Char.
* include/freetype/t1tables.h: Renaming structure types. This
typedef T1_Struct_
{
} T1_Struct;
becomes
typedef PS_StructRec_
{
} PS_StructRec, *PS_Struct;
typedef PS_StructRec T1_Struct; /* backwards-compatibility */
Hence, we increase the coherency of the source code by effectively
using the `Rec' prefix for structure types.
2002-02-27 David Turner <david@freetype.org>
* src/sfnt/ttload.c (TT_Load_Names): Simplifying and securing the
names table loader. Invalid individual name entries are now handled
correctly. This allows the loading of very buggy fonts like
"foxjump.ttf" without allocating tons of memory and causing crashes.
* src/otlayout/otlcommon.h, src/otlayout/otlcommon.c: Adding (still
experimental) code for OpenType Layout tables validation and
parsing.
* src/type1/t1cmap.h, src/type1/t1cmap.c: Adding (still
experimental) code for Type 1 charmap processing.
* src/sfnt/ttcmap0.c: New file. It contains a new, still
experimental SFNT charmap processing support.
* include/freetype/internal/ftobjs.h: Adding validation support as
well as internal charmap object definitions (FT_CMap != FT_CharMap).
2002-02-24 David Turner <david@freetype.org>
* Renaming stream functions to the FT_<Subject>_<Action> scheme:
FT_Seek_Stream => FT_Stream_Seek
FT_Skip_Stream => FT_Stream_Skip
FT_Read_Stream => FT_Stream_Read
FT_Read_Stream_At => FT_Stream_Read_At
FT_Access_Frame => FT_Stream_Enter_Frame
FT_Forget_Frame => FT_Stream_Exit_Frame
FT_Extract_Frame => FT_Stream_Extract_Frame
FT_Release_Frame => FT_Stream_Release_Frame
FT_Get_XXXX => FT_Stream_Get_XXXX
FT_Read_XXXX => FT_Stream_Read_XXXX
FT_New_Stream( filename, stream ) =>
FT_Stream_Open( stream, filename )
(The function doesn't create the FT_Stream structure, it simply
initializes it for reading.)
FT_New_Memory_Stream( library, FT_Byte* base, size, stream ) =>
FT_Stream_Open_Memory( stream, const FT_Byte* base, size )
FT_Done_Stream => FT_Stream_Close
FT_Stream_IO => FT_Stream_IOFunc
FT_Stream_Close => FT_Stream_CloseFunc
ft_close_stream => ft_ansi_stream_close (in base/ftsystem.c only)
ft_io_stream => ft_ansi_stream_io (in base/ftsystem.c only)
* src/base/ftutil.c: New file. Contains all memory and list
management code (previously in "ftobjs.c" and "ftlist.c",
respectively).
* include/freetype/internal/ftobjs.h: Moving all code related to
glyph loaders to ...
* include/freetype/"internal/ftgloadr.h: This new file.
"FT_GlyphLoader" is now a pointer to the structure
"FT_GlyphLoaderRec".
(ft_glyph_own_bitmap): Renamed to ...
(FT_GLYPH_OWN_BITMAP): This.
* src/base/ftobjs.c: Moving all code related to glyph loaders
to ...
* src/base/ftgloadr.c: This new file.
2002-02-22 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/ftdebug.h (FT_Trace): Remove comma in
enum to avoid compiler warnings.
2002-02-21 David Turner <david@freetype.org>
Modified the debug sub-system initialization. Trace levels can now
be specified within the "FT2_DEBUG" environment variable. See the
comments within "ftdebug.c" for more details.
* src/base/ftdebug.c: (FT_SetTraceLevel): Removed.
(ft_debug_init): New function.
(ft_debug_dummy): Removed.
Updated to changes in ftdebug.h
* include/freetype/internal/ftdebug.h: Always define
FT_DEBUG_LEVEL_ERROR if FT_DEBUG_LEVEL_TRACE is defined.
(FT_Assert): Renamed to ...
(FT_ASSERT): This.
Some stuff from ftdebug.h has been moved to ...
* include/freetype/internal/fttrace.h: New file, to define the trace
levels used for debugging. It is used both to define enums and
toggle names for FT2_DEBUG.
* include/freetype/internal/internal.h: Updated.
* src/base/ftobjs.c, src/base/ftstream.c: Updated.
* include/freetype/internal/ftextend.h, src/base/ftextend.c:
Removed. Both files are now completely obsolete.
* src/base/Jamfile, src/base/rules.mk: Updated.
* include/freetype/fterrors.h: Adding "#undef FT_ERR_CAT" and
`#undef FT_ERR_XCAT" to avoid warnings with certain compilers (like
LCC).
* src/pshinter/pshalgo2.c (print_zone): Renamed to ...
(psh2_print_zone): This to avoid errors during compilation of debug
library.
* src/smooth/ftgrays.c (FT_COMPONENT): Change definition to as
`trace_smooth'.
2002-02-20 David Turner <david@freetype.org>
* README: Adding "devel@freetype.org" address for bug reports.
2002-02-20 Werner Lemberg <wl@gnu.org>
* builds/unix/install.mk (check): New dummy target.
(.PHONY): Add it.
2002-02-19 Werner Lemberg <wl@gnu.org>
* builds/freetype.mk (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.
* src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
to avoid compiler warning.
* src/cff/cffload.c (CFF_Get_String): Ditto.
* src/cff/cffobjs.c (CFF_StrCopy): Ditto.
* src/psaux/psobjs.c (PS_Table_Done): Ditto.
* src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
(pcf_get_bitmaps): The same for `sizebitmaps'.
* src/psaux/t1decode.c (T1_Decode_Parse_Charstrings): The same for
`orig_y'.
(t1operator_seac): Comment out more dead code.
* src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
conditional.
* src/truetype/ttgload.c (TT_Process_Simple_Glyph,
load_truetype_glyph): Add `TT_CONFIG_OPTION_BYTECODE_INTERPRETER'
conditional.
2002-02-18 Werner Lemberg <wl@gnu.org>
* src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
variables.
* src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
of UNUSED.
* src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
* src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
swapping code.
* src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
* src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
* src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
* src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
* include/freetype/internal/ftobjs.h (UNUSED): Removed.
2002-02-10 Roberto Alameda <ojancano@geekmail.de>
Add support for ISOLatin1 PS encoding.
* include/freetype/freetype.h (ft_encoding_latin_1): New tag
(`lat1').
* include/freetype/internal/t1types.h (T1_Encoding_Type): Add
`t1_encoding_isolatin1'.
* src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Handle
ft_encoding_latin_1.
* src/type1/t1load.c (parse_encoding): Handle `ISOLatin1Encoding'.
* src/type1/t1objs.c (T1_Face_Init): Handle `t1_encoding_isolatin1'.
2002-02-09 Werner Lemberg <wl@gnu.org>
* README: Fix typo.
* docs/CHANGES: Minor fixes.
* Version 2.0.8 released.
=========================
2002-02-08 David Turner <david@freetype.org>
* docs/CHANGES: Updating for 2.0.8.
* include/freetype/freetype.h: Setting `PATCH_LEVEL' to 8 and
removing `FT_Get_Next_Char' from the API (temporarily).
* include/freetype/freetype.h: Adding comments to FT_Get_Next_Char;
note that this function might temporarily be removed for the 2.0.8
release.
2002-02-07 David Turner <david@freetype.org>
* src/pcf/pcfread.c (pcf_load_font): Removed immature support of
the AVERAGE_WIDTH property.
2002-02-06 David Turner <david@freetype.org>
* src/sfnt/sfobjs.c (SFNT_Load_Face): Since many fonts embedded in
PDF documents do not include 'cmap', 'post' and 'name' tables, the
SFNT face loader has been changed to not immediately report an
error if these are not present.
Note that the specification _requires_ these tables, but Adobe
seems to ignore it completely.
* src/sfnt/ttcmap.c: Removing compiler warnings.
* src/pcf/pcfread.c (pcf_read_TOC): Use FT_UInt.
(pcf_parse_metric, pcf_parse_compressed_metric): Removed. Code
is now in ...
(pcf_get_metric): Here.
(pcfSeekToType): Renamed to ...
(pcf_seek_to_table_type): This.
Use FT_Int.
(pcfHasType): Renamed to ...
(pcf_has_table_type): This.
Use FT_Int.
(find_property): Renamed to ...
(pcf_find_property): This.
Use FT_Int.
(pcf_get_bitmaps, pcf_get_encodings): Handle invalid PCF fonts
better (delaying format checks out of FT_Access_Frame ..
FT_Forget_Frame blocks to avoid leaving the stream in an incorrect
state when encountering an invalid PCF font).
* src/pcf/pcfdriver.c (PCF_Done_Face): Renamed to ...
(PCF_Face_Done): This.
(PCF_Init_Face): Renamed to ...
(PCF_Face_Init): This.
(PCF_Get_Char_Index): Renamed to ...
(PCF_Char_Get_Index): This.
(PCF_Get_Next_Char): Renamed to ...
(PCF_Char_Get_Next): This.
(pcf_driver_class): Updated.
* src/pcf/pcf.h (PCF_Done_Face): Removed.
2002-02-06 Detlef Wrkner <TetiSoft@apg.lahn.de>
* src/pcf/pcfdriver.c (FT_Done_Face): Fixed small memory leak.
* src/pcf/pcfread.c (pcf_load_font): Now handles the "AVERAGE_WIDTH"
property to return correct character pixel (width/height) pairs for
embedded bitmaps.
2002-02-04 Keith Packard <keithp@keithp.com>
Adding the function `FT_Get_Next_Char', doing the obvious thing
w.r.t. the selected charmap.
* include/freetype/freetype.h: Add prototype.
* include/freetype/internal/ftdriver.h: Add `FTDriver_getNextChar'
typedef.
(FT_Driver_Class): Use it.
* include/freetype/internal/psnames.h: Add `PS_Next_Unicode_Func'
typedef.
(PSNames_Interface): Use it.
* include/freetype/internal/tttypes.h: Add `TT_CharNext_Func'
typedef.
(TT_CMapTable): Use it.
* src/base/ftobjs.c (FT_Get_Next_Char): New function, implementing
high-level API.
* src/cff/cffdrivr.c (cff_get_next_char): New function.
(cff_driver_class): Add it.
* src/cid/cidriver.c (Cid_Get_Next_Char): New function.
(t1cid_driver_class): Add it.
* src/pcf/pcfdriver.c (PCF_Get_Next_Char): New function.
(pcf_driver_class): Add it.
* src/psnames/psmodule.c (PS_Next_Unicode): New function.
(psnames_interface): Add it.
* src/sfnt/ttcmap.c (code_to_next0, code_to_next2, code_to_next4,
code_to_next6, code_to_next_8_12, code_to_next_10): New auxiliary
functions.
(TT_CharMap_Load): Use them.
* src/truetype/ttdriver.c (Get_Next_Char): New function.
(tt_driver_class): Add it.
* src/type1/t1driver.c (Get_Next_Char): New function.
(t1_driver_class): Add it.
* src/winfnt/winfnt.c (FNT_Get_Next_Char): New function.
(winfnt_driver_class): Add it.
* src/pcf/pcfread.c (pcf_load_font): For now, report Unicode for
Unicode and Latin 1 encodings.
2002-02-02 Keith Packard <keithp@keithp.com>
* builds/unix/freetype-config.in: Add missing `fi'.
* Version 2.0.7 released.
=========================
2002-02-01 David Turner <david@freetype.org>
* include/freetype/freetype.h: Increasing FREETYPE_PATCH to 7
for the new release.
2002-01-31 David Turner <david@freetype.org>
* README, README.UNX, docs/CHANGES: Updating documentation for the
2.0.7 release.
2002-01-30 David Turner <david@freetype.org>
* INSTALL: Moved to ...
* docs/INSTALL: Here to avoid conflicts with the "install" script on
Windows, where the filesystem doesn't preserve case.
2002-01-29 David Turner <david@freetype.org>
* configure: Fixed the script. It previously didn't accept more
than one argument correctly. For example, when typing:
./configure --disable-shared --disable-nls
the "--disable-nls" was incorrectly sent to the "make" program.
2002-01-29 Werner Lemberg <wl@gnu.org>
* README.UNX: Fix typo.
* builds/unix/install.mk (uninstall): Fix library name for libtool.
2002-01-28 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
* src/pcf/pcfdriver.c (PCF_Done_Face): Fix incorrect destruction of
the face object (face->toc.tables, face->root.family_name,
face->root.available_size, face->charset_encoding,
face->charset_registry are now freed). Thanks to Niels Moseley.
2002-01-28 Roberto Alameda <ojancano@geekmail.de>
* src/type1/t1load.c (parse_encoding): Set `loader->num_chars'.
2002-01-28 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs, parse_charstrings): Use copy
of `base' string for decrypting to not modify the original data.
Based on a patch by Jakub Bogusz <qboosh@pld.org.pl>.
2002-01-27 Giuliano Pochini <pochini@shiny.it>
* src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
bad rendering of thin lines (less than one pixel thick).
2002-01-25 Werner Lemberg <wl@gnu.org>
* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
actually.
2002-01-25 Martin Zinser <zinser@decus.de>
* src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
compilation warnings.
* src/base/descrip.mms (OBJS): Add `ftmm.obj'.
* src/cache/descrip.mms (ftcache.obj): Dependencies added.
2002-01-25 WANG Yi <wangyi@founder.com.cn>
* src/cff/cffdrivr.c (cff_get_name_index): Fix deallocation bug.
2002-01-21 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
* docs/PATENTS: Typo fixed (thanks to Detlef "Hawkeye" Wrkner) in
the URL for the online resource.
2002-01-18 Ian Brown <ian.brown@printsoft.de>
* builds/win32/ftdebug.c: New file.
* builds/win32/visualc/freetype.dsp: Updated.
2002-01-18 Detlef Wrkner <TetiSoft@apg.lahn.de>
* builds/amiga/src/base/ftsystem.c: Updated for AmigaOS 3.9.
* builds/amiga/README: Updated.
2002-01-18 Ian Brown <ian.brown@printsoft.de>
* builds/win32/visualc/freetype.dsp: Updated.
2002-01-13 Werner Lemberg <wl@gnu.org>
* builds/unix/freetype2.a4: The script was still buggy.
* builds/unix/freetype-config.in: Make it really work for any install
prefix.
2002-01-10 Werner Lemberg <wl@gnu.org>
* builds/unix/freetype2.a4: Fix some serious bugs.
2002-01-09 David Turner <david@freetype.org>
* builds/unix/configure.ac: Build top-level Jamfile.
2002-01-09 Maxim Shemanarev <mcseemagg@yahoo.com>
* src/smooth/ftgrays.c (gray_render_line): Small optimization to
the smooth anti-aliased renderer that deals with vertical segments.
This results in a 5-7% speedup in rendering speed.
2002-01-08 David Turner <david@freetype.org>
Added some wrapper scripts to make the installation more
Unix-friendly.
* configure, install: New files.
* INSTALL, README.UNX: Updated installation documentation to use the
new 'configure' and 'install' scripts.
2002-01-07 David Turner <david@freetype.org>
* Version 2.0.6 released.
=========================
* docs/BUGS, docs/CHANGES: Updating documentation for 2.0.6 release.
* src/tools/docmaker.py: Fixed HTML quoting in sources.
(html_format): Replaced with ...
(html_quote): New function.
(html_quote0): New function.
(DocCode::dump_html: Small improvement.
(DocParagraph::dump, DocBlock::html): Use html_quote0 and html_quote.
* include/freetype/config/ftoption.h: Setting default options for
a release build (debugging off, bytecode interpreter off).
* src/base/ftobjs.c, src/base/ftoutln.c, src/cache/ftccmap.c,
src/cff/cffload.c, src/cff/cffobjs.c, src/pshinter/pshalgo2.c,
src/sfnt/ttload.c, src/sfnt/ttsbit.c: Removing small compiler
warnings (in pedantic compilation modes).
2002-01-05 David Turner <david@freetype.org>
* src/autohint/ahhint.c (ah_align_linked_edge): Modified computation
of auto-hinted stem widths; this avoids color fringes in
"ClearType-like" rendering.
* src/truetype/ttgload.c (TT_Load_Glyph_Header,
TT_Load_Simple_Glyph, TT_Load_Composite_Glyph, load_truetype_glyph):
Modified the TrueType loader to make it more paranoid; this avoids
nasty buffer overflows in the case of invalid glyph data (as
encountered in the output of some buggy font converters).
2002-01-04 David Turner <david@freetype.org>
* README.UNX: Added special README file for Unix users.
* builds/unix/ftsystem.c (FT_New_Stream): Fixed typo.
* src/base/ftobjs.c: Added #include FT_OUTLINE_H to get rid
of compiler warnings.
* src/base/ftoutln.c (FT_Outline_Check): Remove compiler warning.
2002-01-03 Werner Lemberg <wl@gnu.org>
* src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
warning.
2002-01-03 Keith Packard <keithp@keithp.com>
* builds/unix/ftsystem.c (FT_New_Stream): Added a fix to ensure that
all FreeType input streams are closed in child processes of a "fork"
on Unix systems. This is important to avoid (potential) access
control issues.
2002-01-03 David Turner <david@freetype.org>
* src/type1/t1objs.c (T1_Face_Init): Fixed a bug that crashed the
library when dealing with certain weird fonts like "Stalingrad", in
"sadn.pfb" (this font has no full font name entry).
* src/base/ftoutln.c, include/freetype/ftoutln.h (FT_Outline_Check):
New function to check the consistency of outline data.
* src/base/ftobjs.c (FT_Load_Glyph): Use `FT_Outline_Check' to
ensure that loaded glyphs are valid. This allows certain fonts like
"tt1095m_.ttf" to be loaded even though it appears they contain
really funky glyphs.
There still is a bug there, though.
* src/truetype/ttgload.c (load_truetype_glyph): Fix error condition.
2001-12-30 David Turner <david@freetype.org>
* src/autohint/ahhint.c (ah_hinter_load): Fix advance width
computation of auto-hinted glyphs. This noticeably improves the
spacing of letters in KDE and Gnome.
2001-12-25 Antoine Leca <Antoine-Freetype@Leca-Marti.org>
* builds/dos/detect.mk: Correcting the order for Borland compilers:
16-bit bcc was never selected, always overridden by 32-bit bcc32.
2001-12-22 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
* src/pfc/pcfread.c (pcf_load_font): Handle property `POINT_SIZE'
and fix incorrect computation of `available_sizes'.
2001-12-22 David Turner <david@freetype.org>
* src/autohint/ahhint.c (ah_hinter_load): Auto-hinted glyphs had an
incorrect glyph advance in the case of mono-width fonts (like
Courier, Andale Mono, and others).
2001-12-22 Detlef Wrkner <TetiSoft@apg.lahn.de>
* builds/amiga/*: Adaptations to latest changes.
Support added for MorphOS.
2001-12-22 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshrec.c (FT_COMPONENT): Redefine to `trace_pshrec'.
(ps_mask_table_merge, ps_hints_open, ps_hints_stem,
ps_hints_t1stem3, ps_hints_t2mask, ps_hints_t2counter): Fix
FT_ERROR messages.
* src/pshinter/pshalgo1.c (FT_COMPONENT): Define as
`trace_pshalgo1'.
* src/pshinter/pshalgo2.c (FT_COMPONENT): Define as
`trace_pshalgo2'.
* include/freetype/internal/ftdebug.h (FT_Trace): Updated.
* docs/modules.txt: New file.
2001-12-21 David Turner <david@freetype.org>
* src/pshinter/pshrec.c (ps_hints_t2mask, ps_hints_t2counter):
Ignore invalid "hintmask" and "cntrmask" operators (instead of
returning an error). Glyph 2028 of the CFF font "MSung-Light-Acro"
couldn't be rendered otherwise (it seems its charstring is buggy,
though this requires more analysis).
(FT_COMPONENT): Define.
* src/cff/cffgload.c (CFF_Parse_CharStrings), src/psaux/t1decode.c
(T1_Decoder_Parse_Charstrings), src/pshinter/pshalgo2.c (*), Fixed a
bug where the X and Y axis where inversed in the postscript hinter.
This caused problem when displaying on non-square surfaces.
* src/pshinter/pshalgo2.c: s/vertical/dimension/.
* src/pshinter/pshglob.c (psh_globals_new): Replaced a floating
point constant with a fixed-float equivalent. For some reasons not
all compilers are capable of directly computing a floating pointer
constant casted to FT_Fixed, and will link a math library instead.
2001-12-20 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
tracing strings.
* src/cache/ftccmap.c (ftc_cmap_family_init): Ditto.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
ftc_family_table_free, FTC_Manager_Check): Ditto.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.
* src/base/ftobjs.c (FT_Done_Library): Remove compiler warning.
2001-12-20 David Turner <david@freetype.org>
Added PostScript hinter support to the CFF and CID drivers.
* include/freetype/internal/cfftypes.h (CFF_Font): New member
`pshinter'.
* src/cff/cffload.c (CFF_Get_Standard_Encoding): New function.
* src/cff/cffload.h: Updated.
* src/cff/cffgload.c (CFF_Init_Builder): Renamed to ...
(CFF_Builder_Init): This.
Added new argument `hinting'.
(CFF_Done_Builder): Renamed to ...
(CFF_Builder_Done): This.
(CFF_Init_Decoder): Added new argument `hinting'.
(CFF_Parse_CharStrings): Implement vstem support.
(CFF_Load_Glyph): Updated.
Add hinting support.
(cff_lookup_glyph_by_stdcharcode): Use CFF_Get_Standard_Encoding().
(cff_argument_counts): Updated.
* src/cff/cffgload.h: Updated.
* src/cff/cffobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CFF_Size_Get_Globals_Funcs, CFF_Size_Done, CFF_Size_Init,
CFF_Size_Reset, CFF_GlyphSlot_Done, CFF_GLyphSlot_Init): New
functions.
(CFF_Init_Face): Renamed to ...
(CFF_Face_Init): This.
Add hinter support.
(CFF_Done_Face): Renamed to ...
(CFF_Face_Done): This.
(CFF_Init_Driver): Renamed to ...
(CFF_Driver_Init): This.
(CFF_Done_Driver): Renamed to ...
(CFF_Driver_Done): This.
* src/cff/cffobjs.h: Updated.
* src/cff/cffdrivr.c (cff_driver_class): Updated.
* include/freetype/internal/t1types.h (CID_FaceRec): New member
`pshinter'.
* src/cid/cidgload.c (CID_Load_Glyph): Add hinter support.
* src/cid/cidobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CID_GlyphSlot_Done, CID_GlyphSlot_Init, CID_Size_Get_Globals_Funcs,
CID_Size_Done, CID_Size_Init, CID_Size_Reset): New functions.
(CID_Done_Face): Renamed to ...
(CID_Face_Done): This.
(CID_Init_Face): Renamed to ...
(CID_Face_Init): This.
Add hinting support.
(CID_Init_Driver): Renamed to ...
(CID_Driver_Init): This.
(CID_Done_Driver): Renamed to ...
(CID_Driver_Done): This.
* src/cid/cidobjs.h: Updated.
* src/cidriver.c: Updated.
* src/pshinter/pshrec.c (t2_hint_stems): Fixed.
* src/base/ftobjs.c (FT_Done_Library): Fixed a stupid bug that
crashed the library on exit.
* src/type1/t1gload.c (T1_Load_Glyph): Enable font matrix
transformation of hinted glyphs.
* src/cid/cidload.c (cid_read_subrs): Fix error condition.
* src/cid/cidobjs.c (CID_Face_Done): Fixed a memory leak; the subrs
routines were never released when CID faces were destroyed.
* src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: Updated
to move the definition of encoding tables back within "cffload.c"
instead of making them part of a shared header (causing problems in
"multi" builds). This reverts change 2001-08-08.
* docs/CHANGES: Updated for 2.0.6 release.
* docs/TODO: Added "stem3 and counter hints support" to the TODO
list for the Postscript hinter.
* docs/BUGS: Closed the AUTOHINT-NO-SBITS bug.
2001-12-19 David Turner <david@freetype.org>
* include/freetype/cache/ftcache.h: Added comments to indicate that
some of the exported functions should only be used by applications
that need to implement custom cache types.
* src/truetype/ttgload.c (cur_to_org, org_to_cur): Fixed a nasty bug
that prevented composites from loading correctly, due to missing
parentheses around macro parameters.
* src/sfnt/sfobjs.c (SFNT_Load_Face): Make the "post" and "name"
tables optional to load PCL fonts properly.
* src/truetype/ttgload.c (TT_Load_Glyph), src/base/ftobjs.c
(FT_Load_Glyph), include/freetype/freetype.h (FT_LOAD_SBITS_ONLY):
"Fixed" the bug that prevented embedded bitmaps to be loaded when
the auto-hinter is used. This actually is a hack but will be enough
until the internal re-design scheduled for FreeType 2.1.
* src/raster/ftrend1.c (ft_raster1_render): Fixed a nasty outline
shifting bug in the monochrome renderer.
* README: Updated version numbers to 2.0.6.
2001-12-17 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph): Fix test for invalid
glyph header.
2001-12-15 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove compiler warning.
* include/freetype/ftcache.h (FTC_Node_Unref): Removed. It is
already in ftcmanag.h.
* src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused variable
`gfam'.
* src/cache/ftcmanag.c (ftc_family_table_alloc,
* ftc_family_table_free): Use FT_EXPORT_DEF.
* include/freetype/cache/ftcmanag.h: Updated.
* src/cache/ftccache.c (ftc_node_destroy): Use FT_EXPORT_DEF.
* src/cache/ftccmap.c (ftc_cmap_node_init): Remove unused variable
`cfam'.
Remove compiler warning.
(FTC_CMapCache_Lookup): Remove compiler warnings.
(ftc_cmap_family_init): Ditto.
(FTC_CMapCache_Lookup): Ditto.
* builds/unix/configure.ac: Increase `version_info' to 8:0:2.
* builds/unix/configure: Regenerated.
2001-12-14 Werner Lemberg <wl@gnu.org>
* builds/mac/README: Updated.
2001-12-14 Scott Long <scott@swiftview.com>
* src/truetype/ttgload.c (load_truetype_glyph): Fixing crash when
dealing with invalid fonts (i.e. glyph size < 10 bytes).
2001-12-14 Sam Latinga <slouken@devolution.com>
* builds/mac/freetype.make: A new Makefile to build with MPW on
MacOS classic.
2001-12-14 David Turner <david@freetype.org>
* src/truetype/ttgload.c (TT_Load_Glyph), src/type1/t1gload.c
(T1_Load_Glyph), src/cid/cidgload.c (CID_Load_Glyph),
src/cff/cffgload.c (CFF_Load_Glyph): Fixed a serious bug common to
all font drivers (the advance width was never hinted when it
should).
* include/freetype/freetype.h (FREETYPE_PATCH): New macro.
* src/base/ftdbgmem.c (debug_mem_dummy) [!FT_DEBUG_MEMORY]: Don't
use `extern' keyword.
2001-12-12 David Turner <david@freetype.org>
* src/pshint/pshglob.c (psh_blues_scale_zones, psh_blues_snap_stem
psh_globals_new): Adding correct BlueScale/BlueShift support, plus
family blues processing.
* src/pshint/pshglob.h (PSH_BluesRec): Updated.
Started adding support for the Postscript hinter in the CFF module.
* src/cff/cffgload.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CFF_Parse_CharStrings): Implement it.
* src/cff/cffgload.h: Updated.
2001-12-12 Werner Lemberg <wl@gnu.org>
* builds/unix/freetype2.m4: Some portability fixes.
2001-12-11 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
* src/base/descrip.mms (OBJS): Add ftdebug.obj.
2001-12-11 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttload.c (TT_Load_Generic_Header): Typos.
2001-12-11 David Turner <david@freetype.org>
* builds/unix/freetype-config.in: Modified the script to prevent
passing "-L/usr/lib" to gcc.
* docs/FTL.TXT: Simple fix (change "LICENSE.TXT" to "FTL.TXT").
* builds/unix/freetype2.m4: New file for checking configure paths.
We need to install it in $(prefix)/share/aclocal/freetype2.m4 but I
didn't modify builds/unix/install.mk yet.
* INSTALL: Updated the instructions to build shared libraries with
Jam. They were simply wrong.
* src/base/fttrigon.c (FT_Cos): Fixed a small bug that caused
slightly improper results for `FT_Cos' and `FT_Sin' (example:
FT_Sin(0) == -1!).
2001-12-11 Detlef Wrkner <TetiSoft@apg.lahn.de>
* include/freetype/internal/ftstream.h (GET_LongLE, GET_ULongLE):
Fixed incorrect argument types.
2001-12-10 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
* src/pcf/pcfdriver.c (PCF_Init_Face): Allow Xft to use PCF fonts
by setting the "face->metrics.max_advance" correctly.
2001-12-07 David Turner <david@freetype.org>
* include/freetype/cache/ftccmap.h, src/cache/ftccmap.c: Added new
charmap cache.
* src/cache/ftcache.c: Updated.
* src/autohint/ahhint.c (ah_hinter_hint_edges): s/UNUSED/FT_UNUSED/.
2001-12-06 Leonard Rosenthol <leonardr@lazerware.com>
Added support for reading .dfont files on Mac OS X. Also added a
new routine which looks up a given font by name in the Mac OS and
returns the disk file where it resides.
* src/base/ftmac.c: Include <Files.h> and <TextUtils.h>.
(is_dfont): New auxiliary function.
(FT_New_Face_From_dfont): New function.
(FT_GetFile_From_Mac_Name): New exported function.
(FT_New_Face): Updated.
* include/freetype/ftmac.h: Updated.
2001-12-06 David Turner <david@freetype.org>
* src/cache/Jamfile, src/cache/rules.mk: Updated.
2001-12-06 Werner Lemberg <wl@gnu.org>
* INSTALL: Small update.
2001-12-05 David Turner <david@freetype.org>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Re-ordered code for
debugging purposes.
Comment out use of `origin'.
* src/smooth/ftsmooth.c (ft_smooth_render): Fixed a nasty hidden bug
where outline shifting wasn't correctly undone after bitmap
rasterization. This created problems with certain glyphs (like '"'
of certain fonts) and the cache system.
* src/pshinter/pshalgo1.c (psh1_hint_table_init): Fix typo.
* src/pshinter/pshalgo2.c (psh2_hint_table_init): Fix typo.
(ps2_hints_apply): Small fix.
2001-12-05 David Turner <david@freetype.org>
* src/pshinter/pshalgo2.c (psh2_hint_table_init),
src/pshinter/pshalgo1.c (psh1_hint_table_init): Removed compiler
warnings.
* include/freetype/ftcache.h, include/freetype/cache/*, src/cache/*:
Yet another massive rewrite of the caching sub-system in order to
both increase performance and allow simpler cache sub-classing. As
an example, the code for the image and sbit caches is now much
simpler.
I still need to update the documentation in
www/freetype2/docs/cache.html to reflect the new design though.
* include/freetype/config/ftheader.h (FT_CACHE_CHARMAP_H): New
macro.
(FT_CACHE_INTERNAL_CACHE_H): Updated.
2001-12-05 David Krause <freetype@davidkrause.com>
* docs/license.txt: s/X Windows/X Window System/.
2001-12-04 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c: Fix definition condition of MEM_Set().
* src/smooth/ftgrays.c (M_Y): Change value to 192.
* src/base/ftdbgmem.c (ft_mem_table_destroy): Fix printf() parameter.
Remove unused variable.
* src/cache/ftcimage.c (ftc_image_node_init,
ftc_image_node_compare): Remove unused variables.
* src/cache/ftcsbits.c (ftc_sbit_node_weight): Remove unused
variable.
* src/raster/ftraster.c (MEM_Set): Move definition down to avoid
compiler warning.
* src/autohint/ahhint.c (ah_hinter_hint_edges): Use UNUSED() to
avoid compiler warnings.
* src/pcf/pcfread.c (tableNames): Use `const'.
(pcf_read_TOC): Change counter name to avoid compiler warning.
Use `const'.
* src/pshinter/pshrec.c (ps_hints_close): Remove redundant
declaration.
* src/pshinter/pshalgo1.c (psh1_hint_table_init): Rename variables
to avoid shadowing.
* src/pshinter/pshalgo2.c (psh2_hint_table_activate_mask): Ditto.
* src/type1/t1objs.h: Remove double declarations of `T1_Size_Init()'
and `T1_Size_Done()'.
2001-11-20 Antoine Leca <antoineleca@multimania.com>
* include/freetype/ttnameid.h: Added some new Microsoft language
codes and LCIDs as found in MSDN (Passport SDK). Also added
comments about the meaning of bit 57 of the `OS/2' table
(TT_UCR_SURROGATES) which (with OpenType v.1.3) now means "there is
a character beyond 0xFFFF in this font". Thanks to Detlef Wrkner
<TetiSoft@apg.lahn.de> for noticing this.
2001-11-20 David Turner <david@freetype.org>
* src/pshinter/{pshalgo2.c, pshalgo1.c}: Fixed stupid bug in sorting
routine that created nasty alignment artefacts.
* src/pshinter/pshrec.c, tests/gview.c: Debugging updates.
* src/smooth/ftgrays.c: De-activated experimental gamma support.
Apparently, `optimal' gamma tables depend on the monitor type,
resolution and general karma, so it's better to compute them outside
of the rasterizer itself.
(gray_convert_glyph): Use `volatile' keyword.
2001-10-29 David Turner <david@freetype.org>
Adding experimental `gamma' support. This produces smoother glyphs
at small sizes for very little cost.
* src/smooth/ftgrays.c (grays_init_gamma): New function.
(gray_raster_new): Use it.
Various fixes to the auto-hinter. They merely improve the output of
sans-serif fonts. Note that there are still problems with serifed
fonts and composites (accented characters).
* src/autohint/ahglyph.c (ah_outline_load,
ah_outline_link_segments): Implement it.
Fix typos.
(ah_outline_save, ah_outline_compute_segments): Fix typos.
* src/autohint/ahhint.c (ah_align_serif_edge): New argument
`vertical'. Implement improvement.
(ah_hint_edges_3, ah_hinter_hint_edges): Implement it.
Fix typos.
(ah_hinter_align_strong_points, ah_hinter_align_weak_points): Fix
typos.
(ah_hinter_load): Set `ah_debug_hinter' if DEBUG_HINTER is defined.
* src/autohint/ahmodule.c: Implement support for DEBUG_HINTER macro.
* src/autohint/ahtypes.h: Ditto.
(AH_Hinter): Remove `disable_horz_edges' and `disable_vert_edges'
(making them global as `ah_debug_disable_horz' and
`ah_debug_disable_vert').
Fix typos.
* tests/gview.c: Updated the debugging glyph viewer to show the
hints generated by the "autohint" module.
2001-10-27 David Turner <david@freetype.org>
* src/cache/ftcchunk.c (ftc_chunk_cache_lookup): Fixed a bug that
considerably lowered the performance of the abstract chunk cache.
2001-10-26 David Turner <david@freetype.org>
* include/freetype/ftcache.h, include/freetype/cache/*.h,
src/cache/*.c: Major re-design of the cache sub-system to provide
better performance as well as an "Acquire"/"Release" API. Seems to
work well here, but probably needs a bit more testing.
2001-10-26 Leonard Rosenthol <leonardr@lazerware.com>
* builds/mac/README: Updated to reflect my taking over the project
and that is now being actively maintained.
* src/base/ftmac.c (parse_fond): Applied patches from Paul Miller
<paulm@profoundeffects.com> to support loading a face other than the
first from a FOND resource.
(FT_New_Face_From_FOND): Updated.
2001-10-25 Leonard Rosenthol <leonardr@lazerware.com>
* builds/mac/ftlib.prj: Update of CodeWarrior project file for Mac
OS for latest version (7) of CWPro and for recent changes to the FT
source tree.
2001-10-25 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h: Updated comments to explain
precisely how to use project-specific macro definitions without
modifying this file manually.
(FT_CONFIG_FORCE_INT64): Define.
(FT_DEBUG_MEMORY): New macro.
2001-10-24 Tom Kacvinsky <tkacvins@freetype.org>
* builds/unix/ftsystem.c (FT_New_Memory): Added a missing `{'.
2001-10-23 David Turner <david@freetype.org>
* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
Improvements to the memory debugger to report more information in
case of errors. Also, some allocations that occured through REALLOC
couldn't be previously catched correctly.
* src/autohint/ahglyph.c (ah_outline_compute_segments,
ah_outline_compute_edges), src/raster/ftraster.c (ft_black_new),
src/smooth/ftgrays.c (gray_render_span, gray_raster_new): Replaced
liberal uses of memset() by the MEM_Set() macro.
2001-10-23 David Turner <david@freetype.org>
* src/raster/ftraster.c (Update): Removed to be inlined in ...
(Sort): Updated.
2001-10-22 David Turner <david@freetype.org>
* builds/unix/ftsystem.c (FT_New_Memory, FT_Done_Memory),
builds/vms/ftsystem.c (FT_New_Memory, FT_Done_Memory),
builds/amiga/ftsystem.c (FT_New_Memory, FT_Done_Memory),
src/base/ftdbgmem.c: Updated the memory debugger and
platform-specific implementations of `ftsystem' in order to be able
to debug memory allocations on Unix, VMS and Amiga too!
* src/pshinter/pshalgo2.c (psh2_hint_table_record_mask): Removed
some bogus warnings.
* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
Modified the debugging memory manager to report the location (source
file name + line number) where leaked memory blocks are allocated in
the source file.
* src/base/ftdbgmem.c: New debugging memory manager. You must
define the FT_DEBUG_MEMORY macro in "ftoption.h" to enable it. It
will record every memory block allocated and report simple errors
like memory leaks and double deletes.
* src/base/Jamfile: Include ftdbgmem.
* src/base/rules.mk: Ditto.
* src/base/ftbase.c: Include ftdbgmem.c.
* include/freetype/config/ftoption.h: Added the FT_DEBUG_MEMORY
macro definition.
* src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory): Modified the
base component to use the debugging memory manager when the macro
FT_DEBUG_MEMORY is defined.
2001-10-21 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffload.c (CFF_Done_Font): Free subfonts array only if
we are working with a CID keyed CFF font. Otherwise, a variable
that was never allocated memory might freed. This is a correction
to the previous patch for freeing subfonts.
2001-10-21 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffload.c (CFF_Done_Font): Free the subfonts array to
avoid a memory leak.
2001-10-21 David Turner <david@freetype.org>
* src/pshinter/pshalgo2.c, src/pshinter/pshalgo1.c,
src/pshinter/pshglob.c: Removing compiler warnings in pedantic modes
(in multi-object compilation mode, mainly).
2001-10-20 Tom Kacvinsky <tkacvins@freetype.org>
* src/type1/t1load.c (parse_encoding): Add a test to make sure
that custom encodings (i.e., neither StandardEncoding nor
ExpertEncoding) are not loaded twice when the Type 1 font is
synthetic.
* src/type1/t1load.c (parse_font_name, parse_subrs): Added a test
for when loading synthetic fonts to make sure that the font name
and subrotuines are not loaded twice. This is to remove a memory
leak that occured because the original memory blocks for these
objects were not deallocated when the objects were parsed the
second time.
2001-10-19 David Turner <david@freetype.org>
* src/smooth/ftgrays.c, src/pshinter/pshglob.h,
src/pshinter/pshrec.c, src/pshinter/pshalgo2.c: Getting rid of
compiler warnings.
* src/pshinter/module.mk, src/pshinter/rules.mk: Adding control
files to build the PostScript hinter with the "old" build system.
2001-10-19 Jacob Jansen <joukj@hrem.stm.tudelft.nl>
* descrip.mms, src/pshinter/descrip.mms: Updates to the VMS build
files.
2001-10-18 David Turner <david@freetype.org>
* src/psnames/pstables.h, src/tools/glnames.py: Rewrote the
"glnames.py" script used to generate the "pstables.h" header file.
The old one contained a serious bug that made FreeType return
incorrect glyph names for certain glyphs.
* src/truetype/ttdriver.c (Set_Char_Sizes): Changing computation of
pixel size from character size to use rounding. This is an
experiment to see whether this gives values similar to Windows for
scaled ascent/descent/etc.
* src/base/ftcalc.c (FT_Div64by32): Changed the implementation
slightly since the original code was mis-compiled on Mac machines
using the MPW C compiler.
* src/base/ftobjs.c (FT_Realloc): When a memory block was grown
through FT_Realloc(), the new bytes were not set to 0, which created
some strange bugs in the PostScript hinter.
(destroy_face): Don't deallocate unconditionally.
* src/cid/cidgload.c (CID_Compute_Max_Advance, CID_Load_Glyph):
Adding support to new PostScript hinter.
* include/freetype/internal/psglobal.h,
include/freetype/internal/pshints.h,
include/freetype/config/ftmodule.h, src/pshinter/Jamfile,
src/pshinter/pshalgo.h, src/pshinter/pshalgo1.h,
src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.h,
src/pshinter/pshalgo2.c, src/pshinter/pshglob.h,
src/pshinter/pshglob.c, src/pshinter/pshinter.c,
src/pshinter/pshmod.c, src/pshinter/pshmod.h, src/pshinter/pshrec.c,
src/pshinter/pshrec.h: Adding new PostScript hinter module.
* include/freetype/internal/ftobjs.h,
include/freetype/internal/internal.h,
include/freetype/internal/psaux.h,
include/freetype/internal/t1types.h, src/psaux/psobjs.c,
src/psaux/psobjs.h, src/psaux/t1decode.h, src/psaux/t1decode.c,
src/type1/t1driver.c, src/type1/t1gload.c, src/type1/t1objs.c,
src/type1/t1objs.h: Updates to use the new PostScript hinter.
* tests/Jamfile, tests/gview.c: Adding a new glyph hinting
viewer/debugger to the source tree. Note that you will _not_ be
able to compile it since it depends on an unavailable graphics
library named "Nirvana" to render vector images.
2001-10-17 David Turner <david@freetype.org>
* Version 2.0.5 released.
=========================
* include/freetype/freetype.h, include/internal/ftobjs.h,
src/base/ftobjs.c, src/type1/t1driver.c: Adding a new function named
'FT_Get_Postscript_Name' to retrieve the PostScript name of a given
font. Should work with all formats except pure CFF/CEF fonts (this
will be added soon).
* src/cid/cidriver (cid_get_postscript_name): New function.
(CID_Get_Interface): Handle `postscript_name' interface.
* src/sfnt/sfdriver.c (get_sfnt_postscript_name): New function.
(SFNT_Get_Interface): Handle `postscript_name' interface.
* src/type1/t1driver.c (t1_get_ps_name): New function.
(Get_Interface): Handle `postscript_name' interface.
* README, docs/CHANGES: Updated for 2.0.5 release.
2001-10-08 David Turner <david@freetype.org>
Fixed a bug in `glnames.py' that prevented it from generating
correct glyph names tables. This resulted in the unavailability of
certain glyphs like `Cacute', `cacute' and `lslash' in Unicode
charmaps, even if these were present in the font (causing problems
for Polish users).
* src/tools/glnames.py (mac_standard_names): Fixed.
(t1_standard_strings): Some fixes and renamed to ...
(sid_standard_names): This.
(t1_expert_encoding): Fixed.
(the_adobe_glyph_list): Renamed to ...
(adobe_glyph_names): This.
(the_adobe_glyphs): Renamed to ...
(adobe_glyph_values): This.
(dump_mac_indices, dump_glyph_list, dump_unicode_values, main):
Updated.
* src/psnames/pstables.h: Regenerated.
* src/psnames/psmodule.c (PS_Unicode_Value): Fix offset.
Fix return value.
Use `sid_standard_table' and `ps_names_to_unicode' instead of
`t1_standard_glyphs' and `names_to_unicode'.
(PS_Macintosh_Name): Use `ps_glyph_names' instead of
`standard_glyph_names'.
(PS_Standard_Strings): Use `sid_standard_names' instead of
`t1_standard_glyphs'.
* doc/BUGS, doc/TODO: New documents.
2001-10-07 Richard Barber <rich@solutionuk.com>
* src/cache/ftlru.c (FT_Lru_Lookup_Node): Fixed a bug that prevented
correct LRU behaviour.
2001-10-07 David Turner <david@freetype.org>
setjmp() and longjmp() are now used for rollback (i.e. when memory
pool overflow occurs).
Function names are now all uniformly prefixed with `gray_'.
* src/smooth/ftgrays.c: Include <setjmp.h>.
(ErrRaster_MemoryOverflow): New macro.
(TArea): New type to store area values in each cell (using `int' was
too small on 16-bit systems). <limits.h> is included to properly
get the needed data type.
(TCell, TRaster): Use it.
(TRaster): New element `jump_buffer'.
(gray_compute_cbox): Use `RAS_ARG' as the only parameter and get
`outline' from it.
(gray_record_cell): Use longjmp().
(gray_set_cell): Use gray_record_cell() for error handling.
(gray_render_line, gray_render_conic, gray_render_cubic): Simplify.
(gray_convert_glyph_inner): New function, using setjmp().
(gray_convert_glyph): Use it.
2001-10-07 David Turner <david@freetype.org>
Provide a public API to manage multiple size objects for a given
FT_Face in the new header file `ftsizes.h'.
* include/freetype/ftsizes.h: New header file,
* include/freetype/internal/ftobjs.h: Use it.
Remove declarations of FT_New_Size and FT_Done_Size (moved to
ftsizes.h).
* include/freetype/config/ftheader.h (FT_SIZES_H): New macro.
* src/base/ftobjs.c (FT_Activate_Size): New function.
* src/cache/ftcmanag.c: Include ftsizes.h.
(ftc_manager_init_size, ftc_manager_flush_size): Use
FT_Activate_Size.
2001-09-20 Detlef Wrkner <TetiSoft@apg.lahn.de>
* builds/amiga/*: Added port to Amiga with the SAS/C compiler.
2001-09-15 Detlef Wrkner <TetiSoft@apg.lahn.de>
* src/type1/t1afm.c (T1_Done_AFM): Free `afm'.
2001-09-10 Yao Zhang <yzhang@sharemedia.com>
* src/sfnt/ttcmap.c (code_to_index2): Handle code values with
hi-byte == 0 correctly.
2001-09-10 Werner Lemberg <wl@gnu.org>
* builds/link-std.mk ($(PROJECT_LIBRARY)): Fix typo.
2001-08-30 Martin Muskens <mmuskens@aurelon.com>
* src/type1/t1load.c (parse_font_matrix): A new way to compute the
units per EM with greater accuracy (important for embedded T1 fonts
in PDF documents that were automatically generated from TrueType
ones).
* src/type1/t1load.c (is_alpha): Now supports "+" in font names;
this is used in embedded fonts.
* src/psaux/psobjs.c (PS_Table_Add): Fixed a reallocation bug that
generated a dangling pointer reference.
2001-08-30 Anthony Feik <afeick@hotmail.com>
* src/type1/t1afm.c (T1_Read_Afm): Now correctly sets the flag
FT_FACE_FLAG_KERNING when appropriate for Type1 + AFM files.
2001-08-25 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttload.c (TT_Load_CMap): Fix frame length of
`cmap_rec_fields'.
* include/freetype/fterrors.h [!FT_CONFIG_OPTION_USE_MODULE_ERRORS]:
Undefine FT_ERR_BASE before defining again.
2001-08-22 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.h: Fix prototype of TT_Move_Func.
2001-08-21 Werner Lemberg <wl@gnu.org>
* builds/dos/dos-def.mk (NO_OUTPUT): Don't use `&>' but `>'.
2001-08-21 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h: Changed the default setting
for FT_CONFIG_OPTION_USE_MODULE_ERRORS to undefined, since it breaks
source compatibility in a few cases. Updated the comment to explain
that too.
2001-08-17 Martin Muskens <mmuskens@aurelon.com>
* src/base/ftcalc.c (FT_MulDiv): Fixed serious typo.
2001-08-12 Werner Lemberg <wl@gnu.org>
Updating to OpenType 1.3.
* include/freetype/internal/tttypes.h (TT_CMap0, TT_CMap2, TT_CMap4,
TT_CMap6): Adding field `language'.
(TT_CMapTable): Removing field `language'.
Type of `length' field changed to FT_ULong.
Adding fields for cmaps format 8, 10, and 12.
(TT_CMapGroup): New auxiliary structure.
(TT_CMap8_12, TT_CMap10): New structures.
* include/freetype/tttables.h (TT_HoriHeader, TT_VertHeader):
Removed last element of `Reserved' array.
* include/freetype/ttnameid.h (TT_PLATFORM_CUSTOM, TT_MS_ID_UCS_4,
TT_NAME_ID_CID_FINDFONT_NAME): New macros.
* src/sfnt/ttcmap.c (TT_CharMap_Load): Updated loading of `language'
field to the new structures.
Fixed freeing of arrays in case of unsuccessful loads.
Added support for loading format 8, 10, and 12 cmaps.
(TT_CharMap_Free): Added support for freeing format 8, 10, and 12
cmaps.
(code_to_index4): Small improvement.
(code_to_index6): Ditto.
(code_to_index8_12, code_to_index10): New functions.
* src/sfnt/ttload.c (TT_Load_Metrics_Header): Updated to new
structure.
(TT_Load_CMap): Ditto.
* src/sfnt/sfobjs.c (tt_encodings): Add MS UCS4 table (before MS
Unicode).
2001-08-11 Werner Lemberg <wl@gnu.org>
* src/type1/t1driver.c (t1_get_name_index): Fix compiler warning.
2001-08-09 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffdrivr.c (get_cff_glyph_name): Renamed to
cff_get_glyph_name for consistency.
(cff_get_glyph_index): Minor documentation change.
* src/type1/t1driver.c (t1_get_name_index): New function used in
Get_Interface as the function returned when the "name_index"
function is requested.
(get_t1_glyph_name): Renamed to t1_get_glyph_name for consistency.
2001-08-08 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffload.c: Removed definitions of cff_isoadobe_charset,
cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
and cff_expert_encoding arrays to cffload.h.
* src/cff/cffload.h: Added definitions of cff_isoadobe_charset,
cff_expert_charset, cff_expertsubset_charset, cff_standard_encoding,
and cff_expert_encoding arrays.
* src/cff/cffdrivr.c (cff_get_name_index): New function, returned
when `cff_get_interface' is called with a request for the
"name_index" function.
(cff_get_interface): Modified so that it returns the function
`cff_get_name_index' when the "name_index" function is requested.
* src/base/ftobjs.c (FT_Get_Name_Index): New function, used to
return a glyph index for a given glyph name only if the driver
supports glyph names.
* include/freetype/internal/ftobjs.h (FT_Name_Index_Requester):
New function pointer type defintion used in the function
FT_Get_Name_Index.
* include/freetype/freetype.h (FT_Get_Name_Index): Added
documentation and prototype.
2001-07-26 Werner Lemberg <wl@gnu.org>
* builds/cygwin/*: Removed. Use the unix stuff instead.
2001-07-26 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
* builds/vms/ftconfig.h (FT_CALLBACK_DEF): Updated to change dated
2001-06-27.
2001-07-17 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (PS_Table): Use FT_Offset for
`cursor' and `capacity'.
* src/psaux/psobjc.c (reallocate_t1_table): Use FT_Long for second
parameter.
(PS_Table_Add): Use FT_Offset for `new_size'.
Add support for version 0.5 maxp tables.
* src/sfnt/ttload.c (TT_Load_MaxProfile): Implement it.
(TT_Load_OS2): Initialize some values.
2001-07-13 Werner Lemberg <wl@gnu.org>
* src/base/ftsynth.c: Include ftcalc.h unconditionally.
2001-07-07 David Turner <david@freetype.org>
* src/truetype/ttgload.c, src/truetype/ttinterp.c, src/pcf/pcfread:
Removed pedantic compiler warnings when the bytecode interpreter is
compiled in.
2001-07-03 Werner Lemberg <wl@gnu.org>
* src/autohint/ahhint.c (ah_hinter_align_weak_points): Remove
unused variable `edges'.
(ah_hinter_load): Remove unused variables `old_width' and
`new_width'.
* src/cid/cidload.c (cid_decrypt): Use `U' for constant (again).
* src/psaux/psobjs.c (T1_Decrypt): Ditto.
* src/type1/t1parse.c (T1_Get_Private_Dict): Ditto.
2001-06-28 David Turner <david@freetype.org>
* include/internal/ftstream.h: Modified the definitions
of the FT_GET_XXXX and NEXT_XXXX macros for 16-bit correctness.
2001-06-26 Werner Lemberg <wl@gnu.org>
* src/cid/cidload.c, src/cid/cidload.h (cid_decrypt): Use FT_Offset
instead of FT_Int as type for `length' parameter.
* include/freetype/internal/psaux.h (PSAux_Interface): Updated.
2001-06-27 Wolfgang Domrse <porthos.domroese@harz.de>
* src/psaux/psobjs.c, src/psaux/psobjs.h (T1_Decrypt): Use FT_Offset
instead of FT_Int as type for `length' parameter.
* Version 2.0.4 released.
=========================
2001-06-27 David Turner <david@freetype.org>
* builds/unix/ftconfig.in: Changed the definition of the
FT_CALLBACK_DEF macro.
* include/freetype/ftconfig.h, src/*/*.c: Changed the definition and
use of the FT_CALLBACK_DEF macro in order to support 16-bit
compilers.
* builds/unix/ftconfig.in: Changed the definition of the
FT_CALLBACK_DEF macro.
* src/sfnt/ttload.c (TT_Load_Kern): The kern table loader now ensures
that the kerning table is correctly sorted (some problem fonts don't
have a correct kern table).
2001-06-26 Wolfgang Domrse <porthos.domroese@harz.de>
* include/freetype/internal/ftstream.h (FT_GET_OFF3_LE): Fix typo.
2001-06-24 David Turner <david@freetype.org>
* src/base/ftcalc.c (ft_div64by32): Fixed the source to work
correctly on 16-bit systems.
2001-06-23 Anthony Fok <fok@debian.org>
* debian/*: Added Debian package build directory for 2.0.4.
2001-06-22 David Turner <david@freetype.org>
* docs/PATENTS: Added patents disclaimer. This one was missing!
* docs/CHANGES, docs/todo: Updated for the upcoming 2.0.4 release.
2001-06-20 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftconfig.h: Add two more `L's to
constants.
Add missing semicolons.
* builds/toplevel.mk: Do similar change as for
builds/unix/detect.mk.
* include/freetype/freetype.h (FT_ENC_TAG): New version to make it
easier to redefine.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Ditto.
* src/pcf/pcfread.c (pcf_get_encodings): Add cast.
2001-06-19 David Turner <david@freetype.org>
* builds/win32/visualc/freetype.dsp, builds/win32/visualc/index.html:
Updated the Visual C++ project (for the 2.0.4 release).
* builds/unix/detect.mk: Added rule for AIX detection (which uses
/usr/sbin/init instead of /sbin/init).
* include/freetype/fterrors.h, src/*/*err*.h: Updated some of the
error macros to simplify handling of new error scheme.
2001-06-19 Werner Lemberg <wl@gnu.org>
* include/freetype/fttypes.h (FT_ERROR_MODULE): New macro.
2001-06-19 David Turner <david@freetype.org>
Removing _lots_ of compiler warnings when the most pedantic warning
levels of Visual C++ and Borland C++ are used. Too many files to be
listed here, but FT2 now compiles without warnings with VC++ and the
"/W4" warning level (lint-style).
* include/freetype/freetype.h (FT_New_Memory_Face): Updated
documentation.
* include/freetype/fttypes.h (FT_BOOL): New macro.
* include/freetype/internal/ftdebug.h: Add #pragma for Visual C++
to suppress warning.
* include/freetype/internal/ftstream.h (FT_GET_SHORT_{BE,LE},
FT_GET_OFF3_{BE,LE}, FT_GET_LONG_{BE,LE}): New macros.
(NEXT_*): Use them.
* src/autohint/ahglobal.c: Include FT_INTERNAL_DEBUG_H.
(FT_New_Memory_Face): Add `const' to function declaration.
2001-06-18 Werner Lemberg <wl@gnu.org>
Minor cleanups to remove compiler warnings.
* include/freetype/cache/ftcmanag.h (FTC_MAX_BYTES_DEFAULT): Use
`L' for constant.
* include/freetype/config/ftoption.h (FT_RENDER_POOL_SIZE): Ditto.
* src/base/ftcalc.c (FT_MulDiv): Use `L' for constant.
* src/base/ftglyph.c (FT_Glyph_Get_CBox): Remove `error' variable.
* src/base/fttrigon.c (ft_trig_arctan_table): Use `L' for constants.
* src/base/ftobjs.c (FT_Done_Size): Fix return value.
(FT_Set_Char_Size, FT_Set_Pixel_Sizes, FT_Get_Kerning): Remove
unused `memory' variable.
* src/autohint/ahglyph.c (ah_get_orientation): Use `L' for constant.
* src/autohint/ahhint.c (ah_hint_edges_3,
ah_hinter_align_edge_points): Remove unused `before' and `after'
variables.
(ah_hinter_align_weak_points): Remove unused `edge_limit' variable.
(ah_hinter_load): Remove unused `new_advance', `start_contour',
and `metrics' variables.
* src/cff/cffload.c (CFF_Load_Encoding): Remove dead code to avoid
compiler warning.
* src/cff/cffobjs.c (CFF_Init_Face): Remove unused `base_offset'
variable.
* src/cff/cffgload.c (CFF_Parse_CharStrings): Remove unused
`outline' variable.
(cff_compute_bias): Use `U' for constant.
* src/cid/cidload.c (cid_decrypt): Ditto.
* src/psaux/psobjs.c (T1_Decrypt): Ditto.
* src/psaux/t1decode.c (T1_Decoder_Parse_CharStrings): Ditto.
* src/sfnt/ttload.c (TT_Load_Kern): Remove unused `version'
variable.
* src/sfnt/ttsbit.c (TT_Load_SBit_Image): Remove unused `top'
variable.
* src/truetype/ttgload.c (load_truetype_glyph): Remove unused
`num_contours' and `ins_offset' variables.
(compute_glyph_metrics): Remove unused `Top' and `x_scale'
variables.
(TT_Load_Glyph): Remove unused `memory' variable.
* src/smooth/ftgrays.c (grays_raster_render): Use `L' for constants.
2001-06-18 Werner Lemberg <wl@gnu.org>
Make the new error scheme source compatible with older FT versions
by introducing another layer.
* include/freetype/fterrors.h (FT_ERRORDEF_, FT_NOERRORDEF_): New
macros.
(FT_NOERRORDEF): Removed.
* include/*/*err*.h: Use FT_ERRORDEF_ and FT_NOERRORDEF_.
2001-06-16 Werner Lemberg <wl@gnu.org>
* include/freetype/freetype.h (FT_ENC_TAG): New macro.
(FT_Encoding_): Use it.
* include/freetype/ftimage.h (FT_IMAGE_TAG): Define it
conditionally.
2001-06-14 David Turner <david@freetype.org>
Modified the TrueType interpreter to let it use the new
trigonometric functions provided in "fttrigon.h". This gets rid of
some old 64-bit computation routines, as well as many warnings when
compiling the library with the "long long" 64-bit integer type.
* include/freetype/config/ftoption.h: Undefine
FT_CONFIG_OPTION_OLD_CALCS.
* include/freetype/internal/ftcalc.h: Rearrange use of
FT_CONFIG_OPTION_OLD_CALCS.
* src/base/ftcalc.c: Add declaration of FT_Int64 if
FT_CONFIG_OPTION_OLD_CALCS isn't defined.
* src/truetype/ttinterp.c: Use FT_TRIGONOMETRY_H.
(Norm): Add a special version if FT_CONFIG_OPTION_OLD_CALCS isn't
defined.
(Current_Ratio, Normalize): Simplify code.
2001-06-11 Mike Owens <MOwens@amtdatasouth.com>
* src/base/ftcalc.c (FT_MulDiv, FT_DivFix, FT_Sqrt64): Remove
compiler warnings.
2001-06-08 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.in: Renamed to ...
* builds/unix/configure.ac: This to make sure that autoconf 2.50 is
needed.
Run `autoupdate' on it.
Increase `version_info' to 7:0:1.
* builds/unix/configure: Regenerated.
2001-06-08 David Turner <david@freetype.org>
* src/autohint/ahhint.c (ah_hinter_load_glyph): Fixed a bug that
corrupted transformed glyphs that were auto-hinted (the transform
was applied twice).
Fixed a bug that returned an invalid linear width for composite
TrueType glyphs.
* include/internal/tttypes.h (TT_Loader_): Two new elements `linear'
and `linear_def'.
* src/truetype/ttgload.c (load_truetype_glyph,
compute_glyph_metrics): Use it.
* include/fttypes.h (FT_ERROR_BASE): New macro.
* src/base/ftobjs.c (FT_Open_Face, FT_Render_Glyph_Internal): Use it
to make source code work with the new error scheme implemented by
Werner.
* src/base/ftoutln.c (FT_Outline_Render): Ditto.
2001-06-07 Werner Lemberg <wl@gnu.org>
Updating to libtool 1.4.0 and autoconf 2.50.
* builds/unix/ltconfig: Removed.
* builds/unix/ltmain.sh, builds/unix/configure.in,
builds/unix/aclocal.m4: Updated.
* builds/unix/configure: Regenerated.
2001-06-06 Werner Lemberg <wl@gnu.org>
Complete redesign of error codes. Please check ftmoderr.h for more
details.
* include/freetype/internal/cfferrs.h,
include/freetype/internal/tterrors.h,
include/freetype/internal/t1errors.h: Removed. Replaced with files
local to the module. All extra error codes have been moved to
`fterrors.h'.
* src/sfnt/ttpost.h: Move error codes to `fterrors.h'.
* src/autohint/aherrors.h, src/cache/ftcerror.h, src/cff/cfferrs.h,
src/cid/ciderrs.h, src/pcf/pcferror.h, src/psaux/psauxerr.h,
src/psnames/psnamerr.h, src/raster/rasterrs.h, src/sfnt/sferrors.h,
src/smooth/ftsmerrs.h, src/truetype/tterrors.h,
src/type1/t1errors.h, src/winfonts/fnterrs.h: New files defining the
error names for the module it belongs to.
* include/freetype/ftmoderr.h: New file, defining the module error
offsets. Its structure is similar to `fterrors.h'.
* include/freetype/fterrors.h (FT_NOERRORDEF): New macro.
(FT_ERRORDEF): Redefined to use module error offsets.
All internal error codes are now public; unused error codes have
been removed, some are new.
* include/freetype/config/ftheader.h (FT_MODULE_ERRORS_H): New
macro.
* include/freetype/config/ftoption.h
(FT_CONFIG_OPTION_USE_MODULE_ERRORS): New macro.
All other source files have been updated to use the new error codes;
some already existing (internal) error codes local to a module have
been renamed to give them the same name as in the base module.
All make files have been updated to include the local error files.
2001-06-06 Werner Lemberg <wl@gnu.org>
* src/cid/cidtokens.h: Replaced with...
* src/cid/cidtoken.h: This file for 8+3 consistency.
* src/raster/ftraster.c: Use macros for header file names.
* src/include/freetype/tttables.h (TT_HoriHeader_, TT_VertHeader_):
Fix length of `Reserved' array. Note that this isn't the real fix
since recent OpenType specs have introduced a `CaretOffset' field
instead of the first reserved byte.
2001-05-29 Werner Lemberg <wl@gnu.org>
* INSTALL: Minor fixes.
* Version 2.0.3 released.
=========================
2001-05-29 David Turner <david@freetype.org>
* INSTALL, docs/CHANGES: Updated.
2001-05-25 David Turner <david@freetype.org>
Moved several documents from the top-level to the "docs" directory.
* src/base/ftcalc.c (FT_DivFix): Small fix to return value.
2001-05-16 David Turner <david@freetype.org>
* src/truetype/ttgload.c (load_truetype_glyph): Fixed a bug in the
composite loader. Spotted by Keith Packard.
* src/base/ftobjs.c (FT_GlyphLoader_Check_Points,
FT_GlyphLoader_Check_Subglyphs): Ditto.
2001-05-14 David Turner <david@freetype.org>
Fixed the incorrect blue zone computations, and improved the
composite support. Note that these changes result in improved
rendering, while sometimes introducing their own artefacts. This is
probably the last big change to the autohinter before the
introduction of a complete replacement.
* src/autohint/ahglobal.c (sort_values): Fix loop.
* src/autohint/ahglyph.c: Removed some obsolete code.
(ah_outline_compute_edges): Modify code to set the ah_edge_round
flag.
(ah_outline_compute_blue_edges): Add code to compute active blue
zones.
* src/autohint/ahhint.c (ah_hinter_glyph_load): Change load_flags
value.
* src/base/ftcalc.c (FT_DivFix): Fixed a bug in the 64-bit code that
created incorrect scale factors!
(FT_Round_Fix, FT_CeilFix, FT_FloorFix): Minor improvements.
2001-05-12 Werner Lemberg <wl@gnu.org>
* include/freetype/ftbbox.h: FTBBOX_H -> __FTBBOX_H__.
* include/freetype/fttrigon.h: __FT_TRIGONOMETRY_H__ ->
__FTTRIGON_H__.
Include FT_FREETYPE_H.
Beautified; added copyright.
* src/base/fttrigon.c: Beautified; added copyright.
2001-05-11 David Turner <david@freetype.org>
* src/cff/cffparse.c (cff_parse_font_matrix), src/cid/cidload.c
(parse_font_matrix), src/type1/t1load.c (parse_font_matrix): Fixed
the incorrect EM size computation.
* include/freetype/fttrigon.h, src/base/fttrigon.c: New files,
adding trigonometric functions to the core API (using Cordic
algorithms).
* src/base/ftbase.c, src/base/Jamfile, src/base/rules.mk: Use them.
* builds/newline: New file.
* builds/top_level.mk, builds/detect.mk: Use it. This fixes
problems with Make on Windows 2000, as well as problems when "make
distclean" is invoked on a non-Unix platform when there is no
"config.mk" in the current directory.
* builds/freetype.mk: Fixed a problem with object deletions under
Dos/Windows/OS/2 systems.
Added new directory to hold tools and test programs.
* docs/docmaker.py, docs/glnames.py: Moved to...
* src/tools/docmaker.py, src/tools/glnames.py: This place.
* src/tools/cordic.py: New file used to compute arctangent table
needed by fttrigon.c.
* src/tools/test_bbox.c, src/tools/test_trig.c: New test files.
* src/tools/docmaker.py: Improved the script to add the current date
at the footer of each web page (useful to distinguish between
versions).
* Jamfile: Fixed incorrect HDRMACRO argument.
* TODO: Removed the cubic arc bbox computation note, since it has been
fixed recently.
* src/base/ftbbox.c (test_cubic_zero): Renamed to...
(test_cubic_extrema): This function. Use `UL' for unsigned long
constants.
* include/freetype/t1tables.h, include/freetype/config/ftoption.h:
Formatting.
2001-05-10 David Turner <david@freetype.org>
* src/base/ftobjs.c (FT_Open_Face): Fixed a small memory leak
which happened when trying to open 0-size font files!
2001-05-09 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/ftcalc.h: Move declaration of
FT_SqrtFixed() out of `#ifdef FT_LONG64'.
2001-05-08 Francesco Zappa Nardelli <Francesco.Zappa.Nardelli@ens.fr>
* src/pcfdriver.c (PCF_Load_Glyph): Fixed incorrect bitmap width
computation.
2001-05-08 David Turner <david@freetype.org>
* docs/docmaker.py: Updated the DocMaker script in order to add
command line options (--output,--prefix,--title), fix the erroneous
line numbers reported during errors and warnings, and other
formatting issues.
* src/base/ftcalc.c (FT_MulDiv, FT_MulFix, FT_DivFix): Various tiny
fixes related to rounding in 64-bits routines and
pseudo-"optimizations".
2001-04-27 David Turner <david@freetype.org>
* src/base/ftbbox.c (BBox_Cubic_Check): Fixed the coefficient
normalization algorithm (invalid final bit position, and invalid
shift computation).
2001-04-26 Werner Lemberg <wl@gnu.org>
* builds/unix/config.guess, builds/unix/config.sub: Updated to
latest versions from gnu.org.
* builds/compiler/gcc-dev.mk: Add `-Wno-long-long' flag.
* include/freetype/internal/ftcalc.h: Define FT_SqrtFixed()
uncoditionally.
* src/base/ftbbox.c: Include FT_INTERNAL_CALC_H.
Fix compiler warnings.
* src/base/ftcalc.c: Fix (potential) compiler warnings.
2001-04-26 David Turner <david@freetype.org>
* src/base/ftcalc.c (FT_SqrtFixed): Corrected/optimized the 32-bit
fixed-point square root computation. It is now used even with
64-bits integers, as it is _much_ faster than calling FT_Sqrt64 :-)
* src/base/ftbbox.c: Removed invalid "#include FT_BEZIER_H" line.
2001-04-25 David Turner <david@freetype.org>
* src/base/ftbbox.c (BBox_Cubic_Check): Rewrote function to use
direct computations with 16.16 values instead of sub-divisions. It
is now slower, but proves a point :-)
* src/raster/ftraster.c, src/smooth/ftgrays.c, src/base/ftbbox.c:
Fixed the bezier stack depths.
* src/base/ftcalc.c (FT_MulFix): Minor rounding fix.
* builds/beos: Added BeOS-specific files to the old build system
(no changes were necessary to support BeOS in the Jamfile though).
2001-04-20 David Turner <david@freetype.org>
* ftconfig.h, ftoption.h: Updated "ftconfig.h" to detect 64-bit int
types on platforms where Autoconf is not available). Also removed
FTCALC_USE_LONG_LONG and replaced it with
FT_CONFIG_OPTION_FORCE_INT64.
* builds/win32/freetype.dsp: Updated the Visual C++ project file.
Doesn't create a DLL yet.
* cffgload.c: Removed a compilation warning.
2001-04-10 Tom Kacvinsky <tkacvins@freetype.org>
* t1load.c (parse_charstrings): Changed code for placing .notdef
glyph into slot 0 so that we no longer have a memory access
violation.
* t1load.h: In structure T1_Loader, added swap_table (of type
PS_Table) to facilitate placing the .notdef glyph into slot 0.
2001-04-10 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
* src/pcf/pcfdriver.c (PCF_Get_Char_Index): Fix return value.
2001-04-09 Laurence Withers <lwithers@lwithers.demon.co.uk>
* builds/dos/detect.mk: Add support for bash.
2001-04-05 Werner Lemberg <wl@gnu.org>
* builds/os2/*.mk: These files have been forgotten to update to
the structure of similar makefiles.
* builds/dos/*.mk: Ditto.
* builds/ansi/*.mk: Ditto.
* builds/win32/win32-def.mk (BUILD): Fix typo.
* builds/compiler/*.mk (CLEAN_LIBRARY): Don't use NO_OUTPUT.
This is already used in the link_*.mk files.
2001-04-03 Werner Lemberg <wl@gnu.org>
* src/*/Jamfile: Slight changes to make files more cryptic.
2001-04-03 Werner Lemberg <wl@gnu.org>
* Jamfile, src/Jamfile, src/*/Jamfile: Formatted. Slight changes
to give files identical structure.
2001-04-02 Werner Lemberg <wl@gnu.org>
* CHANGES: Reformatted, minor fixes.
* TODO: Updated.
* README: Formatting.
* include/freetype/freetype.h: Formatting.
* Jamfile: Fix typo.
* src/cff/cffparse.c: Move error code #defines to...
* include/freetype/internal/cfferrs.h: This file.
* src/cff/cffdrivr.c, src/cff/cffobjs.c, src/cff/cffload.c: Replaced
`FT_Err_*' with `CFF_Err_*'.
* src/cid/cidparse.c: Replaced `FT_Err_*' with `T1_Err_*'.
* src/psaux/psobjs.c, src/psaux/t1decode.c: Ditto.
* src/sfnt/sfobcs.c, src/sfnt/ttload.c: Replaced `FT_Err_*' with
`TT_Err_*'.
* src/truetype/ttgload.c, src/truetype/ttobjs.c: Ditto.
* src/type1/t1gload.c, src/type1/t1load.c, src/type1/t1objs.c,
src/type1/t1parse.c: Replaced `FT_Err_*' with `T1_Err_*'.
* include/freetype/internal/cfferrs.h: Add
`CFF_Err_Unknown_File_Format'.
* include/freetype/internal/t1errors.h: Add
`T1_Err_Unknown_File_Format'.
* include/freetype/internal/tterrors.h: Add
`TT_Err_Unknown_File_Format'.
* src/cff/cffload.h: Add `cff_*_encoding' and `cff_*_charset'
references.
* src/psaux/psobjs.c: Include `FT_INTERNAL_TYPE1_ERRORS_H'.
* src/cff/cffobjs.c (CFF_Init_Face, CFF_Done_Face): Use
FT_LOCAL_DEF.
* src/cid/cidobjs.c (CID_Done_Driver): Ditto.
* src/trutype/ttobjs.c (TT_Init_Face, TT_Done_Face, TT_Init_Size):
Ditto.
* src/type1/t1objs.c (T1_Done_Driver): Ditto.
* src/pcf/pcfdriver.c (PCF_Done_Face): Ditto.
* src/pcf/pcf.h: Use FT_LOCAL for `PCF_Done_Face'.
2001-04-02 Tom Kacvinsky <tkacvins@freetype.org>
* src/sfnt/ttload.c (TT_Load_Metrics): Fix an improper pointer
dereference. Submitted by Herbert Duerr <duerr@sun.com>
2001-03-26 Tom Kacvinsky <tkacvins@freetype.org>
* include/freetype/config/ftconfig.h: Changed hexadecimal
constants to use suffix U to avoid problems with HP-UX's c89
compiler. Submitted by G.W. Lucas <glucas@sonalysts.com>
2001-03-24 David Turner <david.turner@freetype.org>
* Jamrules, Jamfile, src/Jamfile, src/*/Jamfile: Adding jamfiles to
the source tree. See www.freetype.org/jam/index.html for details.
* Version 2.0.2 released.
=========================
2001-03-20 Werner Lemberg <wl@gnu.org>
* builds/win32/detekt.mk: Fix .PHONY target for Intel compiler.
2001-03-20 David Turner <david.turner@freetype.org>
* include/freetype/config/ftheader.h, include/freetype/ftsnames.h:
Renamed "ftnames.h" to "ftsnames.h", and FT_NAMES_H to
FT_SFNT_NAMES_H.
* docs/docmaker.py: Added generation of INDEX link in table of
contents.
* INSTALL, docs/BUILD: Updated documentation to indicate that the
compilation process has changed slightly (no more `src' required in
the include path).
* builds/*/*-def.mk: Changed the objects directory from "obj" to
"objs".
* include/freetype/config/ftheader.h: Removed obsolete macros like
FT_SOURCE_FILE, etc. and added cache-specific macro definitions that
were previously defined in <freetype/ftcache.h>. Added comments to
be included in a new API Reference section.
* src/*/*: Removed the use of FT_SOURCE_FILE, etc. Now, each
component needs to add its own directory to the include path at
compile time. Modified all "rules.mk" and "descrip.mms"
accordingly.
2001-03-20 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.in: Add $ft_version.
* builds/unix/freetype-config.in: Use it.
* builds/unix/configure: Updated.
2001-03-19 Tom Kacvinsky <tkacvins@freetype.org>
* src/type1/t1load.c (parse_font_matrix): Assign the units per em
value an unsigned short value, first by shifting right 16 bits,
then by casting the results to FT_UShort.
* src/cff/cffparse.c (cff_parse_font_bbox): Assign the units per em
value an unsigned short value, first by shifting right 16 bits,
then by casting the results to FT_UShort.
2001-03-17 David Turner <david.turner@freetype.org>
* src/cid/cidobjs.c, src/cid/cidload.c, src/pcf/pcfread.c,
src/type1/t1load.c, src/type1/t1objs.c: Added a few casts to remove
compiler warnings in pedantic modes.
* include/config/ft2build.h, include/config/ftheader.h: The file
"ft2build.h" was renamed to "ftheader.h" to avoid conflicts with the
top-level <ft2build.h>.
* include/config/ftheader.h: Added new section describing the #include
macros.
2001-03-17 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffparse.c (cff_parse_font_bbox): Obtain rounded FT_Fixed
values for the bounding box numbers.
* src/cff/cffobjs.c (CFF_Init_Face): When processing a CFF/CEF font,
set `root->ascender' (`root->descender') to the integer part of
`root->bbox.yMax' (`root->bbox.yMin', respectively).
2001-03-16 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffdrivr.c (get_cff_glyph_name): New function. Used in
cff_get_interface to facilitate getting a glyph name for glyph index
via FT_Get_Glyph_Name().
(cff_get_interface): Added support for getting a glyph name via the
"glyph_name" module interface. Uses the new function
get_cff_glyph_name().
Submitted by Sander van der Wal <svdwal@xs4all.nl>
* src/cff/cffobjs.c (CFF_Init_Face): Logical or the face flags with
FT_FACE_FLAG_GLYPH_NAMES only if FT_CONFIG_OPTION_NO_GLYPH_NAMES is
not defined. This is to add support for getting a glyph name from a
glyph index via FT_Get_Glyph_Name().
Submitted by Sander van der Wal <svdwal@xs4all.nl>
* src/cff/cffgload.c (CFF_Parse_CharStrings): Added support for
deprecated operator "dotsection".
Submitted by Sander van der Wal <svdwal@xs4all.nl>
2001-03-12 Werner Lemberg <wl@gnu.org>
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Fix error
messages.
* INSTALL, docs/BUILD: We need GNU make 3.78.1 or newer.
2001-03-12 Tom Kacvinsky <tkacvins@freetype.org>
* include/freetype/internal/psaux.h: Changed the lenIV member of
the T1_Decoder_ struct to be an FT_Int instead of an FT_UInt.
* src/psaux/t1decode.c (T1_Decoder_Parse_Charstrings): Adjust
for lenIV seed bytes at the start of a decrypted subroutine.
* src/cid/cidload.c (cid_read_subrs): Decrypt subroutines only
if lenIV >= 0.
* src/cid/cidgload.c (cid_load_glyph): Decrypt charstrings only
if lenIV >= 0.
2001-03-11 Werner Lemberg <wl@gnu.org>
* TODO: Updated.
* src/pcf/pcfread.c: Put READ_Fields() always in a conditional to
avoid compiler warnings.
2001-03-10 Tom Kacvinsky <tkacvins@freetype.org>
* TODO: New file.
* include/freetype/freetype.h: Added prototypes and notes for
three new functions: FT_RoundFix, FT_CeilFix, and FT_FloorFix.
* src/base/ftcalc.c (FT_RoundFix, FT_CeilFix, FT_FloorFix): Added
implementation code.
* src/cid/cidobjs.c (CID_Init_Face): Use calculated units_per_EM,
and if that is not available, default to 1000 units per EM. Changed
assignment code for ascender and descender values.
* src/cid/cidload.c (parse_font_matrix): Added units_per_EM
processing.
(parse_font_bbox): Changed to use FT_Fixed number handling.
* src/type1/t1objs.c (T1_Init_Face): Changed the assignment code
for ascender, descender, and max_advance_width.
* src/type1/t1load.c (parse_font_bbox): Changed to use FT_Fixed
number handling.
2001-03-10 Henrik Grubbstrm <grubba@roxen.com>
* src/*/*.c: Added many casts to make code more 64bit-safe.
2001-03-07 Werner Lemberg <wl@gnu.org>
* INSTALL, docs/BUILD: We need GNU make 3.78 or newer.
2001-03-07 Tom Kacvinsky <tkacvins@freetype.org>
* src/type1/t1objs.c (T1_Init_Face): Minor correction: We must wait
until parse_font_bbox is changed before we use logical shift rights
in the assignments of `root->ascender', `root->descender', and
`root->max_advance_width'.
(T1_Done_Face): Free `char_name' table to avoid a memory leak.
Submitted by Sander van der Wal <svdwal@xs4all.nl>.
2001-03-05 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffgload.c (CFF_Load_Glyph): Set glyph control data to the
the Type 2 glyph charstring (used by conversion programs).
Submitted by Ha Shao <hashao@chinese.com>.
2001-03-04 Antoine Leca <Antoine.Leca@renault.fr>
* include/freetype/ttnameid.h: Correct a stupid typo which prevented
correct compilation (TT_MS_LANGID_TIGRIGNA_ETHIOPIA appeared twice).
2001-03-04 Werner Lemberg <wl@gnu.org>
* src/autohint/ahtypes.h (AH_Hinter): Add elements
`disable_horz_edges', `disable_vert_edges'.
* src/autohint/ahhint.c (ah_hint_edges_3, ah_hinter_hint_edges): Use
them (and remove static variables with the same names).
* src/pcf/pcfutil.c (BitOrderInvert): Add `const'.
* docs/glnames.py: Updated to latest pstables.h changes.
* builds/unix/detect.mk: Add test for Hurd.
* builds/hurd/detect.mk: Removed.
2001-03-04 Sander van der Wal <svdwal@xs4all.nl>
* src/psnames/pstables.h: Add more `const'.
* src/pcf/pcfutil.c: Ditto.
2001-03-04 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixing typo
(FT_Glyph_Done -> FT_Done_Glyph).
2001-03-01 Antoine Leca <Antoine.Leca@renault.fr>
* include/freetype/ttnameid.h: Added some new Microsoft language
codes and LCIDs as found in Office Xp.
2001-02-28 David Turner <david.turner@freetype.org>
* builds/hurd/detect.mk: New file. Added support to detect the GNU
Hurd operating system as Unix-like. Fix submitted by Anthony Fok
<foka@debian.org>.
* src/type1/t1gload.c (T1_Load_Glyph): Set glyph control data to the
the Type 1 glyph charstring (used by conversion programs).
Submitted by Ha Shao <hashao@chinese.com>.
2001-02-22 David Turner <david.turner@freetype.org>
* src/base/ftgrays.c (grays_sweep): The function didn't exit
immediately if `num_cells' was 0 as it should. Thanks to Boris for
finding this out.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Fixed memory leak when
bitmap rendering fails (thanks to Graham Asher).
2001-02-13 Werner Lemberg <wl@gnu.org>
* docs/docmaker.py (DocSection::add_element): Use
`self.print_error()'.
* builds/unix/config.{guess,sub}: Updated (from ftp.gnu.org).
2001-02-13 David Turner <david.turner@freetype.org>
* docs/docmaker.py, include/freetype/*.h: Updated the DocMaker
script to support chapters and section block ordering. Updated the
public header files accordingly.
* src/base/ftglyph.c (FT_Glyph_Copy): Advance width and glyph format
were not correctly copied.
2001-02-08 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/cffparse.c (cff_parse_font_matrix): Removed an
unnecessary fprintf( stderr, ... ).
2001-02-07 Tom Kacvinsky <tkacvins@freetype.org>
* src/type1/t1objs.c (T1_Init_Face): Added code to get the
units_per_EM from the value assigned in parse_font_matrix, if
available. Default to 1000 if not available.
* src/cff/cffparse.c (cff_parse_font_matrix): Added logic to get
the units_per_EM from the FontMatrix.
(cff_parse_fixed_thousand): New function. Gets a real number from
the CFF font, but multiplies by 1000 (this is to avoid rounding
errors when placing this real number into a 16.16 fixed number).
(cff_parse_real): Added code so that the integer part is moved
into the high sixteen bits of the 16.16 fixed number.
* src/cff/cffobjs.c (CFF_Init_Face): Added logic to get the units
per EM from the CFF dictionary, if available.
* include/freetype/internal/cfftypes.h: In struct CFF_Font_Dict_,
added a units_per_em member to facilitate passing of units_per_em
from function cff_parse_font_matrix.
* src/type1/t1load.c (is_alpha): Make `-' a legal alphanumeric
character. This is so that font names with `-' are fully parsed,
etc...
2001-02-02 Werner Lemberg <wl@gnu.org>
* src/psaux/psobjs.c (shift_elements): Remove if clause (which is
obsolete now).
(reallocate_t1_table, PS_Table_Done): Replace REALLOC() with ALLOC()
+ MEM_Copy() to avoid a memory bug.
2001-02-01 David Turner <david.turner@freetype.org>
* docs/docmaker.py: Improved the index sorting routine to place
capital letters before small ones. Added the "<order>" marker to
section blocks in order to give the order of blocks.
2001-01-30 Antoine Leca <Antoine.Leca@renault.fr>
* include/freetype/ttnameid.h: Latest updates to Microsoft language
ID codes.
2001-01-24 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/t1load.c (parse_font_matrix): Added heuristic to get
units_per_EM from the font matrix.
(parse_dict): Deleted test to see whether the FontInfo keyword has
been seen. Deletion of this test allows fonts without FontInfo
dictionaries to be parsed by the Type 1 driver.
(T1_Open_Face): Deleted empty subroutines array test to make sure
fonts with no subroutines still are parsed.
2001-01-17 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
* src/pcfread.c (pcf_get_properties, pcf_get_metrics,
pcf_get_bitmaps): Fix compiler errors.
2001-01-11 David Turner <david.turner@freetype.org>
* src/pcf/pcfread.c: Removed some compilation warnings related
to comparison of signed vs. unsigned integers.
* include/freetype/internal/ftdebug.h: Changed the debug trace
constants from trace_t2xxxx to trace_cffxxxx to be able to compile
the CFF driver in debug mode.
2001-01-11 Matthew Crosby <mcrosby@marthon.org>
* builds/unix/freetype-config.in: Fix problems with separate
--prefix and --exec-prefix.
2001-01-11 David Turner <david.turner@freetype.org>
* docs/docmaker.py: Added cross-references generation as well as
more robust handling of pathname wildcard matching.
2001-01-10 Werner Lemberg <wl@gnu.org>
* docs/docmaker.py: Minor improvements to reduce unwanted spaces
and empty lines in output.
2001-01-09 David Turner <david.turner@freetype.org>
* docs/docmaker.py: Improved script to generate table of contents
and index pages. It also supports wildcards on non Unix systems.
* include/freetype/*.h, include/freetype/cache/*.h: Updated comments
to include section definitions/delimitations for the API Reference
generator.
* include/freetype/freetype.h: Moved declaration of
`FT_Generic_Finalizer' and the `FT_Generic' structure to...
* include/freetype/fttypes.h: here.
2001-01-04 Werner Lemberg <wl@gnu.org>
* include/freetype/ttnameid.h: Updated Unicode code range comments.
2001-01-03 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/rules.mk: Use cffgload.{c,h} instead of t2gload.{c,h}.
* include/freetype/internal/internal.h: Changed to use cfftypes.h
(cfferrs.h) instead of t2types.h (t2errors.h, respectively).
* include/freetype/internal/cfftypes.h: Merged in changes from
t2types.h and made this the canonical `types' header for the CFF
driver.
* include/freetype/internal/t2types.h: This file was merged with
cfftypes.h and is no longer necessary.
* include/freetype/internal/t2errors.h: Renamed to cfferrs.h.
* src/cff/cffobjs.c, src/cff/cffobjs.h, src/cff/cffparse.c,
src/cff/cffdrivr.c, src/cff/cff.c, src/cff/cffload.c,
src/cff/cffgload.c, src/cff/cffgload.h: Changed to use
cffgload.{c,h} instead of t2gload.{c,h}. All occurences of t2_
(T2_) were replaced with cff_ (CFF_, respectively).
* src/cff/t2gload.h: Renamed cffgload.h.
* src/cff/t2gload.c: Renamed cffgload.c
2000-01-02 Jouk Jansen <joukj@hrem.stm.tudelft.nl>
* builds/vms: Support files for VMS architecture added.
* descrip.mms, src/*/descrip.mms: VMS makefiles added.
* README.VMS: New file.
2000-01-01 Werner Lemberg <wl@gnu.org>
* LICENSE.TXT: Added info about PCF driver license.
2001-01-01 Francesco Zappa Nardelli <francesco.zappa.nardelli@ens.fr>
* src/pcf/*: New driver module for PCF font format (used in
X Window System).
* include/freetype/internal/ftdebug.h (FT_Trace): Added values for
PCF driver.
* include/freetype/internal/pcftypes.h: New file.
* include/freetype/config/ftmodule.h: Added PCF driver module.
2001-01-01 Werner Lemberg <wl@gnu.org>
* src/winfonts/winfnt.c (FNT_Get_Char_Index): Fix parameter type.
2000-12-31 Werner Lemberg <wl@gnu.org>
* builds/modules.mk (clean_module_list): Fixed deletion of module
file in case `make make_module_list' is called before `make setup'.
2000-12-30 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (CFF_Load_Charset): Improved error messages.
(CFF_Load_Charset, CFF_Load_Encoding): Remove unnecessary variable
definition.
2000-12-30 Tom Kacvinsky <tkacvins@freetype.org>
* include/freetype/internal/t2types.h,
include/freetype/internal/cfftypes.h: Changed the structures for
CFF_Encoding and CFF_Encoding for the new implementations of the
charset and encoding parsers in the CFF driver.
* src/cff/t2gload.c (t2_lookup_glyph_by_stdcharcode,
t2_operator_seac): Added these functions for use in implementing the
seac emulation provided by the Type 2 endchar operator.
(T2_Parse_CharStrings): Added seac emulation for the endchar
operator.
* src/cff/cffload.c (CFF_Load_Encoding, CFF_Load_Charset,
CFF_Done_Encoding, CFF_Done_Charset): Extended to load and parse the
charset/encoding tables, and free the memory used by them when the
CFF driver is finished with them. Added tables
cff_isoadobe_charset
cff_expert_charset
cff_expertsubset_charset
cff_standard_encoding
cff_expert_encoding
so that the encoding/charset parser can handle predefined encodings and
charsets.
2000-12-24 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/t2gload.c (T2_Load_Glyph): Added code so that the font
transform is applied.
* src/cff/cffparse.c (cff_parse_font_matrix): Added code so that
the font matrix numbers are scaled by 1/(matrix->yy). Also, the
offset vector now contains integer values instead of 16.16 fixed
numbers.
2000-12-22 Tom Kacvinsky <tkacvins@freetype.org>
* src/autohint/ahhint.c (ah_hinter_load_glyph):
Removed unnecessary comments and commented-out code.
2000-12-21 David Turner <david.turner@freetype.org>
* src/cid/cidafm.c, src/cid/cidafm.h: removed un-needed files,
we'll work on supporting CID AFM files later I guess :-)
2000-12-21 Tom Kacvinsky <tkacvins@freetype.org>
* src/autohint/ahhint.c (ah_hinter_load, ah_hinter_load_glyph):
Changed so that fonts with a non-standard FontMatrix render
correctly. Previously, the first glyph rendered from such a
font did not have the tranformation matrix applied.
2000-12-17 Werner Lemberg <wl@gnu.org>
* *.mk: Added lots of `.PHONY' targets.
2000-12-17 Karsten Fleischer <kfleisc1@ford.com>
* *.mk: Implemented `platform' target to disable auto-detection.
2000-12-14 Werner Lemberg <wl@gnu.org>
* docs/design/modules.html: Removed. Covered by design-*.html.
* INSTALL: Added info about makepp.
2000-12-14 David Turner <david.turner@freetype.org>
Added support for clipped direct rendering in the smooth renderer.
This should not break binary compatibility of existing applications.
* include/freetype/fttypes.h, include/freetype/ftimage.h: Move
definition of the FT_BBox structure from the former to the latter.
* include/freetype/ftimage.h: Add `ft_raster_flag_clip' value to
FT_Raster_Flag enumeration.
Add `clip_box' element to FT_Raster_Params structure.
* src/smooth/ftgrays.c (grays_convert_glyph): Implement it.
* INSTALL: Updated installation instructions on Win32, listing the
new "make setup list" target used to list supported
compilers/targets.
* src/raster/ftraster.c (ft_black_render): Test for unsupported
direct rendering before testing arguments.
2000-12-13 David Turner <david.turner@freetype.org>
* include/freetype/config/ft2build.h,
include/freetype/internal/internal.h: Fixed header inclusion macros
to use direct definitions. This is the only way to do these things
in a portable way :-( The rest of the code should follow shortly
though everything compiles now.
* builds/compiler/intelc.mk, builds/compiler/watcom.mk: New files.
* builds/win32/detect.mk: Added support for the Intel C/C++
compiler, as well as _preliminary_ (read: doesn't work!) support for
Watcom. Also added a new setup target. Type "make setup list" for
a list of supported command-line compilers on Win32.
* src/base/ftdebug.c: Added dummy symbol to avoid empty file if
conditionals are off.
2000-12-13 Werner Lemberg <wl@gnu.org>
* builds/unix/ftsystem.c: Fixed typos. Fixed inclusion of wrong
ftconfig.h file.
2000-12-12 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ft2build.h (FT2_ROOT, FT2_CONFIG_ROOT):
Removed. ANSI C doesn't (explicitly) allow macro expansion in
arguments using `##'.
(FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE): Use directory
names directly. Make them configurable. Use `##' to strip leading
and trailing spaces from arguments.
* builds/unix/ft2unix.h: Adapted.
* src/base/ftsystem.c (ft_alloc, ft_realloc, ft_free, ft_io_stream,
ft_close_stream): Use FT_CALLBACK_DEF.
* builds/unix/ftsystem.c: Use new header scheme.
(FT_Done_Memory): Use free() from FT_Memory structure.
* src/base/ftinit.c, src/base/ftmac.c: Header scheme fixes.
2000-12-11 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ft2build.h (FT2_CONFIG_ROOT,
FT2_PUBLIC_FILE, FT2_CONFIG_FILE, FT2_INTERNAL_FILE,
FT_SOURCE_FILE): Use `##' operator to be really ANSI C compliant.
2000-12-09 Werner Lemberg <wl@gnu.org>
* builds/unix/detect.mk: Remove unused USE_CFLAGS variable.
2000-12-08 Werner Lemberg <wl@gnu.org>
* */*.h: Changed body inclusion macro names to start and end with
`__' (those which haven't converted yet). Fixed minor conversion
issues.
* src/winfonts/winfnt.c: Updated to new header inclusion scheme.
* src/truetype/ttinterp.c: Remove unused CALC_Length() macro.
2000-12-07 David Turner <david.turner@freetype.org>
* */*.[ch]: Changed source files to adhere to the new
header inclusion scheme. Not completely tested but works for now
here.
* src/cff/t2driver.c: Renamed and updated to...
* src/cff/cffdrivr.c: New file.
* src/cff/t2driver.h: Renamed and updated to...
* src/cff/cffdrivr.h: New file.
* src/cff/t2load.c: Renamed and updated to...
* src/cff/cffload.c: New file.
* src/cff/t2load.h: Renamed and updated to...
* src/cff/cffload.h: New file.
* src/cff/t2objs.c: Renamed and updated to...
* src/cff/cffobjs.c: New file.
* src/cff/t2objs.h: Renamed and updated to...
* src/cff/cffobjs.h: New file.
* src/cff/t2parse.c: Renamed and updated to...
* src/cff/cffparse.c: New file.
* src/cff/t2parse.h: Renamed and updated to...
* src/cff/cffparse.h: New file.
* src/cff/t2tokens.h: Renamed and updated to...
* src/cff/cfftoken.h: New file.
* src/cff/cff.c, src/cff/rules.mk: Updated.
2000-12-06 David Turner <david.turner@freetype.org>
* src/cache/ftlru.c (FT_Lru_Done): Fixed memory leak.
2000-12-06 Werner Lemberg <wl@gnu.org>
* builds/module.mk: Replaced `xxx #' with `xxx$(space).
* builds/os2/detekt.mk, builds/win32/detekt.mk: Moved comment to
avoid trailing spaces in variable.
* builds/freetype.mk: Use $(D) instead of $D to make statement more
readable.
* docs/docmaker.py: Formatting.
2000-12-05 David Turner <david.turner@freetype.org>
* src/psaux/psauxmod.c: Fixed a broken inclusion of component
header files (an FT_FLAT_COMPILE test was missing).
* src/cache/ftcmanag.c (FTC_Manager_Done): Fixed a bug that caused
an occasional crash when the function was called (due to a dangling
pointer).
* src/base/ftsystem.c (FT_Done_Memory): Fixed an obvious bug:
The ANSI "free()" function was called instead of "memory->free()".
* docs/docmaker.py: Added section filtering, multi-page generation
(index page generation is still missing though).
2000-12-04 David Turner <david.turner@freetype.org>
* builds/unix/install.mk, builds/unix/ft2unix.h: The file "ft2unix.h"
is now installed as <ft2build.h> for Unix systems. Note that we
still use the "freetype2/freetype" installation path for now.
* */*.[ch]: Now using <ft2build.h> as the default build and setup
configuration file in all public headers. Internal source files
still need some changes though.
* builds/devel/ft2build.h, builds/devel/ftoption.h: Created a new
directory to hold all development options for both the Unix and
Win32 developer builds.
* builds/win32/detect.mk, builds/win32/w32-bccd.mk,
builds/win32/w32-dev.mk: Changed the developer build targets to
"devel-gcc" and "devel-bcc" in order to be able to develop with the
Borland C++ compiler.
2000-12-01 David Turner <david.turner@freetype.org>
* Version 2.0.1 released.
=========================
* builds/unix/configure.in, builds/unix/configure,
builds/cygwin/configure.in, builds/cygwin/configure: Setting
"version_info" to 6:1:0 for the 2.0.1 release.
* CHANGES: Added a summary of changes between 2.0.1 and 2.0.
* builds/unix/ftconfig.in, builds/cygwin/ftconfig.in: Changes
to allow compilation under Unix with the Unix-specific config
files.
2000-12-01 Werner Lemberg <wl@gnu.org>
* INSTALL: Revised.
* builds/compiler/bcc-dev.mk, builds/compiler/visualage.mk,
builds/compiler/bcc.mk, builds/win32/w32-bcc.mk,
builds/win32/w32-bccd.mk: Revised.
* include/freetype/config/ftbuild.h,
include/freetype/internal/internal.h: Revised.
* include/freetype/ftimage.h: Updated to new header inclusion scheme.
2000-11-30 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (.PHONY): Adding `distclean'.
* builds/unix/detect.mk (.PHONY): Adding `devel', `unix', `lcc',
`setup'.
2000-11-30 David Turner <david.turner@freetype.ogr>
* INSTALL: Slightly updated the quick starter documentation to
include IDE compilation, prevent against BSD Make, and specify "make
setup" instead of a single "make" for build configuration.
* include/config/ftbuild.h, include/internal/internal.h: Added new
configuration files used to determine the location of all public,
configuration, and internal header files for FreeType 2. Modified
all headers under "include/freetype" to reflect this change. Note
that we still need to change the library source files themselves
though.
* builds/compiler/bcc.mk, builds/compiler/bcc-dev.mk,
builds/win32/w32-bcc.mk, builds/win32/w32-bccd.mk,
builds/win32/detect.mk: Added new files to support compilation with
the free Borland C++ command-line compiler. Modified the detection
rules to recognize the new "bcc32" target in "make setup bcc32".
* src/sfnt/ttcmap.c, src/sfnt/ttpost.c, src/sfnt/ttsbit.c,
src/truetype/ttobjs.c, src/truetype/ttgload.c,
src/truetype/ttinterp.c: Fixed a few comparisons that Borland C++
didn't really like. Basically, this compiler complains when FT_UInt
is compared to FT_UShort (apparently, it promotes `UShort' to `Int'
in these cases).
2000-11-30 Tom Kacvinsky <tkacvins@freetype.org>
* t2objs.c (T2_Init_Face): Added calculation of `face->height' for
pure CFF fonts.
* t1objs.c (T1_Init_Face): Fixed computation of `face->height'.
2000-11-29 David Turner <david.turner@freetype.org>
* src/base/ftbbox.c (BBox_Conic_Check): Fixed a really stupid
bug in the formula used to compute the conic Bzier extrema
of non-monotonous arcs.
2000-11-29 Werner Lemberg <wl@gnu.org>
* src/base/ftcalc.c (FT_SqrtFixed), src/base/ftobjs.c
(FT_Set_Renderer): Use FT_EXPORT_DEF.
* src/cache/ftcimage.c (FTC_Image_Cache_Lookup),
src/cache/ftcmanag.c (FTC_Manager_Done, FTC_Manager_Reset,
FTC_Manager_Lookup_Face, FTC_Manager_Lookup_Size,
FTC_Manager_Register_Cache), src/cache/ftcsbits.c
(FTC_SBit_Cache_Lookup): Ditto.
* src/include/freetype/cache/ftcglyph.h (FTC_GlyphNode_Init),
src/include/freetype/ftmac.h (FT_New_Face_From_FOND): Use FT_EXPORT.
2000-11-29 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfdriver.c: Include ttsbit.h and ttpost.h only
conditionally.
* src/truetype/ttdriver.c (Set_Char_Sizes, Set_Pixel_Sizes): Set
`size->strike_index' only conditionally.
* src/type1/t1driver.c, src/type1/t1objs.c: Include t1afm.h only
conditionally.
* src/winfonts/winfnt.h: Move all type definitions to...
* src/include/freetype/internal/fnttypes.h: New file.
* src/winfonts/winfnt.c: Use it.
2000-11-29 ??? ??? <darin@eazel.com>
* include/freetype/internal/ftdebug.h: Replaced FT_CAT and FT_XCAT
with a direct solution (which also satifies picky compilers).
2000-11-28 YAMANO-UCHI Hidetoshi <mer@din.or.jp>
* src/truetype/ttobjs.c (TT_Init_Size): Fix #ifdef's to work with
disabled interpreter also.
* src/base/ftnames.c (FT_Get_Sfnt_Name_Count): Fix incorrect
parentheses.
2000-11-26 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/t2gload.c (T2_Parse_CharStrings): Added logic to glyph
width setting code to take into account even/odd argument counts
and glyph width operand before endchar/hmoveto/vmoveto.
2000-11-26 Werner Lemberg <wl@gnu.org>
* builds/ansi/ansi.mk: Fix inclusion order of files.
2000-11-26 Keith Packard <keithp@keithp.com>
* src/type1/t1objs.c (T1_Init_Face): Compute style flags.
2000-11-26 Werner Lemberg <wl@gnu.org>
* builds/compiler/ansi-cc.mk (CLEAN_LIBRARY): Fix rule and
conditional.
2000-11-23 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs, parse_charstrings): Use decrypt
function from PSAux module.
* src/type1/t1parse.c (T1_Done_Parse): Renamed to...
(T1_Finalize_Parser): New function (to avoid name clash with a
function in the PSAux module).
(T1_Decrypt): Removed since it is duplicated in the PSAux module.
(T1_Get_Private_Dict): Added `psaux' as new parameter; use decrypt
function from PSAux module.
* src/type1/t1parse.h: Adapted.
2000-11-22 Tom Kacvinsky <tkacvins@freetype.org>
* src/cff/t2objs.c (T2_Init_Face): For pure CFF fonts, set
`root->num_faces' to `cff->num_faces' and set `units_per_EM'
to 1000.
* src/cff/t2parse.c (parse_t2_real): Fixed real number parsing
loop.
* src/cff/t2load.c (T2_Get_String): Called T2_Get_Name with a
sid that was off by one.
2000-11-16 David Turner <david@freetype.org>
* src/autohint/ahtypes.h (AH_Hinter): Added new fields to control
auto-hinting of synthetic Type 1 fonts.
* src/autohint/ahhint.c (ah_hinter_load, ah_hinter_load_glyph):
Added auto-hinting support of synthetic Type 1 fonts.
2000-11-12 Tom Kacvinsky <tkacvins@freetype.org>
* src/sfnt/ttload.c (TT_LookUp_Table, TT_Load_Generic_Table): Change
tracing output.
* src/sfnt/sfobjs.c (SFNT_Load_Face): Set boolean variable
`has-outline' to true only if the font has a `glyf' or `CFF ' table.
2000-11-11 Werner Lemberg <wl@gnu.org>
* builds/win32/visualc/freetype.dsp: Fix raster1->raster and
type1z->type1.
2000-11-11 Tom Kacvinsky <tkacvins@freetype.org>
* builds/unix/freetype-config.in, builds/cygwin/freetype-config.in:
Added a --libtool option. When freetype-config --libtool is
invoked, the absolute path to the libtool convenience library
is returned.
2000-11-11 Werner Lemberg <wl@gnu.org>
* builds/cygwin/cygwin-def.in: Same fix as previous.
2000-11-10 Tom Kacvinsky <tkacvins@freetype.org>
* builds/unix/unix-def.in: Add
INSTALL_PROGRAM := @INSTALL_PROGRAM@
INSTALL_SCRIPT := @INSTALL_SCRIPT@
so that installation of freetype-config does not fail.
2000-11-10 Werner Lemberg <wl@gnu.org>
* builds/cygwin/freetype-config.in, builds/unix/freetype-config.in:
Move test down for empty --exec-prefix.
Fix --version.
* builds/cygwin/install.mk, builds/unix/install.mk: Use
$(INSTALL_SCRIPT) for installation of freetype-config.
* builds/cygwin/install.mk: Fix clean target names.
2000-11-09 David Turner <david@freetype.org>
* Version 2.0 released.
=======================
Local Variables:
version-control: never
coding: latin-1
End:
|