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
|
2001-07-12 Lauris Kaplinski <lauris@ximian.com>
* gnome-canvas-bpath.c (gnome_canvas_bpath_update): Allocate the size
of points array dynamically instead of assuming num_points = path length.
Also moved open and closed subpaths to correct lists.
* gnome-canvas-bpath-private.h: Added len_points member
* gp-path.c (gp_path_closepath): Fix memory corruption (thanks to Michael)
2001-07-09 Lauris Kaplinski <lauris@ximian.com>
* gnome-font-compat.c (gnome_font_face_get_descender): Negate
descender from FT2, although I cannot understand why it is
negative
* gnome-print-pdf.c (gnome_print_pdf_font_print_descriptor): Negate
descender, as we found the problem
* gnome-print.c (gnome_print_show_ucs4): Dummy func emitting warning
(gnome_print_textline): Ditto
* gnome-print.h: Made compatible with 0.29
* gnome-printer.c (gnome_printer_get_type): Reimplement for compatibility
(gnome_printer_new_generic_ps): Ditto
(gnome_printer_get_status): Ditto
(gnome_printer_str_status): Ditto
(gnome_printer_set_print_to_file): Ditto
(gnome_printer_dup_command): Ditto
* gnome-printer.h: Made compatible with 0.29
2001-07-08 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-pdf.c (gnome_print_pdf_get_images_object_numbers): Do
not clear image list here
(gnome_print_pdf_images): Ditto
2001-07-04 Lauris Kaplinski <lauris@ximian.com>
* transports/gp-transport-file.c (gp_transport_file_write): Return
number of bytes written, not OK code (needed by PDF)
* transports/gp-transport-lpr.c (gp_transport_lpr_write): Ditto
* gnome-print-pdf.c: Removed ::setlinejoin, ::setlinecap,
::setmiterlimit, ::setlinewidth
* gnome-print-pdf.h: Added Copyright etc.
* gnome-print-ps2.h: Added Copyright etc.
* Makefile.am (nox_sources): Added pdf driver back
* gnome-print-ps2.c (gnome_print_ps2_close): Set transport to NULL,
after closing it (kills warning)
(gnome_print_ps2_construct): Save tmp buffer name
(gnome_print_ps2_destroy): Unlink tmp buffer
(gnome_print_ps2_close): Ditto
2001-07-03 Lauris Kaplinski <lauris@ximian.com>
* gnome-print.c (gnome_print_context_new): Modularity hook
* gnome-print-transport.c (gnome_print_transport_new): Modularity hook
* transports/gp-transport-lpr.c: Added #ifdef switch for module hook
* transports/gp-transport-file.c: Ditto
* drivers/gnome-print-omni.c: Added #ifdef switch for module hook
* drivers/gnome-print-omni2.cpp: Ditto
* drivers/gnome-print-fax.c: Ditto
* Makefile.am (modules_libadd): Added modular/monolithic switch
2001-06-28 Lauris Kaplinski <lauris@ximian.com>
* gp-fontmap.h: Removed Type1Alias entry type
* gp-fontmap.c (gp_fm_load_font_3_0): New function
(gp_fm_load_font_3_0_tt): Ditto
(gp_fm_load_font_3_0_alias): Ditto
2001-06-20 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-stdapi.c: New file, moved all frontend printing
function here (to clean up code structure)
* Makefile.am (nox_sources): Added gnome-print-stdapi.c
* gnome-print.c (gnome_print_scale): Code matrix directly, gets
rid of including libart header
(gnome_print_rotate): Ditto
(gnome_print_context_destroy): Remove #ifdef 0 code
(gnome_print_context_init): Ditto
(gnome_print_context_close): Ditto. Added warning, if implementation
subclass did not clear transport
(gnome_print_context_destroy): Ditto
2001-06-19 Lauris Kaplinski <lauris@ximian.com>
* gnome-print.c: Removed #ifdef 0 old file writing code
2001-06-15 Lauris Kaplinski <lauris@ximian.com>
* transports/gp-transport-lpr.h: New file
* transports/gp-transport-lpr.c: New file
* transports/gp-transport-file.c (gp_transport_file_get_type): Use
GPTransportFile here, not base class
2001-06-12 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-ps2.c (gp_ps2_set_font_private): Removed private
and encoded flags from downloadable font struct
* gnome-print-meta.c (meta_showpage): Close page header
* gnome-print.c (gnome_print_showpage): Added beginapge and warning
2001-06-05 Lauris Kaplinski <lauris@ximian.com>
* gp-fontmap.c (gp_fm_load_fonts): Added warning for unknown version
(gp_fm_load_aliases): Scan 1.0 maps and search for aliased fonts
(gp_fm_load_fonts): Moved map parsing into load_fonts
(gp_fm_load_fonts_1_0): Removed this
(gp_fm_load_font_1_0): Do not load alias
(gp_fm_load_font_1_0_alias): New function
(gp_fm_load_fonts_2_0): Removed this
(gp_fm_load_font_2_0): Do not load alias
(gp_fm_load_font_1_0_alias): Parse type1alias as well
(gp_font_entry_unref): Remove refcount < 3 assertion
2001-06-02 Lauris Kaplinski <lauris@ximian.com>
* gnome-font-compat.c (gnome_font_unsized_get_glyph_name): Moved here
(gnome_font_face_get_ascender): Ditto
(gnome_font_face_get_descender): Ditto
(gnome_font_face_get_underline_position): Ditto
(gnome_font_face_get_underline_thickness): Ditto
(gnome_font_face_get_weight_code): Ditto
(gnome_font_face_is_italic): Ditto
(gnome_font_face_is_fixed_width): Ditto
(gnome_font_face_get_glyph_ps_name): Ditto
(gnome_font_get_weight_code): Ditto
(gnome_font_is_italic): Ditto
* gnome-font-face.c (gff_load): Not static
* gnome-font-private.h (GFF_LOADED): Moved here
* gnome-font-compat.c: New file
* Makefile.am (font_sources): Added gnome-font-compat.c
* gnome-font-face.c (gff_load): Attach afm file, if present
2001-06-01 Lauris Kaplinski <lauris@ximian.com>
* Makefile.am (libgnomeprintui_la_SOURCES): Removed duplicate temp_sources
* gnome-print-master-preview.c (gnome_print_master_preview_new_with_orientation):
Use g_snprintf (kills warning and is The Right Thing)
* gnome-print-preview.c (gpp_image): Workaround for canvas image bug
* gnome-print-meta.c: Set metafile version to 2.0, removed all
'CLOSE' support for both writing and replaying
* gnome-font.h: Added iso-8859-1 warning and utf8 string width methods
* gnome-font.c (gnome_font_get_width_string_n): Force unsigned char
(gnome_font_get_width_utf8): New function
(gnome_font_get_width_utf8_sized): New function
* gnome-font-face.c (gnome_font_unsized_closest): Use strcasecmp
(gnome_font_face_get_num_glyphs): Use if {} construct
(gnome_font_face_get_stdbbox): Ditto
(gnome_font_face_get_glyph_stdadvance): Ditto
(gnome_font_face_get_glyph_stdbbox): Ditto
(gnome_font_face_get_glyph_stdoutline): Ditto
(gnome_font_face_lookup_default): Ditto
(gnome_font_face_create_ps_object): Create empty PSO if error
(gff_pso_from_type1): Ditto
(gff_pso_from_truetype): Ditto
(gff_empty_pso): New function
2001-05-28 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-master-preview.c (goto_page): Use g_snprintf
* gnome-printer.h: Removed GnomePrinterClass
* gpa-node.h: Removed GPA_TYPE_NODE, GPA_NODE_CLASS,
GPA_IS_NODE_CLASS, GPANodeClass, gpa_node_get_type
(gpa_node_check_cast): New function
(gpa_node_check_type): New function
#defined GPA_NODE and GPA_IS_NODE via gpa functions
2001-05-10 Lauris Kaplinski <lauris@ximian.com>
* drivers/gnome-print-omni2.hpp: New file. We compile it with C++
so we can use OMNi interfaces natively
* drivers/gnome-print-omni2.cpp: New file
2001-05-09 Lauris Kaplinski <lauris@ximian.com>
* gnome-printer-private.h: Added <gtk/gtkobject.h>
* gnome-font-face.c (gff_load): Process full alias
(gnome_font_face_create_ps_object): Ditto
(gff_pso_from_type1): Signature change to allow aliasing
(gff_pso_from_truetype): Ditto
* gp-fontmap.c (gp_fm_load_aliases): Implement
(gp_fm_load_font_2_0_alias): New function
(gp_fontmap_load): Register only visible families
(gnome_font_list): Only visible fonts
(gnome_font_family_list): Only families with visible fonts
2001-05-08 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-ps2.c (gnome_print_ps2_construct): Use transport
2001-05-07 Lauris Kaplinski <lauris@ximian.com>
* drivers/gnome-print-omni.c (gnome_print_omni_write_file): Write to transport
(gnome_print_omni_close): Ditto
* gnome-print.c (gnome_print_context_init): Commented out file stuff,
added transport
(gnome_print_context_destroy): Ditto
(gnome_print_context_close): Ditto
(gnome_print_context_create_transport): New function
2001-05-06 Lauris Kaplinski <lauris@ximian.com>
* drivers/gnome-print-fax.c (gnome_print__driver_get_type): New function
(gnome_print_fax_construct): Make class method
(gnome_print_fax_new): Use new construction method
* drivers/Makefile.am: Moved OMNi driver here
* Makefile.am: Removed OMNI module, added drivers subdir
2001-05-05 Lauris Kaplinski <lauris@ximian.com>
* gp-truetype-utils.c (gp_tt_split_file): Save 'glyf', 'loca',
'head', 'maxp'. Split 'glyf' if too big.
(gp_tt_split_glyf): New funtion
* gnome-print-ps2.c (gnome_print_ps2_glyphlist): Use either
8 or 16 bit format, depending on pso->encodedbytes
* gnome-font-face.c (gff_pso_from_truetype): New function
2001-05-04 Lauris Kaplinski <lauris@ximian.com>
* gp-truetype-utils.c: New file, implementing TT splitter
* gp-fontmap.c (gp_fm_load_font_2_0_tt): TrueType loader
* gnome-font-face.c (gff_load): Load TrueType fonts too
2001-04-17 Lauris Kaplinski <lauris@ximian.com>
* Makefile.am (font_sources): Removed HAVE_GNOME_FONT
* gnome-font-face.h: Cleaned it extensively
* gnome-font-compat.h: New compatibility header
* gnome-font-face.c: Switch to FreeType
* gp-fontmap.h: Added TrueType entry class
2001-03-25 Roberto Majadas <phoenix@nova.es>
* gnome-print-fax.c : Clean code and rename the functions to gnome_print_fax_*
* gnome-print-fax.h : Add GnomePrintFAXPrivate struct with all encode info include in it
* gnome-print-fax-g3.h : rename g3-tables
2001-03-24 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-omni.c (gnome_print_omni_destroy): Chain to parent_class
(gnome_print_omni_class_init): Set parent_class
(gnome_print_omni_showpage): Chain to parent_class
(gnome_print_omni_close): Ditto
* gnome-print-rgbp.c (rgbp_showpage): Set right rect coordinates
* gnome-printer-dialog.c (gnome_printer_widget_get_printer): Return ref'd node
* gnome-print-file.c (gnome_print_file_ok_selected): Use printer itself as node
(gnome_print_file_dialog): Ditto
(gnome_print_file_dialog): Ditto
* gnome-printer.c (gnome_printer_new): Ref node and return
* Makefile.am (libgnomeprint_la_SOURCES): Remove gnome-printer-private.h
* gnome-printer.h: typedef GnomePrinter as GPANode
* gnome-print.c (gnome_print_context_new): Added gnome-print-omni
2001-03-23 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-omni.c: New file (from Mark Hamzy)
* gnome-print-omni.h: New file
2001-03-11 Vlad Harchev <hvv@hippo.ru>
* gnome-print-pdf.c: use "C" for LC_NUMERIC for each *printf call as in
gnome_print_context_fprintf()
2001-03-12 Lauris Kaplinski <lauris@ximian.com>
* gnome-font-dialog.c: #include <string.h>, kill warning
* gnome-font-family.c: #include <string.h>, kill warning
* gt1-region.c: #include <string.h>, kill warning
* gt1-namecontext.c: #include <string.h>, kill warning
2001-03-11 Lauris Kaplinski <lauris@ximian.com>
- Started migrating the configuration stuff to GPANode tree. That induced
changes almost everywhere and will continue to do so, so I take liberty to
mention only most important ones her
* gnome-print.* (gnome_print_context_construct): New function, use GPANode
(gnome_print_context_new): Get configuration data from GPANode
(gnome_print_context_new_with_paper_size): Set GPANode path data
* gnome-print-fax.c (gnome_print_fax_construct): Construct from GPANode
(gnome_print_fax_new): Use GPANode
* gnome-print-pdf.c (gnome_print_pdf_new): Ditto
* gnome-print-ps2.c (gnome_print_ps2_new): Ditto
* gnome-printer-private.h: GnomePrinter is now simple wrapper around GPANode
* gnome-printer.c: Ditto
* gnome-printer-dialog.c: Derive it from GPAWidget, currently testbed for nodes
* gpaui: New subdirectory, implementing ui configuration stuff
* Mekfile.am: Added gpaui and libgpaui.la
2001-03-09 Karl Eichwalder <ke@suse.de>
* gnome-printer-dialog.c (gnome_printer_dialog_gpa_not_installed):
Add missing dot.
2001-02-25 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-private.h: Major cleanup of PrintContext structure. Now it
has only handful of real drawing class methods - everythingother is managed via
convenience methods/graphic contexts
* gnome-print-preview.c: Ditto
* gnome-print-multipage.c: Ditto
* gnome-print-meta.c: Ditto
* gnome-print-frgba.c: Ditto
* gnome-print-rgbp.c: Ditto, removed canvas dependency
* gnome-print-ps2.c: Ditto
* gnome-print-rbuf.c: Ditto
* gnome-print-fax.c: Ditto
* gnome-print.c: Ported to new class internals
* gnome-print.h: Remove ucs4 and textline
* Makefile.am (libgnomeprint_la_SOURCES): Split between libgnomeprint and
libgnomeprintx
* gnome-rfont.c (gnome_rfont_render_pgl_rgba8): New function
2001-02-23 Lauris Kaplinski <lauris@ximian.com>
* gnome-printer-dialog.c (gnome_printer_widget_init): Use GnomeFileEntry
for specifying filename
(set_profile): Ditto
(gnome_printer_widget_bind_editable_enters): Ditto
(gnome_printer_dialog_new): Ditto
2001-02-22 Lauris Kaplinski <lauris@ximian.com>
* gnome-print.c (gnome_print_context_init): Add more information about
printer file destination to print context
(gnome_print_context_new_with_paper_size): Recognize fax driver
(gnome_print_context_finalize): Free strings and close file
(gnome_print_context_close): Free strings and close file
(gnome_print_context_open_file): Interpret '*' as alternate command prefix
(gnome_print_context_close_file): If using program, execute it with tempfile
as argument and delete tempfile afterwards
* gnome-printer-profile.c (gnome_printer_profile_get_printer): Interpret
commands containing '%s' as proper
* gnome-print.c (gnome_print_context_open_file): Interpret relative path as
home directory, './' for current directory
* gnome-print-ps2.c (gnome_print_ps2_init): Initialize private font & color
(gnome_print_ps2_destroy): Unref private font, is set
(gnome_print_ps2_grestore): Dirtyfy private font & color flags
(gnome_print_ps2_glyphlist): Use more intelligence for determining whether
setting transformation/font/color is needed
(gnome_print_ps2_showpage): Dirtyfy private font & color
(gp_ps2_set_color): Use set_color_private
(gp_ps2_set_color_private): Renamed from set_rgba_private, use double channel
values and set private flag
(gp_ps2_set_font_private): Set private font flag
2001-02-21 Lauris Kaplinski <lauris@ximian.com>
* gnome-print.c (gnome_print_show_sized): Implemented plain show API
via glyphlists
* gnome-print-frgba.c (gpf_glyphlist): Implemented it
* gnome-rfont.c (gnome_rfont_get_glyph_stdkerning): New function
* gnome-canvas-hacktext.c (get_bounds): Use meaningful new hacktext API
(gnome_canvas_hacktext_update): Ditto
(gnome_canvas_hacktext_point): Ditto
(gnome_canvas_hacktext_req_repaint): Ditto
* gnome-print-ps2.c: Almost everything is changed
2001-02-19 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-ps2.c: Started migration to meaningful imaging process, i.e.
Let GPGC to hold all graphic state information and only do fills + strokes
in actual driver
* gnome-print.c (gnome_print_context_new): Use gnome_paper_name_default ()
instead of hardcoding US-Letter
2001-02-18 Lauris Kaplinski <lauris@ximian.com>
* gnome-print-meta.c (meta_glyphlist): Implemented that
(do_render): GlyphList decoding
* gnome-glyphlist-private.h: Changed glyphlist internals
2001-02-15 Roberto Majadas <phoenix@nova.es>
* gnome-print-private.h: change in gnome_print_context_write_file
prototipe const char *buf => const void *buf
* gnome-print.c (gnome_print_context_write_file): change
const char *buf => const void *buf
* gnome-print-fax.c
(gnome_print_fax_get_type): new function
(gnome_print_fax_new): new function
(gnome_print_fax_construct): new function
(fax_class_init): new function
(fax_close): new function
(fax_beginpage): new function
(fax_page_begin): new function
(fax_page_end): new function
(fax_print_band): new function
(fax_encode): new function
(fax_encode_rules_apply): new function
(fax_encode_finish_of_row): new function
(fax_ditering): new function
(fax_code): new function
(fax_code_eof): new function
(fax_code_eol): new function
(fax_code_write): new function
* gnome-print-fax.h
* gnomr-print-fax-g3.h
* Makefile.am (libgnomeprint_la_SOURCES): add gnome-print-fax(.c,.h,-g3.h)
2001-02-12 Thomas Hudson <thudson@gobe.com>
* gnome-print-meta.c (gnome_print_meta_access_buffer): Fixed offset for
writing size into buffer.
2001-01-31 Karl Eichwalder <ke@suse.de>
* gnome-print-file.c (gnome_print_file_ok_selected): Fix message
string.
2001-01-28 Karl Eichwalder <ke@suse.de>
* gnome-printer-dialog.c: Fix two message strings: Add missing dots.
2001-01-18 Michael Meeks <michael@helixcode.com>
* gp-fontmap.c (gnome_font_list): fix reference counting cockup.
2001-01-11 Paolo Molaro <lupus@ximian.com>
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_class_init): Change
font argument type to GTK_TYPE_OBJECT
* gnome-font-dialog.c (gnome_font_selection_class_init): Ditto
2001-01-06 Miguel de Icaza <miguel@gnu.org>
* gnome-printer.c (gnome_printer_init): Someone should have tested
this without the GPA stuff.
2000-12-27 Morten Welinder <terra@diku.dk>
* gnome-print-dialog.h: #include <sys/types.h> for time_t.
2000-12-24 Miguel de Icaza <miguel@helixcode.com>
* gp-unicode.c (g_utf8_validate): Fix inline docs.
* gnome-print-encode.c (gnome_print_encode_blank): Fix inline docs.
* gnome-print-rgbp.c (gnome_print_rgbp_construct): Write inline docs.
* gnome-printer-dialog.c (gnome_printer_dialog_get_printer): Fix
inline api docs.
* gnome-print-meta.c (gnome_print_meta_new): Fixed inline api docs.
* gnome-print-encode.c (gnome_print_encode_tiff): Fix inline docs.
* gp-fontmap.h (_GPFontEntryT1): Make parseable by GtkDoc.
* gnome-print-dialog.h: Make GnomePrintRangeType parseable by GtkDoc.
* parseAFM.h (struct _t_ligature): ditto
2000-12-18 Chema Celorio <chema@celorio.com>
* gnome-font-private.h: add prototype for
gnome_font_unsized_get_glyph_name.
* gnome-print-pclr.c: include the gnome-print-encode-private header.
* gnome-printer-dialog.c (gnome_printer_widget_finalize): don't unref
the printers, users don't want their settings to get lost every time
the dialog is destroyed.
(gnome_printer_widget_init): make the printers lists static.
(set_printer): handle print to file userfriendlyer
(gnome_printer_dialog_print_to_file_toggled): implement.
(gnome_printer_dialog_create_print_to_file): use p2f_toggled
(set_printer): save the printer that was last used for the next
time we pop up the dialog.
2000-12-10 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c: add the gnome-print-encode-private header.
* gnome-print-dialog.c (gnome_print_dialog_get_printer): cosmetic fixes
to be consistent across gnome-print.
* gnome-printer-dialog.c (gnome_printer_widget_init): if gpa_printer_list_load
failed, get a generic_postscript printer.
2000-12-09 Chema Celorio <chema@celorio.com>
* Makefile.am (INCLUDES): define GNOMEPRINT_LIBDIR
* gnome-printer-dialog.c: add the gmodule header
(gnome_printer_dialog_properties_clicked): when the Properties button
in clicked, open libgpaui.so and look for gpa_config_printer.
2000-11-30 Chema Celorio <chema@celorio.com>
* gnome-print-encode.h: remove protype from here
* gnome-print-encode-private.h: into here
* gnome-print-ps2.c: include libgpa headers
add GpaPrinter * and GpaSettings to the ps2 struct
(gnome_print_ps2_new): get ps level from gpa_printer
(gnome_print_ps2_init): init ps level to 2 (this is our default)
(gnome_print_ps2_get_level): new funct.
2000-11-28 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (gnome_printer_widget_init): use
gpa_generic_ps_printer to always have a printer installed.
2000-11-28 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c: fix compilation.
2000-11-27 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c : Add a note on what we plan to rewrite within
this driver.
* gnome-print-pdf.c (gnome_print_pdf_page_write_contents): use the
real length value for the stream for each page.
(gnome_print_pdf_compr_from_string): added hex encoded.
(gnome_print_pdf_write_stream): implement. We can now use the
configuration from gnome-print-admin for compression/encoding types.
add ascii_format to the GnomePrintPdf stuct
(gnome_print_pdf_write_compression_filters): add Ascii format
2000-11-25 Chema Celorio <chema@celorio.com>
* Makefile.am: fix for LIBGPA on/off compilation
2000-11-24 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (gnome_printer_dialog_create_properties_button):
fix typo
2000-11-23 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c: hook to libgpa
(gnome_print_pdf_write_compression_filters): new function.
(gnome_print_pdf_compr_from_string): new funct.
(gnome_print_pdf_page_write_contents): take compression
parameter from libgpa
(gnome_print_pdf_image_compressed): take compression parameter
from libgpa.
2000-11-22 Chema Celorio <chema@celorio.com>
* gnome-print-file.c (gnome_print_file_dialog): plug a leak
2000-11-21 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (gnome_printer_widget_init): do not
expand & fill the properties button.
2000-11-21 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (gnome_printer_widget_init): set the printer
only if it exists
* gnome-print-dialog.c (gnome_print_dialog_init): emit a g_warning if
there aren't any printers installed.
2000-11-21 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (gnome_printer_dialog_properties_clicked): update
error message.
* gnome-print-file.c (gnome_print_file_ok_selected): test if the user
is trying to print to a directory.
* gnome-print-master.c (gnome_print_master_print): don't emit a g_warning
if the context could not be creted.
* gnome-print-file.c (gnome_print_file_ok_selected): If the file
is about to be overwritten, warn the user and query for a confirmation
2000-11-21 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c:
* gnome-print.c:
* gnome-printer-private.h:
* gnome-printer-profile.c:
* gnome-printer.c:
Added #ifdef'ed support for libgpa. Libgpa is the a new printer
profiling library. It repleaces gnome-printer-profile.c. To
configure printers the gnome-print-admin module is used. The
--with-admin tag needs to be specified on the configure script.
All the changes in this files are delimited with #ifdef ENABLE_LIBGPA
* gnome-printer-dialog.c: ditto
* gnome-print-ps.c: ditto
* gnome-print-pclv.c: ditto
* gnome-print-pclr.c: ditto
* gnome-print-master.c: ditto
* gnome-print-master-preview.c: ditto
* gnome-print-encode.c: ditto
* gnome-print-dialog.c: ditto
* gnome-print-copies.c: ditto
* gnome-canvas-clipgroup.c : ditto
* gnome-canvas-bpath.c: use individual headers v.s. <gnome.h>
* gnome-print-file.h: ditto
* gnome-print-file.c: new file to handle the print to file dialog
2000-11-19 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: Make compiling font support faculatative
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_point): Do not
crash, if font does not give us SVP
* gnome-font-face.c: Implement attributes ItalicAngle...
* gnome-font-family.c: Remove #ifdefs
* gnome-font-private.h: Remove #ifdefs
Removed format-specific methods
* gnome-print-pdf-type1.c: Use font face attributes, not methods
* gnome-print-ps.c: Ditto
* gnome-print-ps2.c: Ditto
2000-11-16 Lauris Kaplinski <lauris@helixcode.com>
* parseAFM.h: Added #ifdef _PARSE_AFM_H_
* gp-fontmap.h: made ItalicAngle double (as it should be)
* gp-fontmap.c: Added fontmap version 2.0 parser (no aliases yet)
(gp_fm_is_changed): Test for file appearing/disappearing
2000-11-16 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font-family.c: Cleaned up almost to so thin thing, that
I strongly think about removing it at all
* gp-fontmap.*: We support fontmap reloading at last. Cool!
2000-11-15 Lauris Kaplinski <lauris@helixcode.com>
* gp-fontmap.*: Lot of added functionality. Fontmap is
now verified, and reloaded if files have been changed.
Also added family dictionary and 2-level lists. Moved
font and family lists code here.
* gnome-font-private.h: Use referenced FontEntry for
relevant typeface data
* gnome-font-face.c: Migration to new fontmap
* gnome-font.c: Ditto
* gnome-rfont.c: Ditto
* gnome-print-pdf-type1.c: Ditto
* gnome-font-family.c: Ditto (well, with problems)
2000-11-14 Lauris Kaplinski <lauris@helixcode.com>
* gp-fontmap.*: Move fontmap functionality to separate files
* gp-character-block.*: Add unicode->glyph map management
* gnome-font-private.h: Use GPUCMap
* gnome-font-face.c: Remove fontmap, use GPUCMap
2000-11-13 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_gsave): grow the array of graphic
states after we reach the allocated limit.
* gnome-print-ps2.c (gnome_print_ps2_gsave): ditto
2000-11-13 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.c (get_font_name): #ifdef VERBOSE out
(gdf_find_gdk_font): Ditto
2000-11-11 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.c (gdf_find_gdk_font): Add debuggint printout
(gdf_find_measured_gdk_font): Try both with/without encoding
2000-11-09 Lauris Kaplinski <lauris@helixcode.com>
* gp-character-block.*: Added some experimental unicode functionality.
* Makefile.am: Added gp-characer-block.*, made text-utils private
* gp-unicode.h: Added BEGIN/END_GNOME_DECLS and copyright
* gp-ps-unicode.* (gp_unicode_from_dingbats): New function, Dingbats
has now assigned code-points for almost every glyph
* gnome-font-face.c (gnome_font_face_get_sample): Use unicode values
of sequential glyphs, as we cannot expect it covering private area
at all
(gff_load_afm): Try dingbats
* gt1-parset1.c (gt1_load_font): Try dingbats
2000-11-07 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.c (gdf_find_measured_gdk_font): Try to load whatever
font foundry/resolution, so (depending on X setup) bitmap fonts
can have precedence over outline ones
2000-11-06 Chema Celorio <chema@celorio.com>
* gp-gc.c (gp_gc_set_linewidth): calculate linewidth for a
rotated CTM too.
* gnome-print-ps2.c (gnome_print_ps2_setlinewidth): ditto
* gnome-print-pdf.c (gnome_print_pdf_setlinewidth): ditto
(we need to remove setlinewidth from ps2 & pdf and let
gp-gc handle it, same holds true for other functions)
2000-11-07 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.c (gnome_display_font_height): Use MAX (gdk_height,
gnome_height) again
2000-11-06 Jody Goldberg <jgoldberg@home.com>
* gnome-rfont.c (gdf_find_gdk_font) : Init gdkname to NULL.
2000-11-06 Lauris Kaplinski <lauris@helixcode.com>
* configure.in: set GNOMEPRINT_CURRENT=13, so we get correct
library number again
* libgnomeprint/gnome-rfont.c: Rewrote all DisplayFont managing,
hoping that it allows us to get more and better X versions for
gnome fonts
2000-11-05 Zbigniew Chyla <cyba@gnome.pl>
* libgnomeprint/gnome-print-meta.c:do_render(),
ibgnomeprint/gnome-print.c:gnome_print_show_ucs4():
Manual allocation instead of alloca().
* libgnomeprint/gnome-printer-profile.c:gnome_printer_load_profiles_from():
Manual allocation instead of alloca().
Allowing translation of "name" and "comment" fields.
Marked string for translation.
2000-10-30 Chema Celorio <chema@celorio.com>
* gnome-print-preview.c (gpp_show_sized): advance the currentpoint after
a _show operation, just like PS does. This bug ocurred if we did 2 g_p_show
without a moveto between them.
2000-10-29 Chema Celorio <chema@celorio.com>
* gnome-font-face.c (gnome_font_face_get_stdbbox): rename to
_stdbox from _bbox at lauris' request
* gnome-font.h: reflect rename
* gnome-print-pdf.c (gnome_print_pdf_font_print_descriptor): use new
name
* gnome-print-pdf.c (gnome_print_pdf_image_compressed): add a flag to set
if we use compressed images or not.
(gnome_print_pdf_gsave): set the graphics mode to GRAPHICS before a gsave
* gnome-font.h: move :
const ArtDRect * gnome_font_face_get_font_bbox (const GnomeFontFace * face);
here. I need it for Abiword, and I guess other people will eventually need
it too.
* gnome-font-private.h: remove from here
2000-10-28 Chema Celorio <chema@celorio.com>
* gnome-print.c (gnome_print_show_sized): dump the text that was not
validated by g_utf8_validate
2000-10-20 Chema Celorio <chema@celorio.com>
* gnome-print-encode.h: disable the stopwatch, and remove any
references to it.
2000-10-19 Chema Celorio <chema@celorio.com>
* gnome-print.c (gnome_print_context_new_with_paper_size): dont use
g_return_val_if_fail since we don't need/want a warning emmited.
* gnome-print-pdf.c (gnome_print_pdf_finalize): be quieter about an
error with shopage, and don't display the error if there was a problem
initializing the Context
* gnome-print-ps2.c (gnome_print_ps2_destroy): ditto
2000-10-14 Chema Celorio <chema@celorio.com>
* gnome-print-pdf-type1.c (gnome_print_pdf_font_type1_embed): do not
create subfont. Disable this code for now, since we need to stabilize
for GNOME 1.4
* gnome-print-pdf.c (gnome_print_pdf_font_print_metrics): add a
warning if the font needs more than one page of glyphs. Only encode
the first page of them.
* gnome-print-pdf-type1.c (gp_t1_font_parse): rename
2000-10-14 Chema Celorio <chema@celorio.com>
* Makefile.am: clean a bit
cv2000-10-10 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_showpage): fix a stupid bug
which will rotate every page in landscape mode 90 deg.
2000-10-07 Chema Celorio <chema@celorio.com>
* Makefile.am (profilesdir): add text-utils.[ch]
* text-utils.c (tu_token_next_dup): add to libgnomeprint
* gnome-print-pdf-type1.c (gp_t1_get_delimiters_method_two):
move the tokenizer stuff and use text-utils for that
2000-10-06 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c: More work on font subsetting
* gnome-print-pdf-type1.c: ditto
2000-10-02 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print-meta.h: Remove bogus #ifdef __cplusplus...
2000-09-30 Chema Celorio <chema@celorio.com>
* gnome-print-master-preview.c (change_page_cmd): cvs conflicts
broke stuff. Fix.
2000-09-30 Chema Celorio <chema@celorio.com>
* gnome-print-master-preview.c (goto_page): update the pmp->page_entry
before we check if the page is the one we are currently viewing.
(change_page_cmd): close #12538
* gnome-print-pdf-type1.c: sync the type1 font sub-setting work with
cvs.
2000-09-29 Miguel de Icaza <miguel@helixcode.com>
* gnome-print-master-preview.c (render_page): reformat love.
(preview_file_print_cmd): ditto.
(gnome_print_master_preview_finalize): Adapt to the new
privatization setup.
* gnome-print-master-preview.h: Exported the base class so we can
derive objects from GnomePrintMasterPreview (it is a GnomeApp).
It is important to expose this just because we need clients to
know that this is a GtkWindow/GnomeApp, and that they do not need
to keep track of the object for destruction later.
* gnome-print-master-preview.c: Made all of the internal data
private, it was private anyways, as the data structure had always
been hidden here.
2000-09-27 Chema Celorio <chema@celorio.com>
* gnome-printer-profile.c (gnome_printer_load_profiles_from): push
an empty prefix before calling gnome_config_init_iterator. Remove
the older hack.
2000-09-26 Jose M Celorio <chema@celorio.com>
* gnome-printer-profile.c (gnome_printer_profile_get_printer_name): if
name is NULL, return an error message.
* gnome-print-pdf-type1.c: start work for font subsetting. It
is disabled for the release.
* gnome-printer-dialog.c (set_profile): before strcmp, verify that
the string is not null;
2000-09-27 Chema Celorio <chema@celorio.com>
* gnome-print.c (gnome_print_context_new_with_paper_size): send the
paper name to gnome_print_pdf
* gnome-print-pdf.c (gnome_print_pdf_pages): don't hardcode the paper
size, use size requested by the app.
(gnome_print_pdf_new_with_paper): rename (add _with_paper);
2000-09-27 Chema Celorio <chema@celorio.com>
* gnome-printer-profile.c: call gnome_config_ensure_prefix_is_empty
but "#if" it out, since it requires a future gnome-libs release
(and a patch that I sent miguel to be included )
2000-09-27 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (set_profile): before strcmp'ring output
verify that it is not NULL
* gnome-printer-profile.c: if the iterator bug is found, do not
load profile.
2000-09-26 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: Include gnome-print-pdf-type1.h
* gnome-glyphlist.c (ggl_text_to_unicode): Kill warning
* gnome-print-pdf-type1.c: #include <stdlib.h>
* gnome-print.c (gnome_print_showpage): Kill warning
* gnome-rfont.c (create_display_font): Kill warnings
2000-09-25 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_add_glyph_to_font): implement
(gnome_print_pdf_get_font_number): create initial array of gchar *
Clean the finalize function :
* gnome-print-pdf.c (gnome_print_pdf_free_fonts): implement
(gnome_print_pdf_free_objects): implement
(gnome_print_pdf_free_pages): implement
* gnome-print-pdf.h: add an array of glyphs used for that font, this
will allow us to embed only the glyphs used and not the whole thing
* gnome-print-pdf.c (gnome_font_face_get_stemv): call .._get_stems so
that we actually return the font's stems
* gnome-print-pdf-type1.c (gp_t1_get_number_from_brackets): implement
(gp_t1_get_body_from_pfb): implement
(decrypt_eexec): copy here from gt1-parset.c
(gnome_print_pdf_type1_get_stems): get stems from type1 font
2000-09-25 Chema Celorio <chema@celorio.com>
* gnome-print-pdf-type1.c (gnome_print_pdf_type1_determine_lengths):
fix a bug that was causing font embeding to crash
2000-09-25 Chema Celorio <chema@celorio.com>
* gnome-rfont.c (create_display_font): fix a crash
2000-09-25 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_finalize): kill memleaks
2000-09-24 Chema Celorio <chema@celorio.com>
* gnome-print-pdf-type1.c: finish font embeding and do more checks on
the font to improve robustness. Clean the code, but still needs love
* gnome-print-pdf.h: save each font encoding number, and not per pdf
since each font now can have a different encoding vector
* gnome-print-pdf.c (gnome_print_pdf_encoding): _show now works with
unicode support.
2000-09-24 Chema Celorio <chema@celorio.com>
* gnome-printer-profile.c (gnome_printer_get_profiles): reverse the
list of printers.
(gnome_printer_load_profiles_from): reverse the list
* Makefile.am (profilesdir): add profiles dir
* gnome-print-ps2.c (gnome_print_ps2_show_sized): while printing octal
numbers, pad with 0's
2000-09-24 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c: kill mem leaks
* gnome-print-pdf.c: kill mem leaks
* gnome-print-pdf.c (gnome_print_pdf_show_sized): move to unicode text
and deprecate _ucs4
* gnome-print-pdf-type1.c: new file that will handle type1 font stuff.
(text_utils_search_real): moved here
(gnome_print_pdf_font_parse): moved here
(gnome_print_pdf_font_type1_embed): moved here
* gnome-print-pdf.c (gnome_print_pdf_get_font_number): fix a VERY
stupid bug that was crashing gnome-print-pdf
2000-09-23 Lauris Kaplinski <lauris@helixcode.com>
* gnome_print_ps2.c (gnome_print_ps2_destroy): Use destroy method
instead of finalize, so we can catch illegal behaviour by users.
Free fonts_external
Free graphic_state && graphic_state_set
* gnome_print.c (gnome_print_context_new_with_paper_size): Unref
child contexts if printing through FRGBA
* gp-gc.* (gp_gc_setmatrix): It can still be useful for GC, if
not in print contexts
2000-09-23 Chema Celorio <chema@celorio.com>
* gnome-print-ps.c (gnome_print_ps_finalize): we are not finalizing,
add g_print
* gnome-print-ps2.c (gnome_print_ps2_finalize): ditto
* gnome-print-ps2.c (gnome_print_ps2_get_font_number): ref the font
beeing used
2000-09-22 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c: (gnome_print_ps2_show_sized): add
g_return_val_if_fails
(gnome_print_ps2_reencode_font): ditto
* gnome-print.h: remove setmatrix
* gnome-print-private.h (struct _GnomePrintContextClass): ditto
* gnome-print.c (gnome_print_gsave): ditto
* gnome-print-pdf.c: ditto
* gnome-print-multipage.c (gnome_print_multipage_class_init): ditto
* gnome-print-frgba.c (gpf_clip): ditto
* gnome-print-ps2.c (gnome_print_ps2_class_init): ditto
* gnome-print-ps.c (gnome_print_ps_class_init): ditto
* gnome-print-meta.c (do_render): ditto
* gp-gc.c (gp_gc_get_ctm): ditto
2000-09-22 Lauris Kaplinski <lauris@helixcode.com>
* gp-ps-unicode.* (gp_multi_from_ps): Give list of all unicode
character values of given PostScript name
* gnome-font-face-private: Use privencoding hash table, to keep
name-value map of our private encoding
* gnome-font-face.c (gff_load_afm): Assign unknown PostScript glyph
names to unicode private area 0xe000+
(gnome_font_face_get_sample): If font does not encode neither
latin, nor greek, return first 32 private area characters
* gt1-parset1.* (gt1_load_font): Get private encoding as parameter,
use it to resolve names not in standard PS->unicode dictionary
* gnome-print-frgba.c: Remove gc from private structure
(gpf_fill): Use eofill, if rule is ODDEVEN
* gnome-print-ps2.c (gnome_print_ps2_reencode_font): Make output a bit
nicer to the eye
* gnome-print.h: Add GNOME_PRINT_ERROR_BADVALUE
* gnome-print.c: Use that for illegal parameters
2000-09-21 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.* (gnome_print_ucs4): Reimplement, mark as DEPRECATED
(gnome_print_fill, gnome_print_eofill): Use single class method
(gnome_print_clip, gnome_print_eoclip): Ditto
* gnome-print-private.h: Use single class method for fills and clips
* gnome-print-meta.c: Single class methods for fills and clips
* gnome-print-multipage.c: Ditto
* gnome-print-ps.c: Ditto
* gnome-print-ps2.c: Ditto
* gnome-print-pdf.c: Ditto
* gnome-print-frgba.c: Ditto
* gnome-print-rbuf.c: Ditto. Also removed #ifdef 0 blocks
* gnome-print-preview.c: Ditto. Also removed #ifdef 0 blocks
(gpp_show_sized): Use gnome_glyphlist_from_text_sized_dumb, so we
do not crash for non '\0' terminated strings
2000-09-21 Lauris Kaplinski <lauris@helixcode.com>
* gp-gc.* (gp_gc_close_all): New function
* gnome-print.h: Enumerate error codes
* gnome-print-private.h: Add GC to PrintContext
* gnome-print.c: Update GC everywhere, return meaningful errors
* gnome-print-preview.c: Use GnomePrintContext GC wherever possible
* gnome-print-rbuf (gpb_show_sized): Remove #ifdef 0 blocks
* gnome-glyphlist.c (ggl_text_to_unicode): Remove libunicode stuff
2000-09-20 Lauris Kaplinski <lauris@helixcode.com>
* gp-unicode.*: New files, implementing g_utf8 stuff from glib 1.3
* gnome-print-private.h: Use show_sized as class method instead of
show_ucs4
* gnome-print.c: use show_sized
* gnome-print-meta.c: Ditto
* gnome-print-multipage: Ditto
* gnome-print-rbuf: Ditto
* gnome-print-ps: Ditto
* gnome-print-ps2: Ditto
* gnome-print-pdf: Ditto
* gnome-print-preview: Ditto
* gnome-print-frgba: Ditto
2000-09-19 Lauris Kaplinski <lauris@helixcode.com>
* gnome-canvas-bpath.c: Fix leaks in freeing lists, perturb
vpaths before stroking too
* gnome-font-family.c: Ditto
* gnome-glyphlist.c: Ditto
* gnome-pgl.c: Ditto
* gnome-print-rbuf.c: Perturb vpaths before stroking
2000-09-19 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c
(gnome_print_pdf_write_content): remove g_print
2000-09-19 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c
(GNOME_PRINT_NUMBER_OF_ELEMENTS): start with 32 elements, not 16
2000-09-19 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_font_embed): new function,
it is disabled so that we can finally release 0.23.
2000-09-18 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_page_write_contents): the
compressed data might contain '\0' inside it, write directly
to file.
(gnome_print_pdf_images): add flate compression to images too
(gnome_print_pdf_grestore): fix a bug that was causing a crash
when printing more than 1 page
2000-09-18 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font-face.c (gnome_font_unsized_closest): Try load
Helvetica, if font name fails, is we do not have Helvetica,
load first available font.
2000-09-17 Chema Celorio <chema@celorio.com>
* gnome-print-encode.c: include zlib
(gnome_print_encode_deflate): new function
(gnome_print_encode_deflate_wcs): ditto
* gnome-print-pdf.c (gnome_print_pdf_page_write_contents): use
flatedecode filter for text. This should REALLY improve the size
of the pdf files.
* gnome-font-face.h: add gff_is_fixed_width
* gnome-font-face.c (gff_load_afm): kill compile warning
* gnome-print-pdf.c (gnome_print_pdf_font_print_descriptor): new
function that creates the FontDescriptor object
* gnome-font-private.h: add capheight, italics angle & FontBBox for
pdf
* gnome-font-face.c (gnome_font_face_get_capheight): new function
(gnome_font_face_get_italic_angle): ditto
(gnome_font_face_get_font_bbox): ditto
2000-09-16 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_font_print_metrics): fix
2000-09-07 Chema Celorio <chema@celorio.com>
* gnome-font-face.h: add g_f_face_get_glyph_ps_name to the header
2000-08-31 Chema Celorio <chema@celorio.com>
* gnome-font-dialog.c (gnome_font_selection_dialog_init): set a
default size for the dialog. The current one is way too small
2000-08-29 Morten Welinder <terra@diku.dk>
* gnome-font-face.c (gnome_font_face_get_glyph_width): Fix bogus
sanity check.
(gnome_font_face_get_glyph_ps_name): Ditto.
(gff_load_afm): Use g_renew properly. (Spotted by Lauris.)
2000-08-28 Lauris Kaplinski <lauris@helixcode.com>
* gt1-parset1.c (gt1_load_font): Use hash table for encoding, so we
can now support fonts with arbitrary glyphs (as long, as they are
defined in gp-ps-unicode)
(gt1_get_glyph_outline): Ditto
(gt1_get_kern_pair): Ditto
2000-08-28 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.c (gnome_print_context_new_with_paper_size): use FRGBA
for both standard PostScript and PS2
(gnome_print_glyphlist): Do glyph->ps->unicode translation, if
context does not implement ::glyphlist() method
2000-08-28 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font.c (gnome_font_get_glyph_stdoutline): Implement
2000-08-27 Chema Celorio <chema@celorio.com>
(gnome_print_decode_hex): fix
2000-08-27 Chema Celorio <chema@celorio.com>
* gnome-print-encode.c (hex_2_dec): new function
(gnome_print_decode_hex_wcs): new function
(gnome_print_decode_hex): new function
2000-08-22 Rusty Conover <rconover@zootweb.com>
* gnome-canvas-bpath.h: Fixed defintion of bpath argument to actually
state that it requires a GPPath to be used rather then an ArtBpath.
This was discovered to be wrong after passing a real ArtBpath and
having problems. Proper documentation always helps.
2000-08-18 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: include gnome-print-master-private.h
* gnome-print.c: Use PostScript RGBA wrapper for default
* profiles/Postscript.profile: Use RGBA for default, RGB for plain
2000-08-15 Morten Welinder <terra@diku.dk>
* gnome-print-pclr.c: Include <string.h> for memset.
* gnome-print-pdf.c (gnome_print_pdf_id_new): Handle systems with
pid_t != int better.
2000-08-13 Chema Celorio <chema@celorio.com>
* gnome-print-encode.c (gnome_print_decode_ascii85): implement
(gnome_print_decode_ascii85_wcs): implement
2000-08-11 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font-private.h:
* gnome-font-face.c (gnome_font_face_get_num_glyphs): New method
(gnome_font_face_get_glyph_ps_name): New method
* gp-ps-unicode.h:
* gp-ps-unicode.c (gp_const_ps_from_ps): New method, returning
constantized PostScript name
* gnome-print-ps2.c: (gnome_print_ps2_reencode_font): Encode Type 0
font, supporting 65536 glyphs in 8/8 mapping
(gnome_print_ps2_glyphlist): Use 8/8 mapping
(gnome_print_ps2_show_ucs4): Use font lookup and 8/8 mapping
2000-08-08 Lauris Kaplinski <lauris@helixcode.com>
* gp-ps-unicode.h: Added
* gp-ps-unicode.c: Added
* gnome-font-private.c: New unicode->glyph mapping methods
* gnome-font-face.c: Changed unicode and metric storage
(gnome_font_face_get_sample): Simple test greek string for Symbol
(gnome_font_face_get_species_name): Remove leading hyphen, if present
* gnome-font-family.c: (gnome_font_family_add_font): Use face stylename
* gnme-text-c: Dont use face private width table
* gt1-parset1.c (gt1_load_font): Use gnome-print ps->unicode conversion
Map first 1024 unicode glyphs
2000-08-08 Lauris Kaplinski <lauris@helixcode.com>
* gnome_print.c (gnome_print_context_new_with_paper_size): use
gnome-print-ps-frgba driver
* gnome-print-frgba.c (gpf_render_buf): Set buffer to white, not gray
2000-08-07 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font-dialog.c (gnome_font_selection_init): Nicer layout
* gnome-font-face.c: (gnome_font_face_new): Do not load afm by default
(gnome_font_unsized_closest): Same
It fixes the infinite initialization time of font selector dialog
* gnome-font.c: Use face methods for metrics, so afm is demand-loaded
* gnome-glyphlist.c: Use UTF-8 for text encoding
2000-08-07 Chema Celorio <chema@celorio.com>
* gnome-print-copies.c (gnome_print_copies_bind_editable_enters):
fix a compile warning.
2000-08-06 Jody Goldberg <jgoldberg@home.com>
* gnome-print-master.c (gnome_print_master_get_pape) : new routine.
2000-08-06 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: Do not install gnome-printer-profile.h
* gnome-print-copies.h:
* gnome-print-copies.c: Privatized
* gnome-print-master.h:
* gnome-print-master.c: Privatized
* gnome-print-master-private.h: Added
* gnome-print-master-preview.h:
* gnome-print-master-preview.c: Privatized
* gnome-printer-dialog.h:
* gnome-printer-dialog.c: Privatized
* gnome-print-dialog.h:
* gnome-print-dialog.c: Privatized
2000-08-06 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_font_print_metrics): only print
the metrics for the chars that we used.
(gnome_print_pdf_font_print_metrics): warn if char > 127.
2000-08-06 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: Do not install gnome-print-encode.h and
gnome-print-i18n.h
* gnome-font-dialog.h:
* gnome_font_dialog.c: Big rewrite. We now have separate
GnomePrintPreview widget
* gnome-print-copies.h:
* gnome-print-copies.c: Emit "copies_set" signal & other changes
(gnome_print_copies_get_copies): new syntax
(gnome_print_copies_get_collate): New method
* gnome-print.h: Privatized internals
Grouped methods into meaningful sections
Moved file methods to private header
* gnome-print-private.h: Added
Changed all other print context header/code files accordingly
* gnome-print-rbuf-private.h: Added
* gnome-print-preview-private.h: Added
* gnome-printer.h: Privatized
* gnome-printer-private.h: Added
* gnome-printer.c: Included private header
2000-08-05 Chema Celorio <chema@celorio.com>
* gnome-print.h: added BEGIN/END_GNOME_DECLS to all .h
that where missing it
Killed all compile warnings
added #ifdef __GNOME_SOMETHING_F__ to files that where missing it
2000-08-05 Miguel de Icaza <miguel@helixcode.com>
* gnome-print-master-preview.h: Add BEGIN_GNOME_DECLS and
END_GNOME_DECLS
2000-08-05 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_font_print_metrics): download
font metrics.
* gnome-print-pdf.c : diferientate the basic 14 fonts.
* gnome-font-face.c (gnome_font_face_get_sample): fix a typo
2000-08-04 Chema Celorio <chema@celorio.com>
* tests/test*.c : killed compile warnings
* gnome-print-ps2.c (gnome_print_ps2_get_font_number): Fix ugly
bug. (Which took me an hour to find.) doh !
* gnome-print-encode.c (gnome_print_encode_isolatin): added. This code
is beeing duplicated in the ps,ps2 & pdf drivers.
* gnome-print-meta.c (do_render): remove concat_optimize
* gnome-print.c (gnome_print_concat_optimize): ditto
* gnome-print.h: ditto
* gnome-print-pdf.c (gnome_print_pdf_ctm_is_identity): don't need
it anymore
2000-08-04 Lauris Kaplinski <lauris@helixcode.com>
* gp-gc.c (gp_gc_reset): fixed evil bug of not clearing cts list
2000-08-03 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_show_ucs4): we don't need to
affine the location of the text
* gnome-print-pdf.c (gnome_print_pdf_show_ucs4): ditto
(gnome_print_pdf_show_ucs4): fix the "Tm" command so that we
can print rotated/slanted text
* gnome-print-pdf.c (gnome_print_pdf_moveto): art affine the
point while adding it to the currentpath
(gnome_print_pdf_curveto): ditto
* gnome-print-ps2.c (gnome_print_ps2_showpage): clean the graphic
state after showpage.
* gnome-print-pdf.c (gnome_print_pdf_id_new): create the id
from date+constant+pdfsize+pid.
* gnome-print-encode.c: added this file. which replaces
gnome-print-compress.c
* gnome-print-compress.c: deleted
* gnome-print-encode.h (gnome_print_encode_timer_end): ditto
* gnome-print-ps2.c (gnome_print_ps2_concat_optimize): added
* gnome-print-meta.c: added concat_optimize
* gnome-print.c (gnome_print_concat_optimize): added
* gnome-print-pdf.c: replace gnome_print_compress with
gnome_print_encode
* gnome-print-pclr.c: ditto
* gnome-print-pclr.c: ditto
* gnome-print-ps2.c: ditto
2000-08-03 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.c (gnome_print_show): return immediately, if strlen < 1
2000-08-03 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_curveto): do the affine
transformation while addint to the current path, not inside
path_print.
(gnome_print_ps2_moveto): ditto
(gnome_print_ps2_lineto): ditto
(gnome_print_ps2_path_print): don't do the affine transform here
(gnome_print_ps2_show_matrix_set): use gs not gs_set to flag the
current state
2000-08-03 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.c (gnome_print_show_ucs4): Fix silly bug
2000-08-02 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_reencode_font): do not reencode in
IsoLatinEncoding the fonts twice. Flag them as reencoded
(gnome_print_ps2_download_font): use GnomeFont
(gnome_print_ps2_dictionary): add reencoding function
(gnome_print_ps2_graphic_state_set_font): only set the font when the
font is different than the one set
* gnome-print-pdf.c (gnome_print_pdf_image_compressed): clean
* gnome-print-rgbp.c (rgbp_showpage): call page_end after
each showpage.
(gnome_print_rgbp_construct): save the paper name
(rgbp_showpage): affter showpage, we need to destroy the canvas
so that all the items get cleared.
* gnome-print-pclr.c (pclr_print_band): call memset to clear the
row of pixels. Avoids marks on the right side of the printout
(pclr_print_band): we need to write the last byte. doh !
2000-08-02 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.h (gnome_print_show_ucs4): Replaced class method ::show()
with ::show_ucs4(), added general function for the latter
* gnome-print.c (gnome_print_show): Uses UTF-8, translates internally
to show_ucs4
(gnome_print_show_ucs4): Added
* gnome_print_frgba.c:
* gnome_print_meta.c:
* gnome_print_multipage.c:
* gnome_print_pdf.c:
* gnome_print_ps.c:
* gnome_print_ps2.c:
* gnome_print_preview.c:
* gnome_print_rbuf.c: Use new show_ucs4 class method everywhere
2000-08-02 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am: Do not install pcl headers, glyphlist and pgl private
and rgbp headers
* gnome-glyphlist-private.h: Added
* gnome-pgl-private.h: Added
* gnome-canvas-hacktext.c: Use gnome-pgl-private.h
* gnome-font-dialog.c (gnome_font_selection_init): Pack preview
fill + expand
* gnome-font-face.c (gnome_font_face_get_glyph_stdoutline): don't
crash for invalid glyph,
instead return empty rectangle
(gnome_font_face_get_glyph_stdbbox): Same
(gnome_font_face_lookup_default): Return -1 if there is no
Gt1GlyphOutline, brought method here from gnome-font.c
* gnome-font.c: Moved gnome_font_face_lookup_default to
gnome-font-face.c
* gnome-glyphlist.h:
* gnome-glyphlist.c: Moved internals to private header
* gnome-pgl-h:
* gnome-pgl.c: Moved internals to private header
* gnome-print.c (gnome_print_glyphlist): iterate glyphs, if there
is no class method
* gnome-rfont.c: Use gnome-pgl-private header
2000-08-01 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font-family.h:
* gnome-font-family.c: Added these
* Makefile.am: Moved gnome-canvas-hacketxt.h,
gnome-canvas-bpath-private.h
gp-path.h and gp-gc.h to uninstalled headers
* gnome-canvas-hacktext.c (art_drect_hacktext): force update, if needed
* gnome-font-dialog.h (gnome_font_selection_get-size): added
(gnome_font_selection_get_face): added
Lots of changes to object internals
* gnome-font-dialog.c: Reworked, now shows (mostly) right styles for
family
* gnome-font-face.c (gnome_font_face_get_species_name): implement
* gnome-glyphlist.c (ggl_text_to_unicode): fix leak
* gnome-rfont.c (dsp_get_glyph_pixmap): fix leak
2000-08-01 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_page_end): write showpage ("SP")
(gnome_print_ps2_dictionary): add to dictionary
* gnome-print-pdf.c (gnome_print_pdf_page_write_resources): only ask
for an object number if there wasn't one assinged before
(gnome_print_pdf_get_fonts_object_numbers): ditto
(gnome_print_pdf_init): set object_number_gstate to 0
* gnome-print-pclr.c : use lame dithering.
2000-07-27 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c (gnome_print_ps2_reencode_font): reenconde fonts
in IsoLatin1Encoding
(gnome_print_ps2_dictionary): add more commands to the dictionary
(gnome_print_ps2_graphic_state_set_font): use FF CF and SF
* gnome-print-ps.c : clean some #if 0'ed optimization stuff as we
no longer need to optimize this driver
2000-07-31 Chema Celorio <chema@celorio.com>
* gnome-print.h (struct _GnomePrintContextClass): deprecate setmatrix
* gp-gc.h: ditto
* gnome-print-frgba.c (gpf_setmatrix): ditto
* gnome-print-meta.c (do_render): ditto
* gnome-print-multipage.c (gnome_print_multipage_class_init): ditto
* gnome-print-pdf.c (gnome_print_pdf_class_init): ditto
* gnome-print-preview.c (gpp_class_init): ditto
* gnome-print-ps.c (gnome_print_ps_class_init): ditto
* gnome-print-ps2.c (gnome_print_ps2_class_init): ditto
* gnome-print-rbuf.c (gpb_setmatrix): ditto
* gnome-print.c: ditto
* gp-gc.c: ditto
2000-07-29 Jody Goldberg <jgoldberg@home.com>
* gt1-parset1.c (gt1_load_font) : Correct a typo in the array bounds.
(encode_table_2_names) : Remove the trailing 1234567890
(encode_table_3_names) : Ditto.
(encode_table_4_names) : Ditto.
2000-07-27 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font.h:
* gnome-font-private.h:
* gnome-font.c:
* gnome-font-face.h:
* gnome-font-face.c: Big cleanup. Most face-specific methods are now in
gnome-font-face. Removed fontmap from class, implemented as hash table.
* gnome-font-dialog.c (gnome_font_selection_init): No more need for
class
2000-07-26 Lauris Kaplinski <lauris@helixcode.com>
* gnome-font.c: removed most '#ifdef 0' code
* gnome-rfont.c: same
2000-07-26 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c (gnome_print_pdf_image_compressed): speed
optimizations
* gnome-print-ps2.c (gnome_print_ps2_image): use hex encoding from
g_p_compress
* gnome-print-compress.c (gnome_print_compress_hex): move hex
endcoding here
2000-07-25 Jody Goldberg <jgoldberg@home.com>
* gnome-font.c (gnome_font_new_closest) : Insert new fonts into the
hash.
2000-07-26 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c: more work.
* gnome-print-pdf.c (gnome_print_pdf_image_compressed): use ascii85
encoding
* gnome-print-pclr.c (pclr_print_band): use the new functions
* gnome-print-compress.c (gnome_print_compress_ascii85): implement
ascii85 encoding
(gnome_print_compress_rlc_wcs): calculate the size that the app
should allocate for the out buffer on the WCS.
(gnome_print_compress_tiff_wcs): ditto
(gnome_print_compress_drow_wcs): ditto
(gnome_print_compress_ascii85_wcs): ditto
2000-07-25 Chema Celorio <chema@celorio.com>
* gnome-print-ps2.c: fix some bugs
2000-07-24 Chema Celorio <chema@celorio.com>
* gnome-printer-dialog.c (set_profile): test for output==NULL. Fixes
the dialog crash.
* gnome-print-ps2.c: more work, rotated text now works. The only
stuff missing is Fonts.
2000-07-22 Chema Celorio <chema@celorio.com>
* gnome-print-compress.c: cosmetic stuff
* gnome-print-ps.c: costmetic fixes
* gnome-print-pclc.c: move common stuff here
* gnome-print-pdf.c: more work
* gnome-print-ps2.c: commit
2000-07-18 Chema Celorio <chema@celorio.com>
* gnome-print-ps.c: removed the comment added previously
2000-07-22 Michael Meeks <michael@helixcode.com>
* gnome-canvas-bpath.c (gnome_canvas_bpath_update): fix line width
screwup.
2000-07-21 Lauris Kaplinski <lauris@helixcode.com>
* gnome-canvas-hacktext.h: include <libgnomeui/gnome-canvas.h>
* gnome-font-dialog.h:
* gnome-font-dialog.c (gnome_font_selection_get_font): GnomeFont not
GnomeDisplayFont
(gnome_font_dialog_get_font): Same
(gnome_font_selection_init): Use minicanvas to do full-featured
font preview
(gnome_font_selection_update_preview): Same
* gnome-font-face.h:
* gnome-font-face.c (gnome_font_face_get_sample): Use GnomeFont,
not GnomeFontFace
* gnome-font-private.h (gnome_font_get_glyph_name): Moved here
* gnome-rfont.c:
* gnome-font.h:
* gnome-font.c: GnomeDisplayFont is now typedef for GnomeRFont. All
internals are
privatized, so use accessor methods, if necessary.
Moved huge block of DisplayFont related code to gnome-rfont.c
* gnome-print-ps.c: include gnome-font-private.h
* gnome-glyphlist.c: typechecks everywhere
2000-07-18 Lauris Kaplinski <lauris@helixcode.com>
* gnome-glyphlist.h:
* gnome-glyphlist.c: added
* gnome-pgl.h:
* gnome-pgl.c: added
Glyphlists (and Positioned glyphlists) are quite flexible, device
independent rich text representations
* Makefile.am: added glyphlists
* gnome-print.h:
* gnome-print.c (gnome_print_glyphlist): test implementation
* gnome-print-preview (gpp_glyphlist): test implementation
* gnome-canvas-hacktext.h:
* gnome-canvas-hacktext.c: Major redesign using glyphlists
* gnome-font-face.h:
* gnome-font-face.c (gnome_font_face_get_sample): added
* gnome-rfont.h:
* gnome-rfont.c (gnome_rfont_get_stdadvance): added
(gnome_rfont_render_pgl_rgb8): added
(gnome_rfont_render_pgl_gdk_drawable): added
2000-07-18 Chema Celorio <chema@celorio.com>
* gnome-print-pdf.c: more work. Gnumeric files should
print to pdf if the VERY basic fonts are used.
Images also work now.
2000-07-17 Chema Celorio <chema@celorio.com>
* gnome-print-ps.c: added a /* comment */
* gnome-print-pdf.c: more work. getting there ...
2000-07-15 Chema Celorio <chema@celorio.com>
* gp-path.c: added a debuging function that was later removed.
The commit might containt ">" and "<" blank lines only.
* gnome-print-ps.c (gnome_print_ps_get_type): ditto
* gnome-print-pdf.h: added. "Yeah baby yeeeeah!"
* gnome-print-pdf.c: added
* Makefile.am: add the native drivers
* gnome-print-pclv.c: new file, this is just a copy of the
gnome-print-pclr driver, (i.e. not yet written ) this will
be the Vector PCL driver
* gnome-print-pclv.h: new file
* gnome-print.c (gnome_print_context_new_with_paper_size): hook the
gnome-print-pclr and gnome-print-pclv drivers
2000-07-13 Michael Meeks <michael@helixcode.com>
* gnome-print-preview.c (gpp_image): art_alloc not g_malloc.
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_destroy),
(gnome_canvas_hacktext_set_arg): g_free not art_free.
* gnome-rfont.c (rfont_free_bpath): art_free not g_free.
2000-06-19 Michael Meeks <michael@helixcode.com>
* gnome-print.c (gnome_print_pixbuf): implement.
2000-06-19 Michael Meeks <michael@helixcode.com>
* gnome-print.c (gnome_print_pixbuf): implement.
2000-07-11 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.h:
* gnome-rfont.c (gnome_rfont_render_glyph_gdk_drawable):
experimental interface
* gnome-canvas-hacktext.c: Use experimental gdk rendering
2000-07-11 Lauris Kaplinski <lauris@helixcode.com>
* gnome-rfont.h:
* gnome-rfont.c: Added rasterized font handler
* gnome-canvas-hacktext.c: Use rfont
* makefile.am: Moved gnome-font-private.h to private headers
2000-07-08 Lauris Kaplinski <lauris@helixcode.com>
* gnome-canvas-bpath-util.h: removed
* gnome-canvas-bpath-util.c: removed
2000-07-07 Lauris Kaplinski <lauris@helixcode.com>
* Makefile.am
* gnome-font.h
* gnome-font.c
* gnome-font-private.h: added
* gnome-font-face.h: added
* gnome-font-face.c: added
Privatized GnomeFont internals to make future exending easy
* gnome-font-dialog.c
* gnome-print-meta.c
* gnome-print-ps.c
* gnome-print-preview.c
* gnome-print-rbuf.c
* gnome-text.c
* gnome-canvas-hacktext.c: Various fixes to comply with new font API
2000-07-03 Lauris Kaplinski <lauris@helixcode.com>
* gnome-canvas-hacktext.c (art_drect_hacktext): Initialize bbox to
empty rectangle
2000-06-17 Morten Welinder <terra@diku.dk>
* gp-gc.c (gp_gc_unref): Plug leak.
(gp_gc_reset): Plug leak.
(gp_gc_grestore): Plug leak.
* gnome-print-master-preview.c (render_page): Plug leak.
2000-06-16 Chema Celorio <chema@celorio.com>
* gnome-print-dialog.h: added a GNOME_PRINT_RANGE_SELECTION_UNSENSITIVE
usefull for dialogs when no selection is active.
* gnome-print-dialog.c: code to handle it
2000-06-14 Lauris Kaplinski <lauris@helixcode.com>
* gnome-print.c (gnome_print_context_open_file): Handle "~/filename"
kind of names
2000-06-14 Morten Welinder <terra@diku.dk>
* gnome-print-master.c (gnome_print_master_print): Handle error
from gnome_print_context_new_with_paper_size gracefully.
2000-06-14 Lauris Kaplinski <lauris@helixcode.com>
* gp-path.c (gp_path_close_all): Set correct endpoint for new path,
change MOVETO_OPENs to MOVETOs
2000-06-07 Lauris Kaplinski <lauris@kaplinski.com>
* Makefile.am: Added gnome-print-frgba
* gnome-print-frgba.h:
* gnome-print-frgba.c: RGBA wrapper context (from rgba branch)
* gnome-print-rbuf.c (gpb_rgbimage): use correct rowstride
* gnome-print-meta.c: (decode_image): decode rgbaimage
(gnome_print_meta_render_from_object): replay open metafile
2000-05-29 Jody Goldberg <jgoldberg@home.com>
* gnome-print-master-preview.c (create_toplevel) : We need to
temporarily change the textdomain so that gnome-libs will translate
the menus in the gnome-print domain, rather than the calling
applicaiton.
* *.c : Include config.h then gnome-print-i18n.h.
* gnome-print-dialog.c (print_button) : new function to appease the
translation gods.
* gnome-font.c : Include gnome-print-i18n.h.
* gnome-print-copies.c : Ditto.
* gnome-print-dialog.c : Ditto.
* gnome-print-master-preview.c : Ditto.
2000-05-27 Jody Goldberg <jgoldberg@home.com>
* gnome-font.c (create_display_font) : truncate the scaled font size
Back out my previous patch from Mar/21.
(gnome_get_display_font) : Ditto.
2000-05-26 Lauris Kaplinski <lauris@ariman.ee>
* gnome-canvas-bpath.h:
* gnome-canvas-bpath.c:
* gnome-canvas-bpath-private.h: Reworked most Bpath internals,
made these private, added per canvas drawing contexts etc. As a
result, it now clips, dashes, eofills and even show itself on
Gdk canvases :)
* gnome-canvas-clipgroup.h:
* gnome-canvas-clipgroup.c: Clipper group. Most aa items should be
clipped, as the general framework has been present for long time.
* gnome-print-preview.h:
* gnome-print-preview.c: Converted it to separate GC and new
canvas Bpath.
These are coming from gnome-print-rgba branch
2000-05-26 Lauris Kaplinski <lauris@ariman.ee>
* gnome-print-rbuf.h:
* gnome-print-rbuf.c: General RGB/RGBA buffer printing context
* gp-gc.h:
* gp-gc.c: General graphic context stack implementation
* gp-path.h:
* gp-path.c: Smart wrapper around ArtBpath arrays, allowing most
imaginable operations on these (split, join, close etc.)
* art_rgb_affine_private.h: Libart private header for SVP rendering
* art_rgba_rgba_affine.h:
* art_rgba_rgba_affine.c: Temporary RGBA image to RGBA buffer
renderer
* art_rgba_svp.h:
* art_rgba_svp.c: Temporary SVP to RGBA buffer renderer
These are coming from gnome-print-rgba branch
2000-05-23 Morten Welinder <terra@diku.dk>
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_point): Limit
variables' scopes. Plug leaks.
2000-05-19 Chema Celorio <chema@celorio.com>
* gnome-print-ps.c (gnome_print_ps_show): Fix bug #10600
2000-05-08 Morten Welinder <terra@diku.dk>
* gnome-print-master.c (gnome_print_master_print): Plug a leak.
2000-05-07 Chema Celorio <chema@celorio.com>
* gnome-print-pclr.c (pclr_print_band): When compressing
color planes and when using delta row compression choose
the best seed between the row in the previous plane or
the previous row in the current plane.
2000-05-07 Chema Celorio <chema@celorio.com>
* gnome-print-compress.c (gnome_print_compress_blank):
Implement.
(gnome_print_compress_drow): Fixed a bug that was growing
the output size.
* gnome-print-pclr.c (pclr_print_band): Send blanks
rows as such.
If Delta_row_size = 0, dont calculate other methods.
2000-05-06 Chema Celorio <chema@celorio.com>
* gnome-print-pclr.c (pclr_print_band): clean code
and add the use of RunLengthCoding compression.
2000-05-06 Chema Celorio <chema@celorio.com>
* gnome-print-pclr.c : Clean code, renamed some
variables and take the compression stuff outside
and move it to gnome-print-compress.c
* gnome-print-compress.c : Added to the repository
move the compression stuff here since the PCL
and the Epson driver are sharing the compression
code.
(gnome_print_compress_rlc): Implemented
(gnome_print_compress_tiff): moved here
(gnome_print_compress_drow): moved here
2000-05-04 Miguel de Icaza <miguel@helixcode.com>
* Makefile.am (libgnomeprintinc_HEADERS): Install the
gnome-canvas-hacktext stuff.
2000-05-02 Morten Welinder <terra@diku.dk>
* gnome-print-meta.c (meta_setopacity, meta_rgbaimage): Return
something.
* gnome-printer-profile.c (gnome_printer_profile_get_printer):
Plug leak and sanitise.
* gnome-print-ps.c (gnome_print_ps_reencode_font): Prototype.
2000-05-02 Chema Celorio <chema@celorio.com>
* gnome-print-pclr.h: Added to the repository
* gnome-print-pclr.c: Added to the repository.
2000-04-21 Michael Meeks <michael@helixcode.com>
* gnome-print-meta.c (meta_rgbaimage, meta_setopacity): implement.
(gnome_print_meta_class_init): use. (do_render): add new.
* gnome-print.c (gnome_print_context_class_init): init
rgbaimage not rgbimage to NULL, NULL textline & close.
* gnome-print-ps.c (gnome_print_ps_setopacity): add warning,
compile in. (gnome_print_ps_class_init): init setopacity.
2000-04-18 Chema Celorio <chema@celorio.com>
* gnome-print-dialog.c (gnome_print_dialog_get_range):
the range widget might contain some of the range
options, so check if they are not NULL.
2000-04-15 Lauris Kaplinski <lauris@ariman.ee>
* gnome-print.h: added rgbaimage method and gnome_print_rgbaimage
method
* gnome-print.c: implemented rgbaimage fallback to rgbimage, if
actual context does not support it
2000-04-14 Morten Welinder <terra@diku.dk>
* gnome-print-ps.c (gnome_print_ps_setopacity): Kill warning.
* gnome-canvas-bpath-util.c (gnome_canvas_bpath_def_new_from):
Kill warning.
* parseAFM.c (initializeArray): Kill warning.
* gnome-print-preview.c (dump_gc): Kill warning.
(gpp_destroy): Kill warning.
* gnome-print-meta.c (encode_string): New function.
(decode_string): New function.
(do_render): Use decode_string. Revive debugging code.
(meta_setfont): Use encode_string.
(meta_show): Use encode_string.
(meta_beginpage): Use encode_string.
(encode_int): Change format to support negative integers.
(decode_int): Ditto.
(encode_double): Implement marshalling.
(decode_double): Implement unmarshalling.
2000-04-13 Jon K Hellan <hellan@acm.org>
* gnome-print-dialog.c (gnome_print_dialog_init):
* gnome-print-dialog.h (struct _GnomePrintDialog): Add
range_accel_group.
* gnome-print-dialog.c (gnome_print_dialog_destroy): New function:
Unref range_accel_group.
(gnome_print_dialog_class_init): Add destroy method.
(gnome_print_dialog_init): Initialize range_accel_group to NULL.
(init_body): Add accelerator groups to dialog. Make <Enter>
activate OK button. Set initial focus to profile selector.
(gnome_print_dialog_construct_range_any): Add accelerators.
(gnome_print_dialog_construct_range_page): Ditto
* gnome-printer-dialog.h (struct GnomePrinterWidget): Add
profile_selector - a good place to set initial focus. Add
accel_group.
* gnome-printer-dialog.c (gnome_printer_widget_class_init): Add
destroy method.
(label_at): Parse uline accelerator and return it.
(gnome_printer_widget_init): Add accel_group and accelerators. Set
profile_selector to option_menu. Gettextize strings.
(gnome_print_widget_destroy): New function: Unref accel_group.
(gnome_printer_dialog_new): Make <Enter> activate OK button. Set
initial focus to profile selector.
(gnome_printer_widget_b_cb): Set focus to entry field when radio
button has been checked.
* gnome-print-copies.h: Add accel_group.
* gnome-print-copies.c (gnome_print_copies_class_init): Add
destroy method.
(gnome_print_copies_init): Gettextize
strings. Add accel_group and accelerator.
(collate_toggled): Cast to silence warning.
(gnome_print_copies_destroy): New function: Unref accel_group.
* gnome-font-dialog.h (struct _GnomeFontSelection): Add
accel_group.
* gnome-font-dialog.c (gnome_font_selection_destroy): Unref
accel_group.
(gnome_font_selection_get_font): Ignore spaces.
(gnome_font_selection_update_preview): Don't update preview if
user input does not form a valid font.
(gnome_font_selection_init): Add accelerator.
(gnome_font_selection_dialog_init): Add accel_group. Set initial
focus.
2000-04-12 Dom Lachowicz <dominicl@seas.upenn.edu>
* libgnomeprint/gnome-font.c (gnome_font_kern, gnome_font_unsized_kern,
gnome_font_new, gnome_font_get_ascender, gnome_font_get_descender,
gnome_font_get_underline_position, gnome_font_get_underline_thickness,
gnome_font_unsized_closest, gnome_font_new_closest,
gnome_font_get_name, gnome_font_get_glyph_name,
gnome_font_get_full_name, gnome_font_get_pfa, gnome_font_get_width,
gnome_font_unsized_get_width, gnome_font_unsized_get_width_string,
gnome_font_get_width_string_n, gnome_font_get_glyph, gnome_font_list,
gnome_font_family_list) : Use g_return_if_fail, g_return_val_if_fail
GNOME_IS_FONT, GNOME_IS_FONT_CLASS macros in publicly accessible
functions
(find_best_x_font) : Shut up gcc by commenting out unused variable
* libgnomeprint/gnome-print-dialog.[ch] (gnome_print_dialog_get_range):
Make return type a GnomePrintRangeType instead of an int
2000-04-11 Morten Welinder <terra@diku.dk>
* gnome-print-master-preview.c
(gnome_print_master_preview_new_with_orientation): Renamed from
gnome_print_master_preview_new.
(gnome_print_master_preview_new): New function with its former
prototype.
2000-04-11 Morten Welinder <terra@diku.dk>
* gnome-print-master-preview.c (gnome_print_master_preview_new):
Constify.
(struct _Private): add landscape, width, and height members.
(gnome_print_master_preview_new): New arg, "landscape". Get paper
size once and for all while taking landscape into account.
(render_page): If landscape, rotate.
2000-04-10 Morten Welinder <terra@diku.dk>
* gnome-print-ps.c (gnome_print_ps_close): Add trailer indicator.
2000-04-09 Morten Welinder <terra@diku.dk>
* gnome-print-ps.c (gnome_print_ps_beginpage): New function.
(gnome_print_ps_init): Zero pageno.
(gnome_print_ps_showpage): Updage pageno.
(gnome_print_ps_close): Print page count.
(gnome_print_ps_new): Say that pagecount is at end.
* gnome-print-rgbp.c (rgbp_beginpage): New function.
(rgbp_class_init): Set beginpage.
* gnome-print-preview.c (gpp_beginpage): New function.
(gpp_class_init): Set beginpage.
* gnome-print-meta.c (GnomeMetaType): Add GNOME_META_BEGINPAGE.
(meta_type_names): Add "BEGINPAGE".
(meta_beginpage): New function.
(gnome_print_meta_class_init): Set beginpage.
(do_render): Handle (well, non-handle) GNOME_META_BEGINPAGE.
* gnome-print-multipage.c (gnome_print_multipage_beginpage): New
function. (gnome_print_multipage_class_init): Set beginpage.
* gnome-print.c (gnome_print_context_class_init): Set beginpage
member.
* gnome-print.h (struct _GnomePrintContextClass): Add beginpage.
2000-04-09 Jon K Hellan <hellan@acm.org>
* gnome-print-ps.c (gnome_print_ps_show): Print nonascii as \octal
code. It's recommended practice, and all other PS drivers I have
seen do it.
2000-04-08 Morten Welinder <terra@diku.dk>
* gnome-print-master.c (gnome_print_master_finalize): Unref the
printer.
(gnome_print_master_set_printer): Unref the former printer.
(gnome_print_master_print): Keep proper ref count of printer.
* gnome-print.c (gnome_print_context_fprintf): Print in "C" locale
to get the right decimal separator. This should really be one or
more levels out, but it works.
2000-04-08 Michael Meeks <michael@helixcode.com>
* gnome-print-meta.c (gnome_print_meta_finalize): add table of meta
op names.
(do_render): add debug + default case as idiot trap.
(gnome_print_meta_render): kill daft offset bug.
2000-04-07 Dom Lachowicz <dominicl@seas.upenn.edu>
John Tunison <nosinut@WIND.REM.CMU.EDU>
* libgnomeprint/gnome-print-dialog.h:
* libgnomeprint/gnome-print-master-preview.h:
* libgnomeprint/gnome-print-master.h:
* libgnomeprint/gnome-print-dialog.c (gnome_print_dialog_finalize,
gnome_print_dialog_init, gnome_print_dialog_construct_range_any,
gnome_print_dialog_construct_range_date,
gnome_print_dialog_construct_range_page,
gnome_print_dialog_get_range, gnome_print_dialog_get_range_page,
gnome_print_dialog_get_range_date):
* libgnomeprint/gnome-print-master-preview.c (render_page,
preview_canvas_button_press, drag_to, preview_canvas_button_release,
preview_canvas_motion, create_preview_canvas, create_toplevel,
gnome_print_master_preview_finalize,
gnome_print_master_preview_init,
gnome_print_master_preview_new): Replace all ->private with ->priv
for friendlier c++ compilation (request by AbiSource developers)
2000-04-07 Miguel de Icaza <miguel@gnu.org>
* gt1-parset1.c (gt1_load_font): Memory leak fixes.
Sat Apr 1 21:16:56 2000 Raph Levien <raph@acm.org>
* gnome-canvas-bpath.c (gnome_canvas_bpath_update): Added
gnome_canvas_bpath_close_vpath(), which automatically closes
subpaths which have been left open. This is in conformance with
the latest SVG draft, and should improve robustness overall.
2000-03-27 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_class_init): Use destroy instead of
finalize
(gnome_print_preview_get_type): Killed all the code that handled
Print Jobs (that was a bad hack, and now the PrintPreviewMaster
does the same job correctly).
Killed the pages field as well.
Killed the lazy hide/show page trick.
2000-03-27 Jon K Hellan <hellan@acm.org>
* gnome-canvas-bpath-util.c (gnome_canvas_bpath_def_new_from):
Don't segfault if source path is empty.
* gnome-print-preview.c (gnome_canvas_bpath_def_duplicate):
Ditto.
2000-03-26 Chema Celorio <chema@celorio.com>
* gt1-parset1.c (gt1_load_font): Fixed a small typo.
* gnome-printer-profile.c (gnome_printer_stock_profile):
Fixed a small typo.
2000-03-26 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_finalize): Now I understand the
problem. gpp_finalize might be called when the canvas has already
destroyed all of our canvas items. So now we catch this
condition, and avoid destroying the subobjects if they are already
gone.
2000-03-26 Chema Celorio <chema@celorio.com>
* gnome-print-ps.c (gnome_print_ps_reencode_font): Added
function to reencode fonts with isoLatin1Encoding
(gnome_print_ps_setfont): Reencode every time that the
app asks for a new font.
* gt1-parset1.c (gt1_load_font):
(gt1_load_font): Changed the encoding tables to support
isoLatinEncoding. This is just a temp thing before we
implement Unicode Encoding.
2000-03-25 Michael Meeks <michael@helixcode.com>
* gt1-parset1.c: include glib.h & lots more libart bits.
(gt1_unload_font, gt1_load_font): Add Glyph outline hash
setup / teardown.
(art_drect_bpath): move here from hack-text.c
(glyph_outline_hash, glyph_outline_equal, gt1_glyph_outline_lookup):
implement.
* gnome-canvas-hacktext.c (GnomeCanvasHacktextCharInfo): Kill.
(gnome_canvas_hacktext_get_info): drasticaly simplify.
(art_drect_bpath): move to gt1-parset1.c
(gnome_canvas_hacktext_point): fix leaking svps.
* parseAFM.h (TRUE, FALSE): Add undefs to not conflict with glib.
2000-03-24 Michael Meeks <michael@helixcode.com>
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_init): kill bpath
cache.
(gnome_canvas_hacktext_destroy): ditto.
(gnome_canvas_hacktext_get_info): re-write to not use cache & be
simpler.
(GnomeCanvasHacktextPriv): Kill the info cache.
(gnome_canvas_hacktext_req_repaint, art_drect_hacktext),
(gnome_canvas_hacktext_point, gnome_canvas_hacktext_req_repaint):
update to non-pointer use of get_info.
2000-03-06 Michael Meeks <michael@helixcode.com>
* gnome-print-preview.c (gpp_stroke, gpp_strokepath, gpp_fill),
(gpp_image, gpp_show): render into the GraphicContext's group.
(GraphicContext): Add group. (gpp_gsave): Create a new group.
(gnome_print_preview_construct): setup base group. (gpp_showpage):
ditto; duplicated.
2000-03-25 Larry Ewing <lewing@helixcode.com>
* gnome-print-preview.c (gpp_show): use the current position along
the path, rather than unconditionally using the first control
point.
2000-03-23 Miguel de Icaza <miguel@helixcode.com>
* gnome-print-preview.c (gpp_finalize): Replace destroys I just
introduced with unrefs.
(gpp_finalize): Fix bug. Michael: yes,
the Canvas will destroy those items when it is destroyed, but we
need to destroy them as well, as the user might want just the
gnome-canvas-item object to go away, not the entire canvas (ie,
create an object and later remove it).
2000-03-21 Jody Goldberg <jgoldberg@home.com>
* gnome-font.c (create_display_font) : round the scaled font size
upwards.
(gnome_get_display_font) : Ditto.
2000-03-01 Chema Celorio <chema_gnome@celorio.com>
* gnome-print-ps.c (gnome_print_ps_setfont_raw): Should consider
grestore and gsave when testing if the default font has changed.
2000-03-01 Michael Meeks <michael@helixcode.com>
* gnome-font.c (gnome_display_font_height): implement.
2000-02-28 Federico Mena Quintero <federico@helixcode.com>
* gnome-print.c (gnome_print_context_new_with_paper_size): Add
preconditions.
(gnome_print_context_new): Likewise.
(gnome_print_newpath): Likewise.
(gnome_print_moveto): Likewise.
(gnome_print_lineto): Likewise.
(gnome_print_curveto): Likewise.
(gnome_print_closepath): Likewise.
(gnome_print_setrgbcolor): Likewise.
(gnome_print_fill): Likewise.
(gnome_print_eofill): Likewise.
(gnome_print_setlinewidth): Likewise.
(gnome_print_setmiterlimit): Likewise.
(gnome_print_setlinejoin): Likewise.
(gnome_print_setlinecap): Likewise.
(gnome_print_setdash): Likewise.
(gnome_print_strokepath): Likewise.
(gnome_print_stroke): Likewise.
(gnome_print_setfont): Likewise.
(gnome_print_show): Likewise.
(gnome_print_concat): Likewise.
(gnome_print_setmatrix): Likewise.
(gnome_print_gsave): Likewise.
(gnome_print_grestore): Likewise.
(gnome_print_clip): Likewise.
(gnome_print_eoclip): Likewise.
(gnome_print_grayimage): Likewise.
(gnome_print_rgbimage): Likewise.
(gnome_print_textline): Likewise.
(gnome_print_showpage): Likewise.
(gnome_print_setopacity): Likewise.
(gnome_print_context_close): Likewise.
(gnome_print_scale): Likewise.
(gnome_print_rotate): Likewise.
(gnome_print_translate): Likewise.
(gnome_print_context_open_file): Likewise.
2000-02-24 Morten Welinder <terra@diku.dk>
* gnome-print-preview.c (gpp_finalize): Avoid destroying freed
stuff. (Per NotZed's instructions.)
2000-02-24 NotZed <NotZed@HelixCode.com>
* gnome-print-meta.c (locate_page_header): Fix for uninitlialized
variable access.
2000-02-22 Morten Welinder <terra@diku.dk>
* parseAFM.c (parseFileFree): Fixed embarrasing bogus linked list
code.
* gnome-font.c (gnome_font_load_afm): Use parseFileFree to get rid
of fi. (Plugs a couple of leaks.)
* gnome-print-meta.c (close_page_header): Avoid unaligned access
as it will blow up on Sparc.
* gnome-print-meta.c (meta_close): Ditto.
2000-02-21 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-print.h: Move libart headers here.
2000-02-21 Lauris Kaplinski <lauris@ariman.ee>
* gnome-print.h, gnome-print.c (gnome_print_bpath,
gnome_print_vpath): New functions.
2000-02-11 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_setopacity): Implement and set the
opacity value.
* gnome-print.c (gnome_print_setopacity): Implement new method.
* gnome-print-ps.c (gnome_print_ps_setopacity): New method.
2000-02-02 Christopher James Lahey <clahey@helixcode.com>
* gnome-font.h, gnome-font.c (gnome_font_load_afm): Switched the
sign of the descender as people expect a descender below the line
to have a positive value.
(gnome_font_get_underline_position,
gnome_font_get_underline_thickness): Added underline information
to the set of information provided from the afm file.
(gnome_font_new_from_full_name, gnome_font_get_full_name): These
functions create a new font given a descriptor string and return a
descriptor string for a given font, respectively. The descriptor
is currently the font name followed by a space followed by the
size, though it may be expanded in the future. This should be a
way of predictably storing a reference to a font as a string in a
file.
2000-01-25 Christopher James Lahey <clahey@helixcode.com>
* gnome-print-multipage.h, gnome-print-multipage.c: Added a
multipage print context that puts multiple conceptual pages on a
single output page.
* gnome-font.h, gnome-font.c: Added descender information to
gnome-font. Queryable from gnome_font_get_descender or
gnome_font_get_ascender or from gtk_object_get with the "ascender"
or "descender" arguments which are doubles.
* Makefile.am: Added gnome-print-multipage.c and
gnome-print-multipage.h
2000-01-23 NotZed <notzed@zedzone.helixcode.com>
* gnome-print-master-preview.c (preview_canvas_button_press):
Removed modes no longer implemented.
(preview_zoom_in_cmd, preview_zoom_out_cmd): Do an immediate zoom,
rather than changing mode.
(preview_zoom_fit_cmd): Fits page to the window size.
(preview_zoom_fit_wide_cmd): Fits page width to the window size.
(preview_zoom_fit_tall_cmd): Fits page height to the window size.
(preview_canvas_key): Implements a keyboard interface.
(create_preview_canvas): Listen for key presses.
(stock_zoom_*): New, improved icons, from/in the style of EOG.
(create_preview_canvas): Force focus of canvas.
2000-01-21 Christopher James Lahey <clahey@helixcode.com>
* gnome-print-dialog.h: Fixed a typo.
* gnome-print-master.h, gnome-print-master.c
(gnome_print_master_new_from_dialog): Added this convience
function to automatically pull values from a GnomePrintDialog.
This should change as options are added to the GnomePrintDialog,
and thus this function should be used. Range must be pulled
manually since it's so application dependent.
2000-01-17 Michael Zucchi <zucchi@zedzone.mmc.com.au>
* gnome-font.c (find_best_x_font): #if 0'd out a block of
variables used by #if 0'd out blocks of code.
* gnome-print-copies.c (collate_toggled): const char ** -> char **
cast.
* gnome-print-dialog.c (gnome_print_dialog_get_printer): Fixed up
another silly cast.
* gnome-print-meta.c (encode_page_header): Fixed up a silly cast
(i think the result of some changes which were backed out).
(meta_close): Removed some unused variables.
(gnome_print_meta_access_buffer): Fixed a another silly (but more
serious) bug.
(encode_int): Fixed most warnings from autogenerated code ...
Changed to accept a PrintContext, and cast to PrintMeta itself.
2000-01-11 Michael Zucchi <zucchi@zedzone.mmc.com.au>
* Makefile.am (libgnomeprint_la_SOURCES): Added
gnome-print-master.c master-preview.c, dialog.c and copies.c
(libgnomeprintinc_HEADERS): Same, for .h files.
* gnome-print-dialogue.h: New dialogue, allows app to ask user
standard questiongs about printing.
* gnome-print-copies.[ch]: New widget, allows user to specify
print copies/collation using a standard interface.
2000-01-10 Michael Zucchi <zucchi@zedzone.mmc.com.au>
* gnome-print-master-preview.c (gnome_print_master_preview_new):
New widget, preview window.
* gnome-print-master.c: New object. Creates an object to maintain
a print job, preview or to printer.
2000-01-08 Michael Zucchi <zucchi@zedzone.mmc.com.au>
* gnome-print-meta.c (gnome_print_meta_finalize): Free private
data.
(check_room): Checks for room in the output buffer, and grows as
necessary.
(encode_block): Calls check_room() instead of growing itself.
(encode_int_header): Renamed from encode_int, encodes an int with
a fixed size.
(encode_int): New function, encodes an int, packing into less
bytes if it can (7 bits/byte). All opcodes encode in 1 byte now.
(encode_header): New function, encodes the file header. Now the
file header is stored in network byte order too.
(close_page_header): New function, backtracks to the last page
header and sets the size of the page.
(encode_page_header): New function, encodes a page header, after
closing off the last one.
(meta_showpage): Encodes a page header after every page.
(meta_close): Encodes a closing page header with the last page
(size=-1), after the META_CLOSE. And set the file size using
network byte order.
(gnome_print_meta_init): Allocate and initialise private data, and
setup initial page header.
(gnome_print_meta_new_from): Use decode_header to get the header
from the data stream.
(gnome_print_meta_access_buffer): Use current, rather than
buffer_size, current is the actual data size!! And set the
filesize network byte order.
(gnome_print_meta_get_copy): Likewise.
(decode_int_header): Renamed from decode_int, decodes a fixed
length int.
(decode_int): New function, decodes a variable lenght int.
(decode_image): Removed the do_output flag.
(decode_header): New function, decodes a header back into a
struct.
(decode_page_header): Same, for page headers.
(locate_page_header): New function, find the page header
corresponding to a given page number.
(do_render): Now is told how many pages to print. It prints all
pages in its data stream, until this page count is reached. Hence
removed the do_output logic, this also fixed a bug where
superfluous showpage's and other commands from earlier pages would
be output when trying to output a specific page.
(gnome_print_meta_render): Decoder header properly, and fix data
offsets.
(gnome_print_meta_render_page): Use locate_page_header() to find
the right page, and fix call to do_render appropriately.
(meta_close): Actually, dont save a page header here, it is not
required, do not set the page size either.
2000-01-04 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_gsave): Ref the font on gsave.
1999-10-30 Larry Ewing <lewing@gimp.org>
* gnome-font.c: add missing include of <gnome-xml/xmlmemory.h>.
1999-10-30 Larry Ewing <lewing@gimp.org>
* gnome-canvas-hacktext.c (art_drect_hacktext): use libart affine
funtions.
gnome_canvas_hacktext_init): ditto.
* gnome-print-preview.c (gpp_show): clean up the affine code to
use the libart functions where appropriate.
* gnome-font.c (xmlGetValue): xmlFree the values returned by
libxml.
1999-10-29 Morten Welinder <terra@diku.dk>
* gnome-canvas-hacktext.c (get_bounds_canvas): Don't use C++
comments. (Bug 3014.)
* gnome-printer-profile.c: Include alloca.h. (Bug 3040.)
1999-10-02 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gc_clear_bpath): Do not free an empty
bezier path.
1999-10-09 Morten Welinder <terra@diku.dk>
* gt1-namecontext.c (gt1_name_context_hash_func): Constify.
(gt1_name_context_hash_func_size): Constify.
(gt1_name_context_strdup): Constify.
(gt1_name_context_streq_size): Constify.
(gt1_name_context_strdup_size): Constify.
(gt1_name_context_intern): Constify.
(gt1_name_context_intern_size): Constify.
* gnome-text.c (font_list_tab, font_family_tab, font_tab): static.
* gnome-printer-profile.c (gnome_printer_load_profiles_from):
Constify.
(gnome_printer_load_profiles_from_dir): Constify.
(gnome_printer_create): Constify.
(gnome_printer_profile_get_printer): Constify.
* gnome-printer-dialog.c (label_at): Constify.
* gnome-print.c (gnome_print_setdash): Constify.
(gnome_print_concat): Constify.
(gnome_print_setmatrix): Constify.
(gnome_print_grayimage): Constify.
(gnome_print_rgbimage): Constify.
* gnome-print-preview.c (gc_set_dash): Constify.
(gpp_setdash): Constify.
(gpp_grayimage): Constify.
(gpp_rgbimage): Constify.
(gpp_image): Constify.
(gpp_concat): Constify.
(gpp_setmatrix): Constify.
* gnome-print-ps.c (gnome_print_ps_setdash): Constify.
(gnome_print_ps_concat): Constify.
(gnome_print_ps_setmatrix): Constify.
(gnome_print_ps_grayimage): Constify.
(gnome_print_ps_rgbimage): Constify.
(gnome_print_ps_image): Constify.
* gnome-print-meta.c (gnome_print_meta_render): Constify.
(gnome_print_meta_render_page): Constify.
(gnome_print_meta_pages): Constify.
(gnome_print_meta_render_from_object_page): Constify.
(gnome_print_meta_render_from_object): Constify.
(gnome_print_meta_new_from): Constify.
(encode_image): Constify.
(meta_grayimage): Constify.
(meta_rgbimage): Constify.
(meta_setmatrix): Constify.
(meta_concat): Constify.
(meta_setdash): Constify.
1999-10-09 Morten Welinder <terra@diku.dk>
* gnome-print-ps.c (gnome_print_ps_setfont_raw): Make a copy of
the fontname.
(gnome_print_ps_setfont): Ditto.
(gnome_print_ps_finalize): Free name copies.
* gnome-font.c (gnome_font_family_hash,
gnome_font_family_the_list): static.
(gnome_font_unsized_get_name): Constify.
(gnome_font_unsized_get_glyph_name): Constify.
(gnome_font_get_name): Constify.
(gnome_font_get_glyph_name): Constify.
(gnome_font_unsized_get_pfa): Constify.
(gnome_font_get_pfa): Constify.
(gnome_font_get_width): Constify.
(gnome_font_unsized_get_width): Constify.
(gnome_font_get_width_string): Constify.
(gnome_font_get_width_string_n): Constify.
(gnome_font_unsized_get_glyph): Constify.
(gnome_font_get_glyph): Constify.
(gnome_font_kern): Constify.
(gnome_font_unsized_kern): Constify.
(gnome_font_family_to_x_name): Static.
(gnome_font_x_name_to_family): Static.
* gnome-print.c (gnome_print_context_new_with_paper_size): Handle
failures without issuing warnings.
1999-10-08 Morten Welinder <terra@diku.dk>
* gnome-print-ps.c (gnome_print_ps_new): Handle failures such as
cannot write ps-file.
1999-10-08 Morten Welinder <terra@diku.dk>
* gnome-print-ps.h (struct _GnomePrintPs): New member
current_gnome_font.
* gnome-print-ps.c (gnome_print_ps_image): One static is enough.
(gnome_print_ps_show): Handle non-ascii characters.
(gnome_print_ps_setfont): Save the actual font.
(gnome_print_ps_finalize): Plug leak.
* gnome-text.c (gnome_text_intern_font): Static.
(gnome_text_intern_font_family): Static.
* gnome-print-pixbuf.c (gpix_class_init): Correct cast.
* gt1-parset1.c (tokenize_get): Use unsigned characters (since
isdigit and friends require that).
(tokenize_get_hex_byte): Ditto.
(parse_num): Ditto. Also use the right sign.
* gnome-print-preview.c (fetch_font): Constify.
1999-10-08 Jody Goldberg <jgoldberg@home.com>
* gnome-printer.h : Correct typo.
1999-09-25 Morten Welinder <terra@diku.dk>
* gnome-canvas-hacktext.c (art_drect_hacktext): Static.
(gnome_canvas_hacktext_point): Initialise dist.
(recalc_bounds): #if 0.
* gnome-canvas-hacktext.c (art_drect_hacktext): Use unsigned
characters.
(gnome_canvas_hacktext_point): Ditto.
(gnome_canvas_hacktext_render): Ditto.
1999-09-25 Miguel de Icaza <miguel@gnu.org>
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_point): Return
the proper value here (0.0 means "Point is inside me").
1999-09-24 Morten Welinder <terra@diku.dk>
* gnome-canvas-bpath.c (gnome_canvas_bpath_destroy): Plug leak.
* parseAFM.c (parseFile): Plug leak.
(parseFileFree): New function.
* gt1-parset1.c (gt1_unload_font): Call parseFileFree.
1999-09-23 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-print-meta.c: Add error checking for the condition of size
not have been set.
* gnome-print-preview.c (gpp_showpage): Drop the current affine
and the current path at showpage time
(gpp_show): Removed debugging messages.
1999-09-18 Morten Welinder <terra@diku.dk>
* gnome-printer-dialog.c (gnome_printer_widget_get_printer): Plug leak.
(set_profile): Plug leak.
* gt1-parset1.c (tokenize_free): New function.
(gt1_load_font): Plug leaks. Constify.
(tokenize_new, tokenize_new_from_mystring, read_int32_lsb,
tokenize_get, tokenize_get_hex_byte, tokenize_get_raw,
convert_glyph_code_to_begt1_path, array_new, parse_num,
gt1_dict_stack_lookup, get_stack_number, get_stack_dict,
get_stack_name, get_stack_file, get_stack_string, get_stack_array,
get_stack_bool, get_stack_proc, pscontext_new, charstring_decrypt,
print_glyph_code, get_subr_body, munch_font_info): Static.
(pscontext_free): New function.
(gt1_unload_font): New function.
(gt1_load_font): Plug file leak.
(free_munched_font_info): New function.
(internal_closefile): Plug leak.
* gnome-print-preview.c (kill_font): Unload the font.
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_init): Initialise
affine transformation.
(gnome_canvas_hacktext_destroy): Plug this leak again.
(gnome_canvas_hacktext_point): Always return a value.
1999-09-12 Michael Meeks <michael@nuclecu.unam.mx>
* gnome-print.c (gnome_print_context_close_file): Use opposite close &
NULL pointer.
1999-09-07 Morten Welinder <terra@diku.dk>
* gnome-print-preview.c (gpp_finalize): Plug leak.
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_destroy): Plug leak.
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_get_info): Prototype.
* gt1-parset1.c (gt1_load_font): Plug leaks.
(internal_eexec): Plug leak.
1999-09-03 Morten Welinder <terra@diku.dk>
* gnome-print-meta.c (decode_double): Constify. Ansify.
(decode_int): Ditto.
(decode_image): Constify.
(do_render): Ditto.
1999-09-03 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_finalize): Destroy instead of unref.
* gnome-font.c: Only invoke the XML loading functions on existing
files.
1999-09-02 Miguel de Icaza <miguel@gnu.org>
* gnome-print-meta.c (do_render): Removed warning.
* gnome-print-preview.c (gpp_finalize): Only destroy the hash
table if it was defined. Release the hash table here.
* gnome-print-meta.h: Added private field.
* gnome-print-meta.c (do_render): Modified to render only one page
if requested.
(gnome_print_meta_render_from_object_page): New api entry point.
(gnome_print_meta_render_page): New api entry point.
1999-08-31 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_stroke, gpp_strokepath, gpp_fill,
gpp_image, gpp_show, lazy_showpage_check): Added lazy showpage
support, so that the page is not hidden until the generation of
the next page starts. This is just to enable sample applications
to not have to use the job control interface unless they are big
applications.
1999-08-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-print-pixbuf.c (gpix_print_band): Use GnomePrintContext's
output device here instead of our own output device.
* gnome-print-ps.c (gnome_print_ps_new): Documented, added
paper_size argument
1999-08-26 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_image): Move source++ inside this
loop. This fixes gray images.
(gpp_image): tricky, very trikcy: Use the image anchor, first
flip the image, then apply both current affine and then the page affine.
1999-08-25 Miguel de Icaza <miguel@gnu.org>
* gnome-print-rgbp.c (gnome_print_rgbp_construct): Set the proper
proportion for dpi values.
* gnome-print-preview.c (gpp_show): The x and y should take into
account the pixels per unit of the canvas. Makes preview work
with zooming.
* gnome-print-rgbp.c: Use dpis instead of the hardcoded 1.0 value.
1999-08-20 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_grestore): Use glist correctly.
(gpp_show): Invert the angle as the canvas coordinate system is
inverted in this regard.
(gnome_print_preview_construct): Fix preconditionals.
Documented the GnomePrintPreview and GnomePrintPreviewJob APIs.
* gnome-print-rgbp.c: New file. Driver that uses the
gnome-print-preview driver to render to an RGB buffer.
* gnome-print-pixbuf.c: New file. Driver that dumps an RGB file,
a subclass of the gnome-print-rgbp.c
* gnome-canvas-hacktext.c (gnome_canvas_hacktext_req_repaint,
gnome_canvas_hacktext_render): The translation was being computed
using the projection of the x and y coordinates into account.
This makes text render properly, although I might have
missunderstood something.
1999-08-16 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c (gpp_show): get fonts and show working.
Something is wrong with the way I setup affines. Now I can see
:-). This is tomorrow's material.
(gnome_canvas_bpath_def_duplicate): New routine to duplicate a
GnomeCanvasBpathDef.
(gpp_gsave): Use above routine.
(gnome_print_preview_construct): Use
translate, not scale to setup the page translation.
Flip the page.
(gpp_image): Put the image from (0.0,0.0) to (1.0,1.0).
1999-08-15 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c: Changed all return values of zero to -1
to indicate an error condition.
(GraphicContext): move the bpath here as it is part of the context.
(gpp_gsave): Duplicate the bpath here; Duplicate base context
(gpp_restore): Pop context.
(gpp_concat): Create new context here as well.
1999-08-13 Miguel de Icaza <miguel@gnu.org>
* gnome-print-preview.c: New file. Implements a print-preview
context.
* gnome-print-ps.c: Made all internal functions static.
1999-08-08 Morten Welinder <terra@diku.dk>
* gnome-font.c (gnome_font_unsized_closest): Quiet.
(gnome_font_new_closest): Quiet.
(create_display_font): Plug leak.
1999-07-11 Miguel de Icaza <miguel@gnu.org>
* gnome-font.c (gnome_font_list): Use g_list_prepend instead of
g_list_append and reverse the result.
* Eliminate "b" flag from fopen, that is not supported by Spec
11whatever
1999-07-07 Miguel de Icaza <miguel@gnu.org>
* gnome-font.c (gnome_font_unsized_get_pfa): Added some inline api
docs.
1999-07-08 Havoc Pennington <hp@pobox.com>
* gnome-font.c (create_display_font): Don't warn if wpdf->gdk_font
== NULL, because that's allowed to happen.
1999-07-07 Jody Goldberg <jgoldberg@home.com>
* gnome-font.[ch] (gnome_font_get_width_string_n) : New function.
1999-07-05 Morten Welinder <terra@diku.dk>
* gnome-font.c (gnome_get_display_font): Don't pretend it is a
catastrophe if we don't have a font.
* gnome-text.c (gnome_text_layout_new): Constify.
* gnome-font.c (gnome_font_family_to_x_name): Constify.
(gnome_font_weight_to_string): Constify.
(gnome_font_x_name_to_family): Constify.
(string_to_gnome_font_weight): Constify.
(find_best_x_weight): Constify.
(find_best_x_font): Constify.
(create_display_font): Constify.
(getFontComponent): Constify.
(getFontFoundry): Constify.
(getFontFamily): Constify.
(getFontWeight): Constify.
(getGnomeFontWeight): Constify.
(getFontSlant): Constify.
(fontIsItalic): Constify.
(getFontSWidth): Constify.
(getFontAdStyle): Constify.
(getFontPixelSize): Constify.
(getFontPointSize): Constify.
(getFontResolutionX): Constify.
(getFontResolutionY): Constify.
(getFontSpace): Constify.
(getFontAverageWidth): Constify.
(getFontRegistry): Constify.
(getFontEncoding): Constify.
(setFontFoundry): Constify.
(setFontFamily): Constify.
(setFontWeight): Constify.
(setFontSlant): Constify.
(setFontSWidth): Constify.
(setFontAdStyle): Constify.
(setFontPixelSize): Constify.
(setFontPointSize): Constify.
(setFontResolutionX): Constify.
(setFontResolutionY): Constify.
(setFontSpace): Constify.
(setFontAverageWidth): Constify.
(setFontRegistry): Constify.
(setFontEncoding): Constify.
(setComponentReplace): Constify.
(initialize_hashes): Fix prototype: takes no arguments, not a
arbitrary list of arguments. This is C, not C++.
* gnome-font.h: #includes before C++ wrapping.
* gnome-font.c (xmlGetValue): Fix leak.
(gnome_font_load_afm): Fix huge leak.
(gnome_font_load_fontmap): Fix unbelievable leak.
(gnome_font_add_mapping): Constify.
(gnome_font_find): Constify.
(gnome_font_find_filename): Constify.
(gnome_font_is_afm_file): Fix incorrect usage of tolower.
(gnome_font_load_fontmap): Fix leak.
(create_display_font): Fix leak.
1999-06-26 Chris Lahey <clahey@umich.edu>
* gnome-font.c (debugmsg): Made debugging messages be printed only
if the GNOME_PRINT_DEBUG environment variable is set.
1999-06-18 Havoc Pennington <hp@pobox.com>
* gnome-print-ps.c (gnome_print_ps_setfont): Same problem as with
colors - didn't consider gsave/grestore.
1999-06-18 Havoc Pennington <hp@pobox.com>
* gnome-print-ps.c (gnome_print_ps_setrgbcolor): The last color
set is not necessarily the current color (gsave/grestore)
1999-05-26 Raja R Harinath <harinath@cs.umn.edu>
* Makefile.am (INCLUDES): Include $(top_srcdir).
1999-05-25 Miguel de Icaza <miguel@nuclecu.unam.mx>
* gnome-font.c, gnome-font.h, gnome-font-dialog.c,
gnome-font-dialog.h, gnome-print-meta.c, gnome-print-meta.h,
gnome-print-meta.c, gnome-print-ps.c, gnome-print-ps.h,
gnome-print.c, gnome-print.h, gnome-printer-dialog.c,
gnome-printer-dialog.h, gnome-printer-profile.c, gnome-text.c,
gnome-printer.c, gnome-printer.h : Use <libgnomeprint/*> headers
instead of "...".
|