summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* SVG: Sets fallback resolution when compositing a meta surface.Emmanuel Pacaud2006-06-111-15/+14
| | | | | | 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.
* freetype: build fix for _transform_glyph_bitmap.Jinghua Luo2006-06-111-5/+4
| | | | | | I sorry for this noise, I didn't notice cworth's device_{x, y}_offset changes. Now cairo builds again. paths...
* ignore FC_MATRIX in font pattern.Jinghua Luo2006-06-111-10/+1
| | | | | | | | | | 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.
* freetype: rework _transform_glyph_bitmap.Jinghua Luo2006-06-111-25/+33
| | | | | | | 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.
* ROADMAP: Note that cairo_surface_set_fallback_resolution is in place now.Carl Worth2006-06-101-15/+17
|
* Change _cairo_meta_surface_get_extents to return a bounded size.Carl Worth2006-06-102-18/+27
| | | | | | | | | | The old behavior of returning "infinite" extents is inconsistent with the current usage of meta-surface where it is always created for replay against a particular (sized) target surface and that size is passed to _cairo_meta_surface_create. Also clarify documentation of _cairo_surface_get_extents to eliminate the possibility of inifinite extents.
* Don't create a new scaled_font if there's a device_offset but no device_scale.Carl Worth2006-06-101-18/+16
| | | | | | (This is covering up my mistake from the last batch of 12 commits which wasn't ready to be pushed yet. This fixes some of the crashes which were introduced, and is a good thing to do regardless.)
* Clarify that fallback_resolution acts on a per-page granularity.Carl Worth2006-06-102-0/+21
| | | | | This explains why the SVG result from the fallback-resolution test doesn't actually show multiple resolutions in effect at the same time.
* Test PS and SVG backends in addition to PDF in test/fallback-resolution.Carl Worth2006-06-102-31/+83
|
* Add cairo_{ps,svg}_test_force_fallbacks so tests can force fallbacks.Carl Worth2006-06-104-0/+156
|
* Fix font size when drawing text with a device_scale.Carl Worth2006-06-101-2/+25
| | | | | | | The trick is to create a new scaled_font with the device_transform multiplied into the CTM within _cairo_surface_show_glyphs before calling into the backend. The fallback-resolution test shows that the font size is now correct.
* Fix line width for stroking with a device_scale.Carl Worth2006-06-101-2/+11
| | | | | | | The trick is to simply multiply the device_transform into the CTM within _cairo_surface_stroke before passing the CTM down to the backend. The fallback-resolution test shows that the stroke width is now correct.
* Add text and stroke to falback-resolution test (showing bugs in each).Carl Worth2006-06-101-7/+35
|
* Hook up device scaling so fallback_resolution starts working.Carl Worth2006-06-103-2/+53
| | | | | | | | Add new, private _cairo_surface_set_device_scale for getting at the scaling components of device_transform. Use this in paginated surface when replaying to an image surface. The fallback-resolution test now clearly shows that image fallback resolution can be controlled by the user. Hurrah!
* Change {x,y}_device_offset values to a device_transform matrix.Carl Worth2006-06-1013-108/+144
| | | | | | | | | | | | | | | | | | This is a step toward allowing device scaling in addition to device offsets. So far, the scale values are still always 1.0 so only the translation is actually being used. But most of the code is in place for doing scaling as well and it just needs to be hooked up. There are some fragile parts in this code, all of which involve using the translation without the scale, (so grep for device_transform.x0 or device_transform->x0). Some of these are likely bugs that will hopefully be obvious once we start using the scale. Others are OK if only because we 'know' that we aren't ever setting device scaling on a surface that has a device offset (we only set device scaling on surfaces we create internally and we don't export device scaling to the user). All of these fragile parts in the code have been marked with comments of the form: XXX: FRAGILE.
* doc: SGML template churnCarl Worth2006-06-094-7/+21
|
* Rename device_{x,y}_offset to {x,y}_device_offset for better ↵Carl Worth2006-06-0911-56/+56
| | | | consitency/grepability
* Add REPLACED_BY macros to help porting to new set_fallback_resolutionCarl Worth2006-06-091-0/+3
|
* New API: Replace cairo_{ps,pdf,svg}_set_dpi with new ↵Carl Worth2006-06-0911-127/+58
| | | | | | | | | 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).
* Ignore ft-text-vertical-layout binaryCarl Worth2006-06-091-0/+1
|
* freetype: Ignore global advance unconditionally.Jinghua Luo2006-06-092-0/+6
| | | | | | | | 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.
* Rename ft-text-vertical-layout reference image according to standard convention.Carl Worth2006-06-071-0/+0
| | | | | | | 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
* Fix bug in get-group-target (in the test itself) letting it now pass.Carl Worth2006-06-071-2/+12
|
* Make image-*-ref.png image as reference image.Jinghua Luo2006-06-082-0/+0
|
* freetype: Fix for test case ft-text-vertial-layout.Jinghua Luo2006-06-081-33/+97
| | | | | Fix scaled font metrics and glyph metrics calculation for vertical layout. Test case ft-text-vertial-layout passes now.
* Add ft-text-vertical-layout test case for vertical layout.Jinghua Luo2006-06-0810-0/+132
|
* Merge branch 'master' of git+ssh://jinghua@git.cairographics.org/git/cairoJinghua Luo2006-06-085-7/+84
|\
| * Add new test get-group-target (currently failing with paginated).Carl Worth2006-06-074-0/+83
| | | | | | | | | | | | 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.
| * Remove debugging "prints" of images from test/device-offset.cCarl Worth2006-06-071-7/+1
| |
* | glitz: Don't hardcode content type when initializing cairo surfaceJinghua Luo2006-06-081-3/+20
|/ | | | since we can compute it from glitz format.
* pixman: fix compilation on HP-UX 11.11Zakharov Mikhail2006-06-071-1/+1
|
* Change all instances of UINT16_MAX to INT16_MAX to avoid new bug.Carl Worth2006-06-072-4/+4
| | | | | | | | | | | 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.
* Fix MAX vs. MIN bug introduced with rename away from CAIRO_MINSHORTCarl Worth2006-06-071-1/+1
|
* win32: Add conditional definitions for INT16_{MIN,MAX} and UINT16_MAX now ↵Carl Worth2006-06-061-0/+9
| | | | that we use them.
* Remove CAIRO_{MIN,MAX}SHORT which did not distinguish signed vs. unsigned.Carl Worth2006-06-065-13/+10
| | | | | Instead, use the standard INT16_{MIN,MAX} and UINT16_{MIN,MAX} as appropriate.
* Fix bogus cairo_rectangle_fixed_t to be cairo_rectangle_int16_t.Carl Worth2006-06-0630-155/+155
| | | | | | 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).
* CODING_STYLE: Fix misspellings.Carl Worth2006-06-061-2/+2
|
* CODING_STYLE: Add notes on avoiding trailing whitespace.Carl Worth2006-06-061-3/+17
|
* Remove initial, final, and duplicate blank lines.Carl Worth2006-06-0673-184/+0
| | | | | | 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.
* Remove all remaining trailing whitespace.Carl Worth2006-06-0660-404/+404
| | | | | | | | | | | 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.
* Remove trailing whitespace from lines with a single brace.Carl Worth2006-06-0621-31/+31
| | | | | | | | 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.
* Remove trailing whitespace from lines that look like comments.Carl Worth2006-06-0657-446/+446
| | | | | | | | | | 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).
* Remove extraneous whitespace from "blank" lines.Carl Worth2006-06-06106-1311/+1311
| | | | | | | | This patch was produced with the following (GNU) sed script: sed -i -r -e 's/^[ \t]+$//' run on all *.[ch] files within cairo.
* Move rectangle functions to new cairo-rectangle.cCarl Worth2006-06-053-46/+86
|
* New API: Add cairo_image_surface_get_{data,format,stride}Carl Worth2006-06-052-0/+78
|
* Only destroy scaled glyphs if they are not in the cache.Jeff Muizelaar2006-05-291-4/+7
| | | | | | | 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.
* Remove cairo_public from _cairo_lzw_compress() definition.Kristian Høgsberg2006-05-281-1/+1
|
* Clarify licensing of float formatting code.Kristian Høgsberg2006-05-281-0/+4
|
* Add "html" Makefile target to run make-html.plChristian Biesinger2006-05-281-0/+7
|
* Distribute make-html.plChristian Biesinger2006-05-271-0/+1
|