Commit graph

2473 commits

Author SHA1 Message Date
Carl Worth
a0ca4369ff Add boilerplate/README explaining its purpose 2006-08-30 22:33:53 -07:00
Carl Worth
5ef4c991f6 test: Add link to test log file in HTML output 2006-08-30 15:38:15 -07:00
Carl Worth
7f4e83ceeb Split libcairotest files out from test/ and into boilerplate/
The idea here is to setup boilerplate to allow code sharing between
test/ and the upcoming perf/
2006-08-30 15:34:27 -07:00
Behdad Esfahbod
a5f068e10d [test] Add 128 to any diff component such that differences are visible 2006-08-30 13:19:05 -04:00
Behdad Esfahbod
3252ad5ca6 [PNG] Mark status volatile to fix gcc warning 2006-08-28 22:44:15 -04:00
Behdad Esfahbod
b6e5f2b0fe [xlib] Bug 7593: rewrite loop to be more readable, and fix warnings
Basically, it's evil to write a loop like:

    while ((c -= 4) > 0) {
        ...
    }

for one reason that doesn't work if c is unsigned.  And when c is signed, if
for some reason c is about -MAXINT, then it will overflow and not work as
expected.

It's much safer (and more gcc warning friendly) to rewrite it as:

    unsigned int c;

    while (c >= 4) {
        ...
        c -= 4;
    }
2006-08-28 22:30:38 -04:00
Carl Worth
06a9628868 Eliminate conditions checking for unsigned or enum values less than 0. 2006-08-28 19:00:48 -07:00
Carl Worth
7d1399a4bb Put static first to avoid compiler warning. 2006-08-28 18:58:27 -07:00
Behdad Esfahbod
1b7ced6614 Bug #7593: Avoid unsigned loop control variable to eliminate infinite, memory-scribbling loop.
Behdad chased this bug down when looking into bug #7593. This
bug is what finally motivated us to figure out how to get -Wextra
(for the "always true" comparisons of unsigned variables against
negative values).
2006-08-28 18:57:14 -07:00
Carl Worth
50003615f2 Add -Wextra (as well as -Wno-missing-field-initializers -Wno-unused-parameter)
We'd been wanting some of the warnings in -Wextra for a long time,
but we had failed in tryingto squelch some of the undesired warnings.
We finally figured out how to do this correctly by simply ordering
the warnings correctly.
2006-08-28 18:55:02 -07:00
Behdad Esfahbod
5492946b0c [image] Print out cairo version in the unsupported-format message 2006-08-23 12:29:49 -04:00
Behdad Esfahbod
96c8f92883 [test] bufferdiff: take abs of the pixel diffs. Oops! 2006-08-22 22:00:58 -04:00
Behdad Esfahbod
988b5dcb7e [ROADMAP] Remove 1.2.4 stuff out of the way 2006-08-21 23:27:59 -04:00
Behdad Esfahbod
edf6f24e1b [TODO] Add cairo_get_scaled_font 2006-08-21 23:27:59 -04:00
Behdad Esfahbod
3d6aec7334 [ROADMAP] Add glyph cache inspection to 1.4 roadmap 2006-08-21 23:27:59 -04:00
Adrian Johnson
782e3eb65b Get correct unhinted outlines on win32.
The documentation for GetGlyphOutline() states that outline returned is grid
fitted and if an application requires an unmodified outline it can request an
outline for a font whose size is equal to the font's em unit.

This seems to suggest that the solution to this bug would be to obtain the
unmodified outline data and scale it to the required size.

https://bugs.freedesktop.org/show_bug.cgi?id=7603
2006-08-21 12:52:56 -04:00
Yevgen Muntyan
6de226be0e Define WINVER if it's not defined. (bug 6456) 2006-08-21 03:52:40 -04:00
Behdad Esfahbod
6ed1613b51 [Makefile.am] Remove unnecessary parantheses that were causing trouble with old bash
Reported by Tor Lillqvist
2006-08-20 13:44:56 -04:00
Carl Worth
047251db43 Increment version to 1.2.5 after making the 1.2.4 release 2006-08-18 18:30:31 -07:00
Carl Worth
54755b2d98 Remove stray ] that was breaking RELEASE_OR_PUBLISH and many make targets (release-publish, etc.) 2006-08-18 18:19:10 -07:00
Carl Worth
fadde879fb Update version to 1.2.4 and libtool version to 11:2:9. 2006-08-18 17:36:42 -07:00
Carl Worth
43a25b8187 NEWS: Add notes for the 1.2.4 release. 2006-08-18 17:35:33 -07:00
Carl Worth
790a359f89 EXTRA_DIST: Add missing source-clip-scale-svg-ref.png 2006-08-18 16:46:57 -07:00
Carl Worth
4f5bb53032 Ignore ChangeLog* in addition to ChangeLog 2006-08-18 16:35:58 -07:00
Carl Worth
2860af3ce2 bitmap-font: Add missing pdf-specific reference image 2006-08-18 16:35:27 -07:00
Carl Worth
b8b507c092 Use &image->base as appropriate to avoid warnings. 2006-08-18 16:12:43 -07:00
Carl Worth
5f94275a4b Update .gitignore due to recent rename. 2006-08-18 16:09:53 -07:00
Behdad Esfahbod
d04b8148c2 [TODO] Add some items from memory 2006-08-18 18:55:52 -04:00
Carl Worth
33b62f47a4 Move unscheduled features and bugs from ROADMAP to TODO 2006-08-18 15:08:58 -07:00
Carl Worth
d1be19e160 Add notes on reporting bugs to BUGS file and move bugs listed there to ROADMAP instead. 2006-08-18 15:02:24 -07:00
Carl Worth
76fca1898c EXTRA_DIST: Add several files to the tar file releases, (BUGS, CODING_STYLE, ROADMAP, etc. 2006-08-18 14:30:01 -07:00
Carl Worth
ab092a9a5d ROADMAP: Remove stray conflict marker 2006-08-18 14:25:53 -07:00
Carl Worth
328024cc25 ROADMAP: Punt the AIX -lpthread bug off of the 1.2.4 roadmap. 2006-08-18 14:24:41 -07:00
Carl Worth
3cf3d4343b Mark ft-text-vertical-layout tests as XFAIL since we'repunting these from the 1.2.4 release. 2006-08-18 14:23:31 -07:00
Behdad Esfahbod
ccdaaf7b95 [ROADMAP] Mark xlib detection problem as fixed 2006-08-18 17:18:34 -04:00
Behdad Esfahbod
0e78e71443 [configure] Check for x11 pkg-config module before using AC_PATH_XTRA
Fixes bug 7491.
2006-08-18 17:17:28 -04:00
Behdad Esfahbod
0c6c0a9e0b [configure] Use _NONPKGCONFIG_LIBS if no xrender pkg-config modele is found 2006-08-18 17:02:24 -04:00
Carl Worth
84a9ca1835 Rename ft-text-vertical-layout-truetype to ft-text-vertical-layout-type3 2006-08-18 13:08:59 -07:00
Behdad Esfahbod
aa2260cfbb [ROADMAP] Add using alloca 2006-08-18 15:49:38 -04:00
Behdad Esfahbod
9c2d9d590b [test] text-rotate: Update ref images to make image pass again
after the font_options change we made in the test suite a while back.
2006-08-18 12:04:16 -04:00
Carl Worth
861f1cb4f7 Merge branch 'jrmuizel-stroking-fixes' into cairo
Conflicts:

	test/dash-caps-joins-ps-argb32-ref.png
	test/degenerate-path-ps-argb32-ref.png
	test/degenerate-path.c
2006-08-18 07:59:20 -07:00
Carl Worth
c2d92d4397 ROADMAP: Mark the close path bug as fixed. 2006-08-18 06:32:43 -07:00
Carl Worth
c78c011017 Don't set current point to (0,0) in close_path.
The setting of current point to (0,0) is actually harmless, but it
definitely looks like a bug, (since after close_path the current point
is really the last move point).

We don't keep track of last move point here, nor do we even need to.
So we can be consistent with _cairo_path_fixed_close_path by not
adjusting current point at all, (the subsequent move_to coming right
behind the close_path will fix up the current point).
2006-08-18 06:32:12 -07:00
Carl Worth
53f74e59fa Fix close-path failure by adding explicit move_to after close_path.
Besides the bug fix, this is a user-visible change since the new
move_to element after the close_path element can be seen in the
results of cairo_copy_path, so we document that here.

We are also careful to fix up _cairo_path_fixed_line_to to defer to
_cairo_path_fixed_move_to to avoid letting the last_move_point state
get stale. This avoids introducing the second bug that is also tested
by the close-path test case.
2006-08-18 06:32:12 -07:00
Carl Worth
200a2d811e close-path: New test case to demonstrate corner case discovered by Tim Rowley
The bug shows up when doing cairo_copy_path_flat for a path that has
a curve_to immediately after a close_path. When the curve is flattened
the flattener is using (0,0) as the initial point rather than the proper
close_to point.

This test also serves to ensure a similar bug doesn't crop up when
closing a path that begins with an implicit move_to, (as from cairo_arc).
In that bug the path state may have no last-move-point and the path
is closed to (0,0). This bug is not present currently, but did appear
during the development of a fix for the bug above.
2006-08-18 06:32:11 -07:00
Behdad Esfahbod
8330f4dbd1 [ROADMAP] Mark Type1 on win32 as done 2006-08-17 22:12:21 -04:00
Behdad Esfahbod
64dd7a8203 [SVG] Make dependent on --enable-png (and increase cache-version to 2) 2006-08-17 22:10:27 -04:00
Behdad Esfahbod
6f8cf53b1e [test] Don't use signals if signal.h is not available 2006-08-17 22:03:36 -04:00
Behdad Esfahbod
474daa4493 [PNG] Include png.h after cairoint.h to avoid macro problems (bug 7744) 2006-08-17 22:03:36 -04:00
Adrian Johnson
da1019c913 Only use GGO_GLYPH_INDEX for truetype and opentype fonts on win32. 2006-08-17 21:46:38 -04:00