Commit graph

2085 commits

Author SHA1 Message Date
Kristian Høgsberg
b8231f8949 Add cairo-output-stream-private.h to libcairo_la_SOURCES.
We now pass distcheck again.
2006-06-15 22:07:17 -04:00
Carl Worth
abe1bfad8d Add missing breaks in switch statement.
Yes, I am an idiot.
2006-06-15 15:43:00 -07:00
Carl Worth
9fa24975b4 Drop _cairo_surface_is_opaque now that we have cairo_surface_get_content 2006-06-15 15:33:45 -07:00
Carl Worth
0ba040d7f6 Remove _cairo_image_surface_is_alpha_only in favor of just looking at content value. 2006-06-15 14:56:59 -07:00
Carl Worth
82496a6f7c _cairo_format_from_pixman_format: Add useful error mesage and assertion when failing. 2006-06-15 14:15:42 -07:00
Kristian Høgsberg
dedc51ba51 Only call close function for output streams if it's non-NULL. 2006-06-14 19:25:37 -04:00
Kristian Høgsberg
9ef99d10bb Add test case for the PDF, PS and SVG stream constructors. 2006-06-14 19:21:46 -04:00
Emmanuel Pacaud
8c8bcaf99b SVG: Update of reference images. 2006-06-14 21:09:16 +02:00
Kristian Høgsberg
2cea3a2710 Merge branch 'svg-rewrite' 2006-06-14 15:00:33 -04:00
Kristian Høgsberg
4932d09a06 Actually add src/cairo-output-stream-private.h. 2006-06-14 14:12:55 -04:00
Torsten Schönfeld
17ea755235 Add missing cairo_public tag for cairo_image_surface_get_stride 2006-06-14 11:09:00 -07:00
Carl Worth
1599ab8fa9 Increment CAIRO_VERSION to 1.1.9 after making the 1.1.8 snapshot 2006-06-14 10:41:29 -07:00
Carl Worth
dd859b8736 Update version to 1.1.8 and add notes to NEWS file.
Also update libtool version information to 9:0:7.
2006-06-14 08:14:43 -07:00
Carl Worth
65c9c072d2 Update refefence images due to pattern source shift.
The commit that introduced this change is:

commit b104a79502
Author: Bertram Felgenhauer <int-e@gmx.de>
Date:   Tue Jun 13 20:07:28 2006 -0400

    Patch to fix pixman samping location bug (#2488).
2006-06-14 06:40:36 -07:00
Carl Worth
4bdfff477a PS PDF: Update reference images due to truetype subsetting 2006-06-14 06:40:33 -07:00
Behdad Esfahbod
7e0be461b5 Rename cairo-wideint.h to cairo-wideint-private.h. 2006-06-14 05:06:10 -07:00
Behdad Esfahbod
b9cfe941c8 Add backend-specific pkg-config files. 2006-06-14 05:06:09 -07:00
Behdad Esfahbod
2249fb89ae Move cairo.pc into src/. 2006-06-14 05:05:30 -07:00
Carl Worth
e346eca138 Add zero-alpha reference image to Makefile.am for the sake of make dist 2006-06-14 04:58:54 -07:00
Bertram Felgenhauer
211741cce6 Bug 4723: configure.in: Fix m4 quoting when examining pkg-config version 2006-06-14 04:51:27 -07:00
Brian Cameron
b8e93f9c55 Bug 4882: Flag Sun's X server has having buggy_repeat.
This is the Sun labelling of Xorg 6.8 as shipped with Solaris 10.
2006-06-14 04:44:01 -07:00
Dom Lachowicz
32d049a7bf Bug 5306: test/pdf2png: Add missing include of stdio.h 2006-06-14 04:37:27 -07:00
Behdad Esfahbod
e9269aefcb Bug 7075: Fix make clean to remove cairo.def 2006-06-14 04:07:29 -07:00
Carl Worth
c8e7ff0966 ROADMAP: Update with PDF bugs from minefield test. Slip non-1.0 regressions off of 1.2. 2006-06-14 04:04:21 -07:00
Carl Worth
c515b15cfc ft: If glyph->format is not OUTLINE use _render_glyph_bitmap to coerce to a bitmap 2006-06-14 03:53:18 -07:00
Jinghua Luo
61a3260e44 ROADMAP: Mark bugs FC_ADVANCE and _transform_glyph_bitmap as fixed. 2006-06-14 15:57:23 +08:00
Jinghua Luo
0d2900477c freetype: Return an error if the glyph format isn't outline or bitmap
while getting glyph surface.
2006-06-14 15:56:17 +08:00
Bertram Felgenhauer
b104a79502 Patch to fix pixman samping location bug (#2488). 2006-06-13 20:10:59 -04:00
Carl Worth
0ee64b8468 Bug 4196: undef MIN an MAX before defining to avoid duplicate definition 2006-06-13 16:50:43 -07:00
Carl Worth
1b11d3830b test/zero-alpha: Drop REPS from 100 to 10 for a faster test.
Hopefully this still triggers the bug of interest. I think it should.
2006-06-13 16:42:06 -07:00
Carl Worth
2d269664f1 Add new zero-alpha test to demonstrate (X server?) bug found by Paul Giblock 2006-06-13 16:13:23 -07:00
Carl Worth
1d18af9f5a Merge branch 'type1-subsetting' into cairo
Conflicts:

	src/cairo-ps-surface.c
2006-06-13 15:51:57 -07:00
Carl Worth
c7b194c595 Merge branch 'truetype-subsetting' into cairo
Conflicts:

	src/Makefile.am
	src/cairo-font-subset.c
	src/cairo-pdf-surface.c
	src/cairo-ps-surface.c
2006-06-13 15:46:14 -07:00
Kristian Høgsberg
cdf07a9be8 Remove libxml2 checks from configure.in. 2006-06-13 17:45:55 -04:00
Kristian Høgsberg
ed60128bd0 Rewrite SVG backend to just use cairo output stream instead of libxml2. 2006-06-13 17:25:24 -04:00
Kristian Høgsberg
17d41d1f71 Only run fallback-resolution test case when all of PDF, PS and SVG are enabled. 2006-06-13 17:24:36 -04:00
Carl Worth
4b063c6072 PS, PDF: Re-organize handling of bitmapped fonts to avoid invalid output.
Previously, using the ps or pdf backend with a bitmapped font would
result in a coorupt output file, filled with uninitialized values and
missing procedures for drawing the glyphs.

Now, the file should actually be valid, but it's simply drawing black
boxes instead of the correct glyphs.
2006-06-13 12:51:16 -07:00
Carl Worth
d2045c1f74 Change return type of _cairo_scaled_glyph_lookup to allow UNSUPPORTED.
This allows graceful recovery when first requesting a path from a font
that only supports bitmapped glyph. The changed return type is also
pushed down into the scaled_glyph_init function of the
cairo_scaled_font backend.
2006-06-13 12:51:10 -07:00
Carl Worth
0e30fc4436 Add aliases for deprecated cairo_{pdf,ps,svg}_surface_set_dpi
The aliases should allow binaries with the old symbols to continue to run.

Meanwhile, the macros in cairo.h prevent any code from being compiled without
using the new, future-proof function names.

This is a temporary, transition strategy and the aliases will be dropped
before the next major release.
2006-06-12 09:01:06 -07:00
Carl Worth
7015cc0b90 Add cairo-ps-test.h and cairo-svg-test.h to Makefile.am 2006-06-12 09:01:06 -07:00
Kristian Høgsberg
8581447e7b Add an in-memory output-stream implementation. 2006-06-12 03:15:33 -04:00
Kristian Høgsberg
d433210660 Convert the word wrap stream, the base85 stream and the ps string stream. 2006-06-12 03:10:40 -04:00
Kristian Høgsberg
45cbe055d9 Convert the stdio output stream to use the new output stream interface. 2006-06-12 03:08:51 -04:00
Kristian Høgsberg
3575c942f8 Make cairo_output_stream_t an embeddable type.
Most internal cairo types are transparent within cairo and have init and fini
functions to intialize and finialize them in place.  This way they can be
easily be embedded in other structs or derived from.  Initially, the
cairo_output_stream_t type was proposed as a publically visible type and
thus kept opaque.  However, now it's only used internally and derived from
in a number of places so let's make it an embeddable type for consistency
and ease of use.

The patch keeps _cairo_output_stream_create() and _cairo_output_stream_close()
around for (internal) backwards compatibility by deriving a
cairo_output_stream_with_closure_t stream type.

The patch also moves all cairo_output_stream_t functions out of cairoint.h
and into new file cairo-output-stream-private.h, thus chipping away at the
monolithic cairoint.h.
2006-06-12 03:07:19 -04:00
Jinghua Luo
9d3443e86a xlib: bugfix for #7172.
When the glyph format does not match the font format, the glyph will
be rendered incorrectly. Setting the {x, y}_offset correctly when
converting glyph format fix that.
2006-06-12 14:18:25 +08:00
Emmanuel Pacaud
7992810135 SVG: Sets fallback resolution when compositing a meta surface.
For doing so, I've changed document owner to be the paginated surface,
instead of the svg surface like previously. That's because fallback
resolution is stored in paginated surface.
2006-06-11 21:07:34 +02:00
Jinghua Luo
7e1a01092c freetype: build fix for _transform_glyph_bitmap.
I sorry for this noise, I didn't notice cworth's device_{x, y}_offset
changes. Now cairo builds again.
paths...
2006-06-11 18:37:59 +08:00
Jinghua Luo
4af28e639d ignore FC_MATRIX in font pattern.
With previous commit, freetype font backend is able to transform
both bitmap and outline glyphs, so ignores FC_MATRIX from now,
cairo doesn't need this for artificial oblique. And cairo doesn't
use FC_MATRIX direct anyway, it has its own font matrix that may be not
equal to FC_MATRIX in the font pattern! You should pass the matrix
(usually the matrix is multiplied by font's pixel size) to cairo when
creating scaled font.
2006-06-11 18:16:46 +08:00
Jinghua Luo
f5bc26b75d freetype: rework _transform_glyph_bitmap.
This function is used to shape bitmap glyphs(outline glyphs are
transformed by freetype). That means freetype backend is able to
tranform both bitmap & outline glyphs now. This is needed for glyph
rotating, artificial oblique etc.
2006-06-11 18:09:05 +08:00
Carl Worth
da9cd55afb ROADMAP: Note that cairo_surface_set_fallback_resolution is in place now. 2006-06-10 16:31:05 -07:00