summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2005-08-24Fix some minor typos in the doc.Billy Biggs1-9/+9
2005-08-24Use new device_x_scale/device_y_scale surface fields to set the device ↵Keith Packard1-53/+93
coordinate space to the nominal pixels. Treat more alpha values as translucent (up to 0.999) Fix emit_image to actually use a temporary image when necessary. Change PS coordinate space to match cairo (top-down), adjust PS output to use new space. Find more cases where PS output was not supported and fall back to image surface. reviewed by: cworth
2005-08-24_cairo_surface_show_glyphs may return UNSUPPORTED in which case a call to ↵Keith Packard1-0/+17
scaled_font->backend->show_glyphs is needed. reviewed by: cworth
2005-08-24Add device_x_scale and device_y_scale to surface so that the coordinate ↵Keith Packard4-17/+50
system seen by the backend can differ from the nominal device coordinate space used by the application. Useful for printer backends where the device coordinate space should be in pixels while the user visible device space is in points. There is no API to set these values; the backends using this functionality should do that themselves before the first cairo_t is created. reviewed by: cworth
2005-08-24Fix cairo_show_text to advance the current point. Add documentation for ↵Carl Worth1-7/+47
cairo_show_text. Add test to verify that the current-point-advancing behavior of cairo_show_text is working. Remove bug about cairo_show_text not advancing the current point.
2005-08-24Update documentation for most path construction functions. Add discussion of ↵Carl Worth1-41/+89
the effects on the current point to all functions. Rephrase the wording of the relative functions. Big rewrite of cairo_arc description. Add discussion of join not caps to cairo_close_path.
2005-08-23Minor doc edit.Carl Worth1-1/+1
2005-08-23Add a long description.Billy Biggs2-0/+4
Fix a typo. Document the return value of cairo_scaled_font_reference(). Document the width and height parameters of cairo_xlib_surface_set_drawable().
2005-08-23Document the rest of the path functions (except the two text ones, which ↵Billy Biggs1-0/+92
should coordinate with their corresponding non-path versions). Minor shuffling.
2005-08-23Update the long description of cairo_matrix_t to match the current sources.Billy Biggs5-83/+111
Add cairo_path_data_t. Some documentation updates and improvements.
2005-08-23Rip out all the code for doing anything other than linear interpolation ↵Owen Taylor1-63/+3
between color stops, instead of doing different funky things based on pattern->filter. (#4184)
2005-08-23Check for AlphaBlend() with GetProcAddress() to support older compilation ↵Owen Taylor1-6/+0
environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla) Remove WINVER define, since it was there only for AlphaBlend().
2005-08-23Remove assert statements that violate two intentional instances of ref_count ↵Carl Worth1-2/+6
== 0.
2005-08-23Check for AlphaBlend() with GetProcAddress() to support older compilation ↵Owen Taylor1-17/+92
environments like MSVC 6. (Also fixes this portion of the code to run on Win98 and Win95, but much of the rest of cairo-win32-* won't work in that environment) (#3926, Hans Breuer, Christian Biesinger, based on code originally from Mozilla) Remove WINVER define, since it was (hopefully) there only for AlphaBlend().
2005-08-23Call _get_pattern_load_flags() on the resolved pattern, not the input ↵Owen Taylor1-1/+1
pattern. (Further fix from sunmoon1997)
2005-08-23if users attempt to twice destroy or re-reference a destroyed object. The ↵Carl Worth4-0/+20
condition for detecting this case is a ref_count of 0. Reviewed by: otaylor Fixes bug #4198
2005-08-23Move CAIRO_CONTENT_VALID and CAIRO_FORMAT_VALID from the public cairo.h to ↵Carl Worth2-9/+9
the private cairoint.h where they belong.
2005-08-23when creating the temporary mask, do glyph ADD mask, not (glyph IN source) ↵Owen Taylor1-4/+6
ADD mask. Set the mask as having component alpha when it's 4-channel. test/text-antialias-subpixel.c test/Makefile.am: No longer XFAIL. test/text-antialias-gray.c test/text-antialias-subpixel.c Don't turn off metrics hinting, it doesn't make sense. Update.
2005-08-23Move comment about missing cleanup of caches on XCloseDisplay from BUGS to a ↵Carl Worth1-0/+3
_cairo_xlib_close_display. Also covered in bug #4120.
2005-08-23Fix for bug #4205:Carl Worth1-20/+35
Abstract the cap-addition code from the end of the stroke operation into a new _cairo_stroker_add_caps function. Call the new _cairo_stroker_add_caps at the beginning of every move_to so that we get caps on every subpath and not just the last one.
2005-08-23Add libpixman.la to the libcairo_la_DEPENDENCIES line so that changes to ↵Billy Biggs1-1/+1
pixman get picked up.
2005-08-23Some fixes for warnings from sparse (Part of #4208, Kjartan Maraas)Owen Taylor1-6/+7
Use NULL, not 0. Fix C99'ism of mixed code and declarations.
2005-08-23Remove discussion of the BAD_NESTING restriction from the documentation of ↵Carl Worth1-10/+0
cairo_create. No such restriction exists anymore.
2005-08-23Fix for bug #4192:Carl Worth1-14/+36
New function to handle both calling FT_Done_Face on unscaled->face and decrementing font_map->num_open_faces. Call new _font_map_release_face_lock_held as approporiate. Assert that (font_map->num_open_faces == 0) when we're done, to help guarantee the bug is fixed. Don't call FT_Done_Face anymore, instead assert that (unscaled->face == NULL) by the time this function is called. Prefer TRUE/FALSE as values for cairo_bool_t have_scale.
2005-08-22Make cairo_ft_unscaled_font_backend static.Owen Taylor6-12/+12
Add missing static. Use NULL, not 0. Use void in the definition of void functions, not (). Make non-exported cairo_pattern_nil_* static.
2005-08-22remove.Bertram Felgenhauer2-35/+0
2005-08-22correct the calculation of the error bound.Bertram Felgenhauer1-14/+6
2005-08-22use new function. strip comment of derivation for major axis length.Bertram Felgenhauer3-144/+158
use _cairo_matrix_get_affine to retrieve matrix entries. new function split out of cairo-pen.c. UTF8-ify the comment that explains the calculation.
2005-08-22use correctly transposed version of the matrix and fix up the comments above ↵Bertram Felgenhauer1-12/+14
to use row vector notation.
2005-08-22Calculate LT_CURRENT_MINUS_AGE (which forms part of the DLL name on Win32), ↵Tor Lillqvist1-1/+35
and AC_SUBST it. Add target "zips" to create zip file based distribution for Win32. Produce a cairo.def file for distribution by preprocessing the relevant header files and grepping for declarations of functions that start with cairo_. Works for now, will have to modify later if necessary. Use the .def file when linking on Win32.
2005-08-22Support artificial bold fonts with FC_EMBOLDEN; patch from Jackey Yang and ↵Owen Taylor1-1/+35
sunmoon1997. Check for FT_GlyphSlot_Embolden() Call FT_GlyphSlot_Embolden for fonts where FC_EMBOLDEN is set but that aren't bold. Add another private flag for this.
2005-08-21Optimize away calls to cairo_paint_with_alpha() if the alpha value given is ↵Billy Biggs2-0/+5
<= 0. Add a new macro CAIRO_ALPHA_IS_ZERO.
2005-08-21Fix for bug #4172:Billy Biggs1-4/+4
Use _cairo_fixed_to_double and _cairo_double_to_fixed when converting between double and 16.16 fixed point. These functions round nicely, and solve some inconsistencies in rendering between my PPC and x86 machines. Thanks to Owen Taylor for suggesting the fix. The above change does affect linear gradients slightly, but it seems worth it. Update the reference images to follow.
2005-08-21Remove stray doc sentence that wasn't meant to be committed.Owen Taylor1-6/+0
2005-08-21Fix for bug #4165:Billy Biggs1-1/+6
Use pointer comparison for coincident points to ensure a well-defined ordering, and avoid setting discard on both points. This fixes problems with my Mac's implementation of qsort. Final patch by Bertram Felgenhauer. Update reference images after the change.
2005-08-21Fix the handling of backend->clone_similar == NULL. (#4161, Christian Biesinger)Owen Taylor2-6/+7
2005-08-21Improve the documentation of internal functions. (Based on a patch from ↵Owen Taylor1-8/+16
Christian Biesinger, #4162)
2005-08-21Recognize gentoo's (and maybe other distro's) modified server vendor string, ↵Owen Taylor1-2/+2
where extra text is added to the upstream value. (#4068, reported by Doug Goldstein, others. Patch from Mart Raudsepp)
2005-08-21Don't try to transform val->image when it is NULL. (#4163, Mathias Hasselmann)Owen Taylor1-1/+2
2005-08-20Include Xfree86-4.5 in the blacklist. (Reported by Andrew Benton)Owen Taylor1-1/+1
2005-08-19Fix for bug #4096:Billy Biggs2-7/+27
Improve the performance of png reading by adding special cases for fully transparent and fully opaque alpha, and using the standard optimization for 8-bit division by 255. Add an INLINE macro for gcc.
2005-08-19Fix for bug #4137:Carl Worth1-1/+1
Fix to round properly.
2005-08-19Ignore really small fonts, since size zero fonts give xpdf fits. (#2938)Owen Taylor1-0/+8
2005-08-19Fix to actually test scaled_font->status instead of just having a comment ↵Carl Worth1-1/+2
that claims to test it. Thanks to Behdad Esfahbod <behdad@cs.toronto.edu>.
2005-08-19We need the call to fixup_unbounded when we optimize the RENDER operator to ↵Owen Taylor1-11/+12
XCopyArea as well.
2005-08-19Fixes for a general problem of which bug #4094 was a specific instance:Carl Worth5-219/+91
Don't change the status value if it already holds an error. This avoids destroying "first error" information and also avoids attempting to write read-only data, (eg. from nil objects). Don't set an error on the same object if it is in an error state to begin with, just return immediately. This is intended to reduce (eventual) error prints to the first cause of an error for any given object, instead of a continual spew.
2005-08-19Fix for bug #2729:Carl Worth3-14/+75
Adjust negative offsets up to their equivalent positive value. Add error checking for dash values, (must each be non-negative and must not be all zero). Add documentation. Add new CAIRO_STATUS_INVALID_DASH. Add dash-offfset-negative test from Owen. churn
2005-08-19Add this missing fuction.Kristian Høgsberg2-0/+31
Document this funtion.
2005-08-19Fix for bug #3915:Carl Worth1-0/+14
Add new NULL_POINTER nil pattern. Check for surface == NULL and return a nil pattern. Verify that the above fix works.
2005-08-18Fix for bug #4088:Carl Worth3-57/+60
New function to return the current nil pattern depending on the status. Add missing early bailout on surface->status with error propagation to the pattern. Related cleanups for cairo_pattern_t: Don't check other->status since this is a static function. Add missing early bailout on other->status. Cleanup identifier names. Track rename of nil patterns. Don't call _cairo_error for pre-existing errors. Take care to initialize some fields to that _cairo_pattern_release_surface will work even after an error. Track rename of cairo_solid_pattern_nil to cairo_pattern_nil. New test to ensure that a file-not-found error will propagate from a surface, through a pattern, and onto a cairo_t.