Carl Worth
2dcb6cd345
Note that cairo_output_stream_t patch has been reviewed.
2005-03-01 15:04:48 +00:00
Carl Worth
06bed80b9e
Fix uninitialized value for status, (reported by Manish Singh).
2005-03-01 14:50:57 +00:00
Kristian Høgsberg
85db25b8a1
Fix this function again. Problem with signed/unsigned types reported by Jeff Muizelaar <jrmuizel@nit.ca>.
2005-02-27 11:21:39 +00:00
Kristian Høgsberg
db2eb5d4cb
Remove newline in comment which was confusing gtk-doc.
...
Document these functions.
2005-02-27 11:02:48 +00:00
Carl Worth
cac994f1f8
Note that "user data" and "setters and getters" patches have been reviewed. Remove a few more TODO notes: cleanup cairo_snippets: DONE cairo_surface_finish: Now in API Shakeup snapping code: Decided against this
2005-02-25 14:06:19 +00:00
Carl Worth
f343b0b44a
From David Reveman:
...
Rewrite to use cairo_bool_t for legibility.
2005-02-25 13:31:00 +00:00
Carl Worth
ebec6df7a7
From David Reveman:
...
Simplify code to eliminate a goto.
2005-02-25 13:03:42 +00:00
Carl Worth
03e7e13cb1
From David Reveman:
...
Clean up the mess that was the misnamed _cairo_gstate_create_pattern.
2005-02-25 12:58:49 +00:00
Carl Worth
1a043bbf26
Don't put an off-by-one n_stops into cairo_shader_op_t. (_cairo_shader_op_find_color_stops): Put search for two color stops containing a given offset into its own function. Handle the case of before first and after last stop by returning the nearest stop twice. (_cairo_pattern_calc_color_at_pixel): Handle case of no color stops by returning a transparent pixel.
2005-02-25 12:52:47 +00:00
Owen Taylor
8ad3ab22e4
Remove a left-over debug printf.
2005-02-24 15:48:07 +00:00
Carl Worth
aca0708fc8
Fix memory leak when realloc fails due to out-of-memory.
2005-02-24 14:06:03 +00:00
Owen Taylor
a64b7e51ee
Instead of counting on ordering deletion to work (apparently it didn't on older Windows), save the initial bitmap created with the DC and reselect that into the DC. (Based on a patch by Hans Breuer)
2005-02-24 12:51:33 +00:00
Carl Worth
de7d69aff9
Add pixman_rotate to ignore list.
2005-02-24 12:30:23 +00:00
Carl Worth
04fefd1b28
Fixes from David Reveman with minor cleanups by Carl Worth:
...
Handle new failure possibility of _cairo_gstate_init. (_cairo_gstate_init): Handle possible failure of _cairo_pattern_create_solid. (_cairo_gstate_set_pattern): Reference new pattern before destroying existing pattern to handle the case where they are the same. (_cairo_gstate_set_rgb_color): Handle possible failure of _cairo_pattern_create_solid.
2005-02-24 12:28:51 +00:00
Carl Worth
12d19423f6
Fix typo (pointed out by Kristian Høgsberg).
2005-02-24 10:09:44 +00:00
Owen Taylor
724cf1ce71
When we created a DC/bitmap pair, delete the DC before the Bitmap so that the Bitmap will be released from the DC and can be destroyed. (Reported by Hans Breuer)
...
configure.in cairo.pc.in: Only require fontconfig if building FreeType font backend.
Fix output when reporting Win32 font backend.
2005-02-24 08:20:14 +00:00
Carl Worth
b210c00c30
Remove many TODO items that have now been absorbed by the API shakeup. Remove comparison with PostScript as there's nothing interesting there left unimplemented, (and cairo is already establishing its own conventions in naming and behavior that deviate from PostScript).
2005-02-24 08:07:39 +00:00
Carl Worth
77826a9756
Fix typo (pointed out by Mike Emmel)
2005-02-24 07:39:20 +00:00
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
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
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
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
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
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