Commit graph

2006 commits

Author SHA1 Message Date
Carl Worth
24da744d03 doc: SGML template churn 2006-06-09 23:59:24 -07:00
Carl Worth
999315cc0a Rename device_{x,y}_offset to {x,y}_device_offset for better consitency/grepability 2006-06-09 21:12:44 -07:00
Carl Worth
6f6bdb6663 Add REPLACED_BY macros to help porting to new set_fallback_resolution 2006-06-09 16:54:09 -07:00
Carl Worth
b2f274b3e8 New API: Replace cairo_{ps,pdf,svg}_set_dpi with new cairo_surface_set_fallback_resolution.
This just provides the mechanics for storing the value and removing the old
function calls. The new value is still not used anywhere (though nor where
the old values), so there should be no functional change (other than forcing
any programs calling the old API to be updated).
2006-06-09 16:52:17 -07:00
Carl Worth
a812b3c490 Ignore ft-text-vertical-layout binary 2006-06-09 15:37:50 -07:00
Jinghua Luo
ac20c80960 freetype: Ignore global advance unconditionally.
Global advance exists for historical reasons. Nowadays, most of fonts
support unicode, means it's no guaranteed to every glyphs in the font
has the same advance.Sometimes it maybe is biger/smaller then the global
advance even for monospace fonts!So forcing their advance to global
advance, it's obviously wrong.
2006-06-09 07:06:51 +08:00
Carl Worth
d3c782320a Rename ft-text-vertical-layout reference image according to standard convention.
The standard convention is that the ARGB32 reference image has no
-argb32- component in its name (no real important reason, just
historical). So let's be consist and rename:
test/ft-text-vertical-layout-argb32-ref.png -> test/ft-text-vertical-layout-ref.png
2006-06-07 17:38:09 -07:00
Carl Worth
b7b3d05d78 Fix bug in get-group-target (in the test itself) letting it now pass. 2006-06-07 14:00:15 -07:00
Jinghua Luo
45ca22e5e1 Make image-*-ref.png image as reference image. 2006-06-08 04:06:30 +08:00
Jinghua Luo
5ae2a78a29 freetype: Fix for test case ft-text-vertial-layout.
Fix scaled font metrics and glyph metrics calculation for vertical
layout. Test case ft-text-vertial-layout passes now.
2006-06-08 03:45:38 +08:00
Jinghua Luo
6b5be506ed Add ft-text-vertical-layout test case for vertical layout. 2006-06-08 03:33:38 +08:00
Jinghua Luo
bb66d15a79 Merge branch 'master' of git+ssh://jinghua@git.cairographics.org/git/cairo 2006-06-08 02:38:17 +08:00
Jinghua Luo
3594fd2d27 glitz: Don't hardcode content type when initializing cairo surface
since we can compute it from glitz format.
2006-06-08 02:35:42 +08:00
Carl Worth
b7c7d2e57c Add new test get-group-target (currently failing with paginated).
This test exercises the combination of cairo_get_group_target along
with cairo_surface_get_device_offset. Something funny is currently
going on with the surfaces based on the paginated surface.
2006-06-07 10:37:29 -07:00
Carl Worth
53bf2f8d5d Remove debugging "prints" of images from test/device-offset.c 2006-06-07 10:29:33 -07:00
Zakharov Mikhail
32c0e85d45 pixman: fix compilation on HP-UX 11.11 2006-06-07 09:42:48 -07:00
Carl Worth
3690eeb44c Change all instances of UINT16_MAX to INT16_MAX to avoid new bug.
A recent renaming from CAIRO_MAXSHORT also changed the range of some
values from INT16_MAX to UINT16_MAX. The test suite shows one case
where this introduces a bug, (push/pop_group with SVG and RGB24
surfaces).

I haven't tracked the bug down, (presumably there's overflow of the
unsigned value at some point), but I'm now reverting this to avoid
triggering the bug.
2006-06-07 02:59:51 -07:00
Carl Worth
7f2cf378d5 Fix MAX vs. MIN bug introduced with rename away from CAIRO_MINSHORT 2006-06-07 02:56:45 -07:00
Carl Worth
bf458c9c67 win32: Add conditional definitions for INT16_{MIN,MAX} and UINT16_MAX now that we use them. 2006-06-06 17:06:57 -07:00
Carl Worth
c1855f1762 Remove CAIRO_{MIN,MAX}SHORT which did not distinguish signed vs. unsigned.
Instead, use the standard INT16_{MIN,MAX} and UINT16_{MIN,MAX} as
appropriate.
2006-06-06 16:59:59 -07:00
Carl Worth
746f66c3fc Fix bogus cairo_rectangle_fixed_t to be cairo_rectangle_int16_t.
This rectangle has regular integer values, not fixed-point values.
So the old name was horribly wrong and misleading, (and yes I think
it was even I that had suggested it).
2006-06-06 16:54:03 -07:00
Carl Worth
5570bf0a9e CODING_STYLE: Fix misspellings. 2006-06-06 16:36:24 -07:00
Carl Worth
a21a2e935d CODING_STYLE: Add notes on avoiding trailing whitespace. 2006-06-06 16:28:15 -07:00
Carl Worth
ef10a0403a Remove initial, final, and duplicate blank lines.
This patch was produced by running git-stripspace on all *.[ch] files
within cairo. Note that this script would have also created all the changes
from the previous commits to remove trailing whitespace.
2006-06-06 15:50:33 -07:00
Carl Worth
5278de0997 Remove all remaining trailing whitespace.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e 's/[ \t]+$//'

run on all *.[ch] files within cairo.

Note that the above script would have also created all the changes
from the previous commits to remove trailing whitespace.
2006-06-06 15:41:31 -07:00
Carl Worth
00592e0757 Remove trailing whitespace from lines with a single brace.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e '/^[ \t]*[{}][ \t]*/ s/[ \t]+$//'

run on all *.[ch] files within cairo.
2006-06-06 15:38:58 -07:00
Carl Worth
4670366ede Remove trailing whitespace from lines that look like comments.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e '/^[ \t]*\/?\*/ s/[ \t]+$//'

run on all *.[ch] files within cairo, (though I manually excluded
src/cairo-atsui-font.c which has a code line that appears as a comment
to this script).
2006-06-06 15:35:48 -07:00
Carl Worth
80b8deb1e4 Remove extraneous whitespace from "blank" lines.
This patch was produced with the following (GNU) sed script:

	sed -i -r -e 's/^[ \t]+$//'

run on all *.[ch] files within cairo.
2006-06-06 15:25:49 -07:00
Carl Worth
28d47d332a Move rectangle functions to new cairo-rectangle.c 2006-06-05 14:25:22 -07:00
Carl Worth
3d9dc96d18 New API: Add cairo_image_surface_get_{data,format,stride} 2006-06-05 14:25:21 -07:00
Jeff Muizelaar
0c49666231 Only destroy scaled glyphs if they are not in the cache.
Previously, when scaled_glyph_init failed we would destroy the scaled glyph in
CLEANUP. However, this causes trouble later because there is still a reference
to the glyph in the cache. This remaining reference causes a number of bad things,
including a double destruction when the cache is destroyed.
2006-05-29 18:50:32 -04:00
Kristian Høgsberg
bafdded8ee Remove cairo_public from _cairo_lzw_compress() definition. 2006-05-28 13:39:34 -04:00
Kristian Høgsberg
84c6f87963 Clarify licensing of float formatting code. 2006-05-28 13:38:50 -04:00
Christian Biesinger
79c86b04a7 Add "html" Makefile target to run make-html.pl 2006-05-28 16:50:54 +02:00
Christian Biesinger
508d0955fb Distribute make-html.pl 2006-05-27 15:00:49 +02:00
Christian Biesinger
f072d4ed66 Add missing reference images to EXTRA_DIST 2006-05-25 21:21:31 +02:00
Christian Biesinger
0b63baba6e Make BeOS compile again
..by passing the cairo_content_t to _cairo_surface_init
2006-05-25 17:29:01 +02:00
Carl Worth
22232be759 Note the changed semantics of cairo_surface_set_device_offset
Specifically, device offsets now affect using the offset surface in
a source pattern as well as drawing to the surface. This behavior
os also verified with a new test case: test/device-offset.c
2006-05-24 17:24:52 -07:00
Carl Worth
d0dd3b822e New API: Add new function cairo_surface_get_content
This assumes that the directfb, glitz, and quartz backends
always create surfaces with content of COLOR_ALPHA which might
be totally wrong.
2006-05-24 17:19:00 -07:00
Carl Worth
0796845ae6 Add new fallback-resolution test for bug in cairo_pdf_surface_set_dpi 2006-05-24 14:03:49 -07:00
Carl Worth
11b2481862 PDF: Add new, private test function: cairo_pdf_test_force_fallbacks 2006-05-24 14:02:30 -07:00
Carl Worth
65b9217cad cairo-xlib-test: Rename cairo_test_xlib function prefix to cairo_xlib_test 2006-05-24 11:37:05 -07:00
Carl Worth
5acce60291 Typo fixes 2006-05-24 10:35:24 -07:00
Carl Worth
a5a72676bd ROADMAP: Note that the cairo_set_line_width issue is resolved 2006-05-23 13:41:44 -07:00
Carl Worth
e4476dda49 PDF: Move dash operator before path construction operators.
I don't recall anything about this in the PDF reference, (though I
also didn't look specifically for it), but without this acroread
is quite unhappy with cairo's PDF output when it includes dashing.
2006-05-23 13:41:00 -07:00
Carl Worth
59885c6a12 Clarify the documentation for cairo_set_dash
Note that dash length units are evaluated in the user space
at the time of the stroke operation, (not the user space at
the time of cairo_set_dash).
2006-05-23 12:13:20 -07:00
Carl Worth
68b41cfd06 PDF: Share path callbacks for fill and stroke. 2006-05-23 12:13:20 -07:00
Carl Worth
7e5bef2439 PDF: Rename pdf_stroke_t to pdf_path_into_t for future sharing with fill 2006-05-23 12:13:20 -07:00
Carl Worth
1b1b59a4a9 New test: dash-scale
Tests interactions of cairo_set_dash and cairo_scale, (in particular with a
non-uniformly scaled pen).
2006-05-23 12:13:20 -07:00
Carl Worth
0755a619a1 SVG: Fix for line-width-scale
Use the same approach as the PDF backend: emit the pen matrix as the
SVG transform for the stroke, and compensate by first transforming all path
coordinates by the ctm_inverse.
2006-05-23 12:13:19 -07:00