Hash :
e8770c67
Author :
Date :
2010-07-05T07:45:02
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564
2010-07-05 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30030.
* builds/win32/*/freetype.vcproj: Add ftxf86.c.
2010-07-05 Werner Lemberg <wl@gnu.org>
[cff] Next try to fix `hintmask' and `cntrmask' limit check.
Problem reported by malc <av1474@comtv.ru>.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_hintmask>: It is possible that there is just a single byte
after the `hintmask' or `cntrmask', e.g., a `return' instruction.
2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Restrict the number of the charmaps in a rogue-compatible mode.
Fix for Savannah bug #30059.
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Replace `16' the
minimum character code passed by a legacy rogue client by...
* include/freetype/config/ftoption.h (FT_MAX_CHARMAP_CACHEABLE):
This. It is undefined when FT_CONFIG_OPTION_OLD_INTERNALS is
undefined (thus the rogue client compatibility is not required).
* src/cff/cffobjs.c (cff_face_init): Abort the automatic
selection or synthesis of Unicode cmap subtable when the charmap
index exceeds FT_MAX_CHARMAP_CACHEABLE.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Issue error message
when the charmap index exceeds FT_MAX_CHARMAP_CACHEABLE.
* src/base/ftobjs.c (find_unicode_charmap): When Unicode charmap
is found after FT_MAX_CHARMAP_CACHEABLE, ignore it and search
earlier one.
(find_variant_selector_charmap): When UVS charmap is found after
FT_MAX_CHARMAP_CACHEABLE, ignore it and search earlier one.
(FT_Select_Charmap): When a charmap matching with requested
encoding but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
earlier one.
(FT_Set_Charmap): When a charmap matching with requested
charmap but after FT_MAX_CHARMAP_CACHEABLE, ignore and search
earlier one.
(FT_Get_Charmap_Index): When a requested charmap is found
after FT_MAX_CHARMAP_CACHEABLE, return the inverted charmap
index.
2010-07-04 Werner Lemberg <wl@gnu.org>
TrueType hinting is no longer patented.
* include/freetype/config/ftoption.h, devel/ftoption.h
(TT_CONFIG_OPTION_BYTECODE_INTERPRETER): Define.
(TT_CONFIG_OPTION_UNPATENTED_HINTING): Undefine.
* docs/CHANGES, docs/INSTALL, include/freetype/freetype.h: Updated.
* docs/TRUETYPE, docs/PATENTS: Removed.
2010-07-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Check error value by `FT_CMap_New'.
* src/cff/cffobjs.c (cff_face_init): Check error value by
`FT_CMap_New'.
* src/pfr/pfrobjs.c (pfr_face_init): Ditto.
* src/type1/t1jobjs.c (T1_Face_Init): Ditto.
* src/type42/t42jobjs.c (T42_Face_Init): Ditto.
2010-07-03 Werner Lemberg <wl@gnu.org>
Make ftgrays.c compile stand-alone again.
* src/smooth/ftgrays.c [_STANDALONE_]: Include `stddef.h'.
(FT_INT_MAX, FT_PtrDist)[_STANDALONE_]: Define.
2010-07-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Additional fix for Savannah bug #30306.
* src/base/ftobjs.c (Mac_Read_POST_Resource): If the type of the
POST fragment is 0, the segment is completely ignored. The declared
length of the segment is not cared at all. According to Adobe
Technical Note 5040, type 0 segment is a comment only and should not
be loaded for the interpreter. Reported by Robert Święcki.
2010-07-01 Werner Lemberg <wl@gnu.org>
[truetype] Protect against code range underflow.
* src/truetype/ttinterp.c (DO_JROT, DO_JMPR, DO_JROF): Don't allow
negative IP values.
2010-07-01 Werner Lemberg <wl@gnu.org>
[truetype] Add rudimentary tracing for bytecode instructions.
* src/truetype/ttinterp.c (opcode_name) [FT_DEBUG_LEVEL_TRACE]: New
array.
(TT_RunIns): Trace opcodes.
2010-06-30 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30263.
* src/smooth/ftgrays.c (gray_render_span): Use cast to `unsigned
int' to avoid integer overflow.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Use smaller
threshold values for `width' and `height'. This is not directly
related to the bug fix but makes sense anyway.
2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Initial fix for Savannah bug #30306.
* src/base/ftobjs.c (Mac_Read_POST_Resource): Check `rlen', the
length of fragment declared in the POST fragment header, and prevent
an underflow in length calculation. Some fonts set the length to
zero in spite of the existence of a following 16bit `type'.
Reported by Robert Święcki.
2010-07-01 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Additional fix for Savannah bug #30248 and #30249.
* src/base/ftobjs.c (Mac_Read_POST_Resource): Check the buffer size
during gathering PFB fragments embedded in LaserWriter PS font for
Macintosh. Reported by Robert Święcki.
2010-06-30 Alexei Podtelezhnikov <apodtele@gmail.com>
Minor optimizations by avoiding divisions.
* src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning):
Replace divisions with multiplication in comparisons.
2010-06-29 Werner Lemberg <wl@gnu.org>
Fix minor tracing issues.
* src/cff/cffgload.c, src/truetype/ttgload.c: Adjust tracing levels.
2010-06-27 Werner Lemberg <wl@gnu.org>
[cff] Really fix `hintmask' and `cntrmask' limit check.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_hintmask>: Fix thinko and handle tracing also.
2010-06-27 Werner Lemberg <wl@gnu.org>
Fix valgrind warning.
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Initialize
`result' array.
2010-06-27 Werner Lemberg <wl@gnu.org>
[cff] Fix memory leak.
* src/cff/cffgload.c (cff_operator_seac): Free charstrings even in
case of errors.
2010-06-27 Werner Lemberg <wl@gnu.org>
[cff] Protect against invalid `hintmask' and `cntrmask' operators.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_hintmask>: Ensure that we don't exceed `limit' while parsing
the bit masks of the `hintmask' and `cntrmask' operators.
2010-06-26 Werner Lemberg <wl@gnu.org>
Fix PFR change 2010-06-24.
* src/pfr/pfrgload.c (pfr_glyph_load_simple): Really protect against
invalid indices.
2010-06-26 Werner Lemberg <wl@gnu.org>
Improve PFR tracing messages.
* src/pfr/pfrgload.c (pfr_glyph_load_rec): Emit tracing messages for
simple and compound glyph offsets.
2010-06-26 Werner Lemberg <wl@gnu.org>
Fix last PFR change.
* src/pfr/pfrobjs.c (pfr_face_init): Fix rejection logic.
2010-06-26 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30262.
* src/sfnt/ttload.c (tt_face_load_maxp): Limit `maxComponentDepth'
arbitrarily to 100 to avoid stack exhaustion.
2010-06-26 Werner Lemberg <wl@gnu.org>
Add some memory checks (mainly for debugging).
* src/base/ftstream.c (FT_Stream_EnterFrame): Exit with error
if the frame size is larger than the stream size.
* src/base/ftsystem.c (ft_ansi_stream_io): Exit with error if
seeking a position larger than the stream size.
2010-06-25 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30261.
* src/pfr/pfrobjs.c (pfr_face_init): Reject fonts which contain
neither outline nor bitmap glyphs.
2010-06-25 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30254.
* src/cff/cffload.c (cff_index_get_pointers): Do sanity check for
first offset also.
2010-06-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Initial fix for Savannah bug #30248 and #30249.
* src/base/ftobjs.c (Mac_Read_POST_Resource): Check the error during
reading a PFB fragment embedded in LaserWriter PS font for Macintosh.
Reported by Robert Święcki.
2010-06-24 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30247.
* src/pcf/pcfread.c (pcf_get_metrics): Disallow (invalid) fonts with
zero metrics.
2010-06-24 Graham Asher <graham.asher@btinternet.com>
* src/smooth/ftgrays.c (gray_render_cubic): Fix algorithm.
The previous version was too aggressive, as demonstrated in
http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00020.html.
2010-06-24 Werner Lemberg <wl@gnu.org>
*/*: Use module specific error names where appropriate.
2010-06-24 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30236.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Improve check for pointer
to `cmap_table'.
2010-06-24 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30235.
* src/pfr/pfrgload.c (pfr_glyph_load_simple): Protect against
invalid indices if there aren't any coordinates for indexing.
2010-06-24 Werner Lemberg <wl@gnu.org>
[bdf]: Font properties are optional.
* src/bdf/bdflib.c (_bdf_readstream): Use special error code to
indicate a redo operation.
(_bdf_parse_start): Handle `CHARS' keyword here too and pass current
input line to `_bdf_parse_glyph'.
2010-06-23 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30220.
* include/freetype/fterrdef.h
(BDF_Err_Missing_Fontboundingbox_Field): New error code.
* src/bdf/bdflib.c (_bdf_parse_start): Check for missing
`FONTBOUNDINGBOX' field.
Avoid memory leak if there are multiple `FONT' lines (which is
invalid but doesn't hurt).
2010-06-21 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30168.
* src/pfr/pfrgload.c (pfr_glyph_load_compound): Limit the number of
subglyphs to avoid endless recursion.
2010-06-20 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30145.
* src/psaux/psobjs.c (t1_builder_add_contour): Protect against
`outline == NULL' which might happen in invalid fonts.
2010-06-19 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30135.
* src/bdf/bdflib.c (_bdf_list_join): Don't modify value in static
string `empty'.
(_bdf_parse_glyph): Avoid memory leak in case of error.
2010-06-15 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30108.
* src/autofit/afglobal.c (af_face_globals_compute_script_coverage):
Properly mask AF_DIGIT bit in comparison.
2010-06-11 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30106.
Point numbers for FreeType's implementation of hinting masks are
collected before the final number of points of a glyph has been
determined; in particular, the code for handling the `endchar'
opcode can reduce the number of points.
* src/pshinter/pshalgo.c (psh_glyph_find_strong_points): Assure that
`end_point' is not larger than `glyph->num_points'.
2010-06-11 Werner Lemberg <wl@gnu.org>
[cff]: Improve debugging output.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_hintmask>: Implement it.
2010-06-10 Graham Asher <graham.asher@btinternet.com>
ftgrays: Speed up rendering of small cubic splines.
* src/smooth/ftgrays.c (gray_render_cubic): Implement new,
simplified algorithm to find out whether the spline can be replaced
with two straight lines. See this thread for more:
http://lists.gnu.org/archive/html/freetype-devel/2010-06/msg00000.html
2010-06-09 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30082.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_callothersubr>: Protect against stack underflow.
2010-06-08 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30053.
* src/cff/cffparse.c (cff_parse_real): Handle border case where
`fraction_length' has value 10.
2010-06-07 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #30052.
This bug has been introduced with commit 2415cbf3.
* src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Protect
against endless loop in case of corrupted font header data.
2010-05-26 Werner Lemberg <wl@gnu.org>
Remove unused variable.
Found by Graham.
* src/autofit/afhints.c (af_glyph_hints_reload): Remove unused
variable `first' in first block.
2010-05-22 Werner Lemberg <wl@gnu.org>
Fix various memory problems found by linuxtesting.org.
* src/base/ftgxval.c (FT_TrueTypeGX_Free, FT_ClassicKern_Free),
src/base/ftotval.c (FT_OpenType_Free), src/base/ftpfr.c
(ft_pfr_check): Check `face'.
* src/base/ftobjs.c (FT_Get_Charmap_Index): Check `charmap' and
`charmap->face'.
(FT_Render_Glyph): Check `slot->face'.
(FT_Get_SubGlyph_Info): Check `glyph->subglyphs'.
2010-05-22 Werner Lemberg <wl@gnu.org>
autofit: Remove dead code.
Suggested by Graham.
* src/autofit/afhints.c (af_glyph_hints_compute_inflections):
Removed.
(af_glyph_hints_reload): Remove third argument.
Update all callers.
2010-05-21 Bram Tassyns <bramt@enfocus.be>
Fix Savannah bug #27987.
* src/cff/cffobjs.c (remove_subset_prefix): New function.
(cff_face_init): Use it to adjust `cffface->family_name'.
2010-05-20 Werner Lemberg <wl@gnu.org>
TrueType: Make FreeType ignore maxSizeOfInstructions in `maxp'.
Acroread does the same.
* src/truetype/ttgload.c (TT_Process_Composite_Glyph): Call
`Update_Max' to adjust size of instructions array if necessary and
add a rough safety check.
(load_truetype_glyph): Save `loader->byte_len' before recursive
call.
* src/truetype/ttinterp.h, src/truetype/ttinterp.c (Update_Max):
Declare it as FT_LOCAL.
2010-05-18 Hongbo Ni <hongbo@njstar.com>
Apply Savannah patch #7196.
* src/cff/cffgload.c (cff_slot_load): Prevent crash if CFF subfont
index is out of range.
2010-05-11 Werner Lemberg <wl@gnu.org>
* docs/formats.txt: Give pointer to PCF documentation.
Information provided by Alan Coopersmith
<alan.coopersmith@oracle.com>.
2010-05-10 Ken Sharp <ken.sharp@artifex.com>
Fix Savannah bug #29846.
Previously we discovered fonts which used `setcurrentpoint' to set
the initial point of a contour to 0,0. This caused FreeType to
raise an error, because the `setcurrentpoint' operator is only
supposed to be used with the results from an OtherSubr subroutine.
This was fixed by simply ignoring the error and carrying on.
Now we have found a font which uses setcurrentpoint to actually
establish a non-zero point for a contour during the course of a
glyph program. FWIW, these files may be produced by an application
called `Intaglio' on the Mac, when converting TrueType fonts to
Type 1.
The fix allows the new invalid behaviour, the old invalid behaviour
and real proper usage of the operator to work the same way as Adobe
interpreters apparently do.
(t1_decoder_parse_charstrings): Make `setcurrentpoint' use the top
two elements of the stack to establish unconditionally the current x
and y coordinates.
Make the `flex' subroutine handling (OtherSubr 0) put the current
x,y coordinates onto the stack, instead of two dummy uninitialised
values.
2010-04-14 Ken Sharp <ken.sharp@artifex.com>
Fix Savannah bug #29444.
* src/psaux/psobjs.c (t1_builder_start_point): Accept (invalid)
`lineto' immediately after `hsbw', in accordance with Acrobat, GS,
and others.
2010-04-14 Michał Cichoń <thedmd@artifexmundi.com>
Fix Savannah bug #27999.
* src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID): Only remove
selected entry, not all.
2010-04-06 Jonathan Kew <jfkthame@gmail.com>
Add overflow check to `fvar' table.
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Check axis and instance
count.
2010-04-05 Ken Sharp <ken.sharp@artifex.com>
Fix Savannah bug #29335.
* src/raster/ftraster.c (Line_Up): Use slow multiplication to
prevent overflow. This shouldn't have any serious impact on speed,
however.
2010-04-05 Werner Lemberg <wl@gnu.org>
Add new function `FT_Library_SetLcdFilterWeights'.
This is based on code written by Lifter
<http://unixforum.org/index.php?showuser=11691>. It fixes
FreeDesktop bug #27386.
* src/base/ftlcdfil.c (FT_Library_SetLcdFilterWeights): New
function.
* include/freetype/ftlcdfil.h: Updated.
* docs/CHANGES: Updated.
2010-04-01 John Tytgat <John.Tytgat@esko.com>
Fix Savannah bug #29404.
* src/truetype/ttgload.c: Revert change 2752bd1a (check on bit 1
of `head' table of TrueType fonts).
2010-03-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix `multi build' for Tytgat's CFF driver improvement.
* src/base/cffload.h (cff_index_get_name): Added.
2010-03-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Remove duplicated inclusion of `FT_OUTLINE_H' in ftobjs.c.
* src/base/ftobjs.c: Remove 2nd inclusion of `FT_OUTLINE_H'.
2010-03-11 Chris Liddell <chris.liddell@artifex.com>
Fix Savannah bug #27442.
* src/raster/ftraster.c (ft_black_reset): Fix `buffer_size'.
2010-03-09 Werner Lemberg <wl@gnu.org>
Remove unused variable.
Reported by Graham.
* src/cff/cffparse.c (cff_parse_real): Remove `rest'.
2010-03-02 John Tytgat <John.Tytgat@esko.com>
Improve CFF string (especially glyphname) lookup performance.
We do this by avoiding memory allocation and file I/O. This is
Savannah patch #7104.
* src/cff/cfftypes.h: Include PS cmaps service and
FT_INTERNAL_POSTSCRIPT_HINTS_H.
(CFF_SubFontRec): Remove `num_local_subrs'.
(CFF_FontRec): Add `num_strings', `strings', and `string_pool'
fields.
Remove `string_index' and `num_global_subrs' fields.
Use real types instead of `void' for `pshinter' and `psnames' fields.
* src/cff/cffload.c: Don't include PS cmaps service.
(cff_index_get_pointers): Add `pool' parameter which allows to
insert an extra NUL character for each String INDEX entry.
(cff_index_get_name): Make it a local function.
(cff_index_get_string): New function.
(cff_subfont_load): Updated.
(cff_font_load): Initialize `num_strings', `strings', and
`string_pool' fields in the `CFF_FontRec' structure.
(cff_index_get_sid_string): Use `cff_index_get_string' instead of
`cff_index_get_name'.
(cff_font_done): Updated.
* src/cff/cffload.h: Don't include PS cmaps service.
(cff_index_get_string): Added.
(cff_index_get_sid_string): Updated.
* src/cff/cffobjs.c: Don't include PS cmaps service and
FT_INTERNAL_POSTSCRIPT_HINTS_H.
(cff_size_get_globals_funcs, cff_slot_init): Updated.
(cff_face_init): Follow `cff_index_get_name',
`cff_index_get_string', and `cff_index_get_sid_string' changes.
* src/cff/cffcmap.c (cff_sid_free_glyph_name): Removed.
(cff_sid_to_glyph_name): Use `cff_index_get_cid_string'.
(cff_cmap_unicode_init): Updated.
* src/cff/cffdrivr.c: Don't include PS cmap service.
(cff_get_glyph_name): Avoid unnecessary lookup for POSTSCRIPT_CMAPS
service.
(cff_get_glyph_name, cff_ps_get_font_info, cff_get_ros): Follow API
`cff_index_get_sid_string' change.
(cff_get_name_index): Use `cff_index_get_string' instead of
`cff_index_get_name'.
* src/cff/cffgload.c: Don't include FT_INTERNAL_POSTSCRIPT_HINTS_H.
(cff_decoder_init, cff_decoder_prepare): Updated.
2010-02-27 Werner Lemberg <wl@gnu.org>
Simplify code.
Suggested by Behdad.
* src/base/ftobjs.c (FT_Get_First_Char): Don't use a loop since we
call FT_Get_Next_Char anyway if necessary.
2010-02-26 Behdad Esfahbod <behdad@behdad.org>
Improve handling of invalid glyph indices in char->index functions.
* src/base/ftobjs.c (FT_Get_First_Char, FT_Get_Next_Char): Use a
loop.
2010-02-18 Chris Liddell <chris.liddell@artifex.com>
Fix Savannah bug #28905.
Initialize phantom points before calling the incremental interface
to update glyph metrics.
* src/truetype/ttgload.c (tt_get_metrics_incr_overrides)
[FT_CONFIG_OPTION_INCREMENTAL]: New function, split off from...
(tt_get_metrics): This.
Updated.
(load_truetype_glyph): Use tt_get_metrics_incr_overrides.
2010-02-13 Werner Lemberg <wl@gnu.org>
* Version 2.3.12 released.
==========================
Tag sources with `VER-2-3-12'.
* docs/CHANGES: Updated.
* docs/VERSION.DLL: Update documentation and bump version number to
2.3.12.
* README, Jamfile (RefDoc),
builds/win32/vc2005/freetype.vcproj, builds/win32/vc2005/index.html,
builds/win32/vc2008/freetype.vcproj, builds/win32/vc2008/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualc/index.html, builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj,
builds/win32/visualce/index.html,
builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2005-ce/index.html,
builds/wince/vc2008-ce/freetype.vcproj,
builds/wince/vc2008-ce/index.html: s/2.3.11/2.3.12/, s/2311/2312/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 12.
* builds/unix/configure.raw (version_info): Set to 10:0:4.
2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve autotool version checking to work with beta releases.
* autogen.sh (check_tool_version): Improve the extraction of version
number from "tool --version" output. Some beta releases of
autotools have extra strings before version number.
2010-02-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix overallocating bug in FT_Outline_New_Internal().
* src/base/ftoutln.c (FT_Outline_New_Internal): The length of
FT_Outline->points[] should be numPoints, not 2 * numPoints.
Found by Paul Messmer, see
http://lists.gnu.org/archive/html/freetype-devel/2010-02/msg00003.html
2010-02-10 Ken Sharp <ken.sharp@artifex.com>
Really fix Savannah bug #28678 (part 2).
Since we consider `sbw' for the horizontal direction only, we still have
to synthesize vertical metrics if the user wants to use the vertical
writing direction.
* src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
(cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph):
Synthesize vertical metrics (only) if FT_LOAD_VERTICAL_LAYOUT is
set.
2010-02-10 Ken Sharp <ken.sharp@artifex.com>
Really fix Savannah bug #28678 (part 1).
After long discussion, we now consider the character width vector
(wx,wy) returned by the `sbw' Type 1 operator as being part of *one*
direction only. For example, if you are using the horizontal
writing direction, you get the horizontal and vertical components of
the advance width for this direction. Note that OpenType and CFF fonts
don't have such a vertical component; instead, the GPOS table can be
used to generate two-dimensional advance widths (but this isn't
handled by FreeType).
* include/freetype/ftincrem.h (FT_Incremental_MetricsRec): Add
`advance_v' field to hold the vertical component of the advance
value.
* src/truetype/ttgload.c (tt_get_metrics), src/cff/cffgload.c
(cff_slot_load), src/type1/t1gload.c
(T1_Parse_Glyph_And_Get_Char_String), src/cid/cidgload.c
(cid_load_glyph): Use it.
2010-02-08 Werner Lemberg <wl@gnu.org>
* devel/ftoption.h [FT_CONFIG_OPTION_PIC]: Define.
2010-02-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Prevent NULL pointer dereference passed to FT_Module_Requester.
* src/sfnt/sfdriver.c (sfnt_get_interface): Don't use `module'.
* src/psnames/psmodule.c (psnames_get_interface): Ditto.
* src/cff/cffdrivr.c (cff_get_interface): Check NULL `driver'.
* src/truetype/ttdriver.c (tt_get_interface): Ditto.
2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix memory leaks in previous patch.
* src/sfnt/sfobjs.c (sfnt_load_face): Don't overwrite the strings
allocated for face->root.family_name and style_name.
2010-01-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
New parameters for FT_Open_Face() to ignore preferred family names.
Preferred family names should be used for legacy systems that
can hold only a few faces (<= 4) for a family name. Suggested by
Andreas Heinrich.
http://lists.gnu.org/archive/html/freetype/2010-01/msg00001.html
* include/freetype/ftsnames.h (FT_PARAM_TAG_IGNORE_PREFERRED_FAMILY,
FT_PARAM_TAG_IGNORE_PREFERRED_SUBFAMILY): Define.
* src/sfnt/sfobjs.h (sfnt_load_face): Check the arguments and
ignore preferred family and subfamily names if requested.
2010-01-27 Ken Sharp <ken.sharp@artifex.com>
Fix Savannah bug #28678.
* src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
(cid_load_glyph): Handle vertical metrics correctly.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String): Handle
vertical metrics correctly.
(T1_Load_Glyph): Don't synthesize vertical metrics.
2010-01-14 Werner Lemberg <wl@gnu.org>
Make FT_Set_Transform work if no renderer is available.
* src/base/ftobjs.c (FT_Load_Glyph): Apply `standard' transformation
if no renderer is compiled into the library.
2010-01-14 Werner Lemberg <wl@gnu.org>
Fix compilation warning.
* src/base/ftbase.h: s/LOCAL_DEF/LOCAL/.
* src/base/ftobjc.s: Include ftbase.h conditionally.
2010-01-11 Kwang Yul Seo <skyul@company100.net>
Provide inline assembly code for RVCT compiler.
This is Savannah patch #7059.
* include/freetype/config/ftconfig.h (FT_MULFIX_ASSEMBLER,
FT_MulFix_arm) [__CC_ARM || __ARM_CC]: Define.
2010-01-08 Ken Sharp <ken.sharp@artifex.com>
Fix Savannah bug #28521.
Issue #28226 involved a work-around for a font which used the
`setcurrentpoint' operator in an invalid way; this operator is only
supposed to be used with the result of OtherSubrs, and the font used
it directly. The supplied patch removed the block of code which
checked this usage entirely.
This turns out to be a Bad Thing. If `setcurrentpoint' is being
used correctly it should reset the flex flag in the decoder. If we
don't do this then the flag never gets reset and we omit any further
contours from the glyph (at least until we close the path or
similar).
* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
<op_setcurrentpoint>: Handle `flex_state' correctly.
2010-01-05 Werner Lemberg <wl@gnu.org>
Apply reports from clang static analyzer.
* src/lzw/ftlzw.c (ft_lzw_file_init), src/base/ftstroke.c
(FT_Stroker_ParseOutline), src/base/ftsynth.c
(FT_GlyphSlot_Embolden): Remove dead code.
* src/base/ftpatent.c (_tt_check_patents_in_table): Initialize
`offset_i' and `length_i'.
2010-01-05 Ralph Giles <giles@ghostscript.com>
Enable the incremental font interface by default.
Ghostscript requires the incremental font interface for handling
some Postscript documents. It is moving to using FreeType as its
primary renderer; supporting this in the default build makes it
Ghostscript to be linked against the system FreeType when one is
available.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_INCREMENTAL):
Uncomment.
2010-01-05 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #28395.
* src/truetype/ttdriver.c (Load_Glyph), src/type1/t1gload.c
(T1_Loada_Glyph): Don't check `num_glyphs' if incremental interface
is used.
2010-01-05 Ken Sharp <ken.sharp@artifex.com>
Make Type 1 `seac' operator work with incremental interface.
This fixes Savannah bug #28480.
* src/psaux/t1decode.c (t1operator_seac): Don't check `glyph_names'
if incremental interface is used.
2010-01-04 Ken Sharp <ken.sharp@artifex.com>
Make incremental interface work with TrueType fonts.
This fixes Savannah bug #28478.
* src/truetype/ttgload.c (load_truetype_glyph): Don't check
`glyf_offset' if incremental interface is used.
2009-12-31 Lars Abrahamsson <wonko@opera.com>
Make compilation with FT_CONFIG_OPTION_PIC work again.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap) [FT_CONFIG_OPTION_PIC]:
Declare `library' for FT_BITMAP_GLYPH_CLASS_GET.
* src/base/ftinit.c (ft_destroy_default_module_classes,
ft_create_default_module_classes): Use proper casts (needed for C++
compilation).
* src/sfnt/ttcmap.c (tt_cmap13_class_rec): Use FT_DEFINE_TT_CMAP.
2009-12-22 Marc Kleine-Budde <mkl@pengutronix.de>
Make freetype-config aware of $SYSROOT.
This is Savannah patch #7040.
* builds/unix/freetype-config.in: Decorate with ${SYSROOT} where
appropriate.
2009-12-20 Werner Lemberg <wl@gnu.org>
Fix compiler warning.
Reported by Sean.
* src/base/ftdbgmem.c [!FT_DEBUG_MEMORY]: ANSI C doesn't like empty
source files; however, some compilers warn about an unused variable
declaration. This is now replaced with a typedef.
2009-12-18 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #28320.
There exist corrupt, subsetted fonts (embedded in PDF files) which
contain a private dict that ends with an unterminated floating point
number (no operator following). We now ignore this error (as
acrobat does).
* src/cff/cffparse.c (cff_parser_run): Don't emit a syntax error for
unterminated floating point numbers.
2009-12-16 Werner Lemberg <wl@gnu.org>
Really fix compiler warnings.
Reported by Sean.
* src/truetype/ttgxvar.c (GX_PT_POINTS_ARE_WORDS,
GX_PT_POINT_RUN_COUNT_MASK): Convert enum values to macros.
2009-12-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve configure.raw to copy some options from CFLAGS to LDFLAGS.
The linker of Mac OS X 10.6 is sensitive to the architecture. If
the architectures are specified explicitly for the C compiler, the
linker requires the architecture specifications too.
* builds/unix/configure.raw: Replace `-isysroot' option parser by
more generic argument parser.
2009-12-15 Werner Lemberg <wl@gnu.org>
Fix compiler warnings.
Reported by Sean.
* src/truetype/ttgxvar.c (ft_var_readpackeddeltas): Fix counter data
type.
2009-12-14 Ken Sharp <ken.sharp@artifex.com>
Ignore invalid `setcurrentpoint' operations in Type 1 fonts.
This fixes Savannah bug #28226.
At least two wild PostScript files of unknown provenance contain
Type 1 fonts, apparently converted from TrueType fonts in earlier
PDF versions of the files, which use the `setcurrentpoint' operator
inappropriately.
FreeType currently throws an error in this case, but Ghostscript and
Adobe Distiller both accept the fonts and ignore the problem. This
commit #ifdefs out the check so PostScript interpreters using
FreeType can render these files.
The specification says `setcurrentpoint' should only be used to set
the point after a `Subr' call, but these fonts use it to set the
initial point to (0,0). Unnecessarily so, as they correctly use an
`hsbw' operation which implicitly sets the initial point.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
<op_setcurrentpoint>: Comment out code.
2009-12-14 Bram Tassyns <bramt@enfocus.be>
Fix parsing of /CIDFontVersion.
This fixes Savannah bug #28287.
* src/cid/cidtoken.h: `cid_version' in CID_FaceInfoRec (in
t1tables.h) is of type FT_Fixed.
2009-12-14 Werner Lemberg <wl@gnu.org>
Trace glyph index in CID module.
Suggested in Savannah patch #7023.
* src/cid/cidgload.c (cid_load_glyph): Add tracing message.
2009-12-03 Werner Lemberg <wl@gnu.org>
Fix compiler warnings.
* src/truetype/ttgload.c (tt_get_metrics): Put `Exit' label into the
proper preprocessor conditional.
* src/pfr/pfrobjs.c (pfr_slot_load): Pacify gcc.
2009-11-25 John Tytgat <John.Tytgat@esko.com>
Better handling of start of `eexec' section.
This fixes Savannah bug #28090.
* src/type1/t1parse.c (T1_Get_Private_Dict): Skip all whitespace
characters before start of `eexec' section.
2009-11-20 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #27742.
* src/base/ftstroke.c (ft_stroker_outside): Avoid silent division by
zero, using a threshold for `theta'.
2009-11-20 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #28036.
* src/type1/t1afm.c (t1_get_index): Fix comparison.
2009-11-16 Werner Lemberg <wl@gnu.org>
Fix compiler warnings.
Reported by Kevin Blenkinsopp <arqon@promode.org>.
* src/sfnt/ttload.c (check_table_dir): Use proper data type.
2009-11-15 Werner Lemberg <wl@gnu.org>
Really fix FreeDesktop bug #21197.
This also fixes Savannah bug #28021.
* src/autofit/aflatin.c (af_latin_metrics_check_digits),
src/autofit/aflatin2.c (af_latin2_metrics_check_digits): Fix loop.
2009-11-15 Werner Lemberg <wl@gnu.org>
Add tracing messages for advance values.
* src/base/ftobjs.c (FT_Load_Glyph), src/truetype/ttgload.c
(TT_Get_HMetrics, TT_Get_VMetrics): Do it.
2009-11-08 Werner Lemberg <wl@gnu.org>
Fix compiler warning.
Reported by Jeremy Manson <jeremy.manson@gmail.com>.
* src/truetype/ttgload.c (load_truetype_glyph): Initialize `error'.
2009-11-04 Werner Lemberg <wl@gnu.org>
Remove compiler warning.
Reported by Sean McBride <sean@rogue-research.com>.
* src/tools/apinames.c (read_header_file)<STATE_TYPE>: Use a cast to
`int', as specified in the printf(3) man page.
2009-11-04 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #27921.
* src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
(cid_face_init), src/type1/t1afm.c (T1_Read_Metrics),
src/type1/t1objs.c (T1_Face_Init): Don't use unsigned constant
values for rounding if the argument can be negative.
2009-11-03 Bram Tassyns <bramt@enfocus.be>
Add basic support for Type1 charstrings in CFF.
This fixes Savannah bug #27922.
* src/cff/cffgload.c (CFF_Operator, cff_argument_counts): Handle
`seac', `sbw', and `setcurrentpoint' opcodes.
(cff_compute_bias): Add parameter to indicate the charstring type.
Update all callers.
(cff_operator_seac): Add parameter for side bearing.
(cff_decoder_parse_charstrings): Updated for more Type1 support.
2009-11-03 Werner Lemberg <wl@gnu.org>
Return correct `linearHoriAdvance' value for embedded TT bitmaps too.
Reported by Jeremy Manson <jeremy.manson@gmail.com>.
src/truetype/ttgload.c (load_truetype_glyph): Add parameter to
quickly load the glyph header only.
Update all callers.
(tt_loader_init): Add parameter to quickly load the `glyf' table
only.
Update all callers.
(TT_Load_Glyph): Compute linear advance values for embedded bitmap
glyphs too.
2009-11-03 Werner Lemberg <wl@gnu.org>
Improve code readability.
* src/ttgload.c (load_truetype_glyph): Move metrics calculation
to...
(tt_get_metrics): This new function.
2009-10-26 Bram Tassyns <bramt@enfocus.be>
Fix Savannah bug #27811.
* src/truetype/ttxgvar.c (ft_var_readpackeddeltas): Fix
signed/unsigned mismatch.
2009-10-19 Ning Dong <flintning@163.com>
Fix handling of `get' and `put' CFF instructions.
* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_get,
cff_op_put>: Appendix B of Adobe Technote #5177 limits the number of
elements for the `get' and `put' operators to 32.
* src/cff/cffgload.h (CFF_MAX_TRANS_ELEMENTS): Define.
(CFF_Decoder): Use it for `buildchar' and remove `len_buildchar'.
2009-10-18 Werner Lemberg <wl@gnu.org>
Fix handling of `dup' CFF instruction.
Problem and solution reported by Ning Dong <flintning@163.com>.
* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_dup>:
Increase `args' by 2, not 1.
2009-10-10 Werner Lemberg <wl@gnu.org>
* Version 2.3.11 released.
==========================
Tag sources with `VER-2-3-11'.
* docs/VERSION.DLL: Update documentation and bump version number to
2.3.11.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.10/2.3.11/, s/2310/2311/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 11.
* builds/unix/configure.raw (version_info): Set to 9:22:3.
2009-10-10 Werner Lemberg <wl@gnu.org>
* docs/CHANGES, docs/release: Updated.
2009-10-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/pcf/pcfread.c (pcf_get_properties): Fix a bug in the nprops
truncation. Reported by Martin von Gagern and Peter Volkov.
https://bugs.gentoo.org/288357 and https://bugs.gentoo.org/288256
2009-10-06 Werner Lemberg <wl@gnu.org>
* Version 2.3.10 released.
==========================
Tag sources with `VER-2-3-10'.
* builds/toplevel.mk (major, minor, patch): Fix regexp to allow more
than a single digit.
(dist): We now use git.
* docs/VERSION.DLL: Update documentation and bump version number to
2.3.10.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.9/2.3.10/, s/239/2310/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 10.
* builds/unix/configure.raw (version_info): Set to 9:21:3.
2009-10-06 Werner Lemberg <wl@gnu.org>
Fix `make multi'.
* src/cache/ftccache.c, src/cache/ftcsbits.c (FT_COMPONENT): Define.
* src/sfnt/sfdriver.c: Include FT_INTERNAL_DEBUG_H.
2009-09-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache] Fix Savannah bug #27441, clean up Redhat bugzilla #513582.
Tricky casts in FTC_{CACHE,GCACHE,MRULIST}_LOOKUP_CMP() are removed.
Now these functions should be called with FTC_Node or FTC_MruNode
variable, and the caller should cast them to appropriate pointers to
concrete data. These tricky casts can GCC-4.4 optimizer (-O2)
confused and the crashing binaries are generated.
* src/cache/ftcmru.h (FTC_MRULIST_LOOKUP_CMP): Drop tricky cast.
Now the 4th argument `node' of this function should be typed as
FTC_MruNode.
* src/cache/ftcglyph.h (FTC_GCACHE_LOOKUP_CMP): For inline
implementation, new temporal variable FTC_MruNode `_mrunode' to take
the pointer from FTC_MRULIST_LOOKUP_CMP(). For non-inline
implementation, tricky cast is dropped.
* src/cache/ftcmanag.c (FTC_SIZE_NODE): New macro casting
to FTC_SizeNode.
(FTC_Manager_LookupSize): Replace FTC_SizeNode `node' by FTC_MruNode
`mrunode', and FTC_SIZE_NODE() is inserted.
(FTC_FACE_NODE): New macro casting to FTC_FaceNode.
(FTC_Manager_LookupFace) Replace FTC_FaceNode `node' by FTC_MruNode
`mrunode', and FTC_FACE_NODE() is inserted.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Change the type of
`node' from FTC_INode to FTC_Node. Extra casting macro FTC_NODE()
is dropped.
(FTC_ImageCache_LookupScaler): Ditto.
(FTC_SBitCache_Lookup): Change the type of `node' from FTC_SNode to
FTC_Node. Extra casting macro FTC_NODE() is dropped. FTC_SNODE()
is inserted.
(FTC_SBitCache_LookupScaler): Ditto.
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the type of
`node' from FTC_CMapNode to FTC_Node. Extra casting macro
FTC_NODE() is dropped, FTC_CMAP_NODE() is inserted.
2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache, psaux, type1] Fix for multi build.
In multi build, some cpp functions are left as unresolved symbols.
* src/cache/ftcbasic.c: Include FT_INTERNAL_DEBUG_H for FT_TRACE1().
* src/psaux/t1decode.c: Include FT_INTERNAL_CALC_H for
FIXED_TO_INT().
* src/type1/t1gload.c: Ditto.
* src/type1/t1objs.c: Ditto.
2009-09-25 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[autofit] Fix for multi build.
* src/autofit/afmodule.h: Include FT_INTERNAL_OBJECTS_H to use
FT_DECLARE_MODULE() macro in multi build.
* src/autofit/aflatin.c: Include <ft2build.h> to handle
FT_ADVANCES_H correctly in multi build.
2009-09-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[cache] Check the face filled by FTC_Manager_LookupFace().
* src/cache/ftcbasic.c (ftc_basic_family_get_count): Return
immediately if FTC_Manager_LookupFace() fills face by NULL. Such
case can occur when the code is optimized by GCC-4.2.x.
2009-09-23 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2009-09-12 Werner Lemberg <wl@gnu.org>
[raster] Fix 5-levels grayscale output.
This was broken since version 2.3.0.
* src/raster/ftraster.c (count_table): Use pre-2.3.0 values (which
were then computed dynamically).
(Vertical_Gray_Sweep_Step): Updated.
(ft_black_render): Initialize `worker->gray_lines' (problem found by
valgrind).
(FT_RASTER_OPTION_ANTI_ALIASING, DEBUG_RASTER): Dont' #undef, just
comment out.
2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve configure.raw for cross build.
* builds/unix/configure.raw: Remove temporal files created by the
suffix checking for CC_BUILD. Set XX_ANSIFLAGS and XX_CFLAGS when
cross compiler is GCC. AC_PROG_CC checks whether the cross compiler
is GCC, its result is stored in GCC.
2009-09-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[BDF] Modify hash API to take size_t value instead of void *.
The hash API in BDF driver is designed to be generic, it takes
void * typed data. But BDF driver always gives an unsigned long
integer (the index to a property). To reduce non-essential
casts from unsigned long to void* and from void* to unsigned
long, the hash API is changed to take size_t integer.
The issue of incompatible cast between unsigned long and void*
on LLP64 platform is reported by NightStrike from MinGW-Win64
project. See
http://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
* src/bdf/bdf.h: The type of hashnode->data is changed from
void* to size_t.
* src/bdf/bdflib.c (hash_insert): Get size_t data, instead of
void* data.
(bdf_create_property): Get the name length of new property by
size_t variable, with a cut-off at FT_ULONG_MAX.
(_bdf_set_default_spacing): Get the name length of the face by
size_t variable, with a cut-off at 256.
(bdf_get_property): Get the property id by size_t variable to
reduce the casts between 32-bit prop ID & hashnode->data during
simple copying.
(_bdf_add_property): Ditto.
(_bdf_parse_start): Calculate the index to the property array
by size_t variable.
(bdf_get_font_property): Drop a cast to unsigned long.
2009-09-10 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
[Win64] Improve the computation of random seed from stack address.
On LLP64 platform, the conversion from pointer to FT_Fixed need
to drop higher 32-bit. Explict casts are required. Reported by
NightStrike from MinGW-w64 project. See
http://lists.gnu.org/archive/html/freetype/2009-09/msg00000.html
* src/cff/cffgload.c: Convert the pointers to FT_Fixed explicitly.
* src/psaux/t1decode.c: Ditto.
2009-09-03 Werner Lemberg <wl@gnu.org>
[raster] Improvements for stand-alone mode.
* src/raster/rules.mk: Don't handle ftmisc.h. It is needed for
stand-alone mode only.
* src/raster/ftmisc.h (FT_MemoryRec , FT_Alloc_Func, FT_Free_Func,
FT_Realloc_Func): Copy declarations from ftsystem.h.
2009-09-02 Bram Tassyns <bramt@enfocus.be>
Improve vertical metrics calculation (Savannah bug #27364).
The calculation of `vertBearingX' is not defined in the OTF font
spec so FreeType does a `best effort' attempt. However, this value
is defined in the PDF and PostScript specs, and that algorithm is
better than the one FreeType currently uses:
FreeType: Use the middle of the bounding box as the X coordinate
of the vertical origin.
Adobe PDF spec: Use the middle of the horizontal advance vector as
the X coordinate of the vertical origin.
FreeType's algorithm goes wrong if you have a really small glyph
(like the full-width, circle-like dot at the end of the sentence, as
used in CJK scripts) with large bearings. With the FreeType
algorithm this dot gets centered on the baseline; with the PDF
algorithm it gets the correct location (in the top right). Note
that this is a serious issue, it's like printing the dot at the end
of a Roman sentence at the center of the textline instead of on the
baseline like it should. So i believe the PDF spec's algorithm
should be used in FreeType as well.
The `vertBearingY' value for such small glyphs is also very strange
if no `vmtx' information is present, since the height of the bbox is
not representable for the height of the glyph visually (the
whitespace up to the baseline is part of the glyph). The fix also
includes some code for a better estimate of `vertBearingY'.
* src/base/ftobjs.c (ft_synthesize_vertical_metrics): `vertBearingX'
is now calculated as described by the Adobe PDF Spec. Estimate for
`vertBearingY' now works better for small glyphs completely above or
below the baseline into account.
* src/cff/cffgload.c (cff_slot_load): `vertBearingX' is now
calculated as described by the Adobe PDF Spec. Vertical metrics
information was always ignored when FT_CONFIG_OPTION_OLD_INTERNALS
was not defined.
* src/truetype/ttgload.c (compute_glyph_metrics): `vertBearingX' is
now calculated as described by the Adobe PDF Spec.
2009-09-01 John Tytgat <John.Tytgat@esko.com>
Fix custom cmap for empty Type 1 font (Savannah bug #27294).
* include/freetype/internal/t1types.h (T1_EncodingRecRec_): Update
comment to reflect revised code_last meaning.
* src/type1/t1load.c (T1_Open_Face), src/type42/t42objs.c
(T42_Open_Face): Assign max_char as highest character code + 1 and
use this for T1_EncodingRecRec_::code_last.
* src/psaux/t1cmap.c (t1_cmap_custom_init): Follow revised
T1_EncodingRecRec_::code_last meaning.
2009-08-25 Werner Lemberg <wl@gnu.org>
Fix rendering of horizontally compressed CFFs.
Bug reported by Ivan Nincic <inincic@pdftron.com>.
* src/cff/cffgload.c (cff_slot_load): Thinko: Check `xx' element of
`font_matrix' also.
* docs/CHANGES: Updated.
2009-08-03 suyu0925@gmail.com
Don't call `ft_fseek' every time when executing `ft_fread'.
* src/base/ftstream.c (FT_Stream_Seek), src/base/ftsystem.c
(ft_ansi_stream_io): Implement it.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Cast a charcode to 32-bit in cmap format 14 parser.
* src/sfnt/ttcmap.c (tt_cmap14_char_var_index,
tt_cmap14_char_var_isdefault, tt_cmap14_char_variants,
tt_cmap14_variant_chars): Correct mismatches from
FT_CMap_CharVarIndexFunc prototype, FT_ULong arguments
are replaced by FT_UInt32 arguments.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Cast a charcode to 32-bit in cmap format 12 parser.
* src/sfnt/ttcmap.c (tt_cmap12_char_next):
Insert explicit cast from FT_UFast to FT_UInt32
for return value.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Fix a few casts to FT_Int32 value.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings):
Fix a few casts setting `value' from FT_Long to FT_Int32,
because `value' is typed as FT_Int32 since 2009-06-22.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Fix a data type mismatching with its source.
* src/sfnt/ttcmap.c (tt_cmap13_char_next): Fix the
type of `gindex' from FT_ULong to FT_UInt because
it is set by FT_UInt tt_cmap13_char_map_binary() or
TT_CMap13->cur_gindex.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Extend a few local variables to load 32-bit values.
* src/sfnt/ttkern.c (tt_face_load_kern): Extend `count'
and `kern' to load 32-bit values.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pfr: Extend `num_aux' to take 32-bit value.
* src/pfr/pfrload.c (pfr_phy_font_load): Extend
`num_aux' to load 32-bit value.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Truncate FT_ULong `nprops' to fit to int PCF_Face->nprops.
* src/pcf/pcfread.c (pcf_get_properties): Load `nprops'
as FT_ULong value from PCF file, but truncate it as
int to fit PCF_Face->nprops. The number of truncated
properties is shown in the trace message.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Extend a few local variables to reduce the casts.
* src/gxvalid/gxvmorx.c (gxv_morx_subtables_validate):
Extend `type' and `rest' to take FT_ULong values.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Extend `settingTable' to take 32-bit offset.
* src/gxvalid/gxvfeat.c (gxv_feat_name_validate):
Extend `settingTable' to take 32-bit offset.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
autofit: Cast FT_Long glyph_count to compare with FT_UInt GID.
* src/autofit/afglobal.c (af_face_globals_is_digit,
af_face_globals_compute_script_coverage): Cast FT_Long
globals->glyph_count to FT_ULong, to compare with FT_UInt
gindex.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Exclude 16-bit system in invalid pitch/height check.
* src/smooth/ftsmooth.c (ft_smooth_render_generic):
pitch and height are typed as FT_UInt but checked to fit
16-bit range, to avoid the overflows. On 16-bit system,
this checking inserts a conditional that never occurs.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Type large constants > 0x7FFF as long for 16-bit systems.
* src/cff/cffload.c (cff_charset_load): Type large
constants > 0x7FFF as long, because normal constants
are typed signed integer that is less than 0x8000 on
16-bit systems.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
base: Remove an unused variable.
* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove an
unused variable `library'. glyph->library is used.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Check higher bits in flags for non ILP32 systems.
4 public functions ought to take FT_ULong flags, but take
FT_UInt flags. To keep binary compatibility, we drop higher
bits on non ILP32 platforms,
ILP64 systems: No drop occurs.
LP64 systems: Higher bits are not used.
16-bit systems: Drop can occur.
See
http://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00065.html
These functions will be refined to take FT_ULong flags in
next bump with incompatible API change.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup):
Check `flags' in `type', the 2nd argument.
(FTC_SBitCache_Lookup): Ditto.
(FTC_ImageCache_LookupScaler): Check `load_flags',
the 3rd argument.
(FTC_SBitCache_LookupScaler): Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Ignore invalid GIDs in glyph name lookup.
* include/freetype/internal/fttrace.h:
New trace module for sfdriver.c is added.
* src/sfnt/sfdriver.c (sfnt_get_name_index):
Restrict glyph name lookup to FT_UInt GID.
Genuine TrueType can hold 16-bit glyphs.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Fix a comparison between FT_Long and FT_ULong.
* src/pcf/pcfread.c (pcf_get_bitmaps): Return an error
if PCF_Face->nemetrics is negative.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Guarantee `nFeatureFlags' size up to 32-bit.
* src/gxvalid/gxvmort.c (gxv_mort_featurearray_validate):
Extend the 3rd argument `nFeatureFlags' to FT_ULong.
* src/gxvalid/gxvmort.h: Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Insert explicit cast for LP64 system.
* src/sfnt/ttkern.c (tt_face_load_kern): Insert
cast from unsigned long to FT_UInt32.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Guarantee `just' table size upto 32-bit.
* src/gxvalid/gxvjust.c (gxv_just_validate):
The type of `offset' is changed from FT_UInt to
FT_Offset, for 16-bit platforms.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Guarantee `trak' table size upto 32-bit.
* src/gxvalid/gxvtrak.c (gxv_trak_validate):
The type of `offset' is changed from FT_UInt to
FT_Offset, for 16-bit platforms.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
type1: Fix a data type mismatching with its source.
* include/freetype/internal/t1types.h: The type of
T1_Face->buildchar is matched with T1_Decorder->top.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pfr: Fix a data type mismatching with its source.
* src/pfr/pfrtypes.h: The type of PFR_KernItem->offset
is extended from FT_UInt32 to FT_Offset, because it is
calculated with the pointer difference, in
pfr_extra_item_load_kerning_pairs().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pfr: Fix a data type mismatching with its source.
* src/pfr/pfrtypes.h: The type of PFR_PhysFont->chars_offset
is extended from FT_UInt32 to FT_Offset, because it is
calculated with the pointer difference in pfr_phy_font_load().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pfr: Fix a data type mismatching with its source.
* src/pfr/pfrtypes.h: The type of PFR_PhyFont->bct_offset
is extended from FT_UInt32 to FT_Long, because it is
loaded by FT_STREAM_POS() in pfr_phy_font_load().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Improve the format in debug message.
* src/smooth/ftgrays.c (gray_dump_cells): Improve the
format specifications to dump variables.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Fix a data type mismatching with its source.
* src/sfnt/sfobjs.c (sfnt_load_face): The type of
local `flags' is matched with FT_Face->face_flags.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Fix a data type mismatching with its source.
* include/freetype/internal/psaux.h: The type of
T1_DecorderRec.buildchar is matched with
T1_DecorderRec.top.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend TrueType GX packed deltas to FT_Offset.
* src/truetype/ttgxvar.c (ft_var_readpackeddeltas):
The type of 2nd argument `delta_cnt' is changed from
FT_Int to FT_Offset, because its source can be cvt
table size calculated from stream position.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend mmvar_len to hold size_t values.
* src/truetype/ttgxvar.h: The type of
GX_BlendRec.mmvar_len is changed from FT_Int to
FT_Offset, because TT_Get_MM_Var() calculates it
by sizeof() results.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Check invalid function number in IDEF instruction.
* src/truetype/ttinterp.c (Ins_IDEF): Check
if the operand fits to 8-bit opcode limitation.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Check invalid function number in FDEF instruction.
* src/truetype/ttinterp.c (Ins_FDEF): Check
if the operand fits 16-bit function number.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Truncate the deltas of composite glyph at 16-bit values.
* src/truetype/ttgload.c (load_truetype_glyph):
Insert cast from FT_Long (deltas[i].{x,y}) to
FT_Int16 in the summation of deltas[] for composite
glyphs. Because deltas[i] is typed as FT_Pos,
its component x, y are typed as FT_Long, but
their sources are always FT_Int16 when they are
loaded by ft_var_readpackeddeltas(). However,
the limitation about the summed deltas is unclear.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Truncate the instructions upto 16-bit per a glyph.
* src/truetype/ttgload.c (TT_Hint_Glyph): Truncate
the instructions upto 16-bit length per a glyph.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Cast the numerical operands to 32-bit for LP64 systems.
* src/truetype/ttinterp.c (Ins_SPHIX, INS_MIAP,
Ins_MIRP): Insert cast from long (args[], the
operands passed to TrueType operator) to FT_Int32
(the argument of TT_MulFix14()).
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Cast the project vector to 32-bit for LP64 system.
* src/truetype/ttinterp.c (Project, DualProject):
Insert casts from FT_Pos (the arguments `dx', `dy')
to FT_UInt32 (the argument to TT_DotFix14()).
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Cast the scaling params to 32-bit for LP64 system.
* src/truetype/ttgload.c (TT_Process_Composite_Component):
Insert casts from long (return value of FT_MulFix()) to
FT_Int32 (the argument to FT_SqrtFixed()).
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Cast a character code to FT_UInt32 for LP64 system.
* src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
tt_cmap14_variants, tt_cmap14_char_variants,
tt_cmap14_def_char_count, tt_cmap14_get_def_chars,
tt_cmap14_get_nondef_chars, tt_cmap14_variant_chars)
Insert casts when FT_UInt32 variable is loaded by
TT_NEXT_{UINT24|ULONG}. Because most of them are
compared with FT_UInt32 values in public API, replacing
FT_UFast is not recommended.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Cast a character code to FT_UInt32 for LP64 system.
* src/sfnt/ttcmap.c (tt_cmap4_init, tt_cmap4_next):
Insert the casts from unsigned long constant to
FT_UInt32.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Extend TT_BDF->strings_size to FT_ULong for huge BDF.
* include/freetype/internal/tttypes.h: The type
of TT_BDF->string_size is extended from FT_UInt32
to FT_ULong, because BDF specification does not
restrict the length of string.
* src/sfnt/ttbdf.c: The scratch variable `strings'
to load TT_BDF->string_size is matched with
TT_BDF->string_size.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Handle the string length by FT_Offset variables.
* src/psaux/afmparse.c (afm_parser_next_key,
afm_tokenize, afm_parse_track_kern,
afm_parse_kern_pairs, afm_parse_kern_data,
afm_parser_skip_section, afm_parser_parse):
The length of key is handled by FT_Offset,
instead of FT_UInt. Although the length of
PostScript strings or name object is 16-bit,
AFM_STREAM_KEY_LEN() calculates the length
from the pointer difference.
* src/psaux/afmparse.h (afm_parser_next_key):
Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Fix some data types mismatching with their sources.
* src/pcf/pcfread.c (pcf_get_bitmaps): The types
of `nbitmaps', `i', `sizebitmaps' are matched with
the type of area FT_Bitmap.pitch * FT_Bitmap.rows.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Handle the string length by size_t variables.
* src/pcf/pcfread.c (pcf_interpret_style): The types
of nn, len, lengths[4] are changed to size_t, because
they are loaded by (or compared with) ft_strlen().
* src/pcf/pcfutil.c (BitOrderInvert, TwoByteSwap,
FourByteSwap): The type of the 2nd argument `nbytes'
is changed to size_t, for similarity with ANSI C
string functions.
* src/pcf/pcfdrivr.c (PCF_Glyph_Load): The type of
`bytes' is changed to FT_Offset, because it is passed
to FT_ALLOC(), via ft_glyphslot_alloc_bitmap(). At
least, using unsigned type is better.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Fix some data types mismatching with their sources.
* src/pcf/pcfread.c (pcf_seek_to_table_type,
pcf_has_table_type): The type of 3rd argument
`ntables' is matched with PCF_Toc->count.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Truncate the glyph index to 16-bit.
* src/otvalid/otvalid.c (otv_validate): Checks
face->num_glyphs does not exceed 16-bit limit,
pass FT_UInt num_glyphs to backend functions
otv_{GPOS|GSUB|GDEF|JSTF|MATH}_validate().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Insert explict casts for LP64 systems.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup,
FTC_SBitCache_Lookup): The type of FTC_ImageType->width
is FT_Int, so the cast to unsigned larger type FT_ULong
is introduced for the comparisons with 0x10000L for
LP64 platform.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Fix some data types mismatching with their sources.
* src/cache/ftccache.h: The type of return value
by FTC_Node_WeightFunc function is changed to
FT_Offset. The type of FTC_CacheClass->cache_size
is changed to FT_Offset, too.
* src/cache/ftccback.h (ft_inode_weight,
ftc_snode_weight): Ditto.
* src/cache/ftccmap.c (ftc_cmap_node_weight): Ditto.
* src/cache/ftcimage.c (ftc_inode_weight,
FTC_INode_Weight): Ditto.
* src/cache/ftcsbits.c (ftc_snode_weight,
FTC_SNode_Weight): Ditto.
* src/cache/ftcmru.h: The type of
FTC_MruListClass->node_size is changed to FT_Offset,
because it is passed to FT_ALLOC() to specify the
size of buffer.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
XXX_cmap_encoding_char_next() return FT_UInt32 values.
* include/freetype/internal/services/svpscmap.h:
The size of the charcode value returned by
the function typed PS_Unicodes_CharNextFunc is
matched with its input charcode value.
* src/cff/cffmap.c (cff_cmap_encoding_char_next,
cff_cmap_unicode_char_next): Ditto.
* src/pfr/pfrmap.c (pfr_cmap_encoding_char_next):
Ditto.
* src/psaux/t1cmap.c (t1_cmap_std_char_next,
t1_cmap_custom_char_next, t1_cmap_unicode_char_next):
Ditto.
* src/psnames/psmodule.c (ps_unicodes_char_next):
Ditto.
* src/winfonts/winfnt.c (fnt_cmap_char_next):
Ditto.
* src/sfnt/ttcmap.c (tt_cmap0_char_next,
tt_cmap2_char_next, tt_cmap4_char_next,
tt_cmap6_char_next, tt_cmap10_char_next,
tt_cmap12_char_next, tt_cmap13_char_next): Ditto.
(tt_cmap14_char_variants): Handle base unicode
codepoint by FT_UInt32 variable to avoid overflow
on 16-bit platforms.
(tt_cmap14_ensure): The type of `num_results' is
extend to FT_UInt32, to cover unsigned 32-bit
`numVarSelectorRecords' in cmap14 table header.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend TT_Face->num_locations for broken TTFs.
* include/freetype/internal/tttypes.h:
TT_Face->num_locations are extended from FT_UInt
to FT_ULong, to stand with broken huge loca table.
Some people insists there are broken TTF including
the glyphs over 16-bit limitation, in PRC market.
* src/truetype/ttpload.c (tt_face_load_loca):
Remove unrequired 16-bit truncation for FT_UInt
TT_Face->num_locations.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Fix some data types mismatching with their sources.
* src/smooth/ftgrays.c: The type of `TCoord' is
matched to `TPos', because they are mixed in
gray_set_cell(). The type of TCell->x is extended
to `TPos', because gray_find_cell() sets it by
TWorker.ex. The type of TCell->cover is extended
to `TCoord', because gray_render_scanline() adds
TCoord value to it. The type of TWork.cover is matched
with TCell->cover. The types of
TWork.{max_cells,num_cells} are changed to FT_PtrDist,
because they are calculated from the memory addresses.
The type of TWork.ycount is changed to TPos, because
it is calculated from TPos variables.
(gray_find_cell): The type of `x' is matched with
its initial value ras.ex.
(gray_render_scanline): The types of `mod', `lift'
and `rem' are changed to TCoord, because their values
are set with explicit casts to TCoord. When ras.area
is updated by the differential values including
`delta', they are explicitly cast to TArea, because
the type of `delta' is not TArea but TCoord.
(gray_render_line): The type of `mod' is extended
from int to TCoord, because (TCoord)dy is added to mod.
(gray_hline): The argument `acount' is extended to
TCoord, to match with the parameters in the callers.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Fix some data types mismatching with their sources.
* src/cff/cffobjs.c (cff_face_init): The type of
`scaling' is matched with the scaling parameter
in FT_Matrix_Multiply_Scaled() and
FT_Vector_Transform_Scaled().
* src/cff/cffparse.c (cff_parse_real): The type of
`power_ten', `scaling', `exponent_add',
`integer_length', `fraction_length',
`new_fraction_length' and `shift' are matched with
the type of `exponent' to avoid unexpected truncation.
(cff_parse_fixed_scaled): The type of `scaling' is
matched with the `scaling' argument to
cff_parse_real().
(cff_parse_fixed_dynamic): Ditto.
(cff_parse_font_matrix): The type of `scaling' is
matched with the `scaling' argument to
cff_parse_dynamic().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
autofit: Fix some data types mismatching with their sources.
* src/autofit/afglobal.c: Correct the type of
AF_FaceGlobalsRec.glyph_count to match with
FT_Face->num_glyphs.
(af_face_globals_compute_script_coverage):
Insert explicit cast to compare
FT_Long AF_FaceGlobalsRec.glyph_count versus
FT_UInt gindex. The type of `nn' is changed
to scan glyph index upto AF_FaceGlobalsRec.glyph_count.
(af_face_globals_get_metrics): The type of `script_max'
is changed to cover size_t value. Insert explicit cast
to compare FT_Long AF_FaceGlobalsRec.glyph_count versus
FT_UInt gindex.
* src/autofit/afhints.c (af_axis_hints_new_segment):
Insert explicit cast to calculate `big_max' from
integer and size_t values.
(af_axis_hints_new_edge): Ditto.
* src/autofit/aflatin.c (af_latin_metrics_init_blues):
The type of `best_y' is matched to FT_Vector.y.
(af_latin_compute_stem_width): The type of `delta' is
matched to `dist' and `org_dist'.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
autofit: Count the size of the memory object by ptrdiff_t.
* src/autofit/afcjk.c (af_cjk_hint_edges): The
number of edges `n_edges' should be counted by
FT_PtrDist variable instead of FT_Int.
* src/autofit/aflatin.c (af_latin_hint_edges):
Ditto.
* src/autofit/aftypes.h: In AF_ScriptClassRec,
the size of metric `script_metrics_size' should
be counted by FT_Offset variable instead of FT_UInt.
* src/autofit/afhints.c
(af_glyph_hints_align_strong_points): The cursors
for the edges `min', `max', `mid' in the memory
buffer should be typed FT_PtrDist.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
autofit: Fix for unused variable `first'.
* src/autofit/afhints.c (af_glyph_hints_reload): Insert
FT_UNUSED() to hide the unused variable warning.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve bitmap size or pixel variables for 16-bit systems.
* include/freetype/config/ftstdlib.h: Introduce
FT_INT_MIN, to use in signed integer overflow in
16-bit and 64-bit platforms.
* include/freetype/internal/fttrace.h: Add a tracer
to ftsynth.c.
* src/base/ftbitmap.c (FT_Bitmap_Embolden): Check
invalid strength causing integer overflow on 16-bit
platform.
* src/base/ftcalc.c (ft_corner_orientation): Change
the internal calculation from FT_Int to FT_Long, to
avoid an overflow on 16-bit platforms. The caller of
this function should use only the sign of result,
so the cast to FT_Int is acceptable.
* src/base/ftsynth.c: Introduce a tracer for synth module.
(FT_GlyphSlot_Embolden): Check invalid strength causing
integer overflow on 16-bit platform.
* src/bdf/bdfdrivr.c (BDF_Face_Init): The glyph index
in FT2 API is typed as FT_UInt, although BDF driver
can handle unsigned long glyph index internally. To
avoid integer overflow on 16-bit platform, too large
glyph index should be excluded.
(BDF_Glyph_Load): The glyph pitch in FT2 is typed as
FT_UInt, although BDF driver can handle unsigned long
glyph pitch internally. To avoid integer overflow on
16-bit platform, too large glyph pitch should not be
returned.
* src/pfr/pfrsbit.c (pfr_slot_load_bitmap): The glyph
pitch in FT2 is typed as FT_UInt, although PFR font
format can include huge bitmap glyph with 24-bit pitch
(however, a glyph spends 16.7 pixel, it's not realistic).
To avoid integer overflow on 16-bit platform, huge
bitmap glyph should be excluded.
* src/smooth/ftgrays.c (gray_hline): As FT_Span.x is
truncated to fit its type (16-bit short), FT_Span.y
should be truncated to fit its type (FT_Int).
* src/cff/cffdrivr.c (cff_get_ros): CFF specification
defines the supplement in ROS as a real number.
Truncate it to fit public FT2 API.
* src/cff/cffparse.c (cff_parse_cid_ros): Warn the
supplement if it is truncated or rounded in cff_get_ros().
* src/cff/cfftypes.h: Change the type of internal variable
`supplement' from FT_Long to FT_ULong to fit the signedness
to the type in public API.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Prevent invalid arguments to afm_parser_read_vals().
* src/psaux/afmparse.c (afm_parser_read_vals): Change
the type of `n' to prevent negative number how many
arguments should be parsed.
* src/psaux/afmparse.h (afm_parser_read_vals): Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
base: Prevent some overflows on LP64 systems.
* src/base/ftadvance.c (FT_Get_Advances): Cast the
unsigned long constant FT_LOAD_ADVANCE_ONLY to FT_UInt32
for LP64 platforms.
* src/base/ftcalc.c (FT_Sqrt32): All internal variables
are changed to FT_UInt32 from FT_ULong.
(FT_MulDiv): Insert casts to FT_Int32 for LP64 platforms.
This function is designed for 32-bit integer, although
their arguments and return value are FT_Long.
* src/base/ftobjs.c (FT_Get_Char_Index): Check `charcode'
is within unsigned 32-bit integer for LP64 platforms.
(FT_Face_GetCharVariantIndex): Check `charcode' and
`variantSelector' are within 32-bit integer for LP64
platforms.
(FT_Face_GetCharsOfVariant): Check `variantSelector' is
within unsigned 32-bit integer for LP64 platforms.
* src/base/fttrigon.c (ft_trig_downscale): The FT_Fixed
variable `val' and unsigned long constant FT_TRIG_SCALE
are cast to FT_UInt32, when calculates FT_UInt32.
(FT_Vector_Rotate): The long constant 1L is cast to
FT_Int32 to calculate FT_Int32 `half'.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Cast the long variables to 32-bit for LP64 systems.
* src/cff/cffdrivr.c (cff_get_advances): Insert
explicit cast to modify a 32-bit flag by unsigned
long constant.
* src/cff/cffobjs.c (cff_face_init): Ditto.
* src/cff/cffgload.c (cff_decoder_parse_charstrings):
Replace the casts to FT_Long by the casts to FT_Int32
for LP64 platforms.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Improve PCF_PropertyRec.value names on LP64 platforms.
* src/pcf/pcf.h: In PCF_PropertyRec.value, the member
`integer' is replaced by `l', `cardinal' is replaced
by `ul', to fix the difference between the name and
the types on LP64 platforms.
* src/pcf/pcfdrivr.c (pcf_get_bdf_property): Reflect
PCF_PropertyRec.value change, with appropriate casts
to FT_Int32/FT_UInt32. Their destinations
BDF_PropertyRec.{integer|cardinal} are public and
explicitly defined as FT_Int32/FT_UInt32.
* src/pcf/pcfread.c (pcf_get_properties, pcf_load_font):
Reflect PCF_PropertyRec.value change.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
pcf: Fix some data types mismatching with their sources.
* src/pcf/pcfdrivr.c (pcf_cmap_char_index): The type of
`code' is matched to PCF_Encoding->enc.
(pcf_cmap_char_next): The type of `charcode' is matched
to PCF_Encoding->enc. When *acharcode is set by charcode,
an overflow is checked and cast to unsigned 32-bit
integer.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
bdf: Improve bdf_property_t.value names for LP64 platforms.
* src/bdf/bdf.h: In bdf_property_t.value, the member
`int32' is replaced by `l', `card32' is replaced by
`ul', to fix the difference between the name and the
types on LP64 platforms.
* src/bdf/bdfdrivr.c (BDF_Face_Init): Reflect
bdf_property_t.value change.
(bdf_get_bdf_property): Reflect bdf_property_t.value
change, with appropriate casts to FT_Int32/FT_UInt32.
Their destinations BDF_PropertyRec.{integer|cardinal}
are public and explicitly defined as FT_Int32/FT_UInt32.
* src/bdf/bdflib.c (_bdf_add_property): Reflect
bdf_property_t.value change.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
bdf: Fix some data types mismatching with their sources.
* src/bdf/bdrdrivr.c (bdf_cmap_char_index): The type
of `code' is matched with BDF_encoding_el->enc.
(bdf_cmap_char_next): The type of `charcode' is
matched with BDF_encoding_el->enc. When *acharcode
is set by charcode, an overflow is checked and
cast to unsigned 32-bit integer.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
autofit: Improve Unicode range definitions.
* src/autofit/aftypes.h (AF_UNIRANGE_REC): New macro
to declare a range by two unsigned 32-bit integer,
to avoid 64-bit range definition on LP64 platforms.
* src/autofit/aflatin.c (af_latin_uniranges): Ditto.
* src/autofit/aflatin2.c (af_latin2_uniranges): Ditto.
* src/autofit/afindic.c (af_indic_uniranges): Ditto.
* src/autofit/afcjk.c (af_cjk_uniranges): Declare
the ranges by AF_UNIRANGE_REC.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Fix a data type mismatching with its source.
* src/smooth/ftgrays.c (gray_sweep): The type of
`area' is matched with the 3rd argument `area'
of gray_hline().
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Fix a data type mismatching with its source.
* src/smooth/ftgrays.c (gray_render_line): The type
of `area' is matched with TWorker.area.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Disable the legacy compatibility if 16-bit system.
* src/cache/ftcbasic.c (FTC_ImageCache_Lookup): Exclude
the legacy behaviour from 16-bit platform, because the
current hack cannot detect the caller uses this function
via legacy convension.
(FTC_SBitCache_Lookup): Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Check 32-bit glyph index on 16-bit systems.
* src/cache/ftcbasic.c (ftc_basic_family_get_count):
Check overflow caused by the face including large
number of glyphs > 64k.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Fix some data types mismatching with their sources.
* src/cache/ftccache.c (ftc_cache_resize): The types of
`p', `mask', `count' are matched with FTC_Cache->{p,mask}.
(FTC_Cache_Clear): The type of `old_index' is matched to
FTC_Cache->{p,mask}.
* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP): The type
of `_idx' is matched with FTC_Cache->{p,mask}.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Fix some data types mismatching with their sources.
* src/cache/ftcsbits.c (ftc_snode_load): The types
of `xadvance' and `yadvance' are matched with
FT_GlyphSlot->advance.{x|y}.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cache: Cast NULL to a required function type explicitly.
* src/cache/ftcmanag.c (FTC_Manager_RemoveFaceID):
Insert explicit cast from NULL to function type.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
fttypes.h: Cast FT_MAKE_TAG output to FT_Tag exlicitly.
* include/freetype/fttypes.h (FT_MAKE_TAG):
Cast the result to FT_Tag.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psnames: Handle Unicode codepoints by FT_UInt32 variables.
* src/psnames/psmodule.c (BASE_GLYPH): Cast the result
to unsigned 32-bit integer for LP64 platform.
(ps_unicode_value): Return the value by unsigned 32-bit
integer instead of unsigned long.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
psaux: Use size_t variable to pass the buffer size.
* src/psaux/psaux.h (to_bytes): The type of `max_bytes'
(the argument to pass the buffer size) is changed to
size_t, to match with ANSI C string functions.
* src/psaux/psconv.h (PS_Conv_StringDecode,
PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
* src/psaux/psconv.c (PS_Conv_StringDecode,
PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Ditto.
* src/psaux/psobjs.h (ps_parser_to_bytes): Ditto.
* src/psaux/psobjs.c (ps_parser_to_bytes): Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
type1: Use size_t variable to pass the string length.
* psaux.h: The type of `len' (the argument to pass
the buffer size to the function in AFM_ParserRec)
is changed to size_t, to match with ANSI C string
functions.
* t1afm.c (t1_get_index): Ditto.
* test_afm.c (dummy_get_index): Ditto.
* afmparse.c (afm_parser_read_vals): To call
AFM_ParserRec.get_index, the length of token
`len' is cast to size_t.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cid: Fix some data types mismatching with their sources.
* src/cid/cidparse.c (cid_parser_new): The types of
`read_len' and `stream_len' are matched to
FT_Stream->size. Unrequired cast is removed.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Fix for unused variable `rest'.
* src/cff/cffparse.c (cff_parse_real): Insert
FT_UNUSED() to hide the unused variable warning.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
cff: Fix some data types mismatching with their sources.
* src/cff/cffgload.c (cff_slot_load): The types of
`top_upm' and `sub_upm' are matched with
CFF_FontRecDict->units_per_em.
* src/cff/cffobjs.c (cff_size_select): Ditto.
(cff_size_request): Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
bdf: Fix some data types mismatching with their sources.
* bdflib.c (_bdf_list_ensure): The type of `num_items'
is matched with _bdf_list_t.used. Also the types of
`oldsize', `newsize', `bigsize' are matched too.
(_bdf_readstream): `cursor' is used as an offset to
the pointer, it should be typed as FT_Offset. Also
the types of `bytes', `start', `end', `avail' are matched.
* bdfdrivr.c: The type of BDF_CMap->num_encodings is
matched with FT_CMap->clazz->size.
(bdf_cmap_char_index): The types of `min', `max', `mid'
are matched with BDF_CMap->num_encodings. The type of
`result' is matched with encoding->glyph.
(bdf_cmap_char_next): Ditto, the type of `code' is
matched with BDF_encoding_el.enc.
(bdf_interpret_style): The type of `lengths' is changed
to size_t, to take the value by ft_strlen(). Also the
types of `len', `nn', `mm' are matched.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
sfnt: Count the size of the memory object by ptrdiff_t.
* src/sfnt/ttbdf.c (tt_face_find_bdf_prop): The type of
`peroperty_len' is changed from FT_UInt to FT_Offset,
to match with size_t, which is appropriate type for the
object in the memory buffer.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
lzw: Count the size of the memory object by ptrdiff_t.
* src/lzw/ftzopen.h: The types of FT_LzwState->{buf_total,
stack_size} are changed from FT_UInt to FT_Offset, to match
with size_t, which is appropriate type for the object in
the memory buffer.
* src/lzw/ftzopen.c (ft_lzwstate_stack_grow): The types of
`old_size' and `new_size' are changed from FT_UInt to
FT_Offset, to match with size_t, which is appropriate type
for the object in the memory buffer.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Count the table size on memory by ptrdiff_t.
* src/otvalid/otvgpos.c (otv_ValueRecord_validate):
Change the type of table size from FT_UInt to
FT_PtrDist because it is calculated by the memory
addresses.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
otvalid: Prevent an overflow by GPOS/GSUB 32b-bit offset.
* src/otvalid/otvgpos.c (otv_ExtensionPos_validate):
Extend ExtensionOffset from FT_UInt to FT_ULong, to
cover 32-bit offset on 16-bit platform.
* src/otvalid/otvgsub.c (otv_ExtensionSubst_validate):
Ditto.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
ftobjs.c: Prevent an overflow in glyph index handling.
* src/base/ftobjs.c (FT_Face_GetCharsOfVariant):
Improve the cast in comparison to avoid the truncation.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve the variable types in raccess_make_file_name().
* src/base/ftrfork.c (raccess_make_file_name):
Change the type of cursor variable `tmp' to const char*,
to prevent the unexpected modification of original pathname.
(raccess_make_file_name): Change the type of new_length
to size_t.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
ftpatent.c: Fix for unused variable `error'.
* src/base/ftpatent.c (_tt_check_patents_in_range):
Fix warning for unused variable `error'.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
type1: Check invalid string longer than PostScript limit.
* src/type1/t1afm.c (t1_get_index): Check invalid string
which exceeds the limit of PostScript string/name objects.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gzip: Use FT2 zcalloc() & zfree() in ftgzip.c by default.
* src/gzip/ftgzip.c (zcalloc, zcfree): Disable all
zcalloc() & zfree() by zlib in zutil.c, those in
ftgzip.c by FT2 are enabled by default. To use
zlib zcalloc() & zfree(), define USE_ZLIB_ZCALLOC.
See discussion:
http://lists.gnu.org/archive/html/freetype-devel/2009-02/msg00000.html
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gzip: Distinguish PureC from TurboC on MSDOS.
* src/gzip/zutil.c (zcalloc, zcfree): Enable only for
MSDOS platform.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Insert PureC pragma to allow unevaluated variables.
* builds/atari/ATARI.H: Insert PureC pragma not to
warn against set-but-unevaluated variable in gxvalid
module.
2009-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
gxvalid: Pass the union by the pointer instead of the value.
* src/gxvalid/gxvcommn.h:
- Declare new type `GXV_LookupValueCPtr'.
- Update the type of the 2nd argument to pass GXV_LookupValueDesc
data to the function prototyped as GXV_Lookup_Value_Validate_Func,
from GXV_LookupValueDesc to GXV_LookupValueCPtr.
- Likewise for the function prototyped as
GXV_Lookup_Fmt4_Transit_Func.
- Declare new type `GXV_StateTable_GlyphOffsetCPtr'.
- Update the type of the 3rd argument to pass
GXV_StateTable_GlyphOffsetDesc data to the function prototyped
as GXV_StateTable_Entry_Validate_Func, from
GXV_StateTable_GlyphOffsetDesc to GXV_StateTable_GlyphOffsetCPtr.
- Declare new type `GXV_XStateTable_GlyphOffsetCPtr'.
- Update the type of the 3rd argument to pass
GXV_XStateTable_GlyphOffsetDesc data to the function prototyped
as GXV_XStateTable_Entry_Validate_Func,
from GXV_XStateTable_GlyphOffsetDesc
to GXV_XStateTable_GlyphOffsetCPtr.
* src/gxvalid/gxvcommn.c (gxv_LookupTable_fmt0_validate,
gxv_XClassTable_lookupval_validate,
gxv_XClassTable_lookupfmt4_transit):
Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
* src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
gxv_bsln_LookupFmt4_transit): Ditto.
* src/gxvalid/gxvjust.c
(gxv_just_pcTable_LookupValue_entry_validate,
gxv_just_classTable_entry_validate,
gxv_just_wdcTable_LookupValue_validate): Ditto.
* src/gxvalid/gxvkern.c
(gxv_kern_subtable_fmt1_entry_validate): Ditto.
* src/gxvalid/gxvlcar.c (gxv_lcar_LookupValue_validate,
gxv_lcar_LookupFmt4_transit): Ditto.
* src/gxvalid/gxvopbd.c (gxv_opbd_LookupValue_validate,
gxv_opbd_LookupFmt4_transit): Ditto.
* src/gxvalid/gxvprop.c (gxv_prop_LookupValue_validate,
gxv_prop_LookupFmt4_transit): Ditto.
* src/gxvalid/gxvmort4.c
(gxv_mort_subtable_type4_lookupval_validate): Ditto.
* src/gxvalid/gxvmort0.c
(gxv_mort_subtable_type0_entry_validate): Update
from GXV_StateTable_GlyphOffsetDesc
to GXV_StateTable_GlyphOffsetCPtr.
* src/gxvalid/gxvmort1.c
(gxv_mort_subtable_type1_entry_validate): Ditto.
* src/gxvalid/gxvmort2.c
(gxv_mort_subtable_type2_entry_validate): Ditto.
* src/gxvalid/gxvmort5.c
(gxv_mort_subtable_type5_entry_validate): Ditto.
* src/gxvalid/gxvmorx2.c
(gxv_morx_subtable_type2_entry_validate): Ditto.
* src/gxvalid/gxvmorx5.c
(gxv_morx_subtable_type5_entry_validate): Ditto.
* src/gxvalid/gxvmorx1.c
(gxv_morx_subtable_type1_entry_validate): Ditto.
(gxv_morx_subtable_type1_LookupValue_validate,
gxv_morx_subtable_type1_LookupFmt4_transit):
Update from GXV_LookupValueDesc to GXV_LookupValueCPtr.
* src/gxvalid/gxvmorx0.c
(gxv_morx_subtable_type0_entry_validate): Update
from GXV_XStateTable_GlyphOffsetDesc
to GXV_XStateTable_GlyphOffsetCPtr.
2009-07-29 Fabrice Bellet <fabrice@bellet.info>
Fix Redhat bugzilla #513582 and Savannah bug #26849.
* src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP) <FTC_INLINE>: Fix
aliasing bug.
2009-07-19 Werner Lemberg <wl@gnu.org>
Document recent library changes.
* docs/CHANGES: Do it.
2009-07-17 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #23786.
* src/truetype/ttobjs.c (tt_size_init_bytecode): Don't reset x_ppem
and y_ppem. Otherwise the `*_CVT_Stretched' functions in ttinterp.c
get never called.
An anonymous guy suggested this change on Savannah, and it seems to
be the right solution.
2009-07-15 Werner Lemberg <wl@gnu.org>
* docs/release: Updated.
2009-07-15 Werner Lemberg <wl@gnu.org>
README.CVS -> README.git
* README.CVS: Renamed to...
* README.git: This.
Updated.
2009-07-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Borland C++ compiler patch proposed by Mirco Babin.
http://lists.gnu.org/archive/html/freetype/2009-07/msg00016.html.
* builds/exports.mk: Delete unused flags, CCexe_{CFLAGS,LDFLAGS}.
Fix APINAMES_C and APINAMES_EXE pathnames to reflect the platform
specific pathname syntax.
* builds/compiler/bcc.mk: Remove unused flag, CCexe_LDFLAGS.
Define TE = `-e' separately (bcc32 cannot specify the pathname of
binary executable by T = `-o').
Extend the large page size in linking freetype.lib.
Add extra CLEAN target to delete bcc specific temporary files.
* builds/compiler/bcc-dev.mk: Ditto.
2009-07-14 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #27026.
* builds/win32/vc2005/freetype.sln: Use correct version number.
2009-07-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Add a script to check the undefined and unused trace macros.
* src/tools/chktrcmp.py: A script to check trace_XXXX macros
that are used in C source but undefined in fttrace.h, or
defined in fttrace.h but unused in C sources. See
http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html.
* docs/DEBUG: Mention on chktrcmp.py.
* docs/release: Ditto.
2009-07-09 Werner Lemberg <wl@gnu.org>
[ftraster] Make it compile again with -D_STANDALONE_.
* src/raster/ftraster.c [_STANDALONE_]: Define
FT_CONFIG_STANDARD_LIBRARY_H.
Include `string.h'.
Don't include `rastpic.h'.
Define FT_DEFINE_RASTER_FUNCS.
2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
smooth: Check glyph size by width/height, instead of pitch/height.
Suggested by der Mouse <mouse@Rodents-Montreal.ORG>.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Improve
the check for too large glyph. Replace the pair of `pitch' and
`height' by the pair of `width' and `height'. `pitch' cannot
be greater than `height'. The required is checking the product
`pitch' * `height' <= FT_ULONG_MAX, but we use cheap checks for
the realistic case only.
2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Register 2 missing trace components, t1afm and ttbdf.
* include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( t1afm )
and FT_TRACE_DEF( ttbdf ). See
http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00013.html
2009-07-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Register a trace component for ftgloadr.c.
* include/freetype/internal/fttrace.h: Add FT_TRACE_DEF( gloader ).
The macro `trace_gloader' was already used in the initial version
on 2002-02-24.
2009-07-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Prevent the overflows by a glyph with too many points or contours.
The bug is reported by Boris Letocha <b.letocha@gmc.net>. See
http://lists.gnu.org/archive/html/freetype-devel/2009-06/msg00031.html
http://lists.gnu.org/archive/html/freetype-devel/2009-07/msg00002.html
* include/freetype/ftimage.h (FT_OUTLINE_CONTOURS_MAX,
FT_OUTLINE_POINTS_MAX): New macros to declare the maximum
values of FT_Outline.{n_contours,n_points}.
* src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Check the
total numbers of points and contours cause no overflows in
FT_Outline.{n_contours,n_points}.
* include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
FT_GLYPHLOADER_CHECK_C): Compare the numbers of points and
contours as unsigned long number, instead of signed int, to
prevent the overflows on 16-bit systems.
2009-07-05 Bram Tassyns <bramt@enfocus.be>
Improve compatibility to Acroread.
This fixes Savannah bug #26944.
* src/cff/cffload.c (cff_charset_compute_cids): For multiple GID to
single CID mappings, make the lowest value win.
2009-06-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
ftpatent: Fix a bug by wrong usage of service->table_info().
http://lists.gnu.org/archive/html/freetype-devel/2008-12/msg00039.html
* include/freetype/internal/services/svsfnt.h: Extend
FT_SFNT_TableInfoFunc() to take new argument to obtain the offset
to the specified table.
* src/sfnt/sfdriver.c (sfnt_table_info): Extend to return the
table-offset to the caller function.
* src/base/ftpatent.c (_tt_check_patents_in_table): Use new
service->table_info().
* src/base/ftobjs.c (FT_Sfnt_Table_Info): Synchronize to new
service->table_info().
2009-06-28 Werner Lemberg <wl@gnu.org>
[psaux, cff] Protect against nested `seac' calls.
* include/freetype/internal/psaux.h (T1_Decoder), src/cff/cffgload.h
(CFF_Decoder): Add `seac' boolean variable.
* src/cff/cffgload.c (cff_operator_seac), src/psaux/t1decode.c
(t1operator_seac): Use it.
2009-06-28 Werner Lemberg <wl@gnu.org>
Thinko.
* src/psaux/t1decode.c (t1operator_seac)
[FT_CONFIG_OPTION_INCREMENTAL]: Test for existence of incremental
interface.
2009-06-28 Werner Lemberg <wl@gnu.org>
* devel/ftoption.h [FT_CONFIG_OPTION_INCREMENTAL]: Define.
2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Add tools to preprocess the source files for AtariST PureC.
* builds/atari/deflinejoiner.awk: New file to filter C source files
for broken C preprocessor of PureC compiler.
* builds/atari/gen-purec-patch.sh: New file to generate a patch set
for PureC, by using deflinejoiner.awk.
2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Keep existing modules.cfg in the building tree.
* configure: If `configure' is executed outside of the source tree,
an existing `modules.cfg' file in the build directory should be
kept, not overwritten by the version in the source tree.
2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Filter --srcdir= option before invoking builds/unix/configure.
* configure: If builds/unix/configure is invoked with --srcdir
option, the option should take `builds/unix' directory instead of
the top source directory. Thus the configure script in the top
directory should modify the --srcdir= option if
`builds/unix/configure' is invoked.
2009-06-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improve configure.raw for cross-building on exe-suffixed systems.
* builds/unix/configure.raw: Fix a bug in sed script to extract
native suffix for binary executables, patch by Peter Breitenlohner.
http://lists.gnu.org/archive/html/freetype-devel/2009-04/msg00036.html
2009-06-26 Werner Lemberg <wl@gnu.org>
[truetype] Remove TT_SubGlyphRec.
* src/truetype/ttobjs.h (TT_SubGlyphRec): Removed, unused.
2009-06-26 Werner Lemberg <wl@gnu.org>
* */*: For warning messages, replace FT_ERROR with FT_TRACE0.
FT_ERROR is now used only if a function produces a non-zero `error'
value.
Formatting, improving and harmonizing debug strings.
2009-06-25 Werner Lemberg <wl@gnu.org>
Provide version information better.
* src/base/ftinit.c (FT_Init_FreeType): Don't set version here
but...
* src/base/ftobjs.c (FT_New_Library): Here.
2009-06-22 Werner Lemberg <wl@gnu.org>
Use 16.16 format while parsing Type 1 charstrings.
This fixes Savannah bug #26867.
Previously, only integers have been used which can lead to serious
rounding errors.
However, fractional values are only used internally; after the
charstrings (of either Type 1 or 2) have been processed, the
resulting coordinates get rounded to integers currently -- before
applying scaling. This should be fixed; at the same time a new load
flag should be introduced, to be used in combination with
FT_LOAD_NO_SCALE, which indicates that font units are returned in
16.16 format. Similarly, the incremental interface should be
extended to allow fractional values for metrics.
* include/freetype/internal/psaux.h (T1_BuilderRec): Remove `shift'
field.
* include/freetype/internal/pshints.h (T1_Hints_SetStemFunc,
T1_Hints_SetStem3Func): Use FT_Fixed for coordinates.
* src/psaux/psobjs.c: Include FT_INTERNAL_CALC_H.
(t1_build_add_point): Always convert fixed to integer.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings):
Use 16.16 format everywhere (except for large integers followed by a
`div').
[CAN_HANDLE_NON_INTEGRAL_T1_OPERANDS]: Remove #ifdef and activate
code uncoditionally.
Add support for random numbers and update remaining code
accordingly; this should work now.
(t1_operator_seac): Updated.
* src/psaux/pshrec.c: Include FT_INTERNAL_CALC_H.
(ps_hints_t1stem3, t1_hints_stem): Updated.
* src/cid/cidgload.c: Include FT_INTERNAL_CALC_H.
(cid_load_glyph) [FT_CONFIG_OPTION_INCREMENTAL],
(cid_face_compute_max_advance, cid_slot_load_glyph): Updated.
* src/type1/t1gload.c (T1_Parse_Glyph_And_Get_Char_String)
[FT_CONFIG_OPTION_INCREMENTAL], (T1_Get_Advances, T1_Load_Glyph):
Updated.
* src/type1/t1load.c: Include FT_INTERNAL_CALC_H.
* src/type1/t1objs.c (T1_Face_Init): Updated.
2009-06-21 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshrec.c: Use PSH_Err_Ok.
2009-06-21 Werner Lemberg <wl@gnu.org>
Code beautification.
* src/type1/t1load.c (FT_INT_TO_FIXED): Removed.
Replace everywhere with INT_TO_FIXED.
(FT_FIXED_TO_INT): Move to ...
* include/freetype/internal/ftcalc.h (FIXED_TO_INT): Here.
Update all users.
2009-06-20 Werner Lemberg <wl@gnu.org>
Remove unused variables.
* include/freetype/internal/psaux.h (T1_BuilderRec),
src/cff/cffgload.h (CFF_Builder): Remove `last'.
Update all users.
2009-06-20 Werner Lemberg <wl@gnu.org>
[psaux] Check large integers while parsing charstrings.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Large
integers must be followed by a `div' operator.
2009-06-20 Werner Lemberg <wl@gnu.org>
[cff] Revert last change.
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Do it.
Next time, don't confuse Type 2 charstring opcodes with TOP DICT
values...
2009-06-20 Werner Lemberg <wl@gnu.org>
* src/autofit/aflatin.c (af_latin_metrics_check_digits): Fix
compiler warning.
2009-06-20 Werner Lemberg <wl@gnu.org>
* builds/compiler/gcc.mk (CFLAGS): Use -O3, not -O6.
2009-06-19 Werner Lemberg <wl@gnu.org>
[cff] Fix handling of reserved byte 0xFF.
* src/cff/cffgload.c (cff_decoder_parse_charstrings): Abort if byte
0xFF is encountered.
2009-06-19 Werner Lemberg <wl@gnu.org>
Improve debug messages for Type1 charstrings.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Emit newlines
after instructions.
Prettify output.
2009-06-19 Werner Lemberg <wl@gnu.org>
More ftgray fixes for FT_STATIC_RASTER.
Problems reported by suyu@cooee.cn.
* src/smooth/ftgrays.c (gray_move_to, gray_raster_render): Use
RAS_VAR.
2009-06-18 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2009-06-18 Werner Lemberg <wl@gnu.org>
Fix B/W rasterization of subglyphs with different drop-out modes.
Normally, the SCANMODE instruction (if present) to set the drop-out
mode in a TrueType font is located in the `prep' table only and thus
valid for all glyphs. However, there are fonts like `pala.ttf'
which additionally contain this instruction in the hinting code of
some glyphs (but not all). As a result it can happen that a
composite glyph needs multiple drop-out modes for its subglyphs
since the rendering state gets reset for each subglyph.
FreeType collects the hinted outlines from all subglyphs, then it
sends the data to the rasterizer. It also sends the drop-out mode
-- after hinting has been applied -- and here is the error: It sends
the drop-out mode of the last subglyph only; drop-out modes of all
other subglyphs are lost.
This patch fixes the problem; it adds a second, alternative
mechanism to pass the drop-out mode: For each contour, the
rasterizer now checks the first `tags' array element. If bit 2 is
set, bits 5-7 contain the contour's drop-out mode, overriding the
global drop-out mode.
* include/freetype/ftimage.h (FT_CURVE_TAG_HAS_SCANMODE): New macro.
* src/truetype/ttgload.c (TT_Hint_Glyph): Store drop-out mode in
`tags[0]'.
* src/raster/ftraster.c (Flow_Up, Overshoot_Top, Overshoot_Bottom):
Use bits 3-5 instead of 0-2.
(New_Profile): Set the drop-out mode in the profile's `flags' field.
(Decompose_Curve): Check `tags[0]' and set `dropOutControl' if
necessary.
(Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop, Draw_Sweep): Use the profile's drop-out
mode.
2009-06-16 Werner Lemberg <wl@gnu.org>
Improve scan conversion rules 4 and 6.
Two new constraints are introduced to better identify a `stub' -- a
concept which is only vaguely described in the OpenType
specification. The old code was too rigorous and suppressed more
pixel than it should.
. The intersection of the two profiles with the scanline is less
than a half pixel. Code related to this was already present in
the sources but has been commented out.
. The endpoint of the original contour forming a profile has a
distance (`overshoot') less than half a pixel to the scanline.
Note that the two additional conditions fix almost all differences
to the Windows rasterizer, but some problematic cases remain.
* src/raster/ftraster.c (Overshoot_Top, Overshoot_Bottom): New
macros for the `flags' field in the `TProfile' structure.
(IS_BOTTOM_OVERSHOOT, IS_TOP_OVERSHOOT): New macros.
(New_Profile, End_Profile): Pass overshoot flag as an argument and
set it accordingly.
Update callers.
(Vertical_Sweep_Drop, Horizontal_Sweep_Drop): Implement the two new
constraints.
2009-06-11 Werner Lemberg <wl@gnu.org>
Increase precision for B/W rasterizer.
* src/raster/ftraster.c (Set_High_Precision): Add two more bits to
the precision. This corrects rendering of some small glyphs, for
example, glyph `xi' in verdana.ttf at 13 ppem. Testing with ftbench
on my GNU/Linux box I don't see a performance degradation.
2009-06-08 Michael Zucchi <notzed@gmail.com>
Handle FT_STROKER_LINECAP_BUTT.
This fixes Savannah bug #26757.
* src/base/ftstroke.c (ft_stroker_cap): Implement it.
2009-06-07 Harald Fernengel <harry@kdevelop.org>
Fix some potential out-of-memory crashes.
* src/base/ftobjs.c (ft_glyphslot_done): Check `slot->internal'.
* src/base/ftstream.c (FT_Stream_ReleaseFrame): Check `stream'.
* src/truetype/ttinterp.c (TT_New_Context): Avoid double-free of
`exec' in case of failure.
2009-06-07 Werner Lemberg <wl@gnu.org>
Simplify math.
Suggested by Alexei Podtelezhnikov <apodtele@gmail.com>.
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop): Do it.
2009-06-04 Werner Lemberg <wl@gnu.org>
Preparation for fixing scan conversion rules 4 and 6.
* src/raster/ftraster.c (TFlow): Replace enumeration with...
(Flow_Up): This macro.
(TProfile): Replace `flow' member with `flags' bit field.
Update all affected code.
2009-05-29 James Cloos <cloos@jhcloos.com>
Enable autohinting for glyphs rotated by multiples of 90°.
* src/base/ftobjs.c (FT_Load_Glyph): Alter check for permitted
matrices to allow rotations by multiples of 90°, not only unrotated,
possibly slanted matrices.
2009-05-28 Werner Lemberg <wl@gnu.org>
Remove compiler warning.
Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
* src/autofit/aflatin2.c (af_latin2_hint_edges): Move declaration of
`n_edges' into `#if' block.
2009-05-28 Werner Lemberg <wl@gnu.org>
Make compilation work with FT_CONFIG_OPTION_USE_ZLIB not defined.
Reported by Krzysztof Kowalczyk <kkowalczyk@gmail.com>.
* src/pcf/pcfdrivr.c (PCF_Face_Init) [!FT_CONFIG_OPTION_USE_ZLIB]:
Make it work.
Simplify #ifdef logic.
2009-05-22 Werner Lemberg <wl@gnu.org>
Improve b/w rasterizer.
Problem reported by Krzysztof Kotlenga <pocek@users.sf.net>.
* src/raster/raster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop): For smart drop-out mode, if
intersections are equally distant relative to next pixel center,
select the left pixel, not the right one.
2009-05-19 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #26600.
* src/type42/t42parse.c (t42_load_keyword): Handle
T1_FIELD_LOCATION_FONT_EXTRA.
2009-04-30 Werner Lemberg <wl@gnu.org>
Document recent changes to ftview.
* docs/CHANGES: Do it.
2009-04-27 Werner Lemberg <wl@gnu.org>
autohinter: Don't change digit widths if all widths are the same.
This fixes FreeDesktop bug #21197.
* src/autofit/afglobal.c (AF_DIGIT): New macro.
(af_face_globals_compute_script_coverage): Mark ASCII digits in
`glyph_scripts' array.
(af_face_globals_get_metrics): Updated.
(af_face_globals_is_digit): New function.
* src/autofit/afglobal.h: Updated.
(AF_ScriptMetricsRec): Add `digits_have_same_width' flag.
* src/autofit/aflatin.c: Include FT_ADVANCES_H.
(af_latin_metrics_check_digits): New function.
(af_latin_metrics_init): Use it.
* src/autofit/aflatin.h: Updated.
* src/autofit/afcjk.c (af_cjk_metrics_init): Updated.
* src/autofit/aflatin2.c: Similar changes as with aflatin.c.
* src/autofit/afloader.c (af_loader_load_g): Test digit width.
* docs/CHANGES: Document it.
2009-04-26 Werner Lemberg <wl@gnu.org>
Make ftgrays compile with _STANDALONE_ and FT_STATIC_RASTER again.
Problems reported by suyu@cooee.cn.
* src/smooth/ftgrays.c (FT_DEFINE_OUTLINE_FUNCS,
FT_DEFINE_RASTER_FUNCS) [_STANDALONE_]: Define.
[!_STANDALONE_]: Include ftspic.h only here.
(ras): Define/declare after definition of `TWorker'.
Use `RAS_VAR_' where necessary.
2009-04-21 Karl Berry <karl@gnu.org>
Fix AC_CHECK_FT2.
* builds/unix/freetype2.m4: Only check PATH for freetype-config if
we did not already find it from a prefix option.
2009-04-05 Oran Agra <oran@monfort.co.il>
Add #error to modules and files that do not support PIC yet.
When FT_CONFIG_OPTION_PIC is defined the following files will
create #error:
* src/bdf/bdfdrivr.h
* src/cache/ftcmanag.c
* src/cid/cidriver.h
* src/gxvalid/gxvmod.h
* src/gzip/ftgzip.c
* src/lzw/ftlzw.c
* src/otvalid/otvmod.h
* src/pcf/pcfdrivr.h
* src/pfr/pfrdrivr.h
* src/psaux/psauxmod.h
* src/type1/t1driver.h
* src/type42/t42drivr.h
* src/winfonts/winfnt.h
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in autofit module.
* include/freetype/internal/autohint.h add macros to init
instances of FT_AutoHinter_ServiceRec.
* src/autofit/afmodule.h declare autofit_module_class
using macros from ftmodapi.h,
when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/autofit/afmodule.c when FT_CONFIG_OPTION_PIC is defined
af_autofitter_service and autofit_module_class structs
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from afpic.h in order to access them.
* src/autofit/aftypes.h add macros to init and declare
instances of AF_ScriptClassRec.
* src/autofit/afcjk.h declare af_cjk_script_class
using macros from aftypes.h,
when FT_CONFIG_OPTION_PIC is defined init function will be declared.
* src/autofit/afcjk.c when FT_CONFIG_OPTION_PIC is defined
af_cjk_script_class struct will have function to init it instead of
being allocated in the global scope.
* src/autofit/afdummy.h declare af_dummy_script_class
using macros from aftypes.h,
when FT_CONFIG_OPTION_PIC is defined init function will be declared.
* src/autofit/afdummy.c when FT_CONFIG_OPTION_PIC is defined
af_dummy_script_class struct will have function to init it instead of
being allocated in the global scope.
* src/autofit/afindic.h declare af_indic_script_class
using macros from aftypes.h,
when FT_CONFIG_OPTION_PIC is defined init function will be declared.
* src/autofit/afindic.c when FT_CONFIG_OPTION_PIC is defined
af_indic_script_class struct will have function to init it instead of
being allocated in the global scope.
* src/autofit/aflatin.h declare af_latin_script_class
using macros from aftypes.h,
when FT_CONFIG_OPTION_PIC is defined init function will be declared.
* src/autofit/aflatin.c when FT_CONFIG_OPTION_PIC is defined
af_latin_script_class struct will have function to init it instead of
being allocated in the global scope.
Change af_latin_blue_chars to be PIC-compatible by being a two
dimentional array rather than array of pointers.
* src/autofit/aflatin2.h declare af_latin2_script_class
using macros from aftypes.h,
when FT_CONFIG_OPTION_PIC is defined init function will be declared.
* src/autofit/aflatin2.c when FT_CONFIG_OPTION_PIC is defined
af_latin2_script_class struct will have function to init it instead of
being allocated in the global scope.
Change af_latin2_blue_chars to be PIC-compatible by being a two
dimentional array rather than array of pointers.
* src/autofit/afglobal.c when FT_CONFIG_OPTION_PIC is defined
af_script_classes array initialization was moved to afpic.c and
is later refered using macros defeined in afpic.h.
New Files:
* src/autofit/afpic.h declare struct to hold PIC globals for autofit
module and macros to access them.
* src/autofit/afpic.c implement functions to allocate, destroy and
initialize PIC globals for autofit module.
* src/autofit/autofit.c add new file to build: afpic.c.
* src/autofit/jamfile add new files to FT2_MULTI build: afpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in pshinter module.
* include/freetype/internal/pshints.h add macros to init
instances of PSHinter_Interface.
* src/pshinter/pshmod.h declare pshinter_module_class
using macros from ftmodapi.h,
when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/pshinter/pshmod.c when FT_CONFIG_OPTION_PIC is defined
pshinter_interface and pshinter_module_class structs
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from pshpic.h in order to access them.
New Files:
* src/pshinter/pshpic.h declare struct to hold PIC globals for pshinter
module and macros to access them.
* src/pshinter/pshpic.c implement functions to allocate, destroy and
initialize PIC globals for pshinter module.
* src/pshinter/pshinter.c add new file to build: pshpic.c.
* src/pshinter/jamfile add new files to FT2_MULTI build: pshpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in psnames module.
* include/freetype/internal/services/svpscmap.h add macros to init
instances of FT_Service_PsCMapsRec.
* src/psnames/psmodule.h declare psnames_module_class
using macros from ftmodapi.h,
when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/psnames/psmodule.c when FT_CONFIG_OPTION_PIC is defined
pscmaps_interface and pscmaps_services structs
and psnames_module_class array
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from pspic.h in order to access them.
New Files:
* src/psnames/pspic.h declare struct to hold PIC globals for psnames
module and macros to access them.
* src/psnames/pspic.c implement functions to allocate, destroy and
initialize PIC globals for psnames module.
* src/psnames/psnames.c add new file to build: pspic.c.
* src/psnames/jamfile add new files to FT2_MULTI build: pspic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in raster renderer.
* src/raster/ftrend1.h declare ft_raster1_renderer_class
and ft_raster5_renderer_class
using macros from ftrender.h,
when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/smooth/ftrend1.c when FT_CONFIG_OPTION_PIC is defined
ft_raster1_renderer_class and ft_raster5_renderer_class structs
will have functions to init or create and destroy them
instead of being allocated in the global scope.
Macros will be used from rastpic.h in order to access
ft_standard_raster from the pic_container (allocated in ftraster.c).
In ft_raster1_render when PIC is enabled, the last letter of
module_name is used to verfy the renderer class rather than the
class pointer.
* src/raster/ftraster.c when FT_CONFIG_OPTION_PIC is defined
ft_standard_raster struct will have function to init it
instead of being allocated in the global scope.
New Files:
* src/raster/rastpic.h declare struct to hold PIC globals for raster
renderer and macros to access them.
* src/raster/rastpic.c implement functions to allocate, destroy and
initialize PIC globals for raster renderer.
* src/raster/raster.c add new file to build: rastpic.c.
* src/raster/jamfile add new files to FT2_MULTI build: rastpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in smooth renderer.
* src/smooth/ftsmooth.h declare ft_smooth_renderer_class,
ft_smooth_lcd_renderer_class and ft_smooth_lcd_v_renderer_class
using macros from ftrender.h,
when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/smooth/ftsmooth.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
ft_smooth_renderer_class, ft_smooth_lcd_renderer_class
and ft_smooth_lcd_v_renderer_class
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from ftspic.h in order to access
ft_grays_raster from the pic_container (allocated in ftgrays.c).
* src/smooth/ftgrays.h include FT_CONFIG_CONFIG_H
* src/smooth/ftgrays.c when FT_CONFIG_OPTION_PIC is NOT defined
func_interface was moved from gray_convert_glyph_inner function
to the global scope.
When FT_CONFIG_OPTION_PIC is defined
func_interface and ft_grays_raster structs
will have functions to init them
instead of being allocated in the global scope.
And func_interface will be allocated on the stack of
gray_convert_glyph_inner.
New Files:
* src/smooth/ftspic.h declare struct to hold PIC globals for smooth
renderer and macros to access them.
* src/smooth/ftspic.c implement functions to allocate, destroy and
initialize PIC globals for smooth renderer.
* src/smooth/smooth.c add new file to build: ftspic.c.
* src/smooth/jamfile add new files to FT2_MULTI build: ftspic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in cff driver.
* include/freetype/internal/services/svcid.h add macros to init
instances of FT_Service_CIDRec.
* include/freetype/internal/services/svpsinfo.h add macros to init
instances of FT_Service_PsInfoRec.
* src/cff/cffcmap.h declare cff_cmap_encoding_class_rec
and cff_cmap_unicode_class_rec using macros from
ftobjs.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/cff/cffcmap.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
cff_cmap_encoding_class_rec and cff_cmap_unicode_class_rec
will have functions to init or create and destroy them
instead of being allocated in the global scope.
* src/cff/cffdrivr.h declare cff_driver_class using macros from
ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/cff/cffdrivr.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
cff_service_glyph_dict, cff_service_ps_info, cff_service_ps_name
cff_service_get_cmap_info, cff_service_cid_info, cff_driver_class,
and cff_services array
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from cffpic.h in order to access them
from the pic_container.
Use macros from cffpic.h in order to access the
structs allocated in cffcmap.c
* src/cff/cffobjs.c Use macros from cffpic.h in order to access the
structs allocated in cffcmap.c
* src/cff/parser.c when FT_CONFIG_OPTION_PIC is defined
implement functions to create and destroy cff_field_handlers array
instead of being allocated in the global scope.
And macros will be used from cffpic.h in order to access it
from the pic_container.
New Files:
* src/cff/cffpic.h declare struct to hold PIC globals for cff
driver and macros to access them.
* src/cff/cffpic.c implement functions to allocate, destroy and
initialize PIC globals for cff driver.
* src/cff/cff.c add new file to build: cffpic.c.
* src/cff/jamfile add new files to FT2_MULTI build: cffpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in sfnt driver.
* include/freetype/internal/services/svbdf.h add macros to init
instances of FT_Service_BDFRec.
* include/freetype/internal/services/svgldict.h add macros to init
instances of FT_Service_GlyphDictRec.
* include/freetype/internal/services/svpostnm.h add macros to init
instances of FT_Service_PsFontNameRec.
* include/freetype/internal/services/svsfnt.h add macros to init
instances of FT_Service_SFNT_TableRec.
* include/freetype/internal/services/svttcmap.h add macros to init
instances of FT_Service_TTCMapsRec.
* include/freetype/internal/sfnt.h add macros to init
instances of SFNT_Interface.
* src/sfnt/sfdriver.h declare sfnt_module_class using macros from
ftmodapi.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/sfnt/sfdriver.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
sfnt_service_sfnt_table, sfnt_service_glyph_dict, sfnt_service_ps_name
tt_service_get_cmap_info, sfnt_service_bdf, sfnt_interface,
sfnt_module_class, and sfnt_services array
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from sfntpic.h in order to access them
from the pic_container.
* src/sfnt/ttcmap.h add macros to init
instances of TT_CMap_ClassRec.
* src/sfnt/ttcmap.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
tt_cmap0_class_rec, tt_cmap2_class_rec, tt_cmap4_class_rec
tt_cmap6_class_rec, tt_cmap8_class_rec, tt_cmap10_class_rec,
tt_cmap12_class_rec, tt_cmap14_class_rec and tt_cmap_classes array
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from sfntpic.h in order to access them
from the pic_container.
The content of tt_cmap_classes is now described in the
new file 'ttcmapc.h'.
New Files:
* src/sfnt/sfntpic.h declare struct to hold PIC globals for sfnt
driver and macros to access them.
* src/sfnt/sfntpic.c implement functions to allocate, destroy and
initialize PIC globals for sfnt driver.
* src/sfnt/ttcmapc.h describing the content of
tt_cmap_classes allocated in ttcmap.c
* src/sfnt/sfnt.c add new file to build: sfntpic.c.
* src/sfnt/jamfile add new files to FT2_MULTI build: sfntpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support in truetype driver.
* include/freetype/internal/services/svmm.h add macros to init
instances of FT_Service_MultiMastersRec.
* include/freetype/internal/services/svttglyf.h add macros to init
instances of FT_Service_TTGlyfRec.
* src/truetype/ttdriver.h declare tt_driver_class using macros from
ftdriver.h, when FT_CONFIG_OPTION_PIC is defined create and destroy
functions will be declared.
* src/truetype/ttdriver.c when FT_CONFIG_OPTION_PIC is defined
the following structs:
tt_service_gx_multi_masters, tt_service_truetype_glyf, tt_driver_class
and tt_services array,
will have functions to init or create and destroy them
instead of being allocated in the global scope.
And macros will be used from ttpic.h in order to access them
from the pic_container.
* src/truetype/ttobjs.c change trick_names array to be
PIC-compatible by being a two dimentional array rather than array
of pointers.
New Files:
* src/truetype/ttpic.h declare struct to hold PIC globals for truetype
driver and macros to access them.
* src/truetype/ttpic.c implement functions to allocate, destroy and
initialize PIC globals for truetype driver.
* src/truetype/truetype.c add new file to build: ttpic.c.
* src/truetype/jamfile add new files to FT2_MULTI build: ttpic.c.
2009-04-05 Oran Agra <oran@monfort.co.il>
Position Independent Code (PIC) support and infrastructure in base.
* include/freetype/config/ftoption.h add FT_CONFIG_OPTION_PIC
* include/freetype/internal/ftobjs.h Add pic_container member to
FT_LibraryRec.
Add macros to declare and init instances of FT_CMap_ClassRec.
Add macros to init instances of FT_Outline_Funcs and FT_Raster_Funcs.
Add macros to declare, allocate and initialize modules
(FT_Module_Class).
Add macros to declare, allocate and initialize renderers
(FT_Renderer_Class).
Add macro to init instances of FT_Glyph_Class.
Add macros to declare, allocate and initialize drivers
(FT_Driver_ClassRec).
* include/freetype/internal/ftpic.h new file to declare the
FT_PIC_Container struct and the functions to allocate and detroy it.
* include/freetype/internal/ftserv.h add macros to allocate and
destory arrays of FT_ServiceDescRec.
* include/freetype/internal/internal.h define macro to include
ftpic.h.
New Files:
* src/base/ftpic.c implement functions to allocate and destory the
global pic_container.
* src/base/basepic.h declare struct to hold PIC globals for base and
macros to access them.
* src/base/basepic.c implement functions to allocate, destroy and
initialize PIC globals for base.
* src/base/ftinit.c when FT_CONFIG_OPTION_PIC is defined implement
functions that allocate and destroy ft_default_modules according to
FT_CONFIG_MODULES_H in the pic_container instead of the global scope
and use macro from basepic.h to access it.
* src/base/ftobjs.c add calls to the functions that allocate and
destroy the global pic_container when the library is created and
destroyed.
* src/base/jamfile add new files to FT2_MULTI build:
ftpic.c and basepic.c.
* src/base/ftbase.c add new files to build:
ftpic.c and basepic.c.
* src/base/ftglyph.c when FT_CONFIG_OPTION_PIC is defined
ft_bitmap_glyph_class and ft_outline_glyph_class will be allocated
in the pic_container instead of the global scope and use macros from
basepic.h to access them.
* src/base/ftbbox.c allocate bbox_interface stract on the stack
instead of the global scope when FT_CONFIG_OPTION_PIC is defined.
* src/base/ftstroke.c access ft_outline_glyph_class allocated in
ftglyph.c via macros from basepic.h
2009-04-05 Oran Agra <oran@monfort.co.il>
Preparing changes in cff parser later needed for PIC version.
* src/cff/cffload.c, src/cff/cffload.h, src/cff/cffobjs.c,
src/cff/cffparse.c, src/cff/cffparse.h: Add library pointer to
'CFF_ParserRec' set by `cff_parser_init'.
Route library pointer from 'cff_face_init' to 'cff_subfont_load'
for `cff_parser_init'.
* src/cff/cffparse.c (CFF_Field_Handler): Move it to...
* src/cff/cffparse.h: This file, to be used by other C files.
2009-04-05 Oran Agra <oran@monfort.co.il>
Minor change in ftstroke.c.
* src/base/ftstroke.c (FT_StrokerRec): Replace `memory' member with
`library' needed for PIC version.
Update all callers.
2009-04-04 Werner Lemberg <wl@gnu.org>
ftnames.c -> ftsnames.c
* src/base/ftnames.c: Rename to...
* src/base/ftsnames.c: This.
* src/base/Jamfile, src/base/rules.mk, src/base/ftbase.c: Updated.
2009-04-04 Werner Lemberg <wl@gnu.org>
Add support for cmap type 13.
* devel/ftoption.h, include/freetype/config/ftoption.h
(TT_CONFIG_CMAP_FORMAT_13): New macro.
* src/sfnt/ttcmap.c (TT_CMap13Rec, tt_cmap13_init,
tt_cmap13_validate, tt_cmap13_char_index, tt_cmap13_char_next,
tt_cmap13_get_info, tt_cmap13_char_map_def_binary,
tt_cmap14_class_rec): New functions and structures for cmap 13
support.
(tt_cmap_classes): Register tt_cmap13_class_rec.
* docs/CHANGES: Mention cmap 13 support.
2009-04-01 Werner Lemberg <wl@gnu.org>
Ignore empty contours in CFF glyphs.
Problem reported by Albert Astals Cid <aacid@kde.org>.
* src/cff/cffgload.c (cff_builder_close_contour): Synchronize with
t1_builder_close_contour.
2009-03-21 Werner Lemberg <wl@gnu.org>
Another redundant header inclusion.
* src/truetype/ttgxvar.c: Fix Ghostscript Coverity issue #4041.
2009-03-21 Werner Lemberg <wl@gnu.org>
Remove redundant header inclusions.
This covers many Ghostscript Coverity issues.
* src/*: Do it.
2009-03-21 Werner Lemberg <wl@gnu.org>
Fix Ghostscript Coverity issue #3904.
* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Protect against
invalid values of `runcnt'.
2009-03-20 Werner Lemberg <wl@gnu.org>
Fix `make multi' run.
* src/smooth/ftsmooth.h: Include FT_INTERNAL_DEBUG_H.
2009-03-20 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25923.
* src/cache/ftccmap.c (FTC_CMAP_HASH): Fix typo.
2009-03-20 Werner Lemberg <wl@gnu.org>
Protect against too large glyphs.
Problem reported by Tavis Ormandy <taviso@google.com>.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Don't allow
`pitch' or `height' to be larger than 0xFFFF.
2009-03-20 Werner Lemberg <wl@gnu.org>
Tavis Ormandy <taviso@google.com>
Fix validation for various cmap table formats.
* src/sfnt/ttcmap.c (tt_cmap8_validate, tt_cmap10_validate,
tt_cmap12_validate): Check `length' correctly.
(tt_cmap_14_validate): Check `length' and `numMappings' correctly.
2009-03-20 Werner Lemberg <wl@gnu.org>
Protect against malformed compressed data.
* src/lzw/ftzopen.c (ft_lzwstate_io): Test whether `state->prefix' is
zero.
2009-03-20 Werner Lemberg <wl@gnu.org>
Protect against invalid SID values in CFFs.
Problem reported by Tavis Ormandy <taviso@google.com>.
* src/cff/cffload.c (cff_charset_load): Reject SID values larger
than 64999.
2009-03-19 Vincent Richomme <richom.v@free.fr>
Update WinCE Visual C project files.
* builds/wince/vc2005-ce/freetype.vcproj,
builds/wince/vc2008-ce/freetype.vcproj: Add missing base extension
files.
2009-03-19 Werner Lemberg <wl@gnu.org>
Remove unused Win32 code.
* builds/wince/ftdebug.c: Remove code guarded with `!_WIN32_WCE'.
Since Win32 is handled separately this is no longer needed.
2009-03-19 Vincent Richomme <richom.v@free.fr>
Make `gzip' module compile on WinCE.
* src/gzip/zconf.h [_WIN32_WCE]: Define NO_ERRNO_H.
2009-03-19 Werner Lemberg <wl@gnu.org>
Remove unused WinCE code.
* builds/win32/ftdebug.c: Remove code guarded with `_WIN32_WCE'.
Since WinCE is handled separately this is no longer needed.
2009-03-16 Werner Lemberg <wl@gnu.org>
docmaker: Don't ignore single-line code blocks.
* src/tools/docmaker/content.py (DocBlock::_init__): Fix change from
2009-01-31.
2009-03-15 Steve Langasek <steve.langasek@canonical.com>
Use __asm__ for declaring assembly instead of asm.
* builds/unix/ftconfig.in (FT_MulFix_arm): Use __asm__ instead of
asm on arm, fixing a build failure on armel with -pedantic.
2009-03-14 Werner Lemberg <wl@gnu.org>
Fix valgrind warning.
* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned): Don't read
past the end of the frame.
2009-03-12 Werner Lemberg <wl@gnu.org>
* Version 2.3.9 released.
=========================
Tag sources with `VER-2-3-9'.
2009-03-12 Werner Lemberg <wl@gnu.org>
* builds/unix/freetype2.in: Move @FT2_EXTRA_LIBS@ to `Libs.private'.
2009-03-12 Werner Lemberg <wl@gnu.org>
Fix some FreeType Coverity issues as reported for Ghostscript.
* src/base/ftobjs.c (FT_New_Face, FT_New_Memory_Face): Initialize
`args.stream' (#3874, #3875).
(open_face_PS_from_sfnt_stream): Improve error management (#3786).
* src/base/ftmm.c (ft_face_get_mm_service): Fix check of `aservice'
(#3870).
* src/base/ftstroke.c (ft_stroke_border_get_counts): Remove dead
code (#3790).
* src/base/ftrfork.c (raccess_guess_apple_generic): Check error
value of `FT_Stream_Skip' (#3784).
* src/type1/t1gload.c (T1_Load_Glyph): Check `size' before accessing
it (#3872)
* src/pcf/pcfdrivr.c (PCF_Glyph_Load): Check `face' before accessing
it (#3871).
* src/pcf/pcfread.c (pcf_get_metrics): Handle return value of
`pcf_get_metric' (#3789, #3782).
(pcf_get_properties): Use FT_STREAM_SKIP (#3783).
* src/cache/ftcmanag.c (FTC_Manager_RegisterCache): Fix check of
`acache' (#3797)
* src/cff/cffdrivr.c (cff_ps_get_font_info): Fix check of `cff'
(#3796).
* src/cff/cffgload.c (cff_decoder_prepare): Check `size' (#3795).
* src/cff/cffload.c (cff_index_get_pointers): Add comment (#3794).
* src/bdf/bdflib.c (_bdf_add_property): Check `fp->value.atom'
(#3793).
(_bdf_parse_start): Add comment (#3792).
* src/raster/ftraster.c (Finalize_Profile_Table): Check
`ras.fProfile' (#3791).
* src/sfnt/ttsbit.c (Load_SBit_Image): Use FT_STREAM_SKIP (#3785).
* src/gzip/ftgzip.c (ft_gzip_get_uncompressed_size): Properly ignore
seek error (#3781).
2009-03-11 Michael Toftdal <toftdal@gmail.com>
Extend CID service functions to handle CID-keyed CFFs as CID fonts.
* include/freetype/ftcid.h (FT_Get_CID_Is_Internally_CID_keyed,
FT_Get_CID_From_Glyph_Index): New functions.
* include/freetype/internal/services/svcid.h
(FT_CID_GetIsInternallyCIDKeyedFunc,
FT_CID_GetCIDFromGlyphIndexFunc): New function typedefs.
(CID Service): Use them.
* src/base/ftcid.c: Include FT_CID_H.
(FT_Get_CID_Is_Internally_CID_keyed, FT_Get_CID_From_Glyph_Index):
New functions.
* src/cff/cffdrivr.c (cff_get_is_cid, cff_get_cid_from_glyph_index):
New functions.
(cff_service_cid_info): Add them.
* src/cff/cffload.c (cff_font_load): Don't free `font->charset.sids'
-- it is needed for access as a CID-keyed font. It gets deleted
later on.
* src/cid/cidriver.c (cid_get_is_cid, cid_get_cid_from_glyph_index):
New functions.
(cid_service_cid_info): Add them.
* docs/CHANGES: Updated.
2009-03-11 Bram Tassyns <bramt@enfocus.be>
Fix Savannah bug #25597.
* src/cff/cffparse.c (cff_parse_real): Don't allow fraction_length
to become larger than 9.
2009-03-11 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25814.
* builds/unix/freetype2.in: As suggested in the bug report, move
@LIBZ@ to `Libs.private'.
2009-03-11 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25781.
We now simply check for a valid `offset', no longer handling `delta
= 1' specially.
* src/sfnt/ttcmap.c (tt_cmap4_validate): Don't check `delta' for
last segment.
(tt_cmap4_set_range, tt_cmap4_char_map_linear,
tt_cmap4_char_map_binary): Check offset.
2009-03-11 Werner Lemberg <wl@gnu.org>
* src/base/Jamfile: Fix handling of ftadvanc.c.
Reported by Oran Agra <oran@monfort.co.il>.
2009-03-10 Vincent Richomme <richom.v@free.fr>
Restructure Win32 and Wince compiler support.
* src/builds/win32: Remove files for WinCE.
Move VC 2005 support to a separate directory.
Add directory for VC 2008 support.
* src/builds/wince: New directory hierarchy for WinCE compilers
(VC 2005 and VC 2008).
2009-03-09 Werner Lemberg <wl@gnu.org>
More preparations for 2.3.9 release.
* docs/CHANGES: Updated.
* Jamfile, README: s/2.3.8/2.3.9/, s/238/239/.
2009-03-09 Werner Lemberg <wl@gnu.org>
* src/sfnt/rules.mk (SFNT_DRV_H): Add ttsbit0.c.
2009-03-09 Alexey Kryukov <anagnost@yandex.ru>
Fix handling of EBDT formats 8 and 9 (part 2).
This patch fixes the following problems in ttsbit0.c:
. Bitmaps for compound glyphs were never allocated.
. `SBitDecoder' refused to load metrics if some other metrics have
already been loaded. This condition certainly makes no sense for
recursive calls, so I've just disabled it. Another possibility
would be resetting `decoder->metrics_loaded' to false before
loading each composite component. However, we must restore the
original metrics after finishing the recursion; otherwise we can
get a misaligned glyph.
. `tt_sbit_decoder_load_bit_aligned' incorrectly handled `x_pos',
causing some glyph components to be shifted too far to the right
(especially noticeable for small sizes).
Note that support for grayscale bitmaps (not necessarily compound) is
completely broken in ttsbit0.c.
* src/sfnt/tt_sbit_decoder_load_metrics: Always load metrics.
(tt_sbit_decoder_load_bit_aligned): Handle `x_pos' correctly in case
of `h == height'.
(tt_sbit_decoder_load_compound): Reset metrics after loading
components.
Allocate bitmap.
2009-03-09 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.raw (version_info): Set to 9:20:3.
2009-03-03 David Turner <david@freetype.org>
Protect SFNT kerning table parser against malformed tables.
This closes Savannah BUG #25750.
* src/sfnt/ttkern.c (tt_face_load_kern, tt_face_get_kerning): Fix a
bug where a malformed table would be successfully loaded but later
crash the engine during parsing.
2009-03-03 David Turner <david@freetype.org>
Update documentation and bump version number to 2.3.9.
* include/freetype/freetype.h: Bump patch version to 9.
* docs/CHANGES: Document the ABI break in 2.3.8.
* docs/VERSION.DLL: Update version numbers table for 2.3.9.
2009-03-03 David Turner <david@freetype.org>
Remove ABI-breaking field in public PS_InfoFontRec definition.
Instead, we define a new internal PS_FontExtraRec structure to
hold the additional field, then place it in various internal
positions of the corresponding FT_Face derived objects.
* include/freetype/t1tables.h (PS_FontInfoRec): Remove the
`fs_type' field from the public structure.
* include/freetype/internal/psaux.h (T1_FieldLocation): New
enumeration `T1_FIELD_LOCATION_FONT_EXTRA'.
* include/freetype/internal/t1types.h (PS_FontExtraRec): New
structure.
(T1_FontRec, CID_FaceRec): Add it.
* src/cid/cidload.c (cid_load_keyword): Handle
T1_FIELD_LOCATION_FONT_EXTRA.
* src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c:
Adjust FT_STRUCTURE and T1CODE properly to handle `FSType'.
* src/type1/t1load.c (t1_load_keyword): Handle
T1_FIELD_LOCATION_FONT_EXTRA.
* include/freetype/internal/services/svpsinfo.h (PsInfo service):
Add `PS_GetFontExtraFunc' function typedef.
* src/base/ftfstype.c: Include FT_INTERNAL_SERVICE_H and
FT_SERVICE_POSTSCRIPT_INFO_H.
(FT_Get_FSType_Flags): Use POSTSCRIPT_INFO service.
* src/cff/cffdrivr.c (cff_service_ps_info): Updated.
* src/cid/cidriver.c (cid_ps_get_font_extra): New function.
(cid_service_ps_info): Updated.
* src/type1/t1driver.c (t1_ps_get_font_extra): New function.
(t1_service_ps_info): Updated.
* src/type42/t42drivr.c (t42_ps_get_font_extra): New function.
(t42_service_ps_info): Updated.
2009-03-02 Alexey Kryukov <anagnost@yandex.ru>
Fix handling of EBDT formats 8 and 9.
The main cycle in `blit_sbit' makes too many iterations: it actually
needs the count of lines in the source bitmap rather than in the
target image.
* src/sfnt/ttsbit.c (blit_sbit) [FT_CONFIG_OPTION_OLD_INTERNALS]:
Add parameter `source_height' and use it for main loop.
(Load_SBit_Single) [FT_CONFIG_OPTION_OLD_INTERNALS]: Updated.
2009-02-23 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25669.
* src/base/ftadvanc.h (FT_Get_Advances): Fix serious typo.
* src/base/ftobjs.c (FT_Select_Metrics, FT_Request_Metrics): Fix
scaling factor for non-scalable fonts.
* src/cff/cffdrivr.c (cff_get_advances): Use correct advance width
value to prevent incorrect scaling.
* docs/CHANGES: Document it.
2009-02-15 Matt Godbolt <matt@godbolt.org>
Fix Savannah bug #25588.
* builds/unix/ftconfig.in (FT_MulFix_arm): Use correct syntax for
`orr' instruction.
2009-02-11 Werner Lemberg <wl@gnu.org>
* src/truetype/ttobjs.c (tt_check_trickyness): Add `DFKaiShu'.
Reported by David Bevan <dbevan@emtex.com>.
2009-02-09 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25495.
* src/sfnt/sfobjs.c (sfnt_load_face): Test for bitmap strikes before
setting metrics and bbox values. This ensures that the check for a
font with neither a `glyf' table nor bitmap strikes can be performed
early enough to set metrics and bbox values too.
2009-02-04 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #25480.
* builds/unix/freetype-config.in: For --ftversion, don't use $prefix
but $includedir.
2009-01-31 Werner Lemberg <wl@gnu.org>
Minor docmaker improvements.
* src/tools/docmaker/content.py (DocBlock::__init__): Ignore empty
code blocks.
2009-01-25 Werner Lemberg <wl@gnu.org>
Fix SCANCTRL handling in TTFs.
Problem reported by Alexey Kryukov <anagnost@yandex.ru>.
* src/truetype/ttinterp.c (Ins_SCANCTRL): Fix threshold handling.
2009-01-23 Werner Lemberg <wl@gnu.org>
Move FT_Get_FSType_Flags to a separate file.
Problem reported by Mickey Gabel <mickey@monfort.co.il>.
* src/base/ftobjs.c (FT_Get_FSType_Flags): Move to...
* src/base/ftfstype.c: This new file.
* modules.cfg (BASE_EXTENSION): Add ftfstype.c.
* docs/INSTALL.ANY: Updated.
* builds/mac/*.txt, builds/amiga/*makefile*,
builds/win32/{visualc,visualce}/freetype.*, builds/symbian/*:
Updated.
2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/ftsystem.c (FT_Stream_Open): Fix 2 error
messages ending without "\n".
2009-01-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix Savannah bug #25347.
* src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Rewind
the stream to the original position passed to this function,
when ft_lookup_PS_in_sfnt_stream() failed.
(Mac_Read_sfnt_Resource): Rewind the stream to the head of
sfnt resource body, when open_face_PS_from_sfnt_stream()
failed.
2009-01-19 Michael Lotz <mmlr@mlotz.ch>
Fix Savannah bug #25355.
* include/freetype/config/ftconfig.h (FT_MulFix_i386): Make
assembler code work with gcc 2.95.3 (as used by the Haiku project).
Add `cc' register to the clobber list.
2009-01-18 Werner Lemberg <wl@gnu.org>
Protect FT_Get_Next_Char.
* src/sfnt/ttcmap.c (tt_cmap4_set_range): Apply fix similar to
change from 2008-07-22.
Patch from Ronen Ghoshal <rghoshal@emtex.com>.
2009-01-18 Werner Lemberg <wl@gnu.org>
Implement FT_Get_Name_Index for SFNT driver.
* src/sfnt/sfdriver.c (sfnt_get_name_index): New function.
(sfnt_service_glyph_dict): Use it.
Problem reported by Truc Truong <tructv@necsv.com>.
2009-01-18 Werner Lemberg <wl@gnu.org>
* include/freetype/ftstroke.h (FT_Outline_GetInsideBorder): Fix
documentation. Problem reported by Truc Truong <tructv@necsv.com>.
* docs/CHANGES: Updated.
2009-01-14 Werner Lemberg <wl@gnu.org>
* Version 2.3.8 released.
=========================
Tag sources with `VER-2-3-8'.
* docs/VERSION.DLL: Update documentation and bump version number to
2.3.8.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.7/2.3.8/, s/237/238/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 8.
* builds/unix/configure.raw (version_info): Set to 9:19:3.
* docs/release: Updated.
2009-01-14 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (dist): Compress better.
2009-01-13 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Get_FSType_Flags): Cast for compilation
with C++.
2009-01-13 Werner Lemberg <wl@gnu.org>
Don't use stdlib.h and friends directly.
Reported by Mickey Gabel <mickey@monfort.co.il>.
* src/base/ftdbgmem.c: s/<stdlib.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
* src/gzip/ftgzip.c, src/lzw/ftlzw.c, src/raster/ftmisc.h:
s/<string.h>/FT_CONFIG_STANDARD_LIBRARY_H/.
* src/autofit/aftypes.h, src/autofit/afhints.c,
src/pshinter/pshalgo.c: s/<stdio.h>/FT_CONFIG_STANDARD_LIBRARY_H/
* src/lzw/ftlzw.c, src/base/ftdbgmem.c: Don't include stdio.h.
2009-01-12 Werner Lemberg <wl@gnu.org>
Avoid compiler warnings.
* */*: s/do ; while ( 0 )/do { } while ( 0 )/.
Reported by Sean McBride <sean@rogue-research.com>.
2009-01-12 Werner Lemberg <wl@gnu.org>
Fix stdlib dependencies.
Problem reported by Mickey Gabel <mickey@monfort.co.il>.
* include/freetype/config/ftstdlib.h (ft_exit): Removed. Unused.
* src/autofit/afhints.c, src/base/ftlcdfil.c, src/smooth/ftsmooth.c:
s/memcpy/ft_memcpy/.
* src/psaux/t1decode.c: s/memset/ft_memset/, s/memcpy/ft_memcpy/.
2009-01-11 Werner Lemberg <wl@gnu.org>
* docs/formats.txt: Add link to PCF specification.
* include/freetype/ftbdf.h (FT_Get_BDF_Property): Improve
documentation.
2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
FT_Get_Advances): Change the type of load_flags from FT_UInt32 to
FT_Int32, to match with the flags for FT_Load_Glyph().
* src/cff/cffdrivr.c (cff_get_advances): Ditto.
* src/truetype/ttdriver.c (tt_get_advances): Ditto.
* include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
Ditto.
* include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
Ditto.
2009-01-09 Daniel Zimmermann <netzimme@aol.com>
* src/gxvalid/gxvmort.c (gxv_mort_feature_validate): Fix wrong
length check. From Savannah patch #6682.
2009-01-09 Werner Lemberg <wl@gnu.org>
Fix problem with T1_FIELD_{NUM,FIXED}_TABLE2.
* src/psaux/psobjs.c (ps_parser_load_field_table): Don't handle
`count_offset' if it is zero (i.e., unused). Otherwise, the first
element of the structure which holds the data is erroneously
modified. Problem reported by Chi Nguyen <chint@necsv.com>.
2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftadvanc.c (_ft_face_scale_advances, FT_Get_Advance,
FT_Get_Advances): Extend the type of load_flags from FT_UInt to
FT_UInt32, to pass 32-bit flags on 16bit platforms.
* src/cff/cffdrivr.c (cff_get_advances): Ditto.
* src/truetype/ttdriver.c (tt_get_advances): Ditto.
* include/freetype/ftadvanc.h (FT_Get_Advance, FT_Get_Advances):
Ditto.
* include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
Ditto.
2009-01-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (FT_Done_Library): Issue an error message when
FT_Done_Face() cannot free all faces. If the list of the opened
faces includes broken face which FT_Done_Face() cannot free,
FT_Done_Library() retries FT_Done_Face() and it can fall into
an endless loop. See the discussion:
http://lists.gnu.org/archive/html/freetype-devel/2008-09/msg00047.html
http://lists.gnu.org/archive/html/freetype-devel/2008-10/msg00000.html
2009-01-07 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Document new key `a' in ftdiff.
2009-01-06 Werner Lemberg <wl@gnu.org>
* autogen.sh: Don't use GNUisms while calling sed. Problem reported
by Sean McBride.
2009-01-06 Werner Lemberg <wl@gnu.org>
* src/base/ftbitmap.c (FT_Bitmap_Convert): Handle FT_PIXEL_MODE_LCD
and FT_PIXEL_MODE_LCD_V. Problem reported by Chi Nguyen
<chint@necsv.com>.
2009-01-06 Diego Pettenò <flameeyes@gmail.com>
* builds/unix/configure.raw: Don't call AC_CANONICAL_BUILD and
AC_CANONICAL_TARGET and use $host_os only. A nice explanation for
this change can be found at
http://blog.flameeyes.eu/s/canonical-target.
From Savannah patch #6712.
2009-01-06 Sean McBride <sean@rogue-research.com>
* src/base/ftdbgmem.c (_debug_mem_dummy): Make it static.
* src/base/ftmac.c: Remove some #undefs.
2008-12-26 Werner Lemberg <wl@gnu.org>
Set `face_index' field in FT_Face for all font formats.
* cff/cffobjs.c (cff_face_init), winfonts/winfnt.c (FNT_Face_Init),
sfnt/sfobjs.c (sfnt_init_face): Do it.
* docs/CHANGES: Document it.
2008-12-22 Steve Grubb
* builds/unix/ftsystem.c (FT_Stream_Open): Reject zero-length files.
Patch from Savannah bug #25151.
2008-12-21 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrdrivr.c, src/winfonts/winfnt.c, src/cache/ftcmanag.c,
src/smooth/ftgrays.c, src/base/ftobjc.s, src/sfobjs.c:
s/_Err_Bad_Argument/_Err_Invalid_Argument/. The former is for
errors in the bytecode interpreter only.
2008-12-21 Werner Lemberg <wl@gnu.org>
* src/base/ftpfr.c (FT_Get_PFR_Metrics): Protect against NULL
arguments.
Fix return value for non-PFR fonts. Both problems reported by Chi
Nguyen <chint@necsv.com>.
2008-12-21 anonymous
FT_USE_MODULE declares things as:
extern const FT_Module_Class
(or similar for C++). However, the actual types of the variables
being declared are often different, e.g., FT_Driver_ClassRec or
FT_Renderer_Class. (Some are, indeed, FT_Module_Class.)
This works with most C compilers (since those structs begin with an
FT_Module_Class struct), but technically it's undefined behavior.
To quote the ISO/IEC 9899:TC2 final committee draft, section 6.2.7
paragraph 2:
All declarations that refer to the same object or function shall
have compatible type; otherwise, the behavior is undefined.
(And they are not compatible types.)
Most C compilers don't reject (or even detect!) code which has this
issue, but the GCC LTO development branch compiler does. (It
outputs the types of the objects while generating .o files, along
with a bunch of other information, then compares them when doing the
final link-time code generation pass.)
Patch from Savannah bug #25133.
* src/base/ftinit.c (FT_USE_MODULE): Include variable type.
* builds/amiga/include/freetype/config/ftmodule.h,
include/freetype/config/ftmodule.h, */module.mk: Updated to declare
pass correct types to FT_USE_MODULE.
2008-12-21 Hongbo Ni <hongbo@njstar.com>
* src/autofit/aflatin.c (af_latin_hint_edges),
src/autofit/aflatin2.c (af_latin2_hint_edges), src/autofit/afcjk.c
(af_cjk_hint_edges): Protect against division by zero. This fixes
Savannah bug #25124.
2008-12-18 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2008-12-18 Bevan, David <dbevan@emtex.com>
Provide API for accessing embedding and subsetting restriction
information.
* include/freetype.h (FT_FSTYPE_INSTALLABLE_EMBEDDING,
FT_FSTYPE_RESTRICTED_LICENSE_EMBEDDING,
FT_FSTYPE_PREVIEW_AND_PRINT_EMBEDDING, FT_FSTYPE_EDITABLE_EMBEDDING,
FT_FSTYPE_NO_SUBSETTING, FT_FSTYPE_BITMAP_EMBEDDING_ONLY): New
macros.
(FT_Get_FSType_Flags): New function declaration.
* src/base/ftobjs.c (FT_Get_FSType_Flags): New function.
* src/cid/cidtoken.h, src/type1/t1tokens.h, src/type42/t42parse.c
(t42_keywords): Handle `FSType'.
* include/freetype/t1tables.h (PS_FontInfoRec): Add `fs_type' field.
2008-12-17 Werner Lemberg <wl@gnu.org>
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Don't use internal
macros so that copying the source code into an application works
out of the box.
2008-12-17 Werner Lemberg <wl@gnu.org>
* include/freetype/ftsynth.h, src/base/ftsynth.c: Move
FT_GlyphSlot_Own_Bitmap to...
* include/freetype/ftbitmap.h, src/base/ftbitmap.c: These files.
* docs/CHANGES: Document it.
2008-12-10 Werner Lemberg <wl@gnu.org>
Generalize the concept of `tricky' fonts by introducing
FT_FACE_FLAG_TRICKY to indicate that the font format's hinting
engine is necessary for correct rendering.
At the same time, slightly modify the behaviour of tricky fonts:
FT_LOAD_NO_HINTING is now ignored. To really force raw loading
of tricky fonts (without hinting), both FT_LOAD_NO_HINTING and
FT_LOAD_NO_AUTOHINT must be used.
Finally, tricky TrueType fonts always use the bytecode interpreter
even if the patented code is used.
* include/freetype/freetype.h (FT_FACE_FLAG_TRICKY, FT_IS_TRICKY):
New macros.
* src/truetype/ttdriver.c (Load_Glyph): Handle new load flags
semantics as described above.
* src/truetype/ttobjs.c (tt_check_trickyness): New function, using
code of ...
(tt_face_init): This function, now simplified and updated to new
semantics.
* src/base/ftobjs.c (FT_Load_Glyph): Don't use autohinter for tricky
fonts.
* docs/CHANGES: Document it.
2008-12-09 Werner Lemberg <wl@gnu.org>
Really fix Savannah bug #25010: An SFNT font with neither outlines
nor bitmaps can be considered as containing space `glyphs' only.
* src/truetype/ttpload.c (tt_face_load_loca): Handle the case where
a `glyf' table is missing.
* src/truetype/ttgload.c (load_truetype_glyph): Abort if we have no
`glyf' table but a non-zero `loca' entry.
(tt_loader_init): Handle missing `glyf' table.
* src/base/ftobjs.c (FT_Load_Glyph): Undo change 2008-12-05.
* src/sfnt/sfobjs.c (sfnt_load_face): A font with neither outlines
nor bitmaps is scalable.
2008-12-05 Werner Lemberg <wl@nu.org>
* src/autofit/aflatin.c (af_latin_uniranges): Add more ranges. This
fixes Savannah bug #21190 which also provides a basic patch.
2008-12-05 Werner Lemberg <wl@nu.org>
* include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): Use value
0x100 instead of 0x10000; the latter value is already occupied by
FT_LOAD_TARGET_LIGHT. Bug reported by James Cloos.
Handle SFNT with neither outlines nor bitmaps. This fixes Savannah
bug #25010.
* src/base/ftobjs.c (FT_Load_Glyph): Reject fonts with neither
outlines nor bitmaps.
* src/sfnt/sfobjs.c (sfnt_load_face): Don't return an error if there
is no table with glyphs.
* src/sfnt/ttload.c (tt_face_lookup_table): Improve debugging
message.
2008-12-01 Werner Lemberg <wl@gnu.org>
GDEF tables need `glyph_count' too for validation. Problem reported
by Chi Nguyen <chint@necsv.com>.
* src/otvalid/otvgdef.c (otv_GDEF_validate), src/otvalid/otvalid.h
(otv_GDEF_validate), src/otvalid/otvmod.c (otv_validate): Pass
`glyph_count'.
2008-11-29 Werner Lemberg <wl@gnu.org>
* src/autofit/afcjk.c, src/base/ftoutln.c, src/base/ftrfork.c,
src/bdf/bdfdrivr.c, src/gxvalid/gxvmorx.c, src/otvalid/otvmath.c,
src/pcf/pcfdrivr.c, src/psnames/pstables.h, src/smooth/ftgrays.c,
src/tools/glnames.py, src/truetype/ttinterp.c, src/type1/t1load.c,
src/type42/t42objs.c, src/winfonts/winfnt.c: Fix compiler warnings
(Atari PureC).
2008-11-29 James Cloos <cloos@jhcloos.com>
* src/type/t1load.c (mm_axis_unmap): Revert previous patch and fix
it correctly by using FT_INT_TO_FIXED (FreeType expects 16.16 values
in the /BlendDesignMap space).
2008-11-29 James Cloos <cloos@jhcloos.com>
* src/type1/t1load.c (mm_axis_unmap): `blend_points' is FT_Fixed*,
whereas `design_points' is FT_Long*. Therefore, return blend rather
than design points.
2008-11-27 Werner Lemberg <wl@gnu.org>
* src/cff/cffparse.c (cff_parse_real): Handle more than nine
significant digits correctly. This fixes Savannah bug #24953.
2008-11-25 Daniel Zimmermann <netzimme@aol.com>
* src/base/ftstream.c (FT_Stream_ReadFields): Don't access stream
before the NULL check. From Savannah patch #6681.
2008-11-24 Werner Lemberg <wl@gnu.org>
Fixes from the gnuwin32 port.
* src/base/ftlcdfil.c: s/EXPORT/EXPORT_DEF/.
* src/base/ftotval.c: Include FT_OPENTYPE_VALIDATE_H.
* src/psaux/psobjs.c (ps_table_add): Check `length'.
2008-11-15 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (tt_default_graphics_state): The default
value for `scan_type' is zero, as confirmed by Greg Hitchcock from
Microsoft. Problem reported by Michal Nowakowski
<miszka@limes.com.pl>.
2008-11-12 Tor Andersson <tor.andersson@gmail.com>
* src/cff/cffdrivr.c (cff_get_cmap_info): Initialize `format' field.
This fixes Savannah bug #24819.
2008-11-08 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (sfnt_load_face): Remove #if 0/#endif guards
since OpenType version 1.5 has been released.
* include/ttnameid.h (TT_NAME_ID_WWS_FAMILY,
TT_NAME_ID_WWS_SUBFAMILY): New macros for OpenType 1.5.
(TT_URC_COPTIC, TT_URC_VAI, TT_URC_NKO, TT_URC_BALINESE,
TT_URC_PHAGSPA, TT_URC_NON_PLANE_0, TT_URC_PHOENICIAN,
TT_URC_TAI_LE, TT_URC_NEW_TAI_LUE, TT_URC_BUGINESE,
TT_URC_GLAGOLITIC, TT_URC_YIJING, TT_URC_SYLOTI_NAGRI,
TT_URC_LINEAR_B, TT_URC_ANCIENT_GREEK_NUMBERS, TT_URC_UGARITIC,
TT_URC_OLD_PERSIAN, TT_URC_SHAVIAN, TT_URC_OSMANYA,
TT_URC_CYPRIOT_SYLLABARY, TT_URC_KHAROSHTHI, TT_URC_TAI_XUAN_JING,
TT_URC_CUNEIFORM, TT_URC_COUNTING_ROD_NUMERALS, TT_URC_SUNDANESE,
TT_URC_LEPCHA, TT_URC_OL_CHIKI, TT_URC_SAURASHTRA, TT_URC_KAYAH_LI,
TT_URC_REJANG, TT_URC_CHAM, TT_URC_ANCIENT_SYMBOLS,
TT_URC_PHAISTOS_DISC, TT_URC_OLD_ANATOLIAN, TT_URC_GAME_TILES): New
macros for OpenType 1.5.
2008-11-08 Wenlin Institute <wenlin@wenlin.com>
* src/base/ftobjs.c (ft_glyphslot_free_bitmap): Protect against
slot->internal == NULL. Reported by Graham Asher.
2008-11-08 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (tt_face_get_name): Modified to return an error
code so that memory allocation problems can be distinguished from
missing table entries. Reported by Graham Asher.
(GET_NAME): New macro.
(sfnt_load_face): Use it.
2008-11-05 Werner Lemberg <wl@gnu.org>
* devel/ftoption.h, include/freetype/config/ftoption.h
[TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Undefine
TT_CONFIG_OPTION_UNPATENTED_HINTING. This fixes the return value of
`FT_Get_TrueType_Engine_Type' (and makes it work as documented).
Reported in bug #441638 of bugzilla.novell.com.
* docs/CHANGES: Document it.
2008-11-03 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs): Use an endless loop. There are
fonts (like HELVI.PFB version 003.001, used on OS/2) which define
some `subrs' elements more than once. Problem reported by Peter
Weilbacher <mozilla@weilbacher.org>.
2008-10-15 Graham Asher <graham.asher@btinternet.com>
* src/sfnt/ttpost.c (tt_post_default_names): Add `const'.
2008-10-15 David Turner <david@freetype.org>
* src/truetype/ttgxvar.c (TT_Set_MM_Blend): Disambiguate for
meddlesome compilers' warning against `for ( ...; ...; ...) ;'.
2008-10-14 Werner Lemberg <wl@gnu.org>
* src/cff/cffobjs.c (cff_face_init): Remove compiler warning.
Suggested by Bram Tassyns in Savannah patch #6651.
2008-10-12 Graham Asher <graham.asher@btinternet.com>
* src/sfnt/sfobjs.c (sfnt_load_face): Fix computation of
`underline_position'.
2008-10-12 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2008-10-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix Savannah bug #24468.
According to include/freetype/internal/ftobjs.h, the appropriate
type to interchange single character codepoint is FT_UInt32. It
should be distinguished from FT_UInt which can be 16bit integer.
* src/sfnt/ttcmap.c (tt_cmap4_char_map_linear): Change the type
of the second argument `pcharcode' from FT_UInt* to FT_UInt32*.
(tt_cmap4_char_map_binary): Ditto.
(tt_cmap14_get_nondef_chars): Change the type of return value
from FT_UInt* to FT_UInt32*.
2008-10-08 John Tytgat <John.Tytgat@esko.com>
Fix Savannah bug #24485.
* src/type1/t1load.c (parse_charstrings): Assure that we always have
a .notdef glyph.
2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Include FT_TRUETYPE_TAGS_H for multi build.
* builds/mac/ftmac.c: Ditto.
2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/tttags.h (TTAG_TYP1, TTAG_typ1): Fix definitions.
* src/base/ftobjs.c: Include FT_TRUETYPE_TAGS_H.
2008-10-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/sfnt/sfobjs.c (sfnt_open_font): Allow `typ1' version tag in
the beginning of sfnt container.
* src/sfnt/ttload.c (check_table_dir): Return
`SFNT_Err_Table_Missing' when sfnt table directory structure is
correct but essential tables for TrueType fonts (`head', `bhed' or
`SING') are missing. Other errors are returned by
SFNT_Err_Unknown_File_Format.
* src/base/ftobjs.c (FT_Open_Face): When TrueType driver returns
`FT_Err_Table_Missing', try `open_face_PS_from_sfnt_stream'. It is
enabled only when old mac font support is configured.
2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/tttags.h (TTAG_CID, TTAG_FOND, TTAG_LWFN,
TTAG_POST, TTAG_sfnt, TTAG_TYP1, TTAG_typ1): New tags to simplify
the repeated calculations of these values in ftobjs.c and ftmac.c.
* src/base/ftobjs.c: Replace all FT_MAKE_TAG by new tags.
* src/base/ftmac.c: Ditto.
* builds/mac/ftmac.c: Ditto.
2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (ft_lookup_PS_in_sfnt_stream): Remove wrong
initialization of *is_sfnt_cid.
2008-10-04 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (open_face_PS_from_sfnt_stream): Remove compiler
warnings.
2008-10-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Replaced by...
(ft_lookup_PS_in_sfnt_stream): This.
(open_face_PS_from_sfnt_stream): New function. It checks whether
the stream is sfnt-wrapped Type1 PS font or sfnt-wrapped CID-keyed
font, then try to open a face for given face_index.
(Mac_Read_sfnt_Resource): Replace the combination of
`ft_lookup_PS_in_sfnt' and `open_face_from_buffer' by
`open_face_PS_from_sfnt_stream'.
* src/base/ftmac.c (FT_New_Face_From_SFNT): Ditto.
* builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
* src/base/ftbase.h: Remove `ft_lookup_PS_in_sfnt' and add
`open_face_PS_from_sfnt_stream'.
2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (ft_lookup_PS_in_sfnt): Set *is_sfnt_cid to
FALSE if neither `CID ' nor `TYP1' is found in the sfnt container.
2008-10-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/config/ftconfig.h: Define FT_MACINTOSH when SC or
MrC compiler of MPW is used. These compilers do not define the
macro __APPLE__ by themselves.
* builds/unix/ftconfig.in: Ditto.
* builds/vms/ftconfig.h: Ditto.
* src/base/ftbase.c: Use FT_MACINTOSH instead of __APPLE__, to
include ftmac.c if FreeType 2 is built by MPW.
* src/base/ftobjs.c: Use FT_MACINTOSH instead of __APPLE__, to
enable shared functions for ftmac.c if FreeType 2 is built by MPW.
* builds/mac/ftmac.c: Include ftbase.h.
(memory_stream_close): Removed.
(new_memory_stream): Ditto.
(open_face_from_buffer): Removed. Use the implementation in
ftobjs.c.
(ft_lookup_PS_in_sfnt): Ditto.
* builds/mac/FreeType.m68k_far.make.txt: Build ftmac.c as an
included part of ftbase.c, to share the functions in ftobjs.c. The
rule compiling ftmac.c separately is removed and the rule copying
ftbase.c from src/base/ftbase.c to builds/mac/ftbase.c is added.
* builds/mac/FreeType.m68k_cfm.make.txt: Ditto.
* builds/mac/FreeType.ppc_classic.make.txt: Ditto.
* builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
2008-10-02 Bram Tassyns <bramt@enfocus.be>
* src/cff/cffgload.c (cff_slot_load): Map CID 0 to GID 0. This
fixes Savannah bug #24430.
2008-10-02 Werner Lemberg <wl@gnu.org>
* builds/freetype.mk (BASE_H): Rename to...
(INTERNAL_H): This.
(FREETYPE_H): Updated.
* src/base/rules.mk: (BASE_OBJ_S, OBJ_DIR/%.$O): Add BASE_H.
* src/bdf/rules.mk (BDF_DRV_H): Add bdferror.h.
* src/cache/rules.mk (CACHE_DRV_H): Add ftccache.h and ftcsbits.h.
* src/pcf/rules.mk (PCF_DRV_H): Add pcfread.h.
* src/raster/rules.mk (RASTER_DRV_H): Add ftmisc.h.
* src/type42/rules.mk (T42_DRV_H): Add t42types.h.
2008-10-02 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftbase.h: New file to declare the private utility
functions shared by the sources of base modules. Currently,
`ft_lookup_PS_in_sfnt' and `open_face_from_buffer' are declared to
share between ftobjs.c and ftmac.c.
* src/base/rule.mk: Add ftbase.h.
* src/base/ftobjs.c: Include ftbase.h.
(memory_stream_close): Build on any platform when old MacOS font
support is enabled.
(new_memory_stream): Ditto.
(open_face_from_buffer): Build on any platform when old MacOS font
support is enabled. The counting of the face in a font file is
slightly different between Carbon-dependent parser and Carbon-free
parser. They are merged with the platform-specific conditional.
(ft_lookup_PS_in_sfnt): Ditto.
* src/base/ftmac.c: Include ftbase.h.
(memory_stream_close): Removed.
(new_memory_stream): Ditto.
(open_face_from_buffer): Removed. Use the implementation in
ftobjs.c.
(ft_lookup_PS_in_sfnt): Ditto.
2008-10-02 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
2008-10-01 Werner Lemberg <wl@gnu.org>
* src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
(cff_face_done), src/pfr/pfrobjs.c (pfr_face_done),
src/pcf/pcfdrivr.c (PCF_Face_Done), src/cid/cidobjs.c
(cid_face_done), src/bdf/bdfdrivr. (BDF_Face_Done),
src/sfnt/sfobjs.c (sfnt_face_done): Protect against face == 0.
Reported by Graham Asher.
2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/rules.mk: Add conditional source to BASE_SRC, for `make
multi' on Mac OS X. If the macro $(ftmac_c) is defined,
$(BASE_DIR)/$(ftmac_c) is added to BASE_SRC. In a normal build, the
lack of ftmac.c in BASE_SRC is not serious because ftbase.c includes
ftmac.c.
* builds/unix/unix-def.in: Add a macro definition of $(ftmac_c).
* builds/unix/configure.raw: Add procedure to set up appropriate
value of $(ftmac_c) with the consideration of the availability of
Carbon framework.
2008-09-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/Jamfile: Add target for multi build by jam on Mac OS X.
* src/base/ftobjs.c (FT_New_Face): Fix the condition to include this
function for MPW building. It is synchronized the condition to
include ftmac.c source into ftbase.c.
2008-09-22 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (CFF_Operator, cff_argument_counts,
cff_decoder_parse_charstrings): Handle (invalid)
`callothersubr' and `pop' instructions.
2008-09-22 John Tytgat <John.Tytgat@esko.com>
Fix Savannah bug #24307.
* include/freetype/internal/t1types.h (CID_FaceRec),
src/type42/t42types.h (T42_FaceRec): Comment out `afm_data'.
2008-09-21 Werner Lemberg <wl@gnu.org>
* src/smooth/ftgrays.c (gray_raster_render): Don't dereference
`target_map' if FT_RASTER_FLAG_DIRECT is set. Problem reported by
Stephan T. Lavavej <stl@nuwen.net>.
2008-09-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/otvalid/Jamfile: Add missing target `otvmath' for multi build
by jam.
* src/sfnt/Jamfile: Add missing target `ttmtx' for multi build by
jam.
2008-09-20 Werner Lemberg <wl@gnu.org>
* src/smooth/ftgrays.c (gray_find_cell): Fix threshold. The values
passed to this function are already `normalized'. Problem reported
by Stephan T. Lavavej <stl@nuwen.net>.
* docs/CHANGES: Document it.
2008-09-20 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c: Include FT_INTERNAL_DEBUG_H.
(FT_Outline_Decompose): Decorate with tracing messages.
* src/smooth/ftgrays.c [DEBUG_GRAYS]: Replace with
FT_DEBUG_LEVEL_TRACE.
[_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: Include stdio.h and
stdarg.h.
(FT_TRACE) [_STANDALONE_]: Remove.
(FT_Message) [_STANDALONE_ && FT_DEBUG_LEVEL_TRACE]: New function.
(FT_TRACE5, FT_TRACE7) [_STANDALONE_]: New macros.
(FT_ERROR) [_STANDALONE_]: Updated.
(gray_hline) [FT_DEBUG_LEVEL_TRACE]: Fix condition.
Use FT_TRACE7.
(gray_dump_cells): Make it `static void'.
(gray_convert_glyph): Use FT_TRACE7.
(FT_Outline_Decompose) [_STANDALONE_]: Synchronize with version in
ftoutln.c.
* src/base/ftadvanc.c (FT_Get_Advance, FT_Get_Advances): Use
FT_ERROR_BASE.
* docs/formats.txt: Updated.
2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Import sfnt-wrapped Type1 and sfnt-wrapped
CID-keyed font support.
* builds/mac/ftmac.c: Ditto.
2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Fix double free bug in
sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font support code.
`open_face_from_buffer' frees the passed buffer if it cannot open a
face from the buffer, so the caller must not free it.
2008-09-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (Mac_Read_sfnt_Resource): Add initial support
for sfnt-wrapped Type1 and sfnt-wrapped CID-keyed font.
(ft_lookup_PS_in_sfnt): New function to look up `TYP1' or `CID '
table in sfnt table directory. It is used before loading TrueType
font driver.
* docs/CHANGES: Add note about the current status of sfnt-wrapped
Type1 and sfnt-wrapped CID-keyed font support.
2008-09-18 Werner Lemberg <wl@gnu.org>
* src/base/ftsystem.c (FT_Done_Memory): Use ft_sfree directly for
orthogonality (ft_free and ft_sfree could belong to different memory
pools). This fixes Savannah bug #24297.
2008-09-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/cff/cffobjs.c (cff_face_init): Use TTAG_OTTO defined
in ttags.h instead of numerical value 0x4F54544FL.
2008-09-16 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.h, src/cff/cffgload.c
(cff_decoder_set_width_only): Eliminate function call.
2008-09-15 George Williams <gww@silcom.com>
Fix Savannah bug #24179, reported by Bram Tassyns.
* src/type1/t1load.c (mm_axis_unmap, T1_Get_MM_Var): Fix computation
of default values.
2008-09-15 Werner Lemberg <wl@gnu.org>
* src/tools/glnames.py (main): Surround `ft_get_adobe_glyph_index'
and `ft_adobe_glyph_list' with FT_CONFIG_OPTION_ADOBE_GLYPH_LIST to
prevent unconditional definition. This fixes Savannah bug #24241.
* src/psnames/pstables.h: Regenerated.
2008-09-13 Werner Lemberg <wl@gnu.org>
* autogen.sh, builds/unix/configure.raw,
include/freetype/config/ftconfig.h, builds/unix/ftconfig.in: Minor
beautifying.
* include/freetype/ftadvanc.h, include/freetype/ftgasp.h,
include/freetype/ftlcdfil.h: Protect against FreeType 1.
Some other minor fixes.
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
2008-09-11 Werner Lemberg <wl@gnu.org>
* src/base/ftbase.c: Include ftadvanc.c.
2008-09-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/ftconfig.in: Duplicate the cpp computation of
FT_SIZEOF_{INT|LONG} from include/freetype/config/ftconfig.h.
(FT_USE_AUTOCONF_SIZEOF_TYPES): New macro. If defined, the cpp
computation is disabled and the statically configured sizes are
used. This fixes Savannah bug #21250.
* builds/unix/configure.raw: Add the checks to compare the cpp
computation results of the bit length of int and long versus the
sizes detected by running `configure'. If the results are
different, FT_USE_AUTOCONF_SIZEOF_TYPES is defined to prioritize the
results.
New option --{enable|disable}-biarch-config is added to define or
undefine FT_USE_AUTOCONF_SIZEOF_TYPES manually.
2008-09-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Clear FT2_EXTRA_LIBS when Carbon or
ApplicationService framework is missing. Although this value is not
used in building of FreeType2, it is written in `freetype2.pc' and
`freetype-config'.
2008-09-01 david turner <david@freetype.org>
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Accept a negative cmap
index to mean `use default cached FT_Face's charmap'. This fixes
Savannah bug #22625.
* include/freetype/ftcache.h: Document it.
Make FT_MulFix an inlined function. This is done to speed up
FreeType a little (on x86 3% when loading+hinting, 10% when
rendering, ARM savings are more important though). Disable this by
undefining FT_CONFIG_OPTION_INLINE_MULFIX.
Use of assembler code can now be controlled with
FT_CONFIG_OPTION_NO_ASSEMBLER.
* include/freetype/config/ftconfig.h, builds/unix/ftconfig.in
[!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_arm): New assembler
implementation.
[!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MulFix_i386): Assembler
implementation taken from `ftcalc.c'.
[!FT_CONFIG_OPTION_NO_ASSEMBLER] (FT_MULFIX_ASSEMBLER): New macro
which is defined to the platform-specific assembler implementation
of FT_MulFix.
[FT_CONFIG_OPTION_INLINE_MULFIX && FT_MULFIX_ASSEMBLER]
(FT_MULFIX_INLINED): New macro.
* include/freetype/config/ftoption.h (FT_CONFIG_OPTION_NO_ASSEMBLER,
FT_CONFIG_OPTION_INLINE_MULFIX): New macros.
* include/freetype/freetype.h: Updated to handle FT_MULFIX_INLINED.
* src/base/ftcalc.c: Updated to use FT_MULFIX_ASSEMBLER and
FT_MULFIX_INLINED.
Add a new header named FT_ADVANCES_H declaring some new APIs to
extract the advances of one or more glyphs without necessarily
loading their outlines. Also provide `fast loaders' for the
TrueType, Type1, and CFF font drivers (more to come later).
* src/base/ftadvanc.c, include/freetype/ftadvanc.h: New files.
* include/freetype/config/ftheader.h (FT_ADVANCES_H): New macro.
* include/freetype/freetype.h (FT_LOAD_ADVANCE_ONLY): New macro.
* include/freetype/internal/ftdriver.h (FT_Face_GetAdvancesFunc):
`flags' and `advances' are now of type `FT_UInt' and `FT_Fixed',
respectively.
* src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC): Add
ftadvanc.c.
* src/cff/cffdrivr.c (cff_get_advances): New function.
(cff_driver_class): Register it.
* src/cff/cffgload.c (cff_decoder_set_width_only): New function.
(cff_decoder_parse_charstrings): Handle `width_only'.
(cff_slot_load): Handle FT_LOAD_ADVANCE_ONLY.
* src/cff/cffgload.h (cff_decoder): New element `width_only'.
(cff_decoder_set_width_only): New declaration.
* src/truetype/ttdriver.c (tt_get_advances): New function.
(tt_driver_class): Register it.
* src/truetype/ttgload.c (Get_HMetrics, Get_VMetrics): Renamed to...
(TT_Get_HMetrics, TT_Get_VMetrics): This.
Update callers.
* src/truetype/ttgload.h: Declare them.
* src/type1/t1gload.h, src/type1/t1gload.c (T1_Get_Advances): New
function.
* src/type1/t1driver.c (t1_driver_class): Register T1_Get_Advances.
Add checks for minimum version of the `autotools' stuff.
* autogen.sh: Implement it.
(get_major_version, get_minor_version, get_patch_version,
compare_to_minimum_version, check_tool_version): New auxiliary
functions.
* README.CVS: Document it.
2008-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/sfnt/sfobjs.c (sfnt_open_font): Use TTAG_OTTO defined in
ttags.h instead of FT_MAKE_TAG( 'O', 'T', 'T', 'O' ).
2008-08-28 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_encoding): Protect against infinite
loop. This fixes Savannah bug #24150 (where a patch has been posted
too).
2008-08-23 Werner Lemberg <wl@gnu.org>
* src/type/t1afm.c (compare_kern_pairs), src/pxaux/afmparse.c
(afm_compare_kern_pairs): Fix comparison. This fixes Savannah bug
#24119.
2008-08-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c (FT_Stream_New): Initialize *astream always,
even if passed library or arguments are invalid. This fixes a bug
that an uninitialized stream is freed when an invalid library handle
is passed. Originally proposed by Mike Fabian, 2008/08/18 on
freetype-devel.
(FT_Open_Face): Ditto (stream).
(load_face_in_embedded_rfork): Ditto (stream2).
2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Add a fallback to guess the availability of the
`ResourceIndex' type. It is used when built without configure
(e.g., a build with Jam).
* builds/mac/ftmac.c: Ditto.
* builds/unix/configure.raw: Set HAVE_TYPE_RESOURCE_INDEX to 1 or 0
explicitly, even if `ResourceIndex' is unavailable.
2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: In checking of Mac OS X features,
all-in-one header file `Carbon.h' is replaced by the minimum
header file `CoreServices.h', similar to current src/base/ftmac.c.
2008-08-18 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/sfnt/ttcmap.c (tt_cmap2_validate): Skip the validation of
sub-header when its code_count is 0. Many Japanese Dynalab fonts
include such an empty sub-header (code_count == 0, first_code == 0
delta == 0, but offset != 0) as the second sub-header in SJIS cmap.
2008-08-04 Werner Lemberg <wl@gnu.org>
* src/type1/t1tokens.h: Handle `ForceBold' keyword. This fixes
Savannah bug #23995.
* src/cid/cidload.c (parse_expansion_factor): New callback function.
(cid_field_records): Use it for `ExpansionFactor'.
* src/cod/cidtoken.h: Handle `ForceBold' keyword.
Don't handle `ExpansionFactor'.
2008-08-04 Bram Tassyns <bramt@enfocus.be>
* src/cff/cffparse.c (cff_parse_fixed_scaled): Fix thinko which
resulted in incorrect scaling. This fixes Savannah bug #23973.
2008-08-04 Werner Lemberg <wl@gnu.org>
Be more tolerant w.r.t. invalid entries in SFNT table directory.
* src/sfnt/ttload.c (check_table_dir): Ignore invalid entries and
adjust table count.
Add more trace messages.
(tt_face_load_font_dir): Updated.
2008-07-30 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_decoder_parse_charstrings): No longer
assume that the first argument on the stack is the bottom-most
element. Two reasons:
o According to people from Adobe it is missing in the Type 2
specification that pushing of additional, superfluous arguments
on the stack is prohibited.
o Acroread in general handles fonts differently, namely by popping
the number of arguments needed for a particular operand (as a PS
interpreter would do). In case of buggy fonts this causes a
different interpretation which of the elements on the stack are
superfluous and which not.
Since there are CFF subfonts (embedded in PDFs) which rely on
Acroread's behaviour, FreeType now does the same.
2008-07-27 Werner Lemberg <wl@gnu.org>
Add extra mappings for `Tcommaaccent' and `tcommaaccent'. This
fixes Savannah bug #23940.
* src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): Rename to...
(EXTRA_GLYPH_LIST_SIZE): This.
Increase by 2.
(ft_wgl_extra_unicodes): Rename to...
(ft_extra_glyph_unicodes): This.
Add two code values.
(ft_wgl_extra_glyph_names): Rename to...
(ft_extra_glyph_names): This.
Add two glyphs.
(ft_wgl_extra_glyph_name_offsets): Rename to...
(ft_extra_glyph_name_offsets): This.
Add two offsets.
(ps_check_wgl_name, ps_check_wgl_unicode): Rename to...
(ps_check_extra_glyph_name, ps_check_extra_glyph_unicode): This.
Updated.
(ps_unicodes_init): Updated.
2008-07-26 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_decoder_prepare,
cff_decoder_parse_charstrings): Improve debug output.
2008-07-22 Martin McBride <mmcbride@emtex.com>
* src/sfnt/ttcmap.c (tt_cmap4_validate, tt_cmap4_char_map_linear,
tt_cmap4_char_map_binary): Handle fonts which treat the last segment
specially. According to the specification, such fonts would be
invalid but acroread accepts them.
2008-07-16 Jon Foster <Jon.Foster@cabot.co.uk>
* src/pfr/pfrdrivr.c (pfr_get_advance): Fix off-by-one error.
* src/base/ftcalc.c (FT_MulFix): Fix portability issue.
* src/sfnt/ttpost.c (MAC_NAME) [!FT_CONFIG_OPTION_POSTSCRIPT_NAMES]:
Fix compiler warning.
2008-07-16 Werner Lemberg <wl@gnu.org>
Handle CID-keyed fonts wrapped in an SFNT (with cmaps) correctly.
* src/cff/cffload.c (cff_font_load): Pass `pure_cff'.
Invert sids table only if `pure_cff' is set.
* src/cff/cffload.h: Udpated.
* src/cff/cffobjs.c (cff_face_init): Updated.
Set FT_FACE_FLAG_CID_KEYED only if pure_cff is set.
* docs/CHANGES: Updated.
2008-07-09 Werner Lemberg <wl@gnu.org>
* src/truetype/ttpload.c (tt_face_load_loca): Handle buggy fonts
where num_locations < num_glyphs. Problem reported by Ding Li.
2008-07-05 Werner Lemberg <wl@gnu.org>
Since FreeType uses `$(value ...)', we now need GNU make 3.80 or
newer. This fixes Savannah bug #23648.
* configure: zsh doesn't like ${1+"$@"}.
Update needed GNU make version.
* builds/toplevel.mk: Check for `$(eval ...)'.
* docs/INSTALL.GNU, docs/INSTALL.CROSS, docs/INSTALL.UNIX: Document
it.
2008-07-04 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (Draw_Sweep): If span is smaller than one
pixel, only check for dropouts if neither start nor end point lies
on a pixel center. This fixes Savannah bug #23762.
2008-06-29 Werner Lemberg <wl@gnu.org>
* Version 2.3.7 released.
=========================
Tag sources with `VER-2-3-7'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.7.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.6/2.3.7/, s/236/237/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 7.
* builds/unix/configure.raw (version_info): Set to 9:18:3.
* docs/release: Updated.
2008-06-28 Werner Lemberg <wl@gnu.org>
* src/ftglyph.c (FT_Matrix_Multiply, FT_Matrix_Invert): Move to...
* src/ftcalc.c: Here. This fixes Savannah bug #23729.
2008-06-27 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop): Test for intersections which
degenerate to a single point can be ignored; this has been confirmed
by Greg Hitchcock from Microsoft. (This was commented out code.)
2008-06-26 Werner Lemberg <wl@gnu.org>
Improve navigation in API reference.
* src/tools/docmaker/tohtml.py (html_header_3): Renamed to...
(html_header_6): This.
(html_header_3, html_header_3i, html_header_4, html_header_5,
html_header_5t): New strings.
(toc_footer_start, toc_footer_end): New strings.
(HtmlFormatter::html_header): Updated.
(HtmlFormatter::html_index_header, HtmlFormatter::html_toc_header):
New strings.
(HtmlFormatter::index_enter): Use `html_index_header'.
(HtmlFormatter::index_exit): Print `html_footer'.
(HtmlFormatter::toc_enter): Use `html_toc_header'.
(HtmlFormatter::toc_exit): Print proper footer.
Convert ~ to non-breakable space.
* src/tools/docmaker/tohtml.py (make_html_para): Implement it.
Update header files accordingly.
2008-06-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Check type `ResourceIndex' explicitly
and define HAVE_TYPE_RESOURCE_INDEX if it is defined. Mac OS X 10.5
bundles 10.4u SDK with MAC_OS_X_VERSION_10_5 macro but without
ResourceIndex type definition. The macro does not inform the type
availability.
* src/base/ftmac.c: More parentheses are inserted to clarify the
conditionals to disable legacy APIs in `10.5 and later' cases. If
HAVE_TYPE_RESOURCE_INDEX is not defined, ResourceIndex is defined.
2008-06-24 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_SCANTYPE): Don't check rendering
mode.
* src/raster/ftraster.c (Render_Glyph, Render_Gray_Glyph,
Draw_Sweep): No-dropout mode is value 2, not value 0.
(Draw_Sweep): Really skip dropout handling for no-dropout mode.
2008-06-24 Werner Lemberg <wl@gnu.org>
* src/psaux/psobjs.c (t1_builder_close_contour): Don't add contour
if it consists of one point only. Based on a patch from Savannah
bug #23683 (from John Tytgat).
2008-06-22 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Load_Glyph): Protect bytecode stuff
with IS_HINTED.
* docs/CHANGES: Updated.
2008-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: If CFLAGS has `-isysroot XXX' option
but LDFLAGS does not, import it to LDFLAGS. The option is used to
specify non-default SDK on Mac OS X (e.g., universal binary SDK for
Mac OS X 10.4 on PowerPC platform). Although Apple TechNote 2137
recommends to add the option only to CFLAGS, LDFLAGS should include
it because libfreetype.la is built with -no-undefined. This fixes a
bug reported by Ryan Schmidt in MacPorts,
http://trac.macports.org/ticket/15331.
2008-06-21 Werner Lemberg <wl@gnu.org>
Enable access to the various dropout rules of the B&W rasterizer.
Pass dropout rules from the TT bytecode interpreter to the
rasterizer.
* include/freetype/ftimage.h (FT_OUTLINE_SMART_DROPOUTS,
FT_OUTLINE_EXCLUDE_STUBS): New flags for for FT_Outline.
* src/raster/ftraster.c (Vertical_Sweep_Drop, Horizontal_Sweep_Drop,
Horizontal_Gray_Sweep_Drop): Use same mode numbers as given in the
OpenType specification.
Fix mode 4 computation.
(Render_Glyph, Render_Gray_Glyph): Handle new outline flags.
* src/truetype/ttgload.c (TT_Load_Glyph) Convert scan conversion
mode to FT_OUTLINE_XXX flags.
* src/truetype/ttinterp.c (Ins_SCANCTRL): Enable ppem check.
2008-06-19 Werner Lemberg <wl@gnu.org>
* src/cff/cffobjs.c (cff_face_init): Compute final
`dict->units_per_em' value before assigning it to
`cffface->units_per_EM'. Otherwise, CFFs without subfonts are
scaled incorrectly if the font matrix is non-standard. This fixes
Savannah bug #23630.
* docs/CHANGES: Updated.
2008-06-19 Werner Lemberg <wl@gnu.org>
* src/type/t1objs.c (T1_Face_Init): Slightly improve algorithm fix
from 2008-06-19.
2008-06-18 Werner Lemberg <wl@gnu.org>
* src/type/t1objs.c (T1_Face_Init): Fix change from 2008-03-21.
Reported by Peter Weilbacher <mozilla@weilbacher.org>.
* docs/CHANGES: Updated.
2008-06-15 George Williams <gww@silcom.com>
* src/otvalid/otvgpos.c (otv_MarkBasePos_validate): Set
`valid->extra2' to 1. This is undocumented in the OpenType 1.5
specification.
2008-06-15 Werner Lemberg <wl@gnu.org>
* src/base/ftcalc.c (FT_MulFix) <asm>: Protect registers correctly
from clobbering. Patch from Savannah bug report #23556.
* docs/CHANGES: Document it.
2008-06-10 Werner Lemberg <wl@gnu.org>
* autogen.sh: Add option `--install' to libtoolize.
2008-06-10 Werner Lemberg <wl@gnu.org>
* Version 2.3.6 released.
=========================
Tag sources with `VER-2-3-6'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.6.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.5/2.3.6/, s/235/236/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 6.
* builds/unix/configure.raw (version_info): Set to 9:17:3.
* include/freetype/internal/psaux.h (T1_BuilderRec): Remove `scale_x'
and `scale_y'.
* src/cff/cffgload.h (CFF_Builder): Remove `scale_x' and `scale_y'.
* src/cff/cffparse.c: Include FT_INTERNAL_DEBUG_H.
* src/cff/cffobjs.h: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
2008-06-10 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (open_face): Check `clazz->init_face' and
`clazz->done_face'.
2008-06-09 VaDiM <s_sliva@rambler.ru>
Support debugging on WinCE. From Savannah patch #6536; this fixes
bug #23497.
* builds/win32/ftdebug.c (OutputDebugStringEx): New function/macro
as a replacement for OutputDebugStringA (which WinCE doesn't have).
Update all callers.
(ft_debug_init) [_WIN32_CE]: WinCE apparently doesn't have
environment variables.
2008-06-09 Werner Lemberg <wl@gnu.org>
* README.CVS: Updated.
* builds/unix/configure.raw, builds/unix/freetype-config.in: Updated
for newer versions of autoconf and friends.
2008-06-08 Werner Lemberg <wl@gnu.org>
* src/type1/t1parse.h (T1_ParserRec): Make `base_len' and
`private_len' unsigned.
* src/type1/t1parse.c (read_pfb_tag): Make `asize' unsigned and read
it as such.
(T1_New_Parser, T1_Get_Private_Dict): Make `size' unsigned.
* src/base/ftstream.c (FT_Stream_Skip): Reject negative values.
* src/type1/t1load.c (parse_blend_design_positions): Check `n_axis'
for sane value.
Fix typo.
* src/psaux/psobjs.c (ps_table_add): Check `idx' correctly.
* src/truetype/ttinterp (Ins_SHC): Use BOUNDS() to check
`last_point'.
* src/sfnt/ttload.c (tt_face_load_max_profile): Limit
`maxTwilightPoints'.
2008-06-06 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_IP): Handle case `org_dist == 0'
correctly. This fixes glyphs `t' and `h' of Arial Narrow at 12ppem.
2008-06-03 Werner Lemberg <wl@gnu.org>
* include/freetype/ftcache.h (FTC_FaceID): Change type back to
FT_Pointer. Reported by Ian Britten <britten@caris.com>.
2008-06-02 Werner Lemberg <wl@gnu.org>
Emit header info for defined FreeType objects in reference.
* src/tools/docmaker/content.py (re_header_macro): New regexp.
(ContentProcessor::__init__): Initialize new dictionary `headers'.
(DocBlock::__init__): Collect macro header definitions.
* src/tools/docmaker/tohtml.py (header_location_header,
header_location_footer): New strings.
(HtmlFormatter::__init__): Pass `headers' dictionary.
(HtmlFormatter::print_html_field): Don't emit paragraph tags.
(HtmlFormatter::print_html_field_list): Emit empty paragraph.
(HtmlFormatter::block_enter): Emit header info.
2008-06-01 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftheader.h (FT_UNPATENTED_HINTING_H,
FT_INCREMENTAL_H): Added.
2008-05-28 Werner Lemberg <wl@gnu.org>
* src/tools/docmaker/sources.py (SourceBlock::__init__): While
looking for markup tags, return immediately as soon a single one is
found.
2008-05-28 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_MD): The MD instruction also uses
original, unscaled input values. Confirmed by Greg Hitchcock from
Microsoft.
2008-05-27 Werner Lemberg <wl@gnu.org>
* src/tools/docmaker/tohtml.py (block_footer_start,
block_footer_middle): Beautify output.
2008-05-25 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (fc_black_render): Return 0 when we are
trying to render into a zero-width/height bitmap, not an error code.
* src/truetype/ttgload.c (load_truetype_glyph): Move initialization
of the graphics state for subglyphs to...
(TT_Hint_Glyph): This function.
Hinting instructions for a composite glyph apparently refer to the
just hinted subglyphs, not the unhinted, unscaled outline. This
seems to fix Savannah bugs #20973 and (at least partially) #23310.
2008-05-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (FT_New_Face_From_Suitcase): Check if valid
`aface' is returned by FT_New_Face_From_FOND(). The patch was
proposed by an anonymous reporter of Savannah bug #23204.
2008-05-18 Werner Lemberg <wl@gnu.org>
* src/pshinter/pshalgo.c (ps_hints_apply): Reset scale values after
correction for pixel boundary. Without this patch, the effect can
be cumulative under certain circumstances, making glyphs taller and
taller after each call. This fixes Savannah bug #19976.
2008-05-18 Werner Lemberg <wl@gnu.org>
* src/base/ftdebug.c (FT_Message, FT_Panic): Send output to stderr.
This fixes Savannah bug #23280.
* docs/CHANGES: Updated.
2008-05-18 David Turner <david@freetype.org>
* src/psnames/psmodule.c (ft_wgl_extra_unicodes,
ft_wgl_extra_glyph_names, ft_wgl_extra_glyph_name_offsets,
ps_check_wgl_name, ps_check_wgl_unicode): Use `static' to make
declarations non-global.
* src/type1/t1load.c: Add missing comment.
2008-05-17 Sam Hocevar <samh>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Handle zero-contour
glyphs correctly. Patch from Savannah bug #23277.
2008-05-16 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2008-05-16 Sergey Tolstov <stolstov@esri.com>
Improve support for WGL4 encoded fonts.
* src/psnames/psmodule.c (WGL_EXTRA_LIST_SIZE): New macro.
(ft_wgl_extra_unicodes, ft_wgl_extra_glyph_names,
ft_wgl_extra_glyph_name_offsets): New arrays.
(ps_check_wgl_name, ps_check_wgl_unicode): New functions.
(ps_unicodes_init): Use them to add additional Unicode mappings.
2008-05-15 Werner Lemberg <wl@gnu.org>
* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
<op_closepath>: `closepath' without a path is a no-op, not an error
(cf. the PS reference manual).
Reported by Martin McBride.
2008-05-15 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (CONFIG_GUESS, CONFIG_SUB): Updated.
2008-05-15 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs): Accept fonts with a subrs array
which contains a single but empty entry. This is technically
invalid (since it must end with `return'), but...
Reported by Martin McBride.
2008-05-14 Werner Lemberg <wl@gnu.org>
Finish fix of scaling bug of CID-keyed CFF subfonts.
* include/freetype/internal/ftcalc.h, src/base/ftcalc.c
(FT_Matrix_Multiply_Scaled, FT_Vector_Transform_Scaled): New
functions.
* src/cff/cffobjs.h (CFF_Internal): New struct. It is used to
provide global hinting data for both the top-font and all subfonts
(with proper scaling).
* src/cff/cffobjs.c (cff_make_private_dict): New function, using
code from `cff_size_init'.
(cff_size_init, cff_size_done, cff_size_select, cff_size_request):
Use CFF_Internal and handle subfonts.
(cff_face_init): Handle top-dict and subfont matrices correctly;
apply some heuristic in case of unlikely matrix concatenation
results. This has been discussed with people from Adobe (thanks
goes mainly to David Lemon) who confirm that the CFF specs are fuzzy
and not correct.
* src/cff/cffgload.h (cff_decoder_prepare): Add `size' argument.
* src/cff/cffgload.c (cff_builder_init): Updated.
(cff_decoder_prepare): Handle hints globals for subfonts.
Update all callers.
(cff_slot_load): Handling scaling of subfonts properly.
* src/cff/cffparse.c (cff_parse_fixed_dynamic): New function.
(cff_parse_font_matrix): Use it.
* src/cff/cfftypes.h (CFF_FontDictRec): Make `units_per_em'
FT_ULong.
* docs/CHANGES: Document it.
2008-05-13 Werner Lemberg <wl@gnu.org>
* src/winfonts/winfnt.c (fnt_face_get_dll_font, FNT_Face_Init):
Handle case `face_index < 0'.
* docs/CHANGES: Document it.
2008-05-04 Werner Lemberg <wl@gnu.org>
First steps to fix the scaling bug of CID-keyed CFF subfonts,
reported by Ding Li on 2008/03/28 on freetype-devel.
* src/base/cff/cffparse.c (power_tens): New array.
(cff_parse_real): Rewritten to introduce a fourth parameter which
returns the `scaling' of the real number so that we have no
precision loss. This is not used yet.
Update all callers.
(cff_parse_fixed_thousand): Replace with...
(cff_parse_fixed_scaled): This function. Update all callers.
2008-05-03 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Load_Glyph): Call the auto-hinter without
transformation since it recursively calls FT_Load_Glyph. This fixes
Savannah bug #23143.
2008-04-26 Werner Lemberg <wl@gnu.org>
* include/freetype/internal/psaux.h (T1_BuilderRec): Mark `scale_x'
and `scale_y' as obsolete since they aren't used.
* src/psaux/psobjs.c (t1_builder_init): Updated.
* src/cff/cffgload.h (CFF_Builder): Mark `scale_x' and `scale_y' as
obsolete since they aren't used.
* src/cff/cffgload.c (cff_builder_init): Updated.
2008-04-14 Werner Lemberg <wl@gnu.org>
* src/pcf/pcfdrivr.c (PCF_Face_Init): Protect call to
`FT_Stream_OpenLZW' with `FT_CONFIG_OPTION_USE_LZ'. From Savannah
bug #22909.
2008-04-13 Werner Lemberg <wl@gnu.org>
* src/psaux/psconv.c (PS_Conv_ToFixed): Increase precision if
integer part is zero.
2008-04-01 Werner Lemberg <wl@gnu.org>
Fix compilation with g++ 4.1 (with both `single' and `multi'
targets).
* src/base/ftobjs.c (FT_Open_Face): Don't define a variable in block
which is crossed by a `goto'.
* src/otvalid/otvalid.h (otv_MATH_validate): Add prototype.
2008-03-31 Werner Lemberg <wl@gnu.org>
Fix support for subsetted CID-keyed CFFs.
* include/freetype/freetype.h (FT_FACE_FLAG_CID_KEYED,
FT_IS_CID_KEYED): New macros.
* src/cff/cffobjs.c (cff_face_init): Set number of glyphs to the
maximum CID value in CID-keyed CFFs.
Handle FT_FACE_FLAG_CID_KEYED flag.
* docs/CHANGES: Document it.
Fix CFF font matrix calculation and improve precision.
* src/cff/cffparse.c (cff_parse_real): Increase precision if integer
part is zero.
(cff_parse_font_matrix): Simplify computation of `units_per_em';
this prevents overflow also.
Support FT_Get_CID_Registry_Ordering_Supplement for PS CID fonts.
* src/cid/cidriver.c: Include FT_SERVICE_CID_H.
(cid_get_ros): New function.
(cid_service_cid_info): New service structure.
(cid_services): Register it.
2008-03-23 Werner Lemberg <wl@gnu.org>
Adjustments for Visual C++ 8.0, as reported by Rainer Deyke.
* builds/compiler/visualc.mk (CFLAGS): Remove /W5.
(ANSIFLAGS): Add _CRT_SECURE_NO_DEPRECATE.
2008-03-21 Laurence Darby <ldarby>
* src/type1/t1objs.c (T1_Face_Init): Use `/Weight'. Patch from
Savannah bug #22675.
2008-03-13 Derek Clegg <dclegg@apple.com>
* src/truetype/ttgxvar.c (TT_Get_MM_Var): Fix named style loop.
Patch from Savannah bug #22541.
2008-03-03 Masatoshi Kimura <VYV03354@nifty.ne.jp>
* src/sfnt/ttcmap.c (tt_cmap14_char_map_nondef_binary,
tt_cmap14_find_variant): Return correct value.
(tt_cmap14_variant_chars): Fix check for `di'.
2008-02-29 Wermer Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2008-02-29 Wolf
Add build support for symbian platform. From Savannah bug #22440.
* builds/symbian/*: New files.
2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (parse_fond): Fix a bug of PostScript font name
synthesis. For any face of a specified FOND, always the name for
the first face was used. Except of a FOND that refers multiple
Type1 font files, wrong synthesized font names are not used at all,
so this is an invisible bug. A few limit checks are added too.
* builds/mac/ftmac.c: Ditto.
2008-02-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Split compiler option to link Carbon
frameworks to one option for CoreServices framework and another
option for ApplicationServices framework. The split options can be
managed by GNU libtool to avoid unrequired duplication when FreeType
is linked with other applications. Suggested by Daniel Macks,
Savannah bug #22366.
2008-02-18 Victor Stinner <victor.stinner@haypocalc.com>
* src/truetype/ttinterp.c (Ins_IUP): Check number of points. Fix
from Savannah bug #22356.
2008-02-17 Jonathan Blow <jon@number-none.com>
* src/autofit/afloader.c (af_loader_load_g, af_loader_load_glyph):
Check for valid callback pointers.
2008-02-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (FT_New_Face_From_SFNT): Check the sfnt resource
handle by its value instead of ResError(), fix provided by Deron
Kazmaier. According to the Resource Manager Reference,
GetResource(), Get1Resource(), GetNamedResource(),
Get1NamedResource() and RGetResource() set noErr but return NULL
handle when they can not find the requested resource. These
functions never return undefined values, so it is sufficient to
check if the handle is not NULL.
* builds/mac/ftmac.c (FT_New_Face_From_SFNT): Ditto.
2008-02-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftbase.c: <ftmac.c> is replaced by "ftmac.c" as other
inclusion styles. Now it always includes src/base/ftmac.c;
builds/mac/ftmac.c is never included in any configuration.
* builds/unix/configure.raw: Print warning if configure is executed
with options to specify Carbon functionalities explicitly.
* docs/INSTALL.MAC: Note that legacy builds/mac/ftmac.c is not
included automatically and manual replacement is required.
2008-02-11 Werner Lemberg <wl@gnu.org>
* builds/modules.mk (CLOSE_MODULE, REMOVE_MODULE), builds/detect.mk
(dos_setup), builds/freetype.mk (clean_project_dos,
distclean_project_dos): Don't use \ but $(SEP). Reported by Duncan
Murdoch.
2008-01-18 Sylvain Pasche <sylvain.pasche@gmail.com>
* src/base/ftlcdfil.c (_ft_lcd_filter_legacy): Updated comment to
mention intra-pixel algorithm.
* include/freetype/freetype.h (FT_Render_Mode): Mention that
FT_Library_SetLcdFilter can be used to reduce fringes.
2008-01-16 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (ft_black_render): Check `outline' before
using it. Reported by Allan Yang.
2008-01-12 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (FT_CONFIG_OPTION_5_GRAY_LEVELS): Remove.
2008-01-12 Allan Yang, Jian Hua - SH <Allan.Yang@fmc.fujitsu.com>
* src/raster/ftraster.c (ft_black_init)
[FT_RASTER_OPTION_ANTI_ALIASING]: Fix compilation.
2008-01-10 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph): Handle the case
where the number of contours in a simple glyph is zero (and which
does contain an entry in the `glyf' table). This fixes Savannah bug
#21990.
2008-01-04 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Formatting suggested by Sean McBride.
* builds/mac/ftmac.c: Formatting (tab expanded).
* src/autofit/afindic.c: Ditto.
* src/base/ftcid.c: Ditto.
* src/base/ftmac.c: Ditto.
2007-12-30 Werner Lemberg <wl@gnu.org>
* src/smooth/ftgrays.c (gray_raster_render): Check `outline'
correctly.
2007-12-21 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Improvement of POSIX resource-fork accessor to load unsorted
references in a resource. In HelveLTMM (resource-fork PostScript
Type1 font bundled with Mac OS X since 10.3.x), the appearance order
of PFB chunks is not sorted; sorting the chunks by reference IDs is
required.
* include/freetype/internal/ftrfork.h (FT_RFork_Ref): New structure
type to store a pair of reference ID and offset to the chunk.
* src/base/ftrfork.c (ft_raccess_sort_ref_by_id): New function to
sort FT_RFork_Ref by their reference IDs.
(FT_Raccess_Get_DataOffsets): Returns an array of offsets that is
sorted by reference ID.
2007-12-14 Werner Lemberg <wl@gnu.org>
* src/cff/cffparse.c (cff_parse_real): Don't apply `power_ten'
division too early; otherwise the most significant digit(s) of the
final result are lost as the value is truncated to an integer. This
fixes Savannah bug #21794 (where the patch has been posted too).
2007-12-06 Fix <4d876b82@gmail.com>
Pass options from one configure script to another as-is (not
expanded). This is needed for options like
--includedir='${prefix}/include'.
* builds/unix/detect.mk, configure: Prevent argument expansion in
call to the (real) `configure' script.
2007-12-06 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph): Fix compilation if
TT_USE_BYTECODE_INTERPRETER isn't defined.
2007-12-06 Werner Lemberg <wl@gnu.org>
There exist CFFs which contain opcodes for the Type 1 operators
`hsbw' and `closepath' which are both invalid in Type 2 charstrings.
However, it doesn't harm to support them.
* src/cff/cffgload.c (CFF_Operator): Add `cff_op_hsbw' and
`cff_op_closepath.'
(cff_argument_counts): Ditto.
(cff_decoder_parse_charstrings): Handle Type 1 opcodes 9 (closepath)
and 13 (hsbw) which are invalid in Type 2 charstrings.
2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftrfork.c (raccess_guess_darwin_newvfs): New function to
support new pathname syntax `..namedfork/rsrc' to access a resource
fork on Mac OS X. The legacy syntax `/rsrc' does not work on
case-sensitive HFS+.
(raccess_guess_darwin_hfsplus): Fix a bug in the calculation of
buffer size to store a pathname.
* include/freetype/internal/ftrfork.h: Increment the number of
resource fork guessing rule.
2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Improve the compile tests to search
Carbon functions.
* builds/mac/ftmac.c: Import fixes for Carbon incompatibilities
proposed by Sean McBride from src/base/ftmac.c (see 2007-11-16).
2007-12-06 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
The documents and comments for Mac OS X are improved by Sean
McBride.
* src/base/ftmac.c: Fix a comment.
* include/freetype/ftmac.h: Ditto.
* docs/INSTALL.MAC: Improve English and add comment on lowest
system version specified by MACOSX_DEPLOYMENT_TARGET.
2007-12-04 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_subfont_load): Don't use logical OR to
concatenate error codes.
* src/sfnt/ttsbit.c (Load_SBit_Range): Ditto.
2007-12-04 Graham Asher <graham.asher@btinternet.com>
* src/truetype/ttobjs.c (tt_face_init): Don't use logical OR to
concatenate error codes.
2007-12-04 Sean McBride <sean@rogue-research.com>
* src/pfr/pfrgload.c (pfr_glyph_load_compound): Remove compiler
warning.
2007-11-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix MacOS legacy font support by Masatake Yamato on Mac OS X. It is
not working since 2.3.5. In FT_Open_New(), if FT_New_Stream()
cannot mmap() the specified file and cannot seek to head of the
specified file, it returns NULL stream and FT_Open_New() returns the
error immediately. On MacOS, most legacy MacOS fonts fall into such
a scenario because their data forks are zero-sized and cannot be
sought. To proceed to guessing of resource fork fonts, the
functions for legacy MacOS font must properly handle the NULL stream
returned by FT_New_Stream().
* src/base/ftobjs.c (IsMacBinary): Return error
FT_Err_Invalid_Stream_Operation immediately when NULL stream is
passed.
(FT_Open_Face): Even when FT_New_Stream() returns an error, proceed
to fallback. Originally, legacy MacOS font is tested in the cases
of FT_Err_Invalid_Stream_Operation (occurs when data fork is empty)
or FT_Err_Unknown_File_Format (occurs when AppleSingle header or
.dfont header is combined). Now the case of
FT_Err_Cannot_Open_Stream is included.
* src/base/ftrfork.c (FT_Raccess_Guess): When passed stream is NULL,
skip FT_Stream_Seek(), which seeks to the head of stream, and
proceed to unit testing of raccess_guess_XXX(). FT_Stream_Seek()
for a NULL stream causes a Bus error on Mac OS X.
(raccess_guess_apple_double): Return FT_Err_Cannot_Open_Stream
immediately if passed stream is NULL.
(raccess_guess_apple_single): Ditto.
2007-11-16 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Fix for Carbon incompatibilities since Mac OS X 10.5,
proposed by Sean McBride.
* doc/INSTALL.MAC: Comment on MACOSX_DEPLOYMENT_TARGET.
* include/freetype/ftmac.h: Deprecate FT_New_Face_From_FOND and
FT_GetFilePath_From_Mac_ATS_Name. Since Mac OS X 10.5, calling
Carbon functions from a forked process is classified as unsafe
by Apple. All Carbon-dependent functions should be deprecated.
* src/base/ftmac.c: Use essential header files
<CoreServices/CoreServices.h> and
<ApplicationServices/ApplicationServices.h> instead of
all-in-one header file <Carbon/Carbon.h>.
Include <sys/syslimits.h> and replace HFS_MAXPATHLEN by Apple
genuine macro PATH_MAX.
Add fallback macro for kATSOptionFlagsUnRestrictedScope which
is not found in Mac OS X 10.0.
Multi-character constants ('POST', 'sfnt' etc) are replaced by
64bit constants calculated by FT_MAKE_TAG() macro.
For the index in the segment of resource fork, new portable
type ResourceIndex is introduced for better compatibility.
This type is since Mac OS X 10.5, so it is defined as short
when built on older platforms.
(FT_ATSFontGetFileReference): If build target is only the systems
10.5 and newer, it calls Apple genuine ATSFontGetFileReference().
(FT_GetFile_From_Mac_ATS_Name): Return an error if system is 10.5
and newer or 64bit platform, because legacy type FSSpec type is
removed completely.
(FT_New_Face_From_FSSpec): Ditto.
2007-11-01 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (sfnt_done_face): Check `sfnt' everywhere. This
fixes Savannah bug #21485.
2007-10-29 Daniel Svoboda <dasvo@planeta@cz>
* src/winfonts/winfnt.c (FNT_Face_Init): Check first that the driver
can handle the font at all, then check `face_index'. Otherwise, the
driver might return the wrong error code. This fixes Savannah bug
#21468.
2007-10-21 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (sfnt_load_face): Support bit 9 and prepare
support for bit 8 of the `fsSelection' field in the `OS/2' table.
MS is already using this; hopefully, this becomes part of OpenType
1.5.
Prepare also support for `name' IDs 21 (WWS_FAMILY) and 22
(WWS_SUBFAMILY).
2007-10-20 Werner Lemberg <wl@gnu.org>
* src/tools/docmaker/tohtml.py (html_header_2): Fix typo.
Add `td.left' element to CSS.
(toc_section_enter): Use it.
2007-10-18 David Turner <david@freetype.org>
* include/freetype/freetype.h, src/base/ftobjs.c: Rename API
functions related to cmap type 14 support to the
`FT_Object_ActionName' scheme:
FT_Get_Char_Variant_index -> FT_Face_GetCharVariantIndex
FT_Get_Char_Variant_IsDefault -> FT_Face_GetCharVariantIsDefault
FT_Get_Variant_Selectors -> FT_Face_GetVariantSelectors
FT_Get_Variants_Of_Char -> FT_Face_GetVariantsOfChar
FT_Get_Chars_Of_Variant -> FT_Face_GetCharsOfVariant
Update documentation accordingly.
* src/sfnt/ttcmap.c: Stronger cmap 14 validation.
Make the code a little more consistent with FreeType coding
conventions and modify the cmap14 functions that returned a newly
allocated array to use a persistent vector from the TT_CMap14 object
instead.
(TT_CMap14Rec): Provide array and auxiliary data for result.
(tt_cmap14_done, tt_cmap14_ensure): New functions.
(tt_cmap14_init, tt_cmap14_validate, tt_cmap14_char_map_def_binary,
tt_cmap14_char_map_nondef_binary, tt_cmap14_find_variant,
tt_cmap14_char_var_index, tt_cmap14_variants,
tt_cmap14_char_variants, tt_cmap14_def_char_count,
tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
tt_cmap14_variant_chars, tt_cmap14_class_rec): Updated and improved.
2007-10-15 George Williams <gww@silcom.com>
Add support for cmap type 14.
* devel/ftoption.h, include/freetype/config/ftoption.h
(TT_CONFIG_CMAP_FORMAT_14): New macro.
* include/freetype/internal/ftobjs.h (FT_CMap_CharVarIndexFunc,
FT_CMap_CharVarIsDefaultFunc, FT_CMap_VariantListFunc,
FT_CMap_CharVariantListFunc, FT_CMap_VariantCharListFunc): New
support function prototypes.
(FT_CMap_ClassRec): Add them.
Update all users.
* include/freetype/ttnameid.h (TT_APPLE_ID_VARIANT_SELECTOR): New
macro.
* include/freetype/freetype.h (FT_Get_Char_Variant_Index,
FT_Get_Char_Variant_IsDefault, FT_Get_Variant_Selectors,
FT_Get_Variants_Of_Char, FT_Get_Chars_Of_Variant): New API
functions.
* src/base/ftobjs.c (find_variant_selector_charmap): New auxiliary
function.
(FT_Set_Charmap): Disallow cmaps of type 14.
(FT_Get_Char_Variant_Index, FT_Get_Char_Variant_IsDefault,
FT_Get_Variant_Selectors, FT_Get_Variants_Of_Char,
FT_Get_Chars_Of_Variant): New API functions.
* src/sfnt/ttcmap.c (TT_PEEK_UINT24, TT_NEXT_UINT24): New macros.
(TT_CMap14Rec, tt_cmap14_init, tt_cmap14_validate,
tt_cmap14_char_index, tt_cmap14_char_next, tt_cmap14_get_info,
tt_cmap14_char_map_def_binary, tt_cmap14_char_map_nondef_binary,
tt_cmap14_find_variant, tt_cmap14_char_var_index,
tt_cmap14_char_var_isdefault, tt_cmap14_variants,
tt_cmap14_char_variants, tt_cmap14_def_char_count,
tt_cmap14_get_def_chars, tt_cmap14_get_nondef_chars,
tt_cmap14_variant_chars, tt_cmap14_class_rec): New functions and
structures for cmap 14 support.
(tt_cmap_classes): Register tt_cmap14_class_rec.
(tt_face_build_cmaps): One more error message.
* docs/CHANGES: Mention cmap 14 support.
2007-10-01 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (find_unicode_charmap): If search for a UCS-4
charmap fails, do the loop again while searching a UCS-2 charmap.
This favours MS charmaps over Apple ones.
2007-08-29 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Introduction of abstract `short' data types,
ResFileRefNum and ResID. These types were introduced for Copland,
then backported to MPW. The variables exchanged with FileManager
QuickDraw frameworks are redefined by these data types. Patch was
proposed by Sean McBride.
* builds/mac/ftmac.c: Ditto.
2007-08-18 Werner Lemberg <wl@gnu.org>
* src/otvalid/otvcmmn.c (otv_x_y_ux_sy): Skip context glyphs. Found
by Imran Yousaf. Fixes Savannah bug #20773.
(otv_Lookup_validate): Correct handling of LookupType. Found by
Imran Yousaf. Fixes Savannah bug #20782.
2007-08-17 George Williams <gww@silcom.com>
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): Fix handling of
SingleSubstFormat1.
2007-08-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Fix a bug which sets CC_BUILD by
${build-gcc} (unchecked) instead of by ${build}-gcc (checked).
Found by Ryan Hill.
2007-08-11 George Williams <gww@silcom.com>
* src/otvalid/otvcommn.c, src/otvalid/otvcommn.h
(otv_Coverage_validate): Add fourth argument to pass an expected
count value. Update all users.
Check glyph IDs.
(otv_ClassDef_validate): Check `StartGlyph'.
* src/otvalid/otvgsub.c (otv_SingleSubst_validate): More glyph ID
checks.
* src/otvalid/otvmath.c (otv_MathConstants_validate): There are only
56 constants.
(otv_GlyphAssembly_validate, otv_MathGlyphConstruction_validate):
Check glyph IDs.
2007-08-08 Werner Lemberg <wl@gnu.org>
* src/otvalid/otvbase.c, src/otvalid/otvcommn.c,
src/otvalid/otvgdef.c, src/otvalid/otvgpos.c, src/otvalid/otvgsub.c,
src/otvalid/otvjstf.c: s/FT_INVALID_DATA/FT_INVALID_FORMAT/ where
appropriate. Reported by George.
* include/freetype/internal/fttrace.h: Define `trace_otvmath'.
* src/otvalid/rules.mk (OTV_DRV_SRC): Add otvmath.c.
* docs/CHANGES: Updated.
2007-08-08 George Williams <gww@silcom.com>
Add `MATH' validating support to otvalid module.
* include/freetype/tttags.h (TTAG_MATH): New macro.
* include/freetype/ftotval.h (FT_VALIDATE_MATH): New macro.
(FT_VALIDATE_OT): Updated.
* src/otvalid/otmath.c: New file.
* src/otvalid/otvalid.c: Include otvmath.c.
* src/otvalid/otvmod.c (otv_validate): Handle `MATH' table.
2007-08-04 Werner Lemberg <wl@gnu.org>
* builds/unix/configure.raw: Add call to AC_LIBTOOL_WIN32_DLL.
Fixes Savannah bug #20686.
2007-08-03 Werner Lemberg <wl@gnu.org>
* src/psnames/psmodule.c: Fix usage of
FT_CONFIG_OPTION_POSTSCRIPT_NAMES macro. Reported by Graham Asher.
2007-07-31 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (open_face_from_buffer): The argument
`driver_name' is typed as `const char*' to match with the
callers in FT_New_Face_From_LWFN and FT_New_Face_From_SFNT.
This is same with open_face_from_buffer in src/base/ftobjs.c.
Found and fixed by Sean McBride.
2007-07-28 Werner Lemberg <wl@gnu.org>
* src/raster/ftraster.c (count_table): Make it conditional.
* src/base/ftobjs.c (FT_New_Library): Check FT_RENDER_POOL_SIZE with
a preprocessor statement.
2007-07-27 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Translate): Check `outline' before
first usage. From Savannah patch #6115.
2007-07-16 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2007-07-16 Derek Clegg <dclegg@apple.com>
Add new service for getting the ROS from a CID font.
* include/freetype/config/ftheader.h (FT_CID_H): New macro.
* include/freetype/ftcid.h: New file.
* include/freetype/internal/ftserv.h (FT_SERVIVE_CID_H): New macro.
* include/freetype/internal/services/svcid.h: New file.
* src/base/ftcid.c: New file.
* src/cff/cffdrivr.c: Include FT_SERVICE_CID_H.
(cff_get_ros): New function.
(cff_service_cid_info): New service structure.
(cff_services): Register it.
* src/cff/cffload.c (cff_font_done): Free registry and ordering.
* src/cff/cfftypes.h (CFF_FontRec): Add `registry' and `ordering'.
* modules.cfg (BASE_EXTENSIONS): Add ftcid.c.
2007-07-11 Derek Clegg <dclegg@apple.com>
Add support for postscript name service to CFF driver.
* src/cff/cffdrivr.c: Include FT_SERVICE_POSTSCRIPT_NAME_H.
(cff_get_ps_name): New function.
(cff_service_ps_name): New service structure.
(cff_services): Register it.
2007-07-07 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_Copy): Fix initialization of
`target'. Reported by Sean McBride.
2007-07-06 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrcmap.c: Include pfrerror.h.
* src/autofit/afindic.c: Add some external declarations to pacify
`make multi' compilation.
* src/cid/cidgload.c (cid_load_glyph): Pacify compiler.
* src/cff/cffdrivr.c (cff_ps_get_font_info), src/cff/cffobjs.c
(cff_strcpy), include/freetype/internal/ftmemory.h (FT_MEM_STRDUP),
src/autofit/aflatin.c (af_latin_hints_compute_edges),
src/autofit/afcjk.c (af_cjk_hints_compute_edges), src/sfnt/ttmtx.c
(tt_face_get_metrics), src/base/ftobjs.c (open_face)
[FT_CONFIG_OPTION_INCREMENTAL]: Fix compilation with C++ compiler.
* docs/release: Mention test compilation targets.
2007-07-04 Werner Lemberg <wl@gnu.org>
* docs/PROBLEMS: Mention that some PS based fonts can't be
handled correctly by FreeType.
* src/truetype/ttgload.c (load_truetype_glyph): Always allow a
recursion depth of 1. This was the maximum value in TrueType 1.0,
and some older fonts don't set this field correctly.
* src/gxvalid/gxvmort1.c
(gxv_mort_subtable_type1_substTable_validate): Fix tracing message.
2007-07-03 Werner Lemberg <wl@gnu.org>
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Initialize
`round' to pacify compiler.
2007-07-02 Werner Lemberg <wl@gnu.org>
* Version 2.3.5 released.
=========================
Tag sources with `VER-2-3-5'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.5.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj,
builds/win32/visualce/index.html,
builds/win32/visualce/freetype.dsp,
builds/win32/visualce/freetype.vcproj: s/2.3.4/2.3.5/, s/234/235/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 5.
* builds/unix/configure.raw (version_info): Set to 9:16:3.
2007-07-01 David Turner <david@freetype.org>
* include/freetype/freetype.h, src/base/ftpatent.c
(FT_Face_SetUnpatentedHinting): New function to dynamically change
the setting after a face is created.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Fix a small bug
that created distortions in the bytecode interpreter results.
2007-06-30 David Turner <david@freetype.org>
* src/truetype/ttinterp.c (Ins_IUP): Add missing variable
initialization.
* src/autofit/aflatin.c (af_latin_metric_init_blues): Get rid of an
infinite loop in the case of degenerate fonts.
2007-06-26 Rahul Bhalerao <b.rahul.pm@gmail.com>
Add autofit module for Indic scripts. This currently just reuses
the CJK-specific functions.
* include/freetype/config/ftoption.h (AF_CONFIG_OPTION_INDIC): New
macro.
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
* src/autofit/afindic.c, src/autofit/afindic.h: New files.
* src/autofit/afglobal.c, src/autofit/aftypes.h,
src/autofit/autofit.c: Updated.
* src/autofit/Jamfile (_sources), * src/autofit/rules.mk
(AUTOF_DRV_SRC): Updated.
2007-06-23 David Turner <david@freetype.org>
* src/truetype/ttgload.c (TT_Load_Simple): Fix change from
2007-06-16 that prevented the TrueType module from loading most
glyphs.
2007-06-20 Werner Lemberg <wl@gnu.org>
* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
change.
2007-06-19 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_encoding): Handle one more error.
2007-06-19 Dmitry Timoshkov <dmitry@codeweavers.com>
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Return error
FNT_Err_Invalid_File_Format if file format was recognized but
the file doesn't contain any FNT(NE) or RT_FONT(PE) resources.
Add verbose debug logs to make it easier to debug failing load
attempts.
(FNT_Face_Init): A single FNT font can't contain more than 1 face,
so return an error if requested face index is > 0.
Do not do further attempt to load fonts if a previous attempt has
failed but returned error FNT_Err_Invalid_File_Format, i.e., the
file format has been recognized but no fonts found in the file.
2007-07-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Apply patches proposed by Sean McBride.
(FT_GetFile_From_Mac_Name): Insert FT_UNUSED macros to fix
the compiler warnings against unused arguments.
(FT_ATSFontGetFileReference): Ditto.
(FT_GetFile_From_Mac_ATS_Name): Ditto.
(FT_New_Face_From_FSSpec): Ditto.
(lookup_lwfn_by_fond): Fix wrong comment.
Replace `const StringPtr' by more appropriate type
`ConstStr255Param'.
FSRefMakePathPath always returns UTF8 POSIX pathname in
Mach-O, thus HFS pathname support is dropped.
(count_faces): Remove HLock and HUnlock which is not
required on Mac OS X anymore.
(FT_New_Face_From_SFNT): Ditto.
(FT_New_Face_From_FOND): Ditto.
* builds/mac/ftmac.c: Synchronize to src/base/ftmac.c,
except of HFS pathname support and HLock/HUnlock.
They are required on classic CFM environment.
2007-06-18 Werner Lemberg <wl@gnu.org>
* src/psaux/psobjs.c (ps_parser_skip_PS_token): Remove incorrect
assertion.
(ps_parser_to_bytes): Fix error message.
* src/type42/t42objs.c (T42_Open_Face): Handle one more error.
* src/type42/t42parse.c (t42_parse_sfnts): s/alloc/allocated/.
Don't allow mixed binary and hex strings.
Handle string_size == 0 and string_buf == 0.
(t42_parse_encoding): Handle one more error.
2007-06-18 Werner Lemberg <wl@gnu.org>
* src/psaux/psobjs.c (ps_tofixedarray, ps_tocoordarray): Fix exit
logic.
(ps_parser_load_field) <T1_FIELD_TYPE_BBOX>: Skip delimiters
correctly.
(ps_parser_load_field_table): Use `fields->array_max' instead of
T1_MAX_TABLE_ELEMENTS to limit the number of arguments.
* src/cff/cffgload.c (cff_decoder_prepare): Fix change from
2007-06-06.
2007-06-17 Werner Lemberg <wl@gnu.org>
* src/tools/ftrandom.c (font_size): New global variable.
(TestFace): Use it.
(main): Handle new option `--size' to set `font_size'.
(Usage): Updated.
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Exit in case of
invalid font.
(FNT_Load_Glyph): Protect against invalid bitmap width.
2007-06-16 David Turner <david@freetype.org>
* src/smooth/ftgrays.c (gray_find_cell, gray_set_cell, gray_hline):
Prevent integer overflows when rendering very large outlines.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check the
well-formedness of the contours array when loading a glyph.
* src/truetype/ttinterp.c (TT_Load_Context): Initialize `zp0', `zp1',
and `zp2'.
(Ins_IP): Check argument ranges to reject bogus operations properly.
(IUP_WorkerRec): Add `max_points' member.
(_iup_worker_interpolate): Check argument ranges.
(Ins_IUP): Ignore empty outlines.
2007-06-16 Dmitry Timoshkov <dmitry@codeweavers.com>
* src/winfonts/winfnt.h: Add necessary structures for PE resource
parsing.
(WinPE32_HeaderRec): New structure.
(WinPE32_SectionRec): New structure.
(WinPE_RsrcDirRec): New structure.
(WinPE_RsrcDirEntryRec): New structure.
(WinPE_RsrcDataEntryRec): New structure.
(FNT_FontRec): Remove unused `size_shift' field.
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Add support for
loading bitmap .fon files in PE format.
2007-06-15 Dmitry Timoshkov <dmitry@codeweavers.com>
* builds/win32/ftdebug.c: Unify debug level handling with other
platforms.
2007-06-14 Dmitry Timoshkov <dmitry@codeweavers.com>
* builds/win32/ftdebug.c (FT_Message): Send debug output to the
console as well as to the debugger.
2007-06-14 Werner Lemberg <wl@gnu.org>
* src/autofit/aflatin.c (af_latin_uniranges): Expand structure to
cover all ranges which could possibly be handled by the aflatin
module (since the default fallback for unknown ranges is now the
afcjk module). It might be necessary to fine-tune this further by
splitting off modules for Greek, Cyrillic, or other blocks.
2007-06-11 David Turner <david@freetype.org>
* src/autofit/aflatin.c (af_latin_hints_link_segments): Fix
incorrect segment linking computation. This was the root cause of
Savannah bug #19565.
* src/autofit/* [FT_OPTION_AUTOFIT2]: Some very experimental changes
to improve the Latin auto-hinter. Note that the new code is
disabled by default since it is not stabilized yet.
* src/autofit/aflatin2.c, src/autofit/aflatin2.h: New files
(disabled currently).
* src/autofit/afhints.c: Remove dead code.
(af_axis_hints_new_edge): Add argument to handle segment directions.
(af_edge_flags_to_string): New function.
(af_glyph_hints_dump_segments, af_glyph_hints_dump_edges): Handle
option flags.
(af_glyph_hints_reload): Add argument to handle inflections.
Simplify.
(af_direction_compute): Fine tuning.
(af_glyph_hints_align_edge_points): Fix logic.
(af_glyph_hints_align_strong_points): Do linear search for small
edge counts.
(af_glyph_hints_align_weak_points): Skip any touched neighbors.
(af_iup_shift): Handle zero `delta'.
* src/autofit/afhints.h: Updated.
(AF_SORT_SEGMENTS): New macro (disabled).
(AF_AxisHintsRec) [AF_SORT_SEGMENTS]: New member `mid_segments'.
* src/autofit/afglobal.c (af_face_globals_get_metrics): Add
argument to pass option flags for handling scripts.
* src/autofit/afglobal.h: Updated.
* src/autofit/afcjk.c: Updated.
* src/autofit/aflatin.c: Updated.
(af_latin_metrics_scale_dim): Don't reduce scale by 2%.
(af_latin_hints_compute_segments) [AF_HINT_METRICS]: Remove dead code.
(af_latin_hints_compute_edges) [AF_HINT_METRICS]: Remove dead code.
Don't set `edge->dir'
(af_latin_hint_edges): Add more logging.
* src/autofit/afloader.c: Updated.
2007-06-11 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Document FT_Face_CheckTrueTypePatents.
2007-06-10 David Turner <david@freetype.org>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Slight speed-up to
the TrueType glyph loader.
* include/freetype/config/ftoption.h: Clarify documentation
regarding unpatented hinting.
Add new `FT_Face_CheckTrueTypePatents' API.
* include/freetype/freetype.h (FT_Face_CheckTrueTypePatents): New
declaration.
* include/freetype/internal/services/svttglyf.h,
src/base/ftpatent.c: New files.
* include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_GLYF_H):
New macro.
* src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_GLYF_H and
`ttpload.h'.
(tt_service_truetype_glyf): New service structure.
(tt_services): Register it.
* modules.cfg (BASE_EXTENSIONS), src/base/Jamfile (_sources): Add
`ftpatent.c'.
2007-06-08 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (sfnt_load_face): Undo change from 2007-04-28.
Fonts without a cmap must be handled correctly by FreeType (anything
else would be a bug).
* src/psaux/t1decode.c (t1_decoder_parse_charstrings)
[FT_DEBUG_LEVEL_TRACE]: Improve tracing message.
2007-06-07 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttsbit0.c (tt_sbit_decoder_init,
tt_sbit_decoder_load_image): Protect against integer overflows.
* src/pfr/pfrgload.c (pfr_glyph_load_simple): More bounding checks
for `x_control' and `y_control'.
2007-06-06 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Decompose): Check `last'.
* src/pfr/pfrcmap.c (pfr_cmap_init): Convert assertion into normal
FreeType error.
* src/winfonts/winfnt.c (fnt_face_get_dll_font): Do a rough check of
`font_count'.
* src/type1/t1load.c (parse_font_matrix): Check `temp_scale'.
* src/cff/cffgload.c (cff_decoder_prepare): Change return type to
`FT_Error'.
Check `fd_index'.
(cff_slot_load): Updated.
* src/cff/cffgload.h: Updated.
2007-06-05 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrgload.c (pfr_glyph_done): Comment out unused code.
(pfr_glyph_load_simple): Convert assertion into normal FreeType
error.
Check `idx'.
(pfr_glyph_load_compound, pfr_glyph_curve_to, pfr_glyph_line_to):
Convert assertion into normal FreeType error.
* src/pfr/pfrtypes.h (PFR_GlyphRec): Comment out unused code.
* src/winfonts/winfnt.c (FNT_Face_Init): Check `family_size'.
* src/psaux/psobjs.c (ps_tocoordarray, ps_tofixedarray): Return -1
in case of parsing error.
(ps_parser_load_field): Updated.
* src/type1/t1load.c (parse_font_matrix): Updated.
2007-06-04 Werner Lemberg <wl@gnu.org>
* src/cid/cidgload.c (cid_load_glyph): Check `fd_select'.
* src/tools/ftrandom/Makefile: Depend on `libfreetype.a'.
2007-06-03 Werner Lemberg <wl@gnu.org>
* src/tools/ftrandom/*: Add the `ftrandom' test program written by
George Williams (with some modifications).
2007-06-03 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (destroy_charmaps), src/type1/t1objs.c
(T1_Face_Done), src/winfonts/winfnt.c (FNT_Face_Done): Check for
face == NULL. Suggested by Graham Asher.
2007-06-03 Ismail Dönmez <ismail@pardus.org.tr>
* src/base/ftobjs.c (FT_Request_Metrics): Fix compiler warning.
2007-06-02 Werner Lemberg <wl@gnu.org>
* include/freetype/fterrdef.h (FT_Err_Corrupted_Font_Header,
FT_Err_Corrupted_Font_Glyphs): New error codes for BDF files.
* src/bdf/bdflib.c (bdf_load_font): Use them.
* src/bdf/bdflib.c (_bdf_parse_start): Check `FONT' better.
2007-06-01 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Request_Metrics), src/cache/ftccmap.c
(FTC_CMapCache_Lookup): Remove unused code.
2007-06-01 Sean McBride <sean@rogue-research.com>
* src/truetype/ttinterp.c (Null_Vector, NULL_Vector): Removed,
unused.
2007-06-01 Werner Lemberg <wl@gnu.org>
* src/cid/cidparse.c (cid_parser_new): Don't continue second search
pass for `StartData' if an error has occurred.
Exit properly if no `StartData' has been seen at all.
* builds/unix/ftsystem.c (FT_Stream_Open): Don't use ULONG_MAX but
LONG_MAX to avoid compiler warning. Suggested by Sean McBride.
2007-05-30 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (parse_subrs, parse_charstrings): Protect
against too small binary data strings.
* src/bdf/bdflib.c (_bdf_parse_glyphs): Check `STARTCHAR' better.
2007-05-28 David Turner <david@freetype.org>
* src/cff/cffgload.c (cff_slot_load): Do not apply the identity
transformation. This significantly reduces the loading time of CFF
glyphs.
* docs/CHANGES: Updated.
* src/autofit/afglobal.c (AF_SCRIPT_LIST_DEFAULT): Change default
hinting script to CJK, since it works well with more scripts than
latin. Thanks to Rahul Bhalerao <b.rahul.pm@gmail.com> for pointing
this out!
2007-05-25 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Updated.
2007-05-24 Werner Lemberg <wl@gnu.org>
* src/truetype/ttobjs.h (tt_size_ready_bytecode): Move declaration
into TT_USE_BYTECODE_INTERPRETER preprocessor block.
2007-05-24 Graham Asher <graham.asher@btinternet.com>
* src/truetype/ttobjs.c (tt_size_ready_bytecode)
[!TT_USE_BYTECODE_INTERPRETER]: Removed. Unused.
2007-05-22 David Turner <david@freetype.org>
* src/truetype/ttgload.c (load_truetype_glyph): Fix last change to
avoid crashes in case the bytecode interpreter is not used.
Avoid heap blowup with very large .Z font files. This fixes
Savannah bug #19910.
* src/lzw/ftzopen.h (FT_LzwStateRec): Remove `in_cursor',
`in_limit', `pad', `pad_bits', and `in_buff' members.
Add `buf_tab', `buf_offset', `buf_size', `buf_clear', and
`buf_total' members.
* src/lzw/ftzopen.c (ft_lzwstate_get_code): Rewritten. It now takes
only one argument.
(ft_lzwstate_refill, ft_lzwstate_reset, ft_lzwstate_io): Updated.
2007-05-20 Ismail Dönmez <ismail@pardus.org.tr>
* src/pshinter/pshrec.c (ps_mask_table_set_bits): Add `const'.
(ps_dimension_set_mask_bits): Remove `const'.
2007-05-19 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttmtx.c (tt_face_get_metrics)
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Another type-punning fix.
2007-05-19 Derek Clegg <dclegg@apple.com>
Savannah patch #5929.
* include/freetype/tttables.h, src/base/ftobjcs.c
(FT_Get_CMap_Format): New function.
* include/freetype/internal/services/svttcmap.c (TT_CMapInfo): Add
`format' member.
* src/sfnt/ttcmap.c (tt_cmap{0,2,4,6,8,10,12}_get_info): Set
cmap_info->format.
2007-05-19 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (load_truetype_glyph): Save graphics state
before handling subglyphs so that it can be reinitialized each time.
This fixes Savannah bug #19859.
2007-05-16 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_node_mru_link, ftc_node_mru_unlink),
src/cache/ftccache.h (FTC_CACHE_LOOKUP_CMP), src/cache/ftcglyph.h
(FTC_GCACHE_LOOKUP_CMP), src/pshinter/pshmod.c (ps_hinter_init),
src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_load_hhea,
tt_face_get_metrics): Fix type-punning issues.
2007-05-15 David Turner <david@freetype.org>
* include/freetype/config/ftstdlib.h,
include/freetype/internal/ftobjs.h: As suggested by Graham Asher,
ensure that ft_isalnum, ft_isdigit, etc., use hard-coded values
instead on relying on the locale-dependent functions provided by
<ctypes.h>.
2007-05-15 Graham Asher <graham.asher@btinternet.com>
* src/autofit/afcjk.c (af_cjk_hints_compute_edges): Remove unused
variable.
* src/autofit/afloader.c (af_loader_load_g): Ditto.
* src/base/ftobjs.c (ft_validator_error): Use `ft_jmp_buf'.
(open_face_from_buffer): Initialize `stream'.
(FT_Request_Metrics): Remove unused variable.
Remove redundant `break' statements.
(FT_Get_Track_Kerning): Remove unused variable.
* src/psaux/afmparse.c (afm_parse_track_kern, afm_parse_kern_pairs,
afm_parse_kern_data): Remove redundant
`break' statements.
(afm_parser_parse): Ditto.
Don't use uninitialized variables.
* src/psnames/psmodule.c (VARIANT_BIT): Define as unsigned long.
Use `|' operator instead of `^' to set it.
Update all users.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Use `ft_jmp_buf'.
* src/sfnt/ttkern.c (tt_face_load_kern): Remove unused variable.
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Remove redundant
comparison.
(TT_Process_Simple_Glyph): Use FT_UInt for `n_points' and `i'.
(TT_Load_Glyph): Remove unused variable.
2007-05-13 Derek Clegg <dclegg@apple.com>
* src/base/ftobjs.c (FT_New_Library): Only allocate rendering pool
if FT_RENDER_POOL_SIZE is > 0. From Savannah patch #5928.
2007-05-11 David Turner <david@freetype.org>
* src/cache/ftbasic.c, include/freetype/ftcache.h
(FTC_ImageCache_LookupScaler, FTC_SBit_Cache_LookupScaler): Two new
functions that allow us to look up glyphs using an FTC_Scaler object
to specify the size, making it possible to use fractional pixel
sizes.
* src/truetype/ttobjs.c (tt_size_ready_bytecode): Set
`size->cvt_ready'. Reported by Boris Letocha.
2007-05-09 Graham Asher <graham.asher@btinternet.com>
* src/truetype/ttinterp.c (Ins_IP), src/autofit/aflatin.c
(af_latin_metrics_scale_dim): Fix compiler warnings.
2007-05-06 Werner Lemberg <wl@gnu.org>
* builds/win32/visualce/freetype.sln: Removed, as requested by
Vincent.
2007-05-04 Vincent RICHOMME <richom.v@free.fr>
* builds/win32/visualce/*: Add Visual C++ project files for Pocket
PC targets.
* docs/CHANGES: Document them.
2007-05-04 <harry@kdevelop.org>
* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
mmap (which might happen on some RTOS). From Savannah patch #5909.
2007-05-03 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.
* include/freetype/freetype.h (FT_Set_Char_Size): Update
documentation.
2007-04-28 Victor Stinner <victor.stinner@inl.fr>
* src/sfnt/sfobjs.c (sfnt_load_face): Check error code after loading
`cmap'.
2007-04-27 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Check for negative
number of points in contours. Problem reported by Victor Stinner
<victor.stinner@haypocalc.com>.
(TT_Process_Simple_Glyph): Synchronize variable types.
2007-04-26 Werner Lemberg <wl@gnu.org>
* src/base/ftglyph.c (FT_Glyph_Copy): Always set second argument to
zero in case of error. This fixes Savannah bug #19689.
2007-04-25 Boris Letocha <b.letocha@cz.gmc.net>
* src/truetype/ttobjs.c: Fix a typo that created a speed regression
in the TrueType bytecode loader.
2007-04-10 Martin Horak <horakm@centrum.cz>
* src/sfnt/sfobjs.c (sfnt_load_face) [FT_CONFIG_OPTION_INCREMENTAL]:
Ignore `hhea' table. This fixes Savannah bug #19261.
2007-04-09 Werner Lemberg <wl@gnu.org>
* Version 2.3.4 released.
=========================
Tag sources with `VER-2-3-4'.
* docs/CHANGES, docs/VERSION.DLL: Update documentation and bump
version number to 2.3.4.
* README, Jamfile (RefDoc), builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: s/2.3.3/2.3.4/, s/233/234/.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 4.
* builds/unix/configure.raw (version_info): Set to 9:15:3.
2007-04-09 Martin Horak <horakm@centrum.cz>
* src/truetype/ttgload.c (load_truetype_glyph): Save and restore
memory stream to avoid a crash with the incremental memory
interface (Savannah bug #19260).
2007-04-06 David Turner <david@freetype.org>
* src/base/ftbimap.c (ft_bitmap_assure_buffer): Fix buffer-overwrite bug
(Savannah bug #19536).
2007-04-04 Werner Lemberg <wl@gnu.org>
* Version 2.3.3 released.
=========================
Tag sources with `VER-2-3-3'.
* docs/CHANGES: Mention CVE-2007-1351.
2007-04-03 David Turner <david@freetype.org>
* src/base/ftobjs.c (FT_Set_Char_Size): As suggested by James Cloos,
if one of the resolution values is 0, treat it as if it were the
same as the other value.
2007-04-02 David Turner <david@freetype.org>
Add special code to detect `extra-light' fonts and do not snap their
stem widths too much to avoid bizarre hinting effects.
* src/autofit/aflatin.h (AF_LatinAxisRec): Add `standard_width' and
`extra_light' members.
* src/autofit/aflatin.c (af_latin_metrics_init_widths): Initialize
them.
(af_latin_metrics_scale_dim): Set `extra_light'.
(af_latin_compute_stem_width): Use `extra_light'.
2007-03-28 David Turner <david@freetype.org>
* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix zero-ing of the
padding.
2007-03-28 Werner Lemberg <wl@gnu.org>
* src/bdf/bdflib.c (setsbit, sbitset): Handle values >= 128
gracefully.
(_bdf_set_default_spacing): Increase `name' buffer size to 256 and
issue an error for longer names. This fixes CVE-2007-1351.
(_bdf_parse_glyphs): Limit allowed number of glyphs in font to the
number of code points in Unicode.
* builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj, README: s/2.3.2/2.3.3/,
s/232/233/.
* docs/CHANGES: Mention ftdiff.
2007-03-26 David Turner <david@freetype.org>
* src/truetype/ttinterp.c [FIX_BYTECODE]: Remove it and
corresponding code.
(Ins_MD): Last regression fix.
* src/autofit/aflatin.c (af_latin_metrics_init_blues): Fix blues
computations in order to ignore single-point contours. These are
never rasterized and correspond in certain fonts to mark-attach
points that are very far from the glyph's real outline, ruining the
computation.
* src/autofit/afloader.c (af_loader_load_g): In the case of
monospaced fonts, always set `rsb_delta' and `lsb_delta' to 0.
Otherwise code that uses them will most certainly ruin the fixed
advance property.
* docs/CHANGES, docs/VERSION.DLL, README, Jamfile (RefDoc): Update
documentation and bump version number to 2.3.3.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 3.
* builds/unix/configure.raw (version_info): Set to 9:14:3.
2007-03-26 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/ftconfig.in: Disable Carbon framework dependency on
64bit ABI on Mac OS X 10.4.x (ppc & i386). Found by Sean McBride.
* builds/vms/ftconfig.h: Ditto.
* include/freetype/config/ftconfig.h: Ditto.
2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/ftsystem.c (FT_Stream_Open): Temporary fix to prevent
32bit unsigned long overflow by 64bit filesize on LP64 platform, as
proposed by Sean McBride:
http://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
2007-03-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/ftconfig.in: Suppress SGI compiler's warning against
setjmp, proposed by Sean McBride:
http://lists.gnu.org/archive/html/freetype-devel/2007-03/msg00032.html
2007-03-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Dequote `OS_INLINE' in comment of
conftest.c, to avoid unexpected shell evaluation. Possibly it is a
bug or undocumented behaviour of autoconf.
2007-03-18 David Turner <david@freetype.org>
* src/truetype/ttinterp.c (Ins_MDRP): Another bytecode regression
fix; testing still needed.
* src/truetype/ttinterp.c (Ins_MD): Another bytecode regression fix.
2007-03-17 David Turner <david@freetype.org>
* src/truetype/ttinterp.c (Ins_IP): Fix wrong handling of the
(undocumented) twilight zone special case.
2007-03-09 Werner Lemberg <wl@gnu.org>
* Version 2.3.2 released.
=========================
Tag sources with `VER-2-3-2'.
* builds/win32/visualc/index.html,
builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj, README: s/2.3.1/2.3.2/,
s/231/232/.
2007-03-08 David Turner <david@freetype.org>
* docs/CHANGES, docs/VERSION.DLL: Updated for upcoming release.
* builds/unix/configure.raw (version_info): Set to 9:13:3.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 2.
* README, Jamfile (RefDoc): s/2.3.1/2.3.2/.
* src/base/ftutil.c (ft_mem_strcpyn): Fix a bug that prevented the
function to work properly, over-writing user-provided buffers in
some cases. Reported by James Cloos <cloos@jhcloos.com>.
2007-03-05 Werner Lemberg <wl@gnu.org>
* include/freetype/config/ftstdlib.h (ft_strstr): New wrapper
macro for `strstr'.
* src/truetype/ttobjs.c (tt_face_init): Use ft_strstr for scanning
`trick_names', as suggested by Ivan Nincic.
2007-03-05 David Turner <david@freetype.org>
* src/base/ftinit.c (FT_Init_FreeType): Fix a small memory leak in
case FT_Init_FreeType fails for some reason. Problem reported by
Maximilian Schwerin <maximilian.schwerin@buelowssiege.de>.
* src/truetype/ttobs.c (tt_size_init_bytecode): Clear the `x_ppem'
and `y_ppem' fields of the `TT_Size.metrics' structure, not those of
`TT_Size.root.metrics'. Problem reported by Daniel Glöckner
<daniel-gl@gmx.net>.
* src/type1/t1afm.c (T1_Read_PFM): Read kerning values as 16-bit
signed values, not unsigned ones. Problem reported by Johannes
Walther <joh_walt@yahoo.de>.
2007-02-21 David Turner <david@freetype.org>
* src/pshinter/pshalgo.c (psh_hint_align): Fix a bug in the hinting
of small and ghost stems in the Postscript interpreter.
2007-02-20 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Fix memory
leak, patch by "Jjgod Jiang" <gzjjgod@gmail.com>.
* builds/mac/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Ditto.
2007-02-16 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Ins_MD): Remove unused variable.
* src/autofit/aflatin.c (af_latin_hints_link_segments): Ditto.
2007-02-14 David Turner <david@freetype.org>
It seems that the following changes fix most of the known
interpreter problems with my fonts, but more testing is needed,
though.
* src/truetype/ttinterp.c (FIX_BYTECODE): Activate.
(TT_MulFix14): Rewrite.
(Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Improved and updated.
(Ins_MIRP): Ditto.
2007-02-12 Werner Lemberg <wl@gnu.org>
* src/truetype/ttinterp.c (Project_x, Project_y): Remove compiler
warnings.
* src/pcf/pcfread.c (pcf_interpret_style), src/bdf/bdfdrivr.c
(bdf_interpret_style): Ditto.
2007-02-12 David Turner <david@freetype.org>
Simplify projection and dual-projection code interface.
* src/truetype/ttinterp.h (TT_Project_Func): Use `FT_Pos', not
FT_Vector' as argument type.
* src/truetype/ttinterp.c (CUR_Func_project, CUR_Func_dualproj):
Updated.
(CUR_fast_project, CUR_fast_dualproj): New macros.
(Project, Dual_Project, Project_x, Project_y): Updated.
(Ins_GC, Ins_SCFS, Ins_MDAP, Ins_MIAP, Ins_IP): Use new `fast'
macros.
* src/autofit/afloader.c (af_loader_load_g): Improve spacing
adjustments for the non-light auto-hinted modes. Gets rid of
`inter-letter spacing is too wide' problems.
* src/autofit/aflatin.c (af_latin_hints_link_segments,
af_latin_hints_compute_edges): Slight optimization of the segment
linker and better handling of serif segments to get rid of broken
`9' in Arial at 9pt (96dpi).
Introduce new string functions and the corresponding macros to get
rid of various uses of strcpy and other `evil' functions, as well as
to simplify a few things.
* include/freetype/internal/ftmemory.h (ft_mem_strdup, ft_mem_dup,
ft_mem_strcpyn): New declarations.
(FT_MEM_STRDUP, FT_STRDUP, FT_MEM_DUP, FT_DUP, FT_STRCPYN): New
macros.
* src/base/ftutil.c (ft_mem_dup, ft_mem_strdup, ft_mem_strcpyn): New
functions.
* src/bfd/bfddrivr.c (bdf_interpret_style, BDF_Face_Init),
src/bdf/bdflib.c (_bdf_add_property), src/pcf/pcfread.c
(pcf_get_properties, pcf_interpret_style, pcf_load_font),
src/cff/cffdrivr.c (cff_get_glyph_name), src/cff/cffload.c
(cff_index_get_sid_string), src/cff/cffobjs.c (cff_strcpy),
src/sfnt/sfdriver.c (sfnt_get_glyph_name), src/type1/t1driver.c
(t1_get_glyph_name), src/type42/t42drivr.c (t42_get_glyph_name,
t42_get_name_index): Use new functions and simplify code.
* builds/mac/ftmac.c (FT_FSPathMakeSpec): Don't use FT_MIN.
2007-02-11 Werner Lemberg <wl@gnu.org>
* src/autofit/afloader.c (af_loader_load_g): Don't change width for
non-spacing glyphs.
2007-02-07 Tom Parker <palfrey@tevp.net>
* src/cff/cffdrivr.c (cff_get_name_index): Protect against NULL
pointer.
2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/ftmac.h (FT_DEPRECATED_ATTRIBUTE):
Introduce __attribute((deprecated))__ to warn functions
which use non-ANSI data types in its interfaces.
(FT_GetFile_From_Mac_Name): Deprecated, using FSSpec.
(FT_GetFile_From_Mac_ATS_Name): Deprecated, using FSSpec.
(FT_New_Face_From_FSSpec): Deprecated, using FSSpec.
(FT_New_Face_From_FSRef): Deprecated, using FSRef.
* src/base/ftmac.c: Predefine FT_DEPRECATED_ATTRIBUTE as void
to avoid warning in building FreeType.
* builds/mac/ftmac.c: Ditto.
2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftbase.c: Fix to use builds/mac/ftmac.c, if configured
`--with-fsspec' etc. Replace #include "ftmac.c" with
#include <ftmac.c>.
2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/ftmac.h (FT_GetFilePath_From_Mac_ATS_Name):
Introduced as replacement of FT_GetFile_From_Mac_ATS_Name.
* src/base/ftmac.c (FT_GetFilePath_From_Mac_ATS_Name): Ditto.
(FT_GetFile_From_Mac_ATS_Name): Rewritten as wrapper of
FT_GetFilePath_From_Mac_ATS_Name.
* builds/mac/ftmac.c: Ditto.
2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/ftmac.h: Fixed wrong comment: FSSpec of
FT_GetFile_From_Mac_Name, FT_GetFile_From_Mac_ATS_Name are
for passing to FT_New_Face_From_FSSpec.
2007-02-05 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw: Check whether Mac OS X system headers
can be built under ANSI C mode.
* src/base/ftmac.c (OS_INLINE): Redefine OS_INLINE by a version
compatible to ANSI C in case system headers are ANSI C incompatible.
* builds/mac/ftmac.c (OS_INLINE): Ditto.
2007-02-01 Werner Lemberg <wl@gnu.org>
* include/freetype/ttnameid.h (TT_MS_LANGID_DZONGHKA_BHUTAN):
Explain why applications shouldn't use it. Found by Alexei.
2007-02-01 Alexei Podtelezhnikov <apodtele@gmail.com>
* builds/unix/freetype2.m4 (AC_CHECK_FT2): Fix spelling of warning
message.
* src/gxvalid/gxvmort1.c
(gxv_mort_subtable_type1_substTable_validate): Fix debugging
message.
2007-01-31 Werner Lemberg <wl@gnu.org>
* Version 2.3.1 released.
=========================
Tag sources with `VER-2-3-1-FINAL'.
* builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: s/230/231/.
* builds/win32/visualc/index.html: s/221/231/.
* vms_make.com: Add `ftgasp'.
2007-01-30 David Turner <david@freetype.org>
Tag sources with VER-2-3-1 to prepare release.
* include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
* docs/VERSION.DLL, docs/release, README, Jamfile (RefDoc):
s/2.3.0/2.3.1/.
* builds/unix/configure.raw (version_info): Set to 9:12:3.
* src/autofit/aftypes.h (AF_USE_WARPER), src/autofit/afloader.c
(af_loader_load_g): Disable the warper (i.e., the light hinting
improvements) to make a 2.3.1 bugfix release before introducing a
new feature. This should give us more time to tune and improve the
warper for the next release.
* docs/CHANGES: Update accordingly.
2007-01-25 David Turner <david@freetype.org>
For light auto-hinting, improve glyph advance widths and resurrect
normal/full hinting to its normal quality.
* src/autofit/afhints.h (AF_GlyphHintsRec): New members `xmin_delta'
and `xmax_delta'.
* src/autofit/afhints.c (af_glyph_hints_reload): Reset `xmin_delta'
and `xmax_delta'.
* src/autofit/afloader.c (af_loader_load_g) <AF_USE_WARPER>: Replace
preprocessor conditional with if-clause, handling both light and
normal mode.
* src/autofit/afwarp.c (AF_WarpScore): Fine-tune again.
(af_warper_compute): Handle `xmin_delta' and `xmax_delta'.
2007-01-25 Werner Lemberg <wl@gnu.org>
* docs/release: Updated -- Savannah uses a new uploading scheme.
2007-01-25 David Turner <david@freetype.org>
* src/cff/cffload.c (cff_index_get_pointers): Improve previous fix.
* src/cff/cffgload.c (cff_decoder_parse_charstrings)
<cff_op_callsubr, cff_op_callgsubr>: Fix sanity check for empty
functions.
* docs/CHANGES: Document light auto-hinting improvement.
2007-01-25 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_index_get_pointers): Handle last entry
correctly in a sanity check. Since this function is only used to
load local and global functions, any charstring that called the last
local/global function would fail otherwise. This fixes Savannah bug
#18867.
* docs/CHANGES: Document it.
2007-01-23 David Turner <david@freetype.org>
* src/truetype/ttobjs.c (tt_size_ready_bytecode): Fix typo that
prevented compilation when disabling both the unpatented and the
bytecode interpreter in the TrueType font driver.
Fix and enable the warper to improve `light' hinting mode. This is
not necessarily a final version, but it seems to work well.
* src/autofit/aflatin.c (af_latin_hints_init) [AF_USE_WARPER]:
Disable code.
(af_latin_hints_apply) [AF_USE_WARPER]: Handle FT_RENDER_MODE_LIGHT.
* src/autofit/aftypes.h: Activate AF_USE_WARPER.
* src/autofit/afwarp.c (AF_WarpScore): Tune table.
(af_warper_compute_line_best): Fix array size of `scores'.
(af_warper_compute): Better handling of border cases.
* src/autofit/afwarp.h (AF_WarperRec): Remove unused members `X1'
and `X2'.
2007-01-21 Werner Lemberg <wl@gnu.org>
* ChangeLog: Split off older entries into...
* ChangeLog.22: This new file.
2007-01-21 Werner Lemberg <wl@gnu.org>
* docs/CHANGES: Document SHZ fix.
2007-01-21 George Williams <gww@silcom.com>
* src/truetype/ttinterp.c (Ins_SHZ): SHZ doesn't move phantom
points.
2007-01-21 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttmtx.c (tt_face_get_metrics)
[!FT_CONFIG_OPTION_OLD_INTERNALS]: Fix limit check.
2007-01-17 Werner Lemberg <wl@gnu.org>
* Version 2.3.0 released.
=========================
Tag sources with `VER-2-3-0-FINAL'.
2007-01-17 Werner Lemberg <wl@gnu.org>
* docs/release: Updated.
2007-01-16 David Turner <david@freetype.org>
* src/autofit/aflatin.c (af_latin_hints_compute_segments),
src/cff/cffdriver.c (cff_ps_get_font_info), src/truetype/ttobjs.c
(tt_face_init), src/truetype/ttinterp.c (Ins_SHC): Fix compiler
warnings.
2007-01-15 Detlef Würkner <TetiSoft@apg.lahn.de>
* builds/amiga/makefile, builds/amiga/makefile.os4,
builds/amiga/smakefile: Add `ftgasp.c' and `ftlcdfil.c'.
* builds/amiga/include/freetype/config/ftconfig.h: Synchronize.
2007-01-14 Detlef Würkner <TetiSoft@apg.lahn.de>
Fix various compiler warnings.
* src/truetype/ttdriver.c (tt_size_select), src/cff/cffobjs.h,
src/cff/cffobjs.c (cff_size_request), src/type42/t42objs.h:
s/index/strike_index/.
* src/base/ftobjs.c (FT_Match_Size): s/index/size_index/.
* src/gxvalid/gxvmorx5.c
(gxv_morx_subtable_type5_InsertList_validate): s/index/table_index/.
* src/truetype/ttinterp.c (Compute_Point_Displacement),
src/pcf/pcfread.c (pcf_seek_to_table_type): Avoid possibly
uninitialized variables.
2007-01-13 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* docs/CHANGES, docs/INSTALL.MAC: Improvements.
2007-01-13 Werner Lemberg <wl@gnu.org>
* src/type1/t1afm.c (T1_Read_Metrics): MS Windows allows PFM
versions up to 0x3FF without complaining.
2007-01-13 Derek Clegg <dclegg@apple.com>
Add FT_Get_PS_Font_Info interface to CFF driver.
* src/cff/cfftypes.h: Include FT_TYPE1_TABLES_H.
(CFF_FontRec): Add `font_info' field.
* src/cff/cffload.c: Include FT_TYPE1_TABLES_H.
(cff_font_done): Free font->font_info if necessary.
* src/cff/cffdrvr.c (cff_ps_get_font_info): New function.
(cff_service_ps_info): Register cff_ps_get_font_info.
2007-01-13 Werner Lemberg <wl@gnu.org>
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Fix compilation
with C++ compiler.
* src/autofit/afhints.c (af_glyph_hints_dump_segments,
af_glyph_hints_dump_edges): Ditto.
* src/base/rules.mk (BASE_SRC): Remove ftgasp.c (it's already in
`modules.cfg').
* src/sfnt/ttsbit0.h: Remove.
* src/sfnt/rules.mk (SFNT_DRV_SRC): Don't include ttsbit0.c.
2007-01-12 David Turner <david@freetype.org>
* src/base/ftbitmap.c (ft_bitmap_assure_buffer): Fix memory stomping
bug in the bitmap emboldener if the pitch of the source bitmap is
much larger than its width.
* src/truetype/ttinterp.c (Update_Max): Fix aliasing-related
compilation warning.
2007-01-12 Werner Lemberg <wl@gnu.org>
* builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
`automake' CVS module from sources.redhat.com.
2007-01-11 Werner Lemberg <wl@gnu.org>
* src/type1/t1load.c (is_space): Removed.
(parse_encoding, parse_charstrings): Use IS_PS_DELIM.
(parse_charstrings): Use IS_PS_TOKEN.
* autogen.sh: Avoid bash specific syntax.
2007-01-11 David Turner <david@freetype.org>
* docs/CHANGES: Small update.
* builds/unix/configure.raw (version_info): Set to 9:11:3.
* src/base/ftobjs.c (IsMacResource): Fix a small bug that caused a
crash with some Mac OS X .dfont files. Submitted by Masatake
Yamato.
* autogen.sh: Small fix to get it working on Mac OS X properly:
The issue is that GNU libtool is called `glibtool' on this platform,
and we must call `glibtoolize', since `libtoolize' doesn't exist.
2007-01-10 David Turner <david@freetype.org>
* all-sources: Tag all sources with VER-2-3-0-RC1 and
VER-2-3-0.
* Jamfile (RefDoc), README, builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj, docs/VERSION.DLL: Update
version number to 2.3.0.
* include/freetype/freetype.h (FREETYPE_MINOR): Set to 3.
(FREETYPE_PATCH): Set to 0.
* include/freetype/ftchapters.h, include/freetype/ftgasp.h,
include/freetype/ftlcdfil.h: Update reference documentation with
GASP support and LCD filtering sections.
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix a typo
which created an endless loop with some malformed font files.
2007-01-10 Derek Clegg <dclegg@apple.com>
* src/type1/t1load.c (T1_Get_MM_Var): Always return fixed point
values.
2007-01-08 David Turner <david@freetype.org>
* docs/CHANGES: Updated.
* include/freetype/ftgasp.h, src/base/ftgasp.c: New files which add
a new API `FT_Get_Gasp' to return entries of the `gasp' table
corresponding to a given character pixel size.
* src/sfnt/ttload.c (tt_face_load_gasp): Add version check for the
`gasp' table, in order to avoid potential problems with later
versions.
* include/freetype/config/ftheader.h (FT_GASP_H): New macro for
<freetype/ftgasp.h>.
* src/base/rules.mk (BASE_SRC), src/base/Jamfile (_sources),
modules.cfg (BASE_EXTENSIONS), builds/win32/visualc/freetype.dsp,
builds/win32/visualc/freetype.vcproj: Add src/base/ftgasp.c to the
default build.
2007-01-07 Werner Lemberg <wl@gnu.org>
* src/cid/cidparse.c (cid_parser_new): Improve error message for
Type 11 fonts.
Scan for `/sfnts' token.
2007-01-07 Werner Lemberg <wl@gnu.org>
* src/cid/cidparse.c (cid_parser_new): Reject Type 11 fonts.
2007-01-06 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_index_init): Remove unused variable.
(cff_index_read_offset): s/perror/errorp/ to avoid global shadowing.
2007-01-04 David Turner <david@freetype.org>
* src/pfr/pfrobjs.c (pfr_face_init): Detect non-scalable fonts
correctly. This fixes Savannah bug #17876.
Do not allocate interpreter-specific tables in memory if we are not
going to load glyphs with the bytecode interpreter anyway.
* src/truetype/ttgload.c (tt_loader_init): Load execution context
only if glyph is hinted.
Updated.
* src/truetype/ttobjs.h (TT_SizeRec): Add members `bytecode_ready'
and `cvs_ready'.
Add `tt_size_ready_bytecode' declaration.
* src/truetype/ttobjs.c (tt_size_done_bytecode,
tt_size_init_bytecode, tt_size_ready_bytecode): New functions.
(tt_size_init): Move most code into `tt_size_init_bytecode'.
(tt_size_done): Move most code into `tt_size_done_bytecode'.
(tt_size_reset): Move some code to `tt_size_ready_bytecode'.
Don't extract the metrics table from the SFNT font file. Instead,
reparse it on each glyph load. The runtime difference is not
noticeable, and it can save a lot of heap memory when memory-mapped
files are not used.
* include/freetype/internal/tttypes.h (TT_FaceRec): Add members
`horz_metrics_offset' and `vert_metrics_ofset'.
* src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics):
Updated.
* src/sfnt/ttcmap.c (tt_cmap4_validate): Slight optimization.
Do not load the CFF index offsets into memory, since this wastes a
*lot* of heap memory with large Asian CFF fonts. There is no
significant performance loss.
* src/cff/cffload.h: Add `cff_charset_cid_to_gindex' declaration.
* src/cff/cfftypes.h (CFF_IndexRec): Add fields `start' and
`data_size'.
(CFF_CharsetRec): Add field `num_glyphs'.
* src/cff/cffload.c (cff_index_read_offset, cff_index_load_offsets,
cff_charset_cid_to_gindex): New functions.
(cff_new_index): Renamed to...
(cff_index_init): This. Update all callers.
Updated -- some code has been moved to `cff_index_load_offsets'.
(cff_done_index): Renamed to...
(cff_index_done): This. Update all callers.
(cff_index_get_pointers, cff_index_access_element): Updated to use
stream offsets.
(cff_charset_compute_cids): Set `num_glyphs' field.
(cff_encoding_load): Updated.
* src/cff/cffgload.c (cff_slot_load): Updated.
2007-01-04 David Turner <david@freetype.org>
* docs/INSTALL.UNIX: Simplify some parts, add reference to
autogen.sh and pointer to README.CVS.
* README.CVS: Add common problem description and solution
when running autogen.sh.
* docs/INSTALL: Add reference to MacOS X.
* docs/MAKEPP, docs/INSTALL.MAC: New documentation files.
* docs/TODO: Remove obsolete items.
* src/raster/ftraster.c: (TRaster_Instance): Replace it with...
(TWorker): This.
Remove `count_table' and `memory'.
Make `grays' a pointer.
(TRaster): New structure.
(count_table): New static array.
(RAS_ARGS, RAS_ARG, RAS_VARS, RAS_VAR, FT_UNUSED_RASTER, cur_ras,
Vertical_Gray_Sweep_Step, ft_black_new, ft_black_done,
ft_black_set_mode, ft_black_render): Updated.
(ft_black_init): Don't initialize `count_table'.
(ft_black_reset): Use the render pool. This saves about 6KB of
heap space for each FT_Library instance.
* src/smooth/ftgrays.c (TRaster): Replaced with...
(TWorker): This.
Remove `memory'.
(TRaster): New structure.
(RAS_ARG_, RAS_ARG, RAS_VAR_, RAS_VAR, ras, gray_render_line,
gray_move_to, gray_line_to, gray_conic_to, gray_cubic_to,
gray_render_span, gray_raster_render): Updated.
(gray_raster_reset): Use the render pool. This saves about 6KB of
heap space for each FT_Library instance.
* src/sfnt/sfobjs.c, src/sfnt/ttkern.c, src/sfnt/ttkern.h,
src/sfnt/ttmtx.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
src/truetype/ttpload.c, include/freetype/config/ftoption.h: Remove
FT_OPTIMIZE_MEMORY macro (and code for !FT_OPTIMIZE_MEMORY) since
the optimization is no longer experimental.
* src/pshinter/pshalgo.c (psh_glyph_interpolate_normal_points):
Remove a typo that results in no hinting and a memory leak with some
large Asian CFF fonts.
* src/base/ftobjs.c (FT_Done_Library): Remove a subtle memory leak
which happens when FT_Done_Library is called with still opened
CFF_Faces in it. We need to close all faces before destroying the
modules, or else some bad things (memory leaks) may happen.
2007-01-02 Werner Lemberg <wl@gnu.org>
* src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate):
Remove compiler warning.
2007-01-02 David Turner <david@freetype.org>
* src/sfnt/sfobjs.c: Add documentation comment.
2006-12-31 Masatake YAMATO <jet@gyve.org>
* src/gxvalid/gxvkern.c (gxv_kern_subtable_fmt0_pairs_validate): New
function.
Check uniqueness of the gid pairs.
(gxv_kern_subtable_fmt0_validate): Move some code to
`gxv_kern_subtable_fmt0_pairs_validate'.
2006-12-22 David Turner <david@freetype.org>
* src/autofit/aflatin.c, src/truetype/ttgload.c: Remove compiler
warnings.
* builds/win32/visualc/freetype.vcproj: Add _CRT_SECURE_NO_DEPRECATE
to avoid deprecation warnings with Visual C++ 8.
2006-12-16 Anders Kaseorg <anders@kaseorg.com>
* src/base/ftlcdfil.c (FT_Library_SetLcdFilter)
[FT_FORCE_LIGHT_LCD_FILTER]: Fix typo.
2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* include/freetype/internal/services/svotval.h: Add `volatile' to
sync with the modification by Jens Claudius on 2006-08-22; cf.
http://cvs.savannah.gnu.org/viewcvs/freetype/freetype2/src/otvalid/otvmod.c?r1=1.4&r2=1.5
2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c: Specialized for Mac OS X only.
* builds/unix/ftconfig.in: Fixed for ppc64 missing Carbon framework.
* builds/unix/configure.raw: Ditto. When explicit switches for
FSSpec/FSRef/QuickDraw/ATS availability are given to configure,
builds/mac/ftmac.c is used instead of default src/base/ftmac.c.
2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/mac/ftmac.c: Copied src/base/ftmac.c for legacy system.
* builds/mac/FreeType.m68k_cfm.make.txt: Fix to use builds/mac/ftmac.c
instead of src/base/ftmac.c
* builds/mac/FreeType.ppc_carbon.make.txt: Ditto.
* builds/mac/FreeType.ppc_classic.make.txt: Ditto.
* builds/mac/FreeType.m68k_far.make.txt: Ditto, and exclude gxvalid.c
that cannot be built at present.
2006-12-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftobjs.c: Improvement of resource fork handler for
POSIX, cf.
http://lists.gnu.org/archive/html/freetype-devel/2006-10/msg00025.html
(Mac_Read_sfnt_Resource): Count only `sfnt' resource of suitcase font
format or .dfont, to simulate the face index number counted by ftmac.c.
(IsMacResource): Return the number of scalable faces correctly.
2006-12-10 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (version): Protect against `distclean' target.
2006-12-09 Werner Lemberg <wl@gnu.org>
* builds/*/*def.mk, builds/*/detect.mk (CAT): Define to either `cat'
or `type'.
* builds/freetype.mk (version): Extracted from freetype.h, using
GNU make's built-in string functions.
(refdoc): Use $(version) instead of static version number.
2006-12-08 Werner Lemberg <wl@gnu.org>
* builds/toplevel.mk (dist): Extract version number from freetype.h.
2006-12-08 Vladimir Volovich <vvv@vsu.ru>
* src/tools/apinames.c (State): Remove final comma in structure --
xlc v5 under AIX 4.3 doesn't like this.
2006-12-07 David Turner <david@freetype.org>
* src/autofit/afloader.c (af_loader_load_g): Small adjustment
to the spacing of auto-fitted glyphs. This only impacts rare
cases (e.g., Arial Bold at rather small character sizes).
2006-12-03 Werner Lemberg <wl@gnu.org>
* src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
2006-12-01 Werner Lemberg <wl@gnu.org>
* src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
(tt_name_entry_ascii_from_ucs4): Removed.
* include/freetype/ftxf86.h: Fix and extend comment so that it
appears in the documentation.
* include/freetype/ftchapters.h: Add `font_format' section.
* src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
to TOC in index page.
2006-11-28 David Turner <david@freetype.org>
* src/smooth/ftgrays.c (gray_raster_render): Return 0 when we are
trying to render into a zero-width/height bitmap, not an error code.
* src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch.
* src/smooth/ftgrays.c: Remove hard-coded error values; use FreeType
ones instead.
* src/autofit/afhints.c (af_glyph_hints_dump_segments): Remove unused
variable.
2006-11-26 Pierre Hanser <hanser@club-internet.fr>
* src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
2006-11-25 David Turner <david@freetype.org>
* src/autofit/afhints.c (af_glyph_hints_dump_points,
af_glyph_hints_dump_segments, af_glyph_hints_dumpedges) [!AF_DEBUG]:
Add stubs to link the `ftgrid' test program when debugging is
disabled in the auto-hinter.
2006-11-23 David Turner <david@freetype.org>
* src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
src/autofit/aftypes.h: Miscellaneous auto-hinter improvements.
* src/autofit/afhints.c (af_glyph_hints_dump_segments) [AF_DEBUG]:
Emit more sensible information.
* src/autofit/afhints.h (AF_SegmentRec): Add `height' member.
* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Improve
rounding of blue values.
(af_latin_hints_compute_segments): Hint segment heights.
(af_latin_hints_link_segments): Reduce `len_score' value.
(af_latin_hints_compute_edges): Increase `segment_length_threshold'
value and use `height' member for comparisons.
(af_latin_hint_edges): Extend logging message.
Improve handling of remaining edges.
2006-11-22 Werner Lemberg <wl@gnu.org>
Fix Savannah bug #15553.
* src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT
program after a change from mono to grayscaling (and vice versa).
Use correct constant for comparison to get `exec->grayscale'.
2006-11-18 Werner Lemberg <wl@gnu.org>
Because FT_Load_Glyph expects CID values for CID-keyed fonts, the
test for a valid glyph index must be deferred to the font drivers.
This patch fixes Savannah bug #18301.
* src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'.
* src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c
(cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph),
src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c
(pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph),
src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c
(FNT_Load_Glyph): Check validity of `glyph_index'.
2006-11-13 David Turner <david@freetype.org>
* src/truetype/ttinterp.c (FIX_BYTECODE): Undefine. The interpreter
`enhancements' are still too buggy for general use.
* src/base/ftlcdfil.c: Add support for FT_FORCE_LIGHT_LCD_FILTER and
FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
when building the library to change the default LCD filter to be
used. This is only useful for experimentation.
* include/freetype/ftlcdfil.h: Update documentation.
2006-11-10 David Turner <david@freetype.org>
* src/smooth/ftsmooth.c: API change for the LCD
filter. The FT_LcdFilter value is an enumeration describing which
filter to apply, with new values FT_LCD_FILTER_LIGHT and
FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
algorithm which produces strong color fringes for everything
except very-well hinted text).
* include/freetype/ftlcdfil.h (FT_Library_SetLcdFilter): Change
second parameter to an enum type.
* src/base/ftlcdfil.c (USE_LEGACY): Define.
(_ft_lcd_filter): Rename to...
(_ft_lcd_filter_fir): This.
Update parameters.
(_ft_lcd_filter_legacy) [USE_LEGACY]: New filter function.
(FT_Library_Set_LcdFilter): Update parameters.
Handle new filter modes.
* include/internal/ftobjs.h: Include FT_LCD_FILTER_H.
(FT_Bitmap_LcdFilterFunc): Change third argument to `FT_Library'.
(FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Add filtering
callback and update other fields.
* src/smooth/ftsmooth.c (ft_smooth_render_generic)
[FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Update.
Other minor improvements.
* src/autofit/aflatin.c: Various tiny improvements that drastically
improve the handling of serif fonts and of LCD/LCD_V hinting modes.
(af_latin_hints_compute_edges): Fix typo.
(af_latin_compute_stem_width): Take better care of diagonal stems.
2006-11-09 David Turner <david@freetype.org>
* src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix
typo which created a variable-used-before-initialized bug.
2006-11-07 Zhe Su <james.su@gmail.com>
* src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
also.
2006-11-03 Werner Lemberg <wl@gnu.org>
* src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
2006-11-02 David Turner <david@freetype.org>
Add a few tweaks to better handle serif fonts.
Add more debugging messages.
* src/autofit/aflatin.c (af_latin_hints_compute_edges): Ignore
segments that are less than 1.5 pixels high. This gets rid of
*many* corner cases with serifs.
(af_latin_align_linked_edge): Add logging message.
(af_latin_hint_edges): Use AF_HINTS_DO_BLUES.
Add logging messages.
Handle AF_EDGE_FLAG flag specially.
* src/autofit/afmodule.c [AF_DEBUG]: Add _af_debug,
_af_debug_disable_blue_hints, and _af_debug_hints variables.
* src/autofit/aftypes.h (AF_LOG) [AF_DEBUG]: Use _af_debug.
Update external declarations.
(af_corner_orientation, af_corner_is_flat): Replaced by...
* include/freetype/internal/ftcalc.h (ft_corner_orientation,
ft_corner_is_flat): These declarations.
* src/autofit/afangles.c (af_corner_orientation, af_corner_is_flat):
Comment out. Replaced by...
* src/base/ftcalc.h (ft_corner_orientation, ft_corner_is_flat):
These functions. Update all callers.
(FT_Add64) [!FT_LONG64]: Simplify.
* src/autofit/afhints.c: Include FT_INTERNAL_CALC_H.
(af_direction_compute): Add a missing FT_ABS call. This bug caused
production of garbage by missing lots of segments.
* src/autofit/afhints.h (AF_HINTS_DO_BLUES): New macro.
* src/autofit/afloader.c (af_loader_init, af_loader_done)
[AF_DEBUG]: Set _af_debug_hints.
* src/pshinter/pshalgo.c: Include FT_INTERNAL_CALC_H.
(psh_corner_is_flat, psh_corner_orientation): Use ft_corner_is_flat
and ft_corner_orientation.
* src/gzip/inftrees.c (huft_build): Remove compiler warning.
2006-10-24 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_encoding_load): Remove unused variable.
* src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
as argument.
2006-10-23 Zhe Su <zsu@novell.com>
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Re-implement to
better deal with broken Asian fonts with strange glyphs, having
self-intersections and other peculiarities. The used algorithm is
based on the nonzero winding rule.
2006-10-23 David Turner <david@freetype.org>
Speed up the CFF font loader. With some large CFF fonts,
FT_Open_Face is now more than three times faster.
* src/cff/cffload.c (cff_get_offset): Removed.
(cff_new_index): Inline functionality of `cff_get_offset'.
(cff_charset_compute_cids, cff_charset_free_cids): New functions.
(cff_charset_done): Call `cff_charset_free_cids'.
(cff_charset_load): Call `cff_charset_compute_cids'.
(cff_encoding_load) <Populate>: Ditto, to replace inefficient loop.
* src/sfnt/ttmtx.c (tt_face_load_hmtx): Replace calls to FT_GET_XXX
with FT_NEXT_XXX.
Speed up the Postscript hinter, with more than 100% speed increase
on my machine.
* src/pshinter/pshalgo.c (psh_corner_is_flat,
psh_corner_orientation): New functions.
(psh_glyph_compute_inflections): Merge loops for efficiency.
Use `psh_corner_orientation'.
(psh_glyph_init): Use `psh_corner_is_flat'.
(psh_hint_table_find_strong_point): Renamed to...
(psh_hint_table_find_strong_points): This.
Rewrite, adding argument to handle all points at once.
Update all callers.
(PSH_MAX_STRONG_INTERNAL): New macro.
(psh_glyph_interpolate_normal_points): Rewrite for efficiency.
2006-10-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (FT_New_Face_From_FOND): Initialize variable
`error' with FT_Err_Ok.
2006-10-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* docs/INSTALL.CROSS: New document file for cross-building.
* builds/unix/configure.raw: Preliminary cross-building support.
Find native C compiler and pass it by CC_BUILD, and
find suffix for native executable and pass it by EXEEXT_BUILD.
Also suffix for target executable is passed by EXEEXT.
* builds/unix/unix-cc.in (CCraw_build, E_BUILD): New variables to
build `apinames' which runs on building system. They are set by
CC_BUILD and EXEEXT_BUILD.
* builds/exports.mk (APINAMES_EXE): Change the extension for
apinames from the suffix for target (E) to that for building host
(E_BUILD).
2006-10-12 Werner Lemberg <wl@gnu.org>
* docs/INSTALL.UNX, docs/UPGRADE.UNX: Renamed to...
* docs/INSTALL.UNIX, docs/UPGRADE.UNIX: This. Update all documents
which reference those files.
2006-10-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* builds/unix/configure.raw (FT2_EXTRA_LIBS): New variable. It is
embedded in freetype2.pc and freetype-config. Use it to record
Carbon dependency of MacOSX.
* builds/unix/freetype2.in: Embed FT2_EXTRA_LIBS.
* builds/unix/freetype-config.in: Ditto.
2006-10-11 Werner Lemberg <wl@gnu.org>
* devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): Define for
development.
2006-10-03 Jens Claudius <jens.claudius@yahoo.com>
* include/freetype/config/ftstdlib.h: Cast away volatileness from
argument to ft_setjmp.
* include/freetype/internal/ftvalid.h: Add comment that
ft_validator_run must not be used.
2006-10-01 Werner Lemberg <wl@gnu.org>
* src/base/ftbase.c: Undo change from 2006-09-30.
* src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
2006-09-30 David Turner <david@freetype.org>
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
s/unpatented_hinting/ignore_unpatented_hinter/.
Update all callers.
* src/base/ftobjs.c (FT_Load_Glyph): Refine the algorithm whether
auto-hinting shall be used or not.
* src/truetype/ttobjs.c (tt_face_init): Ditto.
2006-09-30 Werner Lemberg <wl@gnu.org>
* src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
in use).
* src/base/ftbase.c: Include `ftlcdfil.c'.
2006-09-29 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
overlapping segments. Bug reported by Stefan Koch.
2006-09-28 David Turner <david@freetype.org>
Fix a bug in the automatic unpatented hinting support which prevents
normal bytecode hinting to work properly.
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
s/force_autohint/unpatented_hinting/. Update all callers.
* src/base/ftobjs.c (FT_Load_Glyph): Updated code.
* src/autofit/aftypes.h (AF_DEBUG): Undefine to get rid of traces.
2006-09-27 David Turner <david@freetype.org>
* include/freetype/freetype.h (FT_FREETYPE_PATCH): Set to 2.
Add a new API to support color filtering of subpixel glyph bitmaps.
In a default build, the function `FT_Library_SetLcdFilter' returns
`FT_Err_Unimplemented_Feature'; you need to #define
FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile the
real implementation.
* include/freetype/ftlcdfil.h, src/base/ftlcdfil.c: New files.
* include/freetype/internal/ftobjs.h (FT_Bitmap_LcdFilterFunc): New
typedef.
(FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: New members
`lcd_filter_weights' and `lcd_filter'.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove arguments
`hmul' and `vmul'.
Handle subpixel rendering.
Simplify function.
(ft_smooth_render_lcd): Use `FT_RENDER_MODE_LCD'.
(ft_smooth_render_lcd_v): Use `FT_RENDER_MODE_LCD_V'.
* include/freetype/config/ftheader.h (FT_LCD_FILTER_H): New macro,
pointing to <freetype/ftlcdfil.h>.
* src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC),
vms_make.com: Add `ftlcdfil.c' to the list of compiled source files.
* modules.cfg (BASE_EXTENSIONS): Add ftlcdfil.c.
2006-09-26 David Bustin
* src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes
correctly. Reported as Savannah bug #17843.
2006-09-26 David Turner <david@freetype.org>
* src/autofit/afhints.h (AF_HINTS_DO_HORIZONTAL,
AF_HINTS_DO_VERTICAL, AF_HINTS_DO_ADVANCE): New macros to disable
horizontal and vertical hinting for the purpose of debugging the
auto-fitter.
* src/autofit/afmodule.c (_af_debug_disable_horz_hints,
_af_debug_disable_vert_hints) [AF_DEBUG]: New global variables.
* src/autofit/aftypes.h [AF_DEBUG]: Declare above variables.
* include/freetype/config/ftoption.h, devel/ftoption.h
(FT_CONFIG_OPTION_SUBPIXEL_RENDERING): New macro to control whether
we want to compile LCD-optimized rendering code (à la ClearType) or
not. The macro *must* be disabled in default builds of the library
for patent reasons.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Disable
LCD-specific rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING
isn't defined at compile time. This only changes the content of the
rendered glyph to match the one of normal gray-level rendering,
hence clients should not need to be modified.
* docs/CHANGES: Updated.
2006-09-18 Garrick Meeker <garrick@digitalanarchy.com>
* src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if
LWFN fails and both are available.
2006-09-11 David Turner <david@freetype.org>
* src/sfnt/sfobjs.c (tt_face_get_name): Support some fonts which
report their English names through an Apple Roman
(platform,encoding) pair, with language_id != English.
If the font uses another name entry with language_id == English, it
will be selected correctly, though.
* src/truetype/ttobjs.c (tt_face_init): Add unpatented hinting
selection for `mingli.ttf'.
2006-09-05 Werner Lemberg <wl@gnu.org>
* src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
values which have the upper two bytes set to 0xFF instead of 0x00
(as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and
`HAN NOM B.ttf').
* src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.
2006-09-05 David Turner <david@freetype.org>
Minor source cleanups and optimizations.
* src/smooth/ftgrays.c (GRAYS_COMPACT): Removed.
(TRaster): Remove `count_ex' and `count_ey'.
(gray_find_cell): Remove 2nd and 3rd argument.
(gray_alloc_cell): Merged with `gray_find_cell'.
(gray_record_cell): Simplify.
(gray_set_cell): Rewrite.
(gray_start_cell): Apply offsets to `ras.ex' and `ras.ey'.
(gray_render_span): Don't use FT_MEM_SET for small values.
(gray_dump_cells) [DEBUG_GRAYS]: New function.
(gray_sweep): Avoid buffer overwrites when to drawing the end of a
bitmap scanline.
(gray_convert_glyph): Fix speed-up.
2006-09-04 David Turner <david@freetype.org>
* src/smooth/ftgrays.c (gray_convert_glyphs): Make it work with
64bit processors.
2006-09-03 Werner Lemberg <wl@gnu.org>
* devel/ftoption.h: Synchronize with
include/freetype/config/ftoption.h.
* src/smooth/ftgrays.c (gray_record_cell): Remove shadowing
variable declaration.
(gray_convert_glyph): Fix compiler warnings.
2006-09-01 David Turner <david@freetype.org>
* src/truetype/ttobjs.c (tt_face_init): Update the TrueType loader
to recognize a few fonts that require the automatic unpatented
loader.
* src/smooth/ftgrays.c: Optmize the performance of the anti-aliased
rasterizer. The speed improvement is between 15% and 25%, depending
on the font data.
(GRAYS_USE_GAMMA, GRAYS_COMPACT): Removed, and all associated code.
(TCell): Redefine.
(TRaster): New members `buffer', `buffer_size', `ycells', `ycount'.
(gray_init_cells): Updated.
(gray_find_cell, gray_alloc_cell): New functions.
(gray_record_cell): Rewritten to use `gray_find_cell' and
`gray_alloc_cell'.
(PACK, LESS_THAN, SWAP_CELLS, DEBUG_SORT, QUICK_SORT, SHELL_SORT,
QSORT_THRESHOLD):
Removed.
(gray_shell_sort, gray_quick_sort, gray_check_sort,
gray_dump_cells): Removed.
(gray_sweep): Rewritten.
(gray_convert_glyph): Rewrite code which used one of the sorting
functions.
(gray_raster_render): Updated.
2006-08-29 Dr. Werner Fink <werner@suse.de>
* configure: Make it possible to handle configure options which
have strings containing spaces.
2006-08-27 David Turner <david@freetype.org>
* include/freetype/config/ftoption.h (TT_USE_BYTECODE_INTERPRETER):
New macro, defined if either TT_CONFIG_OPTION_BYTECODE_INTERPRETER
or TT_CONFIG_OPTION_UNPATENTED_HINTING is defined.
* include/freetype/internal/ftcalc.h, src/base/ftcalc.c,
src/truetype/truetype.c, src/truetype/ttdriver.c,
src/truetype/ttgload.c, src/truetype/ttgload.h,
src/truetype/ttinterp.c, src/truetype/ttobjs.c,
src/truetype/ttobjs.h, src/truetype/ttpload.c, src/type42/t42drivr.c:
s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/.
* include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
member `force_autohint'.
* src/base/ftobjs.c (FT_Load_Glyph): Use `force_autohint'.
* src/truetype/ttobjs.c (tt_face_init): Prepare code for testing
against a list of font names which need the bytecode interpreter.
2006-08-27 Jens Claudius <jens.claudius@yahoo.com>
Fix miscellaneous compiler warnings.
* include/freetype/internal/ftobjs.h: Close comment with `*/' to
avoid `/* in comment' compiler warning.
* src/base/ftdbgmem.c (ft_mem_table_get_source): Turn cast
`(FT_UInt32)(void*)' into `(FT_UInt32)(FT_PtrDist)(void*)' since on
64-bit platforms void* is larger than FT_UInt32.
* src/base/ftobjs.c (t_validator_error): Cast away
volatileness of argument to ft_longjmp. Spotted by Werner
`Putzfrau' Lemberg.
* src/bdf/bdflib.c (bdf_load_font): Initialize local
variable `lineno'.
* src/gxvalid/gxvmod.c (classic_kern_validate): Mark local variable
`error' as volatile.
2006-08-27 Werner Lemberg <wl@gnu.org>
* builds/unix/ftconfig.in: Synchronize with main ftconfig.h.
Reported by Jens.
2006-08-22 Jens Claudius <jens.claudius@yahoo.com>
Fix for previous commit, which caused many compiler warnings/errors
about addresses of volatile objects passed as function arguments as
non-volatile pointers.
* include/freetype/internal/ftvalid.h: Make FT_Validator typedef a
pointer to a volatile object.
* src/gxvalid/gxvmod.c (gxv_load_table): Make function argument
`table' a pointer to a volatile object.
* src/otvalid/otvmod.c (otv_load_table): Make function argument
`table' a pointer to a volatile object.
2006-08-18 Jens Claudius <jens.claudius@yahoo.com>
* src/gxvalid/gxvmod.c (GXV_TABLE_DECL): Mark local variable `_sfnt'
as volatile since it must keep its value across a call to ft_setjmp.
(gxv_validate): Same for local variables `memory' and `valid'.
(classic_kern_validate): Same for local variables `memory',
`ckern', and `valid'.
* src/otvalid/otvmod.c (otv_validate): Same for function parameter
`face' and local variables `base', `gdef', `gpos', `gsub', `jstf',
and 'valid'.
* src/sfnt/ttcmap.c (tt_face_build_cmaps): Same for local variable
`cmap'.
2006-08-16 David Turner <david@freetype.org>
* src/cid/cidgload.c (cid_slot_load_glyph): Remove compiler
warnings.
* src/base/ftobjs.c (ft_validator_run): Disable function; it is
buggy by design. Always return -1.
Improvements to native TrueType hinting. This is a first try,
controlled by the FIX_BYTECODE macro in src/truetype/ttinterp.c.
* include/freetype/internal/ftgloadr.h (FT_GlyphLoadRec): Add member
`extra_points2'.
* include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add member
`orus'.
* src/base/ftgloadr.c (FT_GlyphLoader_Reset,
FT_GlyphLoader_Adjust_Points, FT_GlyphLoader_CreateExtra,
FT_GlyphLoader_CheckPoints, FT_GlyphLoader_CopyPoints): Updated to
handle `extra_points2'.
* src/truetype/ttgload.c (tt_prepare_zone): Handle `orus'.
Remove compiler warning.
(cur_to_arg): Remove macro.
(TT_Hint_Glyph): Updated.
(TT_Process_Simple_Glyph): Handle `orus'.
* src/truetype/ttinterp.c (FIX_BYTECODE): New macro.
(Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Handle `orus'.
(LOC_Ins_IUP): Renamed to...
(IUP_WorkerRec): This.
Add `orus' member.
(Shift): Renamed to...
(_iup_worker_shift): This.
Updated.
(Interp): Renamed to...
(_iup_worker_interpolate): This.
Updated to handle `orus'.
(Ins_IUP): Updated.
* src/truetype/ttobjs.c (tt_glyphzone_done, tt_glyphzone_new):
Handle `orus'.
2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
build ftvalid in ft2demos. This has been inadvertedly changed
2006-08-13.
2006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
`ft_validator_run' wrapping `setjmp' can cause a crash, as found by
Jens:
http://lists.gnu.org/archive/html/freetype-devel/2006-08/msg00004.htm.
* src/otvalid/otvmod.c: Replace `ft_validator_run' by `ft_setjmp'.
It reverts the change introduced on 2005-08-20.
* src/gxvalid/gxvmod.c: Ditto.
2006-08-13 Jens Claudius <jens.claudius@yahoo.com>
* finclude/freetype/internal/psaux.h: (T1_TokenType): Add
T1_TOKEN_TYPE_KEY.
(T1_FieldRec): Add `dict'.
(T1_FIELD_DICT_FONTDICT, T1_FIELD_DICT_PRIVATE): New macros.
(T1_NEW_XXX, T1_FIELD_XXX): Update to take the dictionary where a PS
keyword is expected as an additional argument.
* src/cid/cidload.c: (cid_field_records): Adjust invocations of
T1_FIELD_XXX.
* src/cid/cidtoken.h: Adjust invocations of T1_FIELD_XXX.
* src/psaux/psobjs.c: Add macro FT_COMPONENT for tracing.
(ps_parser_to_token): Report a PostScript key as T1_TOKEN_TYPE_KEY,
not T1_TOKEN_TYPE_ANY.
(ps_parser_load_field): Make sure a token that should be a string or
name is really a string or name.
Avoid memory leak if a keyword has been already encountered and its
value is overwritten.
* src/type1/t1load.c: (t1_keywords): Adjust invocations of
T1_FIELD_XXX.
(parse_dict): Ignore keywords that occur in the wrong dictionary
(e.g., in `Private' instead of `FontDict').
* src/type1/t1tokens.h: Adjust invocations of T1_FIELD_XXX.
* src/type42/t42parse.c: (t42_keywords): Adjust invocations of
T1_FIELD_XXX.
2006-07-18 Jens Claudius <jens.claudius@yahoo.com>
Move creation of field `buildchar' of T1_DecoderRec out of
`t1_decoder_init' and let the caller of `t1_decoder_init' take care
of it.
Call the finisher for T1_Decoder in `cid_face_compute_max_advance'
and `T1_Compute_Max_Advance'.
* include/freetype/internal/psaux.h (T1_DecoderRec): Remove field
`face', add `len_buildchar'.
* include/freetype/internal/t1types.h (T1_FaceRec): Add field
`buildchar'.
* src/cid/cidgload.c (cid_face_compute_max_advance): Call finisher
for T1_Decoder.
(cid_slot_load_glyph): Do not ignore failure when initializing the
T1_Decoder.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Updated.
(t1_decoder_init): Remove initialization of fields `buildchar' and
`len_buildchar'.
(t1_decoder_done): Remove deallocation of field `buildchar'.
* freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize
T1_Decoder's `buildchar' and `len_buildchar'; call finisher for
T1_Decoder.
(T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and
`len_buildchar'; make sure to call finisher for T1_Decoder even in
case of error.
* src/type1/t1load.c (T1_Open_Face): Allocate new field `buildchar'
of T1_FaceRec.
* src/type1/t1objs.c (T1_Face_Done): Free new field `buildchar' of
T1_FaceRec.
2006-07-14 Jens Claudius <jens.claudius@yahoo.com>
* include/freetype/internal/psaux.h: New macros IS_PS_NEWLINE,
IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT,
and IS_PS_BASE85 (from src/psaux/psconv.h).
(T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER,
T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND.
(T1_DecoderRec): New fields `buildchar' and `face'.
(IS_PS_TOKEN): New macro.
* include/freetype/internal/t1types.h (T1_FaceRec): New fields
`ndv_idx', `cdv_idx', and `len_buildchar'.
* include/freetype/t1tables.h (PS_BlendRec): New fields
`default_design_vector' and `num_default_design_vector'.
* src/psaux/psconv.h: Move macros IS_PS_NEWLINE, IS_PS_SPACE,
IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT, and
IS_PS_BASE85 to include/freetype/internal/psaux.h.
* src/psaux/psobjs.c (ps_parser_to_token_array): Allow `token'
argument to be NULL if we want only to count the number of tokens.
(ps_tocoordarray): Allow `coords' argument to be NULL if we just
want to skip the array.
(ps_tofixedarray): Allow `values' argument to be NULL if we just
want to skip the array.
* src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add support
for (partially commented out) othersubrs 19-25, 27, and 28.
(t1_decoder_init): Initialize new fields `face' and `buildchar'.
(t1_decoder_done): Release new field `buildchar'.
* src/type1/t1load.c (parse_buildchar, parse_private): New
functions.
(t1_keywords): Register them.
(t1_allocate_blend): Updated.
(t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER,
T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND.
(parse_dict): Remove `keyword_flags' argument.
Use new macro IS_PS_TOKEN.
Changed function so that later PostScript definitions override
earlier ones.
(t1_init_loader): Initialize new field `keywords_encountered'.
(T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and
`len_buildchar'.
Remove `keywords_flags'.
* src/type1/t1load.h (T1_LoaderRect): New field
`keywords_encountered'.
(T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros.
* src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: New
entries for parsing /NDV, /CDV, and /DesignVector.
2006-07-07 Werner Lemberg <wl@gnu.org>
Add many checks to protect against malformed PCF files.
* src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers.
(PCF_Face_Init): Add calls to PCF_Face_Done in case of errors.
* src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table
data and check that tables don't overlap (using a simple
bubblesort).
(PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE):
New macros which give the size of data structures in the data
stream.
(pcf_get_properties): Use rough estimates to get array size limits.
Assign `face->nprops' and `face->properties' earlier so that a call
to PCF_Face_Done can do the clean-up in case of error.
Protect against invalid string offsets.
(pcf_get_metrics): Clean up code.
Adjust tracing message levels.
Use rough estimate to get array size limit.
(pcf_get_bitmaps): Clean up code.
Adjust tracing message levels.
Use rough estimates to get offset limits.
(pcf_get_encodings): Adjust tracing message level.
(pcf_get_accel): Clean up code.
2006-06-26 Werner Lemberg <wl@gnu.org>
* src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly which
don't have a POINT_SIZE property. This fixes Savannah bug #16914.
2006-06-26 Jens Claudius <jens.claudius@yahoo.com>
* src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15.
(t1_decoder_parse_charstrings): Operator with
opcode 15 pops its two arguments.
Handle the case where the pops of an othersubr may be part of a
subroutine.
Handle unknown othersubrs gracefully: count their operands and let
the following pop operators push the operands as the results onto
the Type1 stack.
Improve handling of setcurrentpoint opcode.
2006-06-25 Jens Claudius <jens.claudius@yahoo.com>
The Type 1 parser now skips over top-level procedures as required
for a `Simplified Parser'. This makes the parser more robust as it
doesn't poke around in PostScript code. Additionally, it makes the
FontDirectory hackery in src/type1/t1load.c unnecessary.
* src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro.
(skip_literal_string): Add FT_Error as return value.
Handle escapes better.
(skip_string): Add FT_Error as return value.
Don't set `parser->error' but return error code directly.
(skip_procedure): New function.
(ps_parser_skip_PS_token): Handle procedures.
Update code.
(ps_parser_to_token): Update code.
(ps_parser_load_field_table): Handle bbox entries also.
* src/type1/t1load.c (parse_dict): Remove FontDirectory hackery.
Add commented-out code for synthetic fonts.
2006-06-24 Eugeniy Meshcheryakov <eugen@univ.kiev.ua>
Fix two hinting bugs as reported in
http://lists.gnu.org/archive/html/freetype-devel/2006-06/msg00057.html.
* include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add
`first_point' member.
* src/truetype/ttgload.c (tt_prepare_zone): Initialize
`first_point'.
(TT_Process_Composite_Glyph): Always untouch points.
* src/truetype/ttinterp.c (Ins_SHC): Fix computation of
`first_point' and `last_point' in case of composite glyphs.
(Ins_IUP): Fix computation of `end_point'.
2006-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Insert EndianS16_BtoN and EndianS32_BtoN as workaround for Intel
Mac. The original patch was written by David Sachitano and Lawrence
Coopet, and modified by Sean McBride for MPW compatibility. Only
required data are converted; unused data are left in big endian.
* src/base/ftmac.c: Include <Endian.h> for byteorder macros for non
Mac OS X platforms.
(OS_INLINE): Undefine before definition.
(count_faces_sfnt): Insert EndianS16_BtoN to parse the header of
FontAssociation table in FOND resource.
(count_faces_scalable): Insert EndianS16_BtoN to parse the header
and fontSize at each entry of FontAssociation table in FOND
resource.
(parse_fond): Insert EndianS16_BtoN and EndianS32_BtoN to parse
ffStylOff of FamilyRecord header of FOND resource, the header,
fontSize, fontID at each entry of FontAssociation table, and
StyleMapping table.
(count_faces): Call `HUnlock' after all FOND utilization.
2006-06-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Public API of TrueTypeGX, OpenType, and classic kern table validator
should return `FT_Err_Unimplemented_Feature' if validation service
is unavailable (disabled in `modules.cfg'). It is originally
suggested by David Turner, cf.
http://lists.gnu.org/archive/html/freetype-devel/2005-11/msg00078.html
* src/base/ftgxval.c (FT_TrueTypeGX_Validate): Return
FT_Err_Unimplemented_Feature if TrueTypeGX validation service is
unavailable.
(FT_ClassicKern_Validate): Return FT_Err_Unimplemented_Feature if
classic kern table validation service is unavailable.
* src/base/ftotval.c (FT_OpenType_Validate): Return
FT_Err_Unimplemented_Feature if OpenType validation service is
unavailable.
2006-06-08 Werner Lemberg <wl@gnu.org>
* src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case of
errors.
2006-06-07 David Turner <david@freetype.org>
* src/type1/t1afm.c (KERN_INDEX): Make it more robust.
(T1_Read_Metrics): Fix memory leak which happened when the metrics
file doesn't have kerning pairs. This fixes Savannah bug #16768.
2006-06-06 David Turner <david@freetype.org>
Fix memory leak described in Savannah bug #16759.
We change `ps_unicodes_init' so that it also takes a
`free_glyph_name' callback to release the glyph names returned by
`get_glyph_name'
* include/freetype/internal/services/svpscmap.h (PS_Glyph_NameFunc):
Renamed to ...
(PS_GetGlyphNameFunc): This.
(PS_FreeGlyphNameFunc): New typedef.
(PS_Unicodes_InitFunc): Add variable for PS_FreeGlyphNameFunc.
* src/cff/cffcmap.c (cff_sid_to_glyph_name): Use `TT_Face' for first
argument.
(cff_sid_free_glyph_name): New function.
(cff_cmap_unicode_init): Updated.
* src/psaux/t1cmap.c (t1_cmap_unicode_init): Updated.
* src/psnames/psmodule.c (ps_unicodes_init): Add variable for
PS_FreeGlyphNameFunc and use it.
2006-06-04 David Turner <david@freetype.org>
* src/base/ftutil.c (ft_mem_qrealloc): Fix the function to accept
`item_size == 0' as well -- though this sounds weird, it can
theoretically happen. This fixes Savannah bug #16669.
* src/pfr/pfrobjs.c (pfr_face_init): Fix the computation
of `face->num_glyphs' which missed the last glyph, due to
the offset-by-1 computation, since the PFR format doesn't
guarantee that glyph index 0 corresponds to the `missing
glyph. This fixes Savannah bug #16668.
2006-05-25 Werner Lemberg <wl@gnu.org>
* builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out
`-no-undefined'. Reported by Christian Biesinger.
2006-05-19 Brian Weed <bw@imaginengine.com>
* builds/win32/visualc/freetype.dsp: Release libraries no longer
have debug information, and debug libraries use `C7 compatible'
debug info.
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Apply patch by Derek Clegg to fix two memory leaks in the MacOS
resource fork handler. This fixes Savannah bug #16631.
* src/base/ftobjs.c (load_face_in_embedded_rfork): Replace
`FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
* src/base/ftrfrk.c (raccess_guess_linux_double_from_file_name):
Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* build/unix/configure.raw: Add a fallback to disable Carbon
dependency, if configured with no options on Mac OS X.
2006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
* src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
its content cannot be parsed as supported font. This fixes
the second part of Savannah bug #16590.
2006-05-18 Werner Lemberg <wl@gnu.org>
* src/truetype/ttgload.c (TT_Load_Composite_Glyph)
[FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
2006-05-17 David Turner <david@freetype.org>
This is a major patch used to drastically improve the performance of
loading glyphs. This both speeds up loading the glyph vectors
themselves and the auto-fitter module.
We now use inline assembler code with GCC to implement `FT_MulFix',
which is probably the most important function related to the
engine's performance.
The resulting speed-up is about 25%.
* include/freetype/internal/tttypes.h (TT_LoaderRec): Add fields
`cursor' and `limit'.
* src/autofit/afangles.c (af_corner_is_flat, af_corner_orientation):
New functions.
(AF_ATAN_BITS, af_arctan, af_angle_atan): Comment out.
[TEST]: Remove.
* src/autofit/afcjk.c (AF_Script_UniRangeRec): Comment out test
code.
* src/autofit/afhints.c (af_axis_hints_new_segment): Don't call
`FT_ZERO'
(af_direction_compute, af_glyph_hints_compute_inflections): Rewritten.
(af_glyph_hints_reload: Rewrite recognition of weak points.
* src/autofit/aflatin.c (af_latin_hints_compute_segments): Move
constant values out of the loops.
* src/autofit/aftypes.h: Updated.
* src/base/ftcalc.c (FT_MulFix): Use inline assembler code.
* src/base/ftoutln.c (FT_Outline_Get_Orientation): Use vector
product to get orientation.
* src/gzip/ftgzip.c (ft_get_uncompressed_size): New function.
(FT_Stream_OpenGzip): Use it to handle small files directly in
memory.
* src/psaux/psconv.c (PS_Conv_ASCIIHexDecode, PS_ConvEexecDecode):
Improve performance.
* src/truetype/ttgload.c (TT_Access_Glyph_Frame): Set `cursor' and
`limit'.
(TT_Load_Glyph_Header, TT_Load_Simple_Glyph,
TT_Load_Composite_Glyph): Updated. Add threshold to protect against
exceedingly large values of number of contours. Speed up by
reducing the number of loops.
* src/type1/t1gload.c (T1_Load_Glyph): Don't apply unit matrix.
* src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the threshold
used to detect rogue clients from 4 to 16. This is to prevent some
segmentation faults with fonts like `KozMinProVI-Regular.otf' which
comes from the Japanese Adobe Reader Asian Font pack.
2007-05-17 Werner Lemberg <wl@gnu.org>
* src/cff/cffload.c (cff_font_done): Deallocate subfont array. This
fixes the first part of Savannah bug #16590.
2006-05-16 Werner Lemberg <wl@gnu.org>
* docs/PROBLEMS: Updated icl issues.
----------------------------------------------------------------------------
Copyright 2006, 2007, 2008, 2009, 2010 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified,
and distributed under the terms of the FreeType project license,
LICENSE.TXT. By continuing to use, modify, or distribute this file you
indicate that you have read the license and understand and accept it
fully.
Local Variables:
version-control: never
coding: utf-8
End: