Commit graph

1642 commits

Author SHA1 Message Date
Carl Worth
748115a88d Add entries from API Shakeup. 2005-02-23 14:56:55 +00:00
Carl Worth
dcfb0d8a2b Switch from broken cworth@isi.edu address to canonical cworth@cworth.org address. 2005-02-22 11:35:03 +00:00
Carl Worth
604e333be2 Convert to utf-8 encoding. 2005-02-22 11:32:02 +00:00
Carl Worth
6b537f2466 Temporarily disable XCB backend by default. 2005-02-22 10:43:26 +00:00
Carl Worth
272df99aab Add only-just-better-than-ASCII-art diagram showing all macros used in locating sub-pixel sample rows/columns.
Add missing protective parentheses around macro parameter usage.
2005-02-21 13:29:22 +00:00
Carl Worth
6d70b286f5 Move definition of __inline for non-gcc from ic.c to icint.h so it applies to more code in the implementation. 2005-02-21 12:57:27 +00:00
Carl Worth
30a02c8e17 Revert accidental commit. 2005-02-21 08:22:47 +00:00
Carl Worth
c8a98b109a Fix y offset to use dst_y instead of dst_x, (caught by David Reveman). 2005-02-21 08:17:42 +00:00
Owen Taylor
81fd7e53e3 Fix line endings (reported by Hans Breuer) 2005-02-20 18:19:10 +00:00
Kristian Høgsberg
d106bb2f3c Patches from Mike Owens <etc@filespanker.com>:
Free rows if we fail early in this function.
Clean up path if we run out of memory.
2005-02-16 09:34:47 +00:00
Carl Worth
8c8ced2573 Added testsvg script 2005-02-15 15:07:25 +00:00
Kristian Høgsberg
9597c0b791 Initialize array element size correctly. 2005-02-13 20:36:28 +00:00
Kristian Høgsberg
0502a5a63c Patches from Owen Taylor:
Emit text as octal escapes, to avoid problems with \, \r, ), etc. (_cairo_pdf_document_write_fonts): Change /Flags to be 4 (symbolic), not 32 (non-symbolic), otherwise acroread gets confuse. (cairo_pdf_ft_font_write_cmap_table): Use a 1,0 cmap subtable, not a 0,0, to conform to the PDF spec.
2005-02-13 12:41:42 +00:00
Carl Worth
2cd01deb4d Use LC_NUMERIC=C so that decimal separator works in version checks. 2005-02-13 11:57:52 +00:00
Owen Taylor
d4ae84f397 Fix x2/x1 typo. 2005-02-12 18:23:04 +00:00
Carl Worth
f3f63f3924 Return all-zero extents if string is NULL. 2005-02-12 13:01:39 +00:00
Kristian Høgsberg
b33f37ff04 Make clipping fast path fast. When we have a clipping region set, intersect it against the drawing extents to determine the bounding box for the visible drawing. 2005-02-12 12:59:53 +00:00
Carl Worth
063ba1f51d Add bug for cairo_show_surface under non-default CTM. 2005-02-10 07:46:46 +00:00
Kristian Høgsberg
0c07ddf729 Argh, committed conflict marker in ChangeLog - fixed. 2005-02-07 10:15:46 +00:00
Kristian Høgsberg
7296349eaa New test case which exposes off-by-one rotation error in pixman. 2005-02-07 09:38:43 +00:00
Owen Taylor
67ffc273ef src/cairo_gstate.c src/cairo.c: Allow cairo_set_font (cr, NULL) to unset the current font and return the cairo_t to the the "use the font from cairo_select_font() state". 2005-02-06 15:07:17 +00:00
Owen Taylor
b93f42fae1 Return the right status. (Reported by Hans Breuer.) 2005-02-06 12:00:28 +00:00
Owen Taylor
991ac7bacc Add AC_PREREQ(2.54) to help the Debian auto-guess-which-configure-version hack. 2005-02-06 11:51:07 +00:00
Owen Taylor
092c5ca558 Free glyph_indices, not glyphs. (Reported by Hans Breuer.) 2005-02-05 21:42:47 +00:00
Carl Worth
eb01786729 Add message stating why glitz backend is disabled. 2005-02-05 17:17:19 +00:00
Owen Taylor
b0ee983a7d Don't free *glyphs when succeeding! (Reported by Øyvind Kolås)
Temporarily disable glitz by default.
2005-02-05 17:01:29 +00:00
Carl Worth
5707a69bfc Generate an error during make install if old cairo headers are found in includedir, (rather than includedir/cairo where the new ones are going). 2005-02-04 08:04:36 +00:00
Owen Taylor
56d84bb856 Fix missing cairo_ft_font_unlock_face().
Fix problem when no entry could be found.
2005-02-03 15:24:35 +00:00
Carl Worth
587dff8a71 Commit old change to ChangeLog that got missed before:
test/imagediff.c
Add new testsvg script and accompanying imagediff program, (for interim SVG-based test suites while we wait for the standard cairo test suite to mature).
Split buffer_diff out into its own file for the purpose of imagediff.
2005-02-03 06:19:51 +00:00
Owen Taylor
913e39b6ee src/cairo_font.c src/cairo.h doc/public/cairo-sections.txt: Add cairo_font_extents().
src/cairo_win32_font.c src/cairo-win32.h doc/public/cairo-sections.txt: Rename cairo_font_create_for_logfont() into cairo_font_create_for_logfontw() to make clear what it takes. Don't add cairo_font_create_for_logfonta() for now.
2005-02-02 23:14:55 +00:00
Owen Taylor
749a8c1e7b src/cairo_win32_font.c doc/public/cairo-sections.txt doc/public/Makefile.am: Add windows functions to the docs. 2005-02-02 19:52:22 +00:00
Owen Taylor
72a4420234 Add some functions to select the font into a device context with the intention to enable callers to use, e.g, Uniscribe.
Use 'hdc' not 'dc' for param/variable name.
Return immediately if height or width is 0.
2005-02-02 18:57:40 +00:00
Owen Taylor
199c41dafe Mostly-functioning Win32 font backend; no glyph paths yet.
Turn on building of the Win32 font backend.
src/cairo-win32-private.h src/Makefile.am: Private header for the Win32 backend.
src/cairo-win32-private.h src/cairo_win32_surface.c: Internally export _cairo_win32_print_gdi_error() for use in the font code.
src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_win32_surface_create_dib to create a DIB surface.
src/cairo-win32-private.h src/cairo_win32_surface.c: Add _cairo_surface_is_win32()
Check for vasnprintf.
Add a simple fixed-buffer size snprintf fallback in the absence of vasnprintf.
2005-02-01 21:45:51 +00:00
Kristian Høgsberg
211d115f18 Pretend we support compositing of solid color or gradient patterns to prevent image fallback. (emit_pattern): New function, code factored out from _cairo_pdf_surface_composite_trapezoids. (_cairo_pdf_surface_show_glyphs): Use emit_pattern here so we get pattern support for text.
Fix typo.
2005-02-01 20:47:43 +00:00
Owen Taylor
32ada34ddb Commit earlier missed new file
src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib.
2005-02-01 16:29:17 +00:00
Owen Taylor
711d7965c8 src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib.
Add CAIRO_STATUS_INVALID_STRING
Use _cairo_utf8_to_ucs4().
Add cairo_bool_t
Add TRUE/FALSE definitions.
src/cairo.[ch] src/cairoint.h src/cairo_gstate.c: switch cairo_in_stroke/cairo_in_fill and all the functions used to implement them over to cairo_bool_t.
2005-02-01 15:06:33 +00:00
Owen Taylor
f4ccbb4615 Forgotten commit:
src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend.
2005-01-31 16:41:06 +00:00
Owen Taylor
86c8755e59 configure.in src/cairo-features.h.in: Add a check for the Windows platform and --enable-win32. Also add some (currently always off) stubs for native Win32 fonts.
Make building the PDF backend conditional on having FreeType.
src/Makefile.am src/cairo_win32_surface.c src/cairo_win32_font.c src/cairo-win32.h: Add a Win32 backend using GDI and software fallbacks Font code is not yet there yet, but it works with the fontconfig backend.
src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend.
Prefer platform-specific font backends to the fontconfig backend.
2005-01-31 16:11:37 +00:00
Owen Taylor
26148a1d15 src/cairoint.h src/cairo_image_surface.c src/cairo_pdf_surface.c src/cairo_png_surface.c src/cairo_surface.c src/cairo_xlib_surface.c: Replace the get_image()/set_image() backend operations with a more specific {acquire,release}_{source,dest}_image() and clone_similar().
src/cairoint.h src/cairo_pattern.c: Replace _cairo_pattern_get_surface() with a _cairo_pattern_begin_draw()/_cairo_pattern_end_draw() pair.
Save the format for which an image is created so we can access it later. (Needed for the _cairo_xlib_surface_clone_similar())
src/cairoint.h src/cairo_image_surface.c: Add _cairo_surface_is_image().
Add CAIRO_OK(status) to check for CAIRO_STATUS_SUCCESS.
In the absence of of RENDER, make cairo_xlib_surface_create_similar() return an image surface.
Don't try to use RENDER to composite glyphs in the absence of the RENDER extension.
2005-01-31 08:50:22 +00:00
Owen Taylor
608a52ff93 Update composite-over-white code to use a pattern, not a surface. (to match _cairo_surface_composite API change.) 2005-01-30 11:37:48 +00:00
Owen Taylor
dca785faaf Fixes from David Reveman:
Don't save to surface part of the union when the pattern isn't a surface pattern. (_cairo_pattern_get_surface): Create the new surface at the width and height of the source.
Add cairo-ft-private.h
2005-01-30 11:28:14 +00:00
Kristian Høgsberg
a24f2f909e Update prototype to eliminate warning.
Remember to reference surfaces when copying patterns.
Don't call _gstate_create_pattern for internally created patterns. (_cairo_gstate_show_surface): Don't change the surface matrix here, it's done later when we set it up as a pattern.
Correct clip_twice-ref.png filename.
Add these.
Fix broken intersection code.
2005-01-28 12:27:23 +00:00
Kristian Høgsberg
4c329eecb9 Make sure we always return a surface similar to dst in the gradient case. 2005-01-27 21:14:04 +00:00
Kristian Høgsberg
79c8b29c3b Fold _cairo_pattern_get_image into _cairo_pattern_get_surface and make sure we always return a surface of the same type as dest.
Use _cairo_pattern_get_surface instead of _cairo_pattern_get_image.
Remove use of _cairo_xlib_surface_clone_similar since _cairo_pattern_get_surface always gives us an xlib surface for the pattern. Clean up error handling code in _cairo_xlib_surface_show_glyphs.
Add missing cairo_surface_destroy and tidy up offset calculations as suggested by Owen.
Simplify code for computing the extents of clipping area, by introducing a couple of cairo_rectangle_t functions.
2005-01-27 19:57:31 +00:00
Kristian Høgsberg
8e90ae2f65 Simplify code for computing the extents of clipping area, by introducing a couple of cairo_rectangle_t functions. 2005-01-27 17:21:13 +00:00
Owen Taylor
e0de000336 src/cairo.[ch] src/cairo_font.c src/cairo_ft_font.c src/cairo_ps_surface.c src/cairo_xlib_surface.c: Move docs from docs/reference, with a fair bit of addition and rewriting.
Remove old-format docs.
Add a AC_PREREQ(2.54) (Jason Dorje Short)
2005-01-27 15:46:16 +00:00
Kristian Høgsberg
56c96d0140 Update these two once again, this time generated using libpixman-0.1.3 without leaky circles. 2005-01-27 12:28:17 +00:00
Kristian Høgsberg
73cdfa0b2b [ Grr... previous commit from test/, missed the ChangLog changes ]
Fix missing rounding in these two functions.
Update these to versions with properly rounded alpha values.
Move clip_twice out of XFAIL now that rounding works.
Add new test cases.
2005-01-27 11:59:55 +00:00
Kristian Høgsberg
81d03b3048 Fix missing rounding in these two functions.
Update these to versions with properly rounded alpha values.
Move clip_twice out of XFAIL now that rounding works.
Add new test cases.
2005-01-27 11:40:29 +00:00
Owen Taylor
0f5b7d82de configure.in Makefile.am docs/Makefile.am docs/public/*: Add framework for doing docs via gtk-doc.
src/cairo.[ch] src/cairo-matrix.c: Add some inline docs for arcs and matrices.
gtk-doc.m4 acinclude.m4: Check in files from gtk-doc to make the dependency on gtk-doc optional.
Add --enable-gtk-doc to the default args.
2005-01-27 11:35:25 +00:00