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
|
2009-12-13 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c: 1.8.0 -> 1.8.1.
* NEWS: add 1.8.1 entry.
* Rakefile: remove install/uninstall tasks.
* Rakefile: use hoe 2.3.2.
* Rakefile: resupport FORCE_PLATFORM.
2009-03-27 Kouhei Sutou <kou@clear-code.com>
* pkg-config.rb: add license term.
2009-03-02 Kouhei Sutou <kou@cozmixng.org>
* pkg-config.rb (PackageConfig#guess_default_path): add
/usr/X11/lib/pkgconfig/.
2008-11-01 Kouhei Sutou <kou@cozmixng.org>
* extconf.rb, src/rb_cairo_surface.c: check ruby/io.h availability.
2008-09-26 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c: 1.7.1 -> 1.8.0.
* NEWS: add 1.8.0 entry.
* test/test_context.rb (ContextTest#test_font_face): remove
needless test.
* src/rb_cairo_font_face.c: don't define #set_cluster_flags.
* src/rb_cairo_context.c: support cairo 1.8.0.
2008-09-19 Kouhei Sutou <kou@cozmixng.org>
* src/, test/: support cairo 1.7.6.
2008-09-06 Kouhei Sutou <kou@cozmixng.org>
* README: add Yusue ENDOH to Thanks list.
* src/rb_cairo_context.c: re-support cairo 1.2.x.
Reported by Yusuke ENDOH. Thanks!!!
2008-08-17 Kouhei Sutou <kou@cozmixng.org>
* NEWS: fix a typo.
* test/.cvsignore: add.
* src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.7.0 -> 1.7.1.
* Rakefile: exclude .test-result.
* NEWS: add 1.7.0 entry. (cairo 1.7.4 is supported)
* src/, test/: add missing version checks.
* src/rb_cairo_font_face.c
(cr_user_font_face_text_to_glyphs_func): set num_glyphs to -1 if
callback isn't found.
* src/rb_cairo_private.c (rb_cairo__glyphs_from_ruby_object)
(rb_cairo__text_clusters_from_ruby_object): set -1 to *num_XXX
instead of 0.
* src/rb_cairo_text_extents.c: add Cairo::TextExtents#initialize
and setters.
* test/test_text_extents.rb: add.
* src/rb_cairo_font_extents.c: add Cairo::FontExtents#initialize
and setters.
* test/test_font_extents.rb: add.
* src/rb_cairo_font_face.c: add
Cairo::UserFontFace::TextToGlyphsData#need_backward?.
* test/test_text_to_glyphs_data.rb: add tests for
Cairo::UserFontFace::TextToGlyphsData.
* test/test_font_face.rb
(FontFaceTest#test_toy_font_face_new_with_invalid_family_name):
add a test for creating Cairo::ToyFontFace with invalid family
name.
(FontFaceTest#test_toy_font_face_new): add a test for creating
Cairo::ToyFontFace with nil family name.
* src/rb_cairo_font_face.c (cr_toy_font_face_initialize): accept nil.
* src/rb_cairo_context.c (cr_select_font_face): make family optional.
* test/test_context.rb
(ContextTest#test_select_font_face),
(ContextTest#test_select_font_face_with_invalid_family_name): add
a test for Cairo::Context#select_font_face.
2008-08-16 Kouhei Sutou <kou@cozmixng.org>
* test/test_pkg_config.rb (PkgConfigTest#test_requires_private):
work on my environment.
* src/lib/cairo.rb (Cairo.exit_application): add.
* src/rb_cairo_surface.c: use rb_cairo__invoke_callback().
* src/rb_cairo_private.c, src/rb_cairo_private.h
(rb_cairo__invoke_callback): use rb_protect() and exit if an
exception is raised in callback.
* src/rb_cairo_font_face.c: support Cairo::UserFontFace.
* src/rb_cairo_exception.c, src/rb_cairo_private.h
(rb_cairo__exception_to_status): add.
* src/rb_cairo_context.c (cr_show_text_glyphs): initialize variables.
* src/cairo.def, src/rb_cairo.h: add
rb_cCairo_UserFontFace_TextToGlyphsData.
* test/test_font_face.rb: add tests for user font.
* src/rb_cairo_private.[ch] (rb_cairo__text_clusters_from_ruby_object)
(rb_cairo__glyphs_from_ruby_object): add.
* test/test_context.rb (ContextTest#test_text_to_glyphs): add a
test for Cairo::Context#show_text_glyphs.
* src/rb_cairo_context.c: support Cairo::Context#show_text_glyphs.
* test/test_text_cluster.rb: add tests for Cairo::TextCluster.
* test/test_scaled_font.rb (ScaledFontTest#test_text_to_glyphs):
add a test for Cairo::ScaledFont#text_to_glyphs.
* src/rb_cairo.h, src/rb_cairo.c, src/cairo.def,
src/rb_cairo_text_cluster.c: add Cairo::TextCluster.
* src/rb_cairo_scaled_font.c: support
Cairo::ScaledFont#text_to_glyphs.
* src/rb_cairo_private.[ch] (rb_cairo__glyphs_to_ruby_object),
(rb_cairo__text_clusters_to_ruby_object): add.
* src/rb_cairo_context.c: support
Cairo::Context#have_show_text_glyphs?.
* test/test_context.rb (ContextTest#test_have_show_text_glyphs):
add a test for Cairo::Context#have_show_text_glyphs?.
2008-08-14 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_scaled_font.c: support Cairo::ScaledFont#scale_matrix.
* test/test_scaled_font.rb: add.
* src/rb_cairo_matrix.c (cr_matrix_equal): add Cairo::Matrix#==.
* src/rb_cairo_surface.c: support Cairo::Surface#fallback_resolution.
* test/test_surface.rb (SurfaceTest#test_fallback_resolution): add
a test for Cairo::Surface#fallback_resolution.
* test/test_context.rb (ContextTest#test_font_face): add a test
for Cairo::Context#font_face{,=}.
* src/rb_cairo_private.[ch] (rb_cairo__inspect): add.
* test/test_font_face.rb: add.
* src/rb_cairo_font_face.c: support Cairo::ToyFontFace.
* src/cairo.def, src/rb_cairo.h: add rb_cCairo_ToyFontFace and
rb_cCairo_UserFontFace.
2008-08-13 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/constants.rb (Cairo::LCD_FILTER_*): define.
* src/rb_cairo.h (RVAL2CRLCDFILTER,
rb_cairo_lcd_filter_from_ruby_object): add.
* src/cairo.def (rb_cairo_lcd_filter_from_ruby_object): add.
* src/rb_cairo_font_options.c (Cairo::FontOptions#lcd_filter,
Cairo::FontOptions#lcd_filter=): add.
* test/test_font_options.rb: add.
* src/rb_cairo.h, src/cairo.def, src/rb_cairo_constants.c
(Cairo::LCDFilter): add.
* test/test_constants.rb: add.
* src/rb_cairo_exception.c: support new statuses appeared since
cairo 1.7.2.
* src/rb_cairo.c (Cairo.satisfied_version?): add.
* test/test_exception.rb: add.
* test/cairo-test-utils.rb: add.
* test/run-test.rb: use Test::Unit 2.x.
* test-unit: imported Test::Unit 2.x.
2008-08-11 Kouhei Sutou <kou@cozmixng.org>
* test/test_context.rb: add.
* test/run-test.rb: don't use at_exit test runner because rcairo
uses at_exit based GC guard mechanism.
* src/rb_cairo_context.c: free all alive Cairo::Context before
stop GC like Cairo::Surface.
* src/rb_cairo_private.[ch]: abstract explicit free before stop GC
used by Cairo::Surface.
* src/rb_cairo_surface.c: use abstracted explicit free before stop
GC.
2008-08-06 Kouhei Sutou <kou@cozmixng.org>
* README: update sample scripts dependency description.
Suggested by Davide Rambaldi.
* README: add a Davide Rambaldi's entry.
2008-08-02 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c: handle unknown surface type as
Cairo::Surface.
* src/rb_cairo_surface.c: add Cairo::Surface#destroy.
* README: update Paul van Tilburg's entry.
* extconf.rb: check ruby/st.h availability.
Suggested by Paul van Tilburg.
* src/rb_cairo_surface.c: use HAVE_RUBY_ST_H.
2008-07-29 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c: export Cairo::Context#destroy.
2008-07-21 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (cr_set_source_generic): accept surface
without width and height.
2008-07-19 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c: 1.6.3 -> 1.7.0.
* NEWS: add a new entry for 1.6.3.
* src/rb_cairo.c: 1.7.0 -> 1.6.3.
2008-06-20 Kouhei Sutou <kou@cozmixng.org>
* README: update OBATA Akio's entry.
* src/depend (install-so): use INSTALL_DATA and RUBYARCHDIR.
Suggested by OBATA Akio. Thanks!!!
* pkg-config.rb: add libdata.
* pkg-config.rb:
- add /opt/local/lib/pkgconfig as default path.
- improve default path guess.
Suggested by Carsten Bormann. Thanks!!!
* README: add Carsten Bormann to thanks list. Thanks!!!
* test/test_surface.rb: add.
* src/rb_cairo_surface.c (yield_and_finish): don't finish if it
isn't needed.
* src/rb_cairo_surface.c: finish all guarded surfaces at end.
2008-06-19 Kouhei Sutou <kou@cozmixng.org>
* src/: use #ifdef for CAIRO_HAS_*.
* src/rb_cairo_surface.c: guard custom write surfaces from GC to
avoid writing in GC.
Reported by James Healy. Thanks!!!
* README: add James Healy to Thanks list.
* pkg-config.rb (PackageConfig#guess_default_path): add
/usr/share/pkgconfig to default path.
Suggested by James Healy. Thanks!!!
2008-06-14 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c: 1.6.2 -> 1.7.0.
* Rakefile: don't clean on release target to keep generated document.
* src/rb_cairo_surface.c: rename OpenFile before include rubyio.h.
* NEWS: add an entry for 1.6.2.
* pkg-config.rb: work with ruby 1.9.
* src/rb_cairo.c: 1.7.0 -> 1.6.2.
2008-06-13 Kouhei Sutou <kou@cozmixng.org>
* pkg-config.rb: add PREFIX/lib64/pkgconfig to default path list.
2008-06-12 Kouhei Sutou <kou@cozmixng.org>
* extconf.rb: include <ruby.h>.
* src/rb_cairo_private.h: add fallback RARRAY_PTR and RARRAY_LEN.
* src/rb_cairo_context.c, src/rb_cairo_pattern.c: use RARRAY_PTR
and RARRAY_LEN.
2008-04-30 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.h: move environment dependent headers to ...
* src/rb_cairo_surface.c: ... here.
guard T_DATA macro for old Mac OS X environment.
* extconf.rb: check enum ruby_value_type availability that is
defined in Ruby 1.9 with RUBY_T_DATA.
* pkg-config.rb (PackageConfig#guess_default_path): handle DL exception.
2008-04-26 Kouhei Sutou <kou@cozmixng.org>
* Rakefile: fix document dependency.
2008-04-24 Kouhei Sutou <kou@cozmixng.org>
* extconf.rb: don't substitute prefixed gcc.
* Rakefile: include libruby-cairo.a into gem for mswin32.
* index.html: update information for Windows users.
* src/rb_cairo.c: 1.6.1 -> 1.7.0.
* test/test_pkg_config.rb: update expected result.
* NEWS: update.
* Rakefile: fix platform detection.
* src/rb_cairo.c: 1.7.0 -> 1.6.1.
* Rakefile, src/lib/cairo.rb: support gem for mswin32.
* README (Windows): add.
* Rakefile: don't require 'cairo' if needless.
* pkg-config.rb (PackageConfig#guess_default_path): ignore
require 'dl/import' error.
* pkg-config.rb (PackageConfig#guess_default_path): support
PKG_CONFIG_LIBDIR.
Suggested by OBATA Akio. Thanks!!!
2008-04-16 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c: fix unbelievable typos.
Reported by kimura wataru. Thanks!!!
* README: update an entry for kimura wataru.
2008-04-11 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c: 1.6.0 -> 1.7.0.
* dist.sh: include documents.
* Rakefile:
- follow the recent Hoe's changes.
- fix dependencies.
* src/rb_cairo_surface.c: implemented Cairo::PSSurface#eps?.
* samples/png.rb: use convenience notation.
* samples/pac.rb, samples/pac2.rb: use Cairo::Paper.
* src/rb_cairo_surface.c: don't change paper's unit.
* src/lib/cairo/papers.rb: add landscape papers.
* test/test_paper.rb, src/lib/cairo/paper.rb: support name parsing.
* src/lib/cairo/paper.rb: improve unit handling.
* src/rb_cairo.c:
- BINDINGS_VERSION: 1.5.2 -> 1.6.0.
- support <= 1.6.0.
* NEWS: update.
* src/lib/cairo/papers.rb: fix unit.
* src/cairo.def, src/rb_cairo.c, src/rb_cairo.h, src/lib/cairo.rb,
src/rb_cairo_surface.c: Cairo::PSSurface.new,
Cairo::PDFSurface.new, Cairo::SVGSurface.new,
Cairo::PSSurface#set_size and Cairo::PDFSurface#set_size accept
paper description that can be parsed by Cairo::Paper.parse as page
size.
* src/lib/cairo/paper.rb, test/test_paper.rb: use pt as default unit.
* src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c: add
CRSURFACE2RVAL_WITH_DESTROY() and
rb_cairo_surface_to_ruby_object_with_destroy().
* src/rb_cairo_surface.c (cr_surface_create_similar): fix memory leak.
2008-04-09 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/paper.rb, test/test_paper.rb: improve parser.
* src/lib/cairo/paper.rb, src/lib/cairo/papers.rb,
test/test_paper.rb: add.
2008-04-04 Kouhei Sutou <kou@cozmixng.org>
* extconf.rb: cleanup libruby-cairo.a.
* extconf.rb: support building with Wine + MinGW on my Linux
environment.
* extconf.rb: use search path for nmake.
* extconf.rb: add the same directory of extconf.rb to load path.
* extconf.rb: fix IMPLIB path.
* src/rb_cairo_constants.c: define dummy
rb_cairo_ps_level_from_ruby_object() just for creating cairo.lib.
* extconf.rb: substitute DLLIB not TARGET.
* pkg-config.rb: fix substitution for MSVC.
* extconf.rb: support output option for MSVC.
* src/rb_cairo_path.c: remove garbages.
* extconf.rb: fix object file extension substitution.
* pkg-config.rb: detect MSVC environment.
* pkg-config.rb: handle DL error.
2008-04-03 Kouhei Sutou <kou@cozmixng.org>
* pkg-config.rb, test/test_pkg_config.rb: support
--with-override-variables extconf.rb option.
2008-04-01 Kouhei Sutou <kou@cozmixng.org>
* samples/text2.rb: don't use block variable assignment.
* src/depend (install-so): use -run instead of ftools.
2008-03-26 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c: added missing HAVE_RUBY_COCOA check.
Thanks to OBATA Akio!!!
* README: added OBATA Akio to the thanks list.
2008-03-25 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (cr_initialize): fixed style.
2008-03-04 Kouhei Sutou <kou@cozmixng.org>
* pkg-config.rb: supported building with ruby 1.9.1.
2008-03-01 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c, src/cairo.def: Cairo::QuartzImageSurface
will work.
* src/rb_cairo_surface.c: supported <= 1.5.12.
* pkg-config.rb: searched default path too.
2008-02-24 Kouhei Sutou <kou@cozmixng.org>
* pkg-config.rb: implemented --cflags-only-I.
* test/: added.
* src/rb_cairo_surface.c: worked with cairo >= 1.2.0.
* src/rb_cairo_context.c: fixed declaration position.
* extconf.rb: RUBY_ -> RB_.
* pkg-config.rb: implemented pkg-config for cross compiling with Wine.
2008-02-21 Kouhei Sutou <kou@cozmixng.org>
* src/cairo.def, src/rb_cairo.h, src/rb_cairo_surface.c:
Cairo::Win32PrintingSurface will work.
* src/: supported <= 1.5.10.
2008-01-18 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c: used rbobj_to_nsobj() and
ocid_to_rbobj() instead of rbobj_get_ocid() and ocobj_s_new().
Suggested by kimura wataru. Thanks!!!
* README: added kimura wataru to Thanks list.
* src/rb_cairo_surface.c: fixed # of arguments for
Cairo::Surface#mark_dirty.
* src/rb_cairo_surface.c: improved argument error message.
* extconf.rb: detected RubyCocoa.
2008-01-11 Kouhei Sutou <kou@cozmixng.org>
* Rakefile: added docs task dependencies.
* dist.sh: updated update host.
* src/rb_cairo.c: 1.5.1 -> 1.5.2.
* src/: Cairo::WIN32Surface -> Cairo::Win32Surface.
* NEWS: added an entry for 1.5.1.
* extconf.rb: added Quartz backend check for -framework RubyCocoa.
* src/rb_cairo.h:
- RUBY_XXX -> RB_XXX.
- added extern "C" {}.
- added rb_cCairo_QuartzSurface.
* src/cairo.def: rb_cCairo_QuartzSurface.
* src/rb_cairo_surface.c: supported Quartz backend.
2007-12-29 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (cr_set_source_surface): fixed wrong type
conversion.
Reported by Binzo. Thanks!!!
* README: updated Binzo entry in Thanks list.
2007-12-28 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (cr_pop_group): fixed a memory leak bug.
Reported by Binzo. Thanks!!!
* README: added Binzo to Thanks list.
2007-06-14 Kouhei Sutou <kou@cozmixng.org>
* extconf.rb, src/rb_cairo_surface.c, src/rb_cairo_private.h: used
rb_errinfo() and RSTRING_LEN() if available for supporting ruby
1.9. Thanks to Paul van Tilburg!!!
* README: added Paul van Tilburg to Thanks list.
2007-06-14 Paul van Tilburg <paulvt@debian.org>
* extconf.rb: used String#each_line instead of String#each for
supporting ruby 1.9.
2007-06-03 Kouhei Sutou <kou@cozmixng.org>
* samples/agg/aa_test.rb: fixed wrong operation.
2007-05-29 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/context/path.rb: fixed typos.
Thanks to NANKI Haruo!!!
* README: added an entry for NANKI Haruo.
2007-05-28 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/context.rb, src/lib/cairo/context/triangle.rb:
added a convenience method.
* samples/agg/aa_test.rb: implemented random shapes test.
2007-05-27 Kouhei Sutou <kou@cozmixng.org>
* samples/agg/aa_test.rb: ported from AGG's example.
* README: added some links for documentation.
* src/rb_cairo.c: 1.5.0 -> 1.5.1.
* Rakefile: improved current release NEWS extraction.
* NEWS: updated.
* Rakefile: supported document update.
* src/depend (install-so): used install-so instead of install.
* src/rb_cairo_font_options.c (Cairo::FontOptions#merge): renamed
to merge! because the method is destructive.
* src/lib/cairo.rb (Cairo::FontOptions#merge): added
non-destructive version.
2007-05-23 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo.rb (Cairo.normalize_const_name): treated "." as
ignore character.
* src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.6.0 -> 1.5.0.
2007-05-22 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_pattern.c (cr_radial_pattern_get_radial_circles):
returned [[x0, y0, r0], [x1, y1, r1]] instead of [x0, y0, r0, x1,
y1, r1].
* src/rb_cairo_path.c: used super.
* src/rb_cairo_path.c (Cairo::PathMoveTo, Cairo::PathLineTo,
Cairo::PathCurveTo, Cairo::PathClosePath): defined each path data
type as class.
2007-05-21 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_matrix.c (Cairo::Matrix#transform_distance): fixed
a typo.
* src/rb_cairo_matrix.c: added accessors.
* src/rb_cairo_surface.c: supported 64bit platform. Thanks to
Yoshinao Muramatsu!
2007-05-20 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c (cr_win32_surface_initialize): fixed a
typo. Thanks to Yoshinao Muramatsu!
* src/rb_cairo_font_face.c, src/lib/cairo/constants.rb: followed
up the previous commit.
* src/cairo.def, src/rb_cairo_pattern.c, src/rb_cairo_surface.c,
src/rb_cairo_font_face.c: removed needless methods XXX#type.
* src/rb_cairo.h, src/rb_cairo_pattern.c, src/rb_cairo_surface.c:
always detected surface and pattern type dynamically.
* src/rb_cairo_context.c: followed the above changes.
* src/rb_cairo.h, src/rb_cairo_surface.c: improved win32 surface
support. Thanks to Yoshinao Muramatsu!
* src/rb_cairo.h, src/cairo.def, src/rb_cairo_constants.rb:
added a module for each enum type.
* src/lib/cairo/constants.rb: kept the backward compatibility.
2007-05-19 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/context/circle.rb (Cairo::Context::Circle#circle):
renamed parameter name to be more self-descriptive.
* src/rb_cairo.h, src/cairo.def, src/rb_cairo_surface.c:
supported win32 surface. Thanks to Yoshinao Muramatsu!!!
* README: added an entry for Yoshinao Muramatsu.
2007-05-18 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_private.[ch] (rb_cairo__glyphs_to_array,
RB_CAIRO__GLYPHS_TO_ARRAY): fixed wrong memory allocation.
* src/rb_cairo_context.c, src/rb_cairo_scaled_font.c: used
RB_CAIRO__GLYPHS_TO_ARRAY instead of rb_cairo__glyphs_to_array().
* src/rb_cairo_context.c (cr_set_dash):
- made offset optional.
- accepted a number for dash_array.
2007-05-15 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (cr_get_group_target): added NULL check.
* src/rb_cairo_context.c (cr_get_font_face): checked status of got
font face not context.
* src/rb_cairo_context.c (cr_set_font_face): accepted nil as font
face.
* src/rb_cairo_context.c (cr_copy_path, cr_copy_path_flat):
checked status of copied path not context.
2007-05-10 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c (cr_surface_create_similar): retrieved
corresponding Ruby class by cairo_surface_get_type().
2007-05-06 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_path.c, src/lib/cairo.rb, src/lib/cairo/path.rb:
added path related methods such as move_to, line_to and curve_to
to Cairo::Path.
* src/lib/cairo/context/path.rb
(Cairo::Context::Path#transform_path): multi-thread safe.
2007-05-03 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_path.c
(Cairo::PathData#move_to?, Cairo::PathData#line_to?,
Cairo::PathData#curve_to?, Cairo::PathData#close_path?): added.
* src/rb_cairo_private.h
(CBOOL2RVAL, RVAL2CBOOL): added.
(rb_cairo__is_kind_of): added.
* src/*.c: used rb_cairo__is_kind_of() instead of
RTEST(rb_obj_is_kind_of(...)).
* src/rb_cairo_path.c
(Cairo::Path#size, Cairo::Path#length, Cairo::Path#empty?): added.
(Cairo::Path#[]): supported negative index.
* src/rb_cairo_path.c (Cairo::PathData#each): added.
* src/rb_cairo.h, src/rb_cairo_path.c: added Cairo::Point and
Cairo::PathData.
* src/lib/cairo/point.rb (Cairo::Point#distance): moved from
Cairo::Context::Path::Point.
* src/lib/cairo/context/path.rb (Cairo::Context::Path::Point):
removed.
* src/lib/cairo.rb, src/lib/cairo/context/path.rb: used Cairo::Point.
2007-05-01 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_pattern.c
(cr_gradient_pattern_get_color_stop_color): cleanup.
* src/rb_cairo.[ch]: exported Cairo::Color and Cairo::Color::Base.
* src/lib/cairo.rb: require cairo/color before cairo.so to export
Cairo::Color to cairo.so.
* src/rb_cairo_pattern.c: implemented src/lib/cairo/pattern.rb
methods in C.
* src/lib/cairo/pattern.rb: removed.
* src/lib/cairo.rb: removed cairo/pattern.
* src/rb_cairo_private.[ch] (rb_cairo__const_get,
Init_cairo_private): added.
* src/rb_cairo.c: moved Init_* declarations to rb_cairo_private.h.
* src/rb_cairo_constants.c: supported abbrev notation for constant
name. We can write just like
context.antialias = :none
instead of
context.antialias = Cairo::ANTIALIAS_NONE
* src/lib/cairo.rb (Cairo.normalize_const_name): added.
* src/lib/cairo/color.rb: used Cairo.normalize_const_name.
2007-04-30 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/context.rb, src/lib/cairo/context/quad.rb: moved
quadratic Bézier curve support to ...
* src/rb_cairo_context.c: ... here.
* src/lib/cairo/context/path.rb
(Cairo::Context::Path#map_path_onto): fixed a boundary value bug.
2007-04-19 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c (Cairo::Context#stroke,
Cairo::Context#fill, Cairo::Context#clip): accept 'preserve' option
to change XXX and XXX_preserve.
* src/lib/cairo/context.rb (Cairo::Context#stroke_preserve,
Cairo::Context#fill_preserve, Cairo::Context#clip_preserve): moved
from src/rb_cairo_context.c.
2007-04-18 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/color.rb (Cairo::Color.parse):
- supported :hsv and :hsva.
- added robust parse mode.
* samples/blur.rb: used convenience interface of Cairo::ImageSurface.new.
* src/lib/cairo/color.rb: supported HSV.
2007-04-16 Kouhei Sutou <kou@cozmixng.org>
* src/lib/cairo/color.rb, src/lib/cairo/pattern.rb,
src/lib/cairo/context/color.rb, src/rb_cairo_pattern.c: improved
Cairo::Color interface.
* sample/: used Cairo::Color.
* src/lib/cairo/color.rb: added validation.
* misc/update-colors.rb: supported X11 color names.
* src/lib/cairo/colors.rb: updated.
* misc/update-colors.rb: added colors.rb generator that extracts
popular colors from Wikipedia:List_of_colors page.
* src/lib/cairo/colors.rb: added popular colors generated by
updated-colors.rb.
* src/lib/cairo/color.rb: added high-level color class including
CMYK support.
* src/rb_cairo_pattern.c, src/lib/cairo.rb,
src/lib/cairo/context.rb, src/lib/cairo/pattern.rb: supported
Cairo::Color.
2007-04-15 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_context.c
(cr_push_group): added error handling.
(cr_pop_group_to_source): updated source class.
* src/lib/cairo/context.rb, src/lib/cairo/context/blur.rb: added
Cairo::Context#pseudo_blur.
* samples/blur.rb: added a sample script for Cairo::Context#pseudo_blur.
* src/rb_cairo_context.c
(cr_pop_group): returned pattern.
(cr_push_group): returned popped pattern if not pop_to_source.
2007-04-13 Kouhei Sutou <kou@cozmixng.org>
* Rakefile: supported 'rake release'.
* extconf.rb, Rakefile: supported RubyGems.
2007-04-08 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo_surface.c (yield_and_finish):
- renamed from ensure_finish_proc().
- don't use ensure.
* src/rb_cairo_surface.c (ensure_finish_proc): supported
Cairo::Surface.new with block. If block is exited, a surface is
finished automatically.
* sample/*.rb: followed the above change.
2007-03-10 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.4.1 -> 1.6.0.
2007-03-10 Kouhei Sutou <kou@cozmixng.org>
* NEWS: added 1.4.1 entry.
* pkg-config.rb: re-added.
* src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.6.0 -> 1.4.1 for
releasing 1.4.1.
2007-03-06 Kouhei Sutou <kou@cozmixng.org>
* src/rb_cairo.c (Cairo::BINDINGS_VERSION): 1.4.0 -> 1.6.0.
* dist.sh: added release script.
* NEWS: added 1.4.0 entry.
* src/rb_cairo_context.c (cr_get_scaled_font): checked cairo
version.
* setup.rb: removed dependency on setup.rb. used Ruby-GNOME2
style.
* extconf.rb: moved from packages/cairo/ext/.
* packages/cairo/ext: move to ...
* src/: ... here.
* packages/cairo/lib: move to ...
* src/lib: ... here.
* README, samples/: followed the changes.
2007-03-03 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: supported cairo 1.3.16.
* packages/cairo/ext/rb_cairo.h: cleanup.
* packages/cairo/ext/rb_cairo_scaled_font.c
(rb_cairo_scaled_font_to_ruby_object): fixed a conversion bug.
* packages/cairo/ext/rb_cairo_constants.c
(Cairo::SURFACE_TYPE_OS2): added.
2007-02-25 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb: supported Ruby-GNOME2 GUI Installer
for Win32.
Thanks to Masao Mutoh!
2007-02-04 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_surface.c: the first argument of
Cairo::ImageSurface#initialize, cairo_format_t, is optional.
* samples/*.rb: followed the change.
2007-01-21 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: supported cairo 1.3.12.
2007-01-08 Kouhei Sutou <kou@cozmixng.org>
* samples/text2.rb (render_layout): used
Pango::LayoutIter#line_extents and Pango::LayoutIter#line_yrange.
2007-01-02 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: cached Ruby object for
source.
2007-01-01 Kouhei Sutou <kou@cozmixng.org>
* samples/text2.rb: used Pango::LayoutIter.
2006-12-30 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_pattern.c: Cairo::GradientPattern#[]
-> Cairo::GradientPattern#get_color_stop.
2006-12-29 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: keep reference of Ruby
object for the surface in the context.
* packages/cairo/ext/rb_cairo_surface.c:
- use file output functions provided by cairo.
- hold output target reference in surface.
2006-12-28 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.c (Cairo::BINDINGS_VERSION):
1.2.0 -> 1.4.0.
2006-12-22 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c,
packages/cairo/ext/rb_cairo_surface.c,
packages/cairo/ext/rb_cairo_pattern.c,
packages/cairo/ext/rb_cairo_exception.c,
packages/cairo/ext/rb_cairo_constants.c,
packages/cairo/ext/rb_cairo_pattern.c,
packages/cairo/ext/rb_cairo_private.h: supported cairo 1.3.8.
2006-12-19 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_pattern.c:
- moved Cairo::SurfacePattern#{extend,filter}{,=} to
Cairo::Pattern. I can't remember why I defined them in
Cairo::SurfacePattern...
- defined Cairo::Pattern#__extend__ as alias of Object#extend to
avoid discarding.
2006-12-15 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo/context/path.rb: ported Pango's
cairotwisted example as library.
* samples/text-on-path.rb: ported Pango's cairotwisted example by
using the library.
2006-11-27 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.h (CAIRO_CHECK_VERSION): added.
* packages/cairo/ext/rb_cairo_surface.c: moved #write_to_png to
Cairo::Surface from Cairo::ImageSurface.
2006-11-09 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb, packages/cairo/lib/cairo/context/,
packages/cairo/lib/cairo/context.rb: split Cairo::Context
extensions with each file under packages/cairo/lib/cairo/context/
directory.
2006-10-25 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c (cr_clip)
(cr_clip_preserve): supported block.
2006-10-22 NANKI Haruo <nanki@dotswitch.net>
* packages/cairo/ext/rb_cairo_path.c (cr_path_each): fixed
a conversion bug.
2006-10-20 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c (cr_select_font_face):
made slang and weight arguments of Cairo::Context#select_font_face
optional.
* samples/text2.rb: added --fade-out option.
2006-10-15 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.c (Cairo::BINDINGS_VERSION): moved
from ...
* packages/cairo/lib/cairo.rb: ... here.
* packages/cairo/lib/cairo.rb: moved Cairo.__add_one_arg_setter
call to ...
* packages/cairo/ext/rb_cairo.c, packages/cairo/ext/rb_cairo.h,
packages/cairo/ext/rb_cairo_context.c,
packages/cairo/ext/rb_cairo_font_options.c,
packages/cairo/ext/rb_cairo_glyph.c,
packages/cairo/ext/rb_cairo_matrix.c,
packages/cairo/ext/rb_cairo_pattern.c,
packages/cairo/ext/rb_cairo_surface.c: ... here.
2006-10-15 Mathieu Blondel <mathieu@mblondel.org>
* packages/cairo/lib/cairo.rb (Cairo::Context#quad_to,
Cairo::Context#rel_quad_to): followed the current API:
get_point -> current_point.
2006-07-11 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_constants.c: added a check whether
SVG surface is available or not.
2006-07-01 Kouhei Sutou <kou@cozmixng.org>
* NEWS: added 1.2.0 entry.
2006-07-01 Kouhei Sutou <kou@cozmixng.org>
* README: supported only 1.2.0 or higher.
* packages/cairo/ext/extconf.rb: ditto.
* packages/cairo/ext/cairo.def: added
rb_cairo_svg_version_from_ruby_object().
* packages/cairo/ext/rb_cairo.c (Init_cairo): initialize constants
before other modules.
* packages/cairo/ext/rb_cairo.h:
- include all available header files.
- supported cairo_svg_version_t.
* packages/cairo/ext/rb_cairo_constants.c: supported
cairo_svg_surface_t.
* packages/cairo/ext/rb_cairo_surface.c: supported missing
functions in cairo-ps.h, cairo-pdf.h and cairo-svg.h.
* packages/cairo/lib/cairo.rb
(Cairo::SVGSurface.versions_as_string): added convenience method.
2006-06-27 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_surface.c: use cairo_surface_type_t
for Ruby <-> C surface conversion.
* packages/cairo/ext/rb_cairo_context.c (cr_push_group): changed
default arguments handling to
push_group(content=nil, pop_to_source=true)
from
push_group(content=nil, pop_to_source=false)
* packages/cairo/ext/rb_cairo.c: fixed Cairo::VERSION.
2006-06-25 Kouhei Sutou <kou@cozmixng.org>
* README, packages/cairo/ext/extconf.rb: supported only 1.1.10 or
higher.
* packages/cairo/ext/rb_cairo_constants.c: supported
CAIRO_FORMAT_RGB16_565.
* packages/cairo/ext/rb_cairo_surface.c:
- supported cairo_surface_get_content(),
cairo_surface_set_fallback_resolution(),
cairo_image_surface_get_data(),
cairo_image_surface_get_format() and
cairo_image_surface_get_stride().
- removed cairo_ps_surface_set_dpi(),
cairo_pdf_surface_set_dpi() and cairo_svg_surface_set_dpi()
support.
* samples/png.rb: added Cairo::ImageSurface#data sample.
2006-06-01 Kouhei Sutou <kou@cozmixng.org>
* samples/text2.rb: added an example that output PS/PDF/SVG for
input text.
2006-05-31 Kouhei Sutou <kou@cozmixng.org>
* README, packages/cairo/ext/extconf.rb: supported only 1.1.6 or
higher.
* packages/cairo/ext/rb_cairo_context.c: supported
cairo_push_group(), cairo_push_group_with_content(),
cairo_pop_group(), cairo_pop_group_to_source() and
cairo_get_group_target().
* packages/cairo/ext/rb_cairo_exception.c: supported
CAIRO_STATUS_INVALID_DSC_COMMENT.
* packages/cairo/ext/rb_cairo_surface.c: supported
cairo_surface_get_device_offset().
2006-05-11 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb: fixed typo.
2006-05-02 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.c (Cairo::MINOR_VERSION): fixed
cairo_version() decoding bug.
* README, packages/cairo/ext/extconf.rb: supported only 1.1.2 or
higher.
* packages/cairo/ext/rb_cairo_surface.c: supported
cairo_surface_get_type().
* packages/cairo/ext/rb_cairo_scaled_font.c: supported
cairo_scaled_font_get_type(), cairo_scaled_font_text_extents(),
cairo_scaled_font_get_font_face(),
cairo_scaled_font_get_font_matrix(),
cairo_scaled_font_get_ctm() and
cairo_scaled_Font_get_font_options().
* packages/cairo/ext/rb_cairo_pattern.c: supported
cairo_pattern_get_type().
* packages/cairo/ext/rb_cairo_font_face.c: supported
cairo_font_face_get_type().
* packages/cairo/ext/rb_cairo_context.c: supported
cairo_new_sub_path() and cr_set_scaled_font().
* packages/cairo/ext/rb_cairo_constants.c: supported new enums.
- cairo_font_type_t
- cairo_surface_type_t
- cairo_pattern_type_t
- CAIRO_EXTEND_PAD
2006-05-01 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_surface.c: supported
Cairo::SVGSurface.
* samples/scalable.rb:
- created by merging ps.rb, ps2.rb, pdf.rb and pdf2.rb.
- added Cairo::SVGSurface example.
* samples/ps.rb, samples/ps2.rb, samples/pdf.rb, samples/pdf2.rb:
merged into scalable.rb.
* samples/pac.rb, samples/pac2.rb: added Cairo::SVGSurface
example.
2005-12-18 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb (Cairo::Context#rounded_rectangle):
processed h and height same as the one of
Cairo::Context#rectangle.
* samples/pac1.rb, samples/pac2.rb: followed the above change.
2005-10-18 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_surface.c: Not compile cr_closure
functions if PS/PDF surface isn't supported.
* samples/pac.rb: Use Cairo::Context#fill_preserve.
* samples/pac2.rb: ditto.
2005-10-17 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb
(Cairo::Context#rounded_rectangle, Cairo::Context#circle):
Added convenience methods.
* samples/pac.rb: Port PDF::Writer sample.
* samples/pac2.rb: ditto.
* packages/cairo/ext/rb_cairo_context.c: Fixed wrong number of
argument of Cairo::Context#identity_matrix.
2005-10-16 Ilmari Heikkinen <kig@misfiring.net>
* packages/cairo/ext/rb_cairo_context.c (cr_get_font_options):
Fixed segmentation fault. Use cairo_font_options_create().
* packages/cairo/ext/rb_cairo_surface.c
(cr_surface_get_font_options): ditto.
* packages/cairo/ext/rb_cairo_constants.c: Fixed
typo. ANTIALIAS_NONO -> ANTIALIAS_NONE.
2005-10-16 Kouhei Sutou <kou@cozmixng.org>
* NEWS: Added release 1.0.0.
2005-10-15 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: Use StringValuePtr
instead of STR2CSTR.
* packages/cairo/ext/rb_cairo_surface.c: Supported PS/PDF surface.
* samples/ps.rb, samples/ps2.rb: Added PS surface sample.
* samples/pdf.rb, samples/pdf2.rb: Added PDF surface sample.
2005-10-13 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_surface.c: Fixed a SEGV bug caused
by Ruby's GC.
(cr_image_surface_create_from_png_generic): Fixed a memory leak
bug.
* packages/cairo/ext/rb_cairo_pattern.c: Added
Cairo::GradientPattern#add_color_stop_rgb and
Cairo::GradientPattern#add_color_stop for convenience.
2005-10-12 Kouhei Sutou <kou@cozmixng.org>
* samples/png.rb: Use Cairo::Context#set_source_rgb instead of
Cairo::Context#set_source.
* packages/cairo/ext/rb_cairo_context.c (cr_set_source_rgb):
Re-implemented for backward compatibility.
* samples/png.rb: Use Cairo::Context#set_source_rgba instead of
Cairo::Context#set_source.
* packages/cairo/ext/rb_cairo_surface.c
(cr_image_surface_create_from_png_generic): Set class of the
surface.
* packages/cairo/ext/rb_cairo_context.c (cr_set_source_generic):
Fixed wrong variable name.
2005-10-11 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: Provided
Cairo::Context#set_soruce_rgba.
(cr_arc_negative, cr_arc): cx -> xc and cy -> yc.
* packages/cairo/ext: Extracted Ruby object -> enum type codes.
* packages/cairo/ext/rb_cairo_pattern.c
(cr_gradient_pattern_add_color_stop_rgba): Renamed from
cr_gradient_pattern_add_color_stop.
2005-10-10 Øyvind Kolås <pippin@gimp.org>
* packages/cairo/ext/rb_cairo_pattern.c:
(cr_gradient_pattern_add_color_stop): Make the code work when not
passing the color as an array as well.
2005-10-11 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.c: Added cairo version info.
* packages/cairo/lib/cairo.rb: Added bindings version info as
1.0.0-beta.
* samples/canvas: Removed.
* packages/cairo/ext/: Added CVS keywords.
* packages/cairo/ext/rb_cairo_context.c: Renamed 'xform'.
* packages/cairo/ext/rb_cairo_font_face.c: ditto.
* packages/cairo/ext/rb_cairo_glyph.c: ditto.
* packages/cairo/ext/rb_cairo_matrix.c: ditto.
* packages/cairo/ext/rb_cairo_private.c: Changed prefix to
'rb_cairo__' from 'cr__'.
* packages/cairo/ext/rb_cairo_matrix.c: ditto.
* packages/cairo/ext/rb_cairo_context.c: ditto.
* packages/cairo/ext/rb_cairo_private.h: ditto.
* packages/cairo/ext/rb_cairo_glyph.c:
- Use Cairo::Glyph#initialize instead of Cairo::Glyph.new.
- Added Cairo::Glyph#to_s.
* packages/cairo/ext/rb_cairo_font_extents.c:
- Removed Cairo::FontExtents.new.
- Added Cairo::FontExtents#to_s.
* packages/cairo/ext/rb_cairo_text_extents.c:
- Removed Cairo::TextExtents.new.
- Added Cairo::TextExtents#to_s.
2005-10-10 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_constants.c: Supported all constants.
* packages/cairo/ext/rb_cairo_matrix.c: Added a utility method.
* packages/cairo/lib/cairo.rb: Remove deprecated API.
* packages/cairo/ext/rb_cairo_matrix.c: Tidied cairo_matrix_t.
* packages/cairo/lib/cairo.rb: ditto.
2005-10-09 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c,
packages/cairo/ext/rb_cairo_matrix.c: Moved duplicated
functions to ...
* packages/cairo/ext/rb_cairo_private.h: ... here.
* packages/cairo/ext/rb_cairo_private.c: ditto.
* packages/cairo/ext/rb_cairo_scaled_font.c: Implemented
cairo_scaled_font_t.
* packages/cairo/ext/cairo.def: ditto.
* packages/cairo/ext/rb_cairo.c: ditto.
* packages/cairo/ext/rb_cairo.h: ditto.
* packages/cairo/lib/cairo.rb: Removed deprecated wrapper API.
* packages/cairo/ext/rb_cairo_surface.c:
- Implemented File I/O API by Ruby.
- SurfaceXXX -> XXXSurface.
* packages/cairo/ext/rb_cairo_exception.c: Tidied exceptions.
* packages/cairo/ext/cairo.def: ditto.
* packages/cairo/ext/rb_cairo.h: ditto.
* packages/cairo/ext/rb_cairo_context.c: ditto.
* packages/cairo/ext/rb_cairo_font_options.c: ditto.
* packages/cairo/ext/rb_cairo_matrix.c: ditto.
* packages/cairo/ext/rb_cairo_pattern.c: ditto.
* packages/cairo/ext/rb_cairo_surface.c: ditto.
* packages/cairo/ext/rb_cairo_pattern.c: Implemented
cairo_pattern_t.
* packages/cairo/ext/rb_cairo.c: ditto.
* packages/cairo/ext/rb_cairo.h: ditto.
* packages/cairo/ext/cairo.def: ditto.
* packages/cairo/lib/cairo.rb: ditto.
* packages/cairo/ext/rb_cairo_context.c: Followed the avobe changes.
* packages/cairo/ext/rb_cairo_surface.c
(cr_surface_write_to_png): Don't use rb_need_block() for ruby <=
1.8.2.
2005-10-08 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo_context.c: Supported all API for
cairo_t.
* samples/png.rb: Followed the avobe changes.
* packages/cairo/ext/rb_cairo_path.c: Implemented cairo_path_t.
* packages/cairo/ext/rb_cairo.c: ditto.
* packages/cairo/ext/rb_cairo.h: ditto.
* packages/cairo/ext/cairo.def: ditto.
* packages/cairo/ext/rb_cairo_font_options.c: Fixed a typo.
* setup.rb: Added workaround for an error on Win32 platform.
Patch from Masao Mutoh <mutoh@highway.ne.jp>. Thanks!
* packages/cairo/ext/rb_cairo_font_options.c: Implemented
cairo_font_options_t.
* packages/cairo/ext/rb_cairo_surface.c: ditto.
* packages/cairo/ext/rb_cairo.c: ditto.
* packages/cairo/ext/rb_cairo.h: ditto.
* packages/cairo/ext/cairo.def: ditto.
* packages/cairo/lib/cairo.rb: ditto.
2005-10-07 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext: Added c-mode style configuration header for
Emacs.
* samples/png.rb: Use Cairo::SurfaceImage instead of
Cairo::Surface.
* packages/cairo/ext/rb_cairo_surface.c: Implemented
cairo_surface_t.
* packages/cairo/ext/rb_cairo_exception.c: Sorted "case" in the
order of declaration cairo_status_t in cairo.h.
2005-10-06 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/extconf.rb: Fixed Win32 platform problem.
Patch from Masao Mutoh <mutoh@highway.ne.jp>. Thanks!
2005-10-04 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/rb_cairo.h: Support Win32 platform.
* packages/cairo/ext/extconf.rb: ditto.
* packages/cairo/ext/cairo.def: Added.
* packages/cairo/ext/pkg-config.rb: Added. This file is from
Ruby/GLib.
2005-10-01 Kouhei Sutou <kou@cozmixng.org>
* setup.rb: update to 3.4.0.
2005-09-30 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/lib/cairo.rb: change indentation style to
style of ruby-mode.el.
* README: update dependencies.
* packages/gtkcairo, packages/svgcairo: remove.
* setup.rb: update to 3.3.1.
2005-09-29 Kouhei Sutou <kou@cozmixng.org>
* packages/cairo/ext/extconf.rb: check modversion.
* packages/svgcairo/ext/extconf.rb: ditto.
2005-09-13 Øyvind Kolås <pippin@gimp.org>
Patch from Kouhei Sutou
* packages/cairo/ext:
- add (or rename) internal (static) functions to 'cr_XXX' prefix.
- XXX_v -> rb_XXX
- get_XXX -> XXX
- remove needless RUBY_METHOD_FUNC cast.
- call rb_obj_call_init() in new method.
* packages/cairo/ext/rb_cairo_font_face.c
(rb_cairo_font_extents, rb_cairo_font_glyph_extents):
move to ...
* packages/cairo/ext/rb_cairo_context.c:
- ... here.
- add some status checks.
* packages/cairo/ext/rb_cairo_context.c,
packages/cairo/ext/rb_cairo.h:
- rb_cairo_{from,to}_ruby_object ->
rb_cairo_context_{from,to}_ruby_object
* packages/cairo/lib/cairo.rb: auto-generate XXX=.
(Cairo::Context#save: move to the C-side.
2005-09-10 Øyvind Kolås <pippin@gimp.org>
* AUTHORS: added Kouhei Sutou
2005-09-10 Øyvind Kolås <pippin@gimp.org>
Patch from Kouhei Sutou <kou@cozmixng.org>.
Hiding free functions, cleanup of ruby <-> C conversion functions.
- rename ruby <-> C convert functions name.
ruby -> C: rb_cairo_XXX_from_ruby_object().
C -> ruby: rb_cairo_XXX_to_ruby_object().
- provide ruby <-> C convert macros.
ruby -> C: RVAL2CRXXX()
C -> ruby: CRXXX2RVAL()
- _SELF use RVAL2CRXXX()
- rb_cairo_XXX_from_ruby_object() uses rb_obj_is_kind_of()
instead of 'CLASS_OF() !=3D rb_cCairo_XXX'.
- add 'static' or remove free functions.
2005-09-09 Øyvind Kolås <pippin@freedesktop.org>
Missed a couple of files when applying the previous patch.
* packages/cairo/ext/rb_cairo_font_extents.h: removed.
* packages/cairo/ext/post-install.rb: added.
2005-09-09 Øyvind Kolås <pippin@freedesktop.org>
Header cleanup patch from Kouhei Sutou <kou@cozmixng.org>.
* packages/cairo/ext/rb_cairo_*.h: removed. The
contents of packages/cairo/ext/rb_cairo_*.h are moved to
packages/cairo/ext/rb_cairo.h.
* packages/cairo/ext/rb_cairo_*.c: include rb_cairo.h instead of
rb_cairo_*.h, Init_*() declarations are moved ...
* packages/cairo/ext/rb_cairo.c: ... here.
2005-09-08 Øyvind Kolås <pippin@freedesktop.org>
Integrated patch from Kouhei Sutou <kou@cozmixng.org>.
* packages/cairo/ext/rb_cairo_exception.h:
* packages/cairo/ext/rb_cairo_exception.c:
(rb_cairo_raise_exception),
(Init_cairo_exception): Added new error types, made exception
retrieve the status string itself.
* packages/cairo/ext/rb_cairo_context.c:
(check_context_status): Simplified exception raising.
* packages/cairo/ext/rb_cairo_matrix.c:
(rb_cairo_matrix_copy): create a new matrix when copying.
(rb_cairo_matrix_invert): do status checking.
(Init_cairo_matrix): register invert! method.
2005-06-23 Øyvind Kolås <pippin@freedesktop.org>
API shakeup, watch out for falling parts.
* packages/cairo/ext/*.c: large changes, and regressions.
* packages/cairo/ext/rb_cairo_font.[ch]: removed
* packages/cairo/ext/rb_cairo_font_face.[ch]: added
* packages/cairo/lib/cairo.rb:
* samples/*.rb: removed
* samples/png.rb: initial test case for new API.
* README: fixed spelling error.
* AUTHORS: added Ilmari Heikkinen.
2005-03-21 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/ext/rb_cairo_context.c: Rename methods to eliminate
abbreviations (following changes in cairo.h):
cairo_concat_matrix -> cairo_transform
cairo_transform_point -> cairo_user_to_device
cairo_transform_distance -> cairo_user_to_device_distance
cairo_inverse_transform_point -> cairo_device_to_user
cairo_inverse_transform_distance-> cairo_device_to_user_distance
cairo_init_clip -> cairo_reset_clip
2005-03-20 Øyvind Kolås <pippin@freedesktop.org>
* README: reworked, borrowing ideas and style from pycairo README.
* COPYING,
* GPL,
* AUTHORS: added.
2005-03-17 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/ext/rb_cairo_exception.c: added WriteError and
SurfaceFinishedError.
* packages/cairo/ext/rb_cairo_surface.c:
added finish method.
fixed typo in define, that mistook define for PDF as PS.
* packages/cairo/ext/rb_cairo_*:
search and replace to use rb_cairo_exception_raise instead
of cairo_raise_exception
* samples/pdf.rb: removed
* samples/pdf-a4_grid.rb: added
2005-03-15 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/ext/rb_cairo_context.c:
* packages/cairo/lib/cairo.rb: Following API shakeup in cairo,
s/cairo_current_foo/cairo_get_foo/ .
2005-02-15 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/ext/rb_cairo.c: added initialization of pattern.
* packages/cairo/ext/rb_cairo_constants.c: added filter and extend
enums.
* packages/cairo/ext/rb_cairo_context.c: added pattern setting and
getting, rewrote current_matrix to use rb_cairo_matrix_wrap.
* packages/cairo/ext/rb_cairo_matrix.c: convenience function to
wrap a cairo_matrix_t.
* packages/cairo/ext/rb_cairo_pattern.c: added implementation for
surface and linear/radial gradients.
* packages/cairo/lib/cairo.rb: syntactic sugar for initializing
gradient patterns with blocks.
* samples/gradients.rb: sample showing the syntax of gradients.
2005-02-10 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/lib/cairo.rb: added optional 'handler' parameters to
Context::current_path and Context#current_path_flat.
patch from <mental@rydia.net>
2005-02-10 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/lib/cairo.rb: made save_internal private,
patch from <mental@rydia.net>
2005-02-10 Øyvind Kolås <pippin@freedesktop.org>
* packages/svgcairo/ext/rb_svgcairo.c: added error handling.
usage of a port for passing FILE stream to the parser.
* packages/svgcairo/ext/extconf.rb: added -W to the compile flags.
2005-02-10 Øyvind Kolås <pippin@freedesktop.org>
* packages/svgcairo/ext: added initial binding for libsvg-cairo,
without error checking, and good integration with the ruby file
handling.
005-02-09 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/lib/cairo.rb: Fixed naming of Transform class to be
Matrix.
2005-02-09 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/lib/cairo.rb: Added the ability for save to
take a block.
2005-02-07 Øyvind Kolås <pippin@freedesktop.org>
* splitted into seperate files for classes
* made use of _SELF macro for more direct access
* unified under a rb_ namespace
* added font handling and extents
2005-02-06 Øyvind Kolås <pippin@freedesktop.org>
* imported mental guys ruby binding to my local tree
* added ps and pdf surfaces
* reindented according to GNU coding style
* made stroke, fill, in_stroke, in_fill, fill_extents and
stroke_extents accept blocks that define the path, in spirit
of the previous binding.
* added show_text, text_path, select_font, scale_font and
transform_font
* made to work with gtkcairo
2005-02-06 Øyvind Kolås <pippin@freedesktop.org>
* packages/cairo/cairo.c: add new headers
* packages/cairo/gen-Cairo.c: remove unneeded hack to force
unit size on newly set font.
2004-11-19 Øyvind Kolås <pippin@freedesktop.org>
* packages/canvas/lib/canvas.rb Labal.width: access extents by atom
instead of string.
2004-11-19 Øyvind Kolås <pipipn@freedesktop.org>
* packages/cairo/ext/*.[ch]: reformatted code.
* packages/gtkcairo/ext/*.[ch]: reformatted code.
|