summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-03-15doc: Clarify when the device scale is inherited and when it isn'tHEADmasterDebarshi Ray1-5/+8
In short, cairo_surface_create_similar inherits it, while cairo_surface_create_similar_image doesn't. It wasn't obvious without reading the code or explicitly checking the device scale of the new surface. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99094 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2017-03-15doc: Fix the units used by cairo_surface_create_similar_imageDebarshi Ray1-2/+2
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99094 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2017-03-07xlib: Call XSync() before ignoring errorsUli Schlachter1-0/+2
The code here wants to ignore errors for a specific request. To do so, it sets a no-op error handler. However, it could happen that some previous request caused an error and this error will also be ignored by the no-op error handler. To avoid this, call XSync() before setting the error handler. This makes sure that all pending errors are handled. Signed-off-by: Uli Schlachter <psychon@znc.in> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
2017-03-07xlib: Remove unused variableUli Schlachter1-6/+0
This constant seems to be unused since commit af9fbd176b145f042408ef from 2011. Signed-off-by: Uli Schlachter <psychon@znc.in>
2017-03-02pdf-operators: fix bug in line wrappingAdrian Johnson1-1/+2
patch by jmmorlan@sonic.net https://bugs.freedesktop.org/show_bug.cgi?id=100029
2017-02-02pdf: don't return uninitialized statusAdrian Johnson1-1/+1
https://bugs.freedesktop.org/show_bug.cgi?id=99630
2017-01-18quartz: Restore 10.4-specific font codeAndrea Canciani3-9/+31
The code for extracting font glyphs was replaced in 70cc8f250b5669e757b4f044571ba0f71e3dea9e with an implementation based on CoreText, which is not available on MacOSX 10.4. This commit restores automatic detection of which API should be used by means of dynamic linking.
2017-01-05pdf: Fix wrong cairo_pdf_outline_flags_t item prefixKouhei Sutou3-12/+13
2017-01-05pdf: Remove duplicated itemKouhei Sutou1-1/+0
2016-12-20RELEASING: Fix tabbingBryce Harrington1-5/+5
2016-12-09Bump version for new development tree, 1.15.5Bryce Harrington1-1/+1
2016-12-091.15.4 releaseBryce Harrington2-1/+127
2016-12-09NEWS: Fix a couple typosBryce Harrington1-2/+2
2016-11-03gl: Fix one more CAIRO_GL_FLAVOR_ES3 enumBryce Harrington1-1/+1
2016-10-28gl: Treat GLES v2 as a separate flavor from GLES v3Bryce Harrington10-25/+25
To support differentiating between GLES v2 and v3, rename the flavor enum to be version specific, as CAIRO_GL_FLAVOR_ES2. Then, when GLES v3 support is introduced we can add it as a distinct flavor enum (i.e. CAIRO_GL_FLAVOR_ES3). Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
2016-10-12build: Don't rely on non-POSIX 'strings -' behaviorBryce Harrington1-2/+2
On systems using GNU's strings implementation, 'strings -' causes a scan of the whole file, which is equivalent to 'strings -a'. However, in POSIX passing '-' as the first argument to 'strings' is declared unspecified, and thus may break the build on systems that use a different POSIX strings implementation. Patch from Jung-uk Kim Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=88639 Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
2016-10-10pattern: Fix incorrect grammar in cairo_pattern_get_type.Bryce Harrington1-2/+2
"This function returns the type a pattern." is obviously missing 'of', but this can be stated more succinctly with active voice. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2016-10-10Fix grammar in cairo_*_reference() function documentation.Bryce Harrington6-12/+12
"can be get" is incorrect grammar; "can be gotten" would be better, but active voice is best. Signed-off-by: Bryce Harrington <bryce@bryceharrington.org>
2016-10-07strndup is not avuilable with MSVCAdrian Johnson2-3/+15
2016-10-04fix compiler warningsAdrian Johnson4-4/+6
2016-10-04fix make checkAdrian Johnson4-5/+9
2016-10-01add test for PDF document interchange features such as tagged text and linksAdrian Johnson3-1/+400
2016-10-01pdf: thumbnail APIAdrian Johnson6-2/+169
2016-10-01pdf: page label APIAdrian Johnson5-0/+166
2016-10-01pdf: metadata APIAdrian Johnson5-31/+265
2016-10-01pdf: add document outline APIAdrian Johnson5-1/+293
2016-10-01pdf: structured text and hyperlink supportAdrian Johnson21-30/+2617
2016-10-01Support tag operations in analysis and paginated surfaceAdrian Johnson8-13/+88
2016-10-01Add tag functions to recording surface and surface-wrapperAdrian Johnson4-1/+257
2016-10-01Add tag functions to cairo_t and cairo_surface_tAdrian Johnson9-0/+208
The cairo_tag_begin/cairo_tag_end API is for supporting hyperlinks and creating tagged PDF files. The source, ctm, and stroke style are passed to the backend to allow these parameters to be used to specify hyperlink border attributes.
2016-09-09Correctly decode Adobe CMYK JPEGs in PDF exportPeter TB Brett3-0/+24
Adobe PhotoShop generates CMYK JPEG files with inverted CMYK. When a JPEG file with this format is included in a PDF file, a `/Decode` array must be included to convert to "normal" CMYK. These JPEG files can be detected via the presence of the APP14 "Adobe" marker. However, PDF viewers are not required to detect and handle this private marker, so it must be detected and handled (by adding a `/Decode`) by the PDF generator. Signed-Off-By: Peter TB Brett <peter.brett@livecode.com>
2016-09-04Write debugging information to the debugging fileEd Schouten2-2/+2
Some debugging functions wrote to stdout, which is inconsistent with the other debugging functions of the same groups. Instead they should write to the debugging file that they are given as input. Reviewed-by: Andrea Canciani <ranma42@gmail.com> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=95227
2016-09-04Prevent observer surfaces from writing to stdoutEd Schouten1-2/+0
Invoking cairo_surface_mark_dirty () on an observer surface would cause it to print debugging output to stdout. Reviewed-by: Andrea Canciani <ranma42@gmail.com> Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=95227
2016-09-02Bug 29319 - Modules are built as versioned shared objectsBehdad Esfahbod3-3/+3
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=29319
2016-08-31Add example to run specific tests by name to the test/READMEdarxus@chaosreigns.com1-3/+4
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Uli Schlachter <psychon@znc.in>
2016-08-31Remove closed poppler bugs from test/READMEdarxus@chaosreigns.com1-39/+1
These bugs have all been closed resolved / fixed for years. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2016-08-31Pull -lz for the script backendOlivier Blin1-0/+3
It uses cairo_deflate_stream. Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Behdad Esfahbod <behdad.esfahbod@gmail.com>
2016-08-02scaled-font: Fix deadlock when recursing in _cairo_scaled_font_reset_cache()Hans Petter Jansson1-6/+18
The destruction of a scaled font could indirectly trigger the destruction of a second scaled font, causing the global cache to be locked twice in the same thread. This is solved by unlinking the font's glyph pages while holding the global lock, then releasing the lock before destruction takes place. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93891
2016-07-21cairo-xcb: Remove a wrong optimisationUli Schlachter1-2/+0
When doing a "complicated" mask operation, we draw the clip to a surface and use this as a mask in later operations. The code assumes that this operation draws to the whole target surface and thus a deferred clear may be skipped. However, this requires that the extents of the trapezoids that will be drawn and the extents of the surface are the same. This assumption is wrong, as can be seen e.g. by the bug report that this commit fixes. The fix is just not to skip the deferred clear. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=84330 Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-07-19pdf: fix combined image/smaskAdrian Johnson1-2/+2
a736fd8 introduced a regression
2016-07-18pattern: revert an unintentional change added in 190678fAdrian Johnson1-1/+1
2016-07-17truetype: reverse cmap search should end when 0xffff- 0xffff range reachedAdrian Johnson1-6/+15
2016-07-17pdf: Don't fail subsetting if unable to convert utf8 to utf16Adrian Johnson2-14/+24
If the unicode came from the font, don't fail if utf8_to_utf16 fails.
2016-07-16pattern: don't round extents to 0 on vector surfacesAdrian Johnson4-9/+19
In this bug a Type 3 font contains a dash glyph. The dash glyph consists of an 82x2 image. The image height, when scaled to user space, is < 1 resuling in the drawing operation for the image being culled. https://bugs.freedesktop.org/show_bug.cgi?id=94615
2016-07-15ps/pdf: remove debug and commented out codeAdrian Johnson2-32/+1
2016-07-15ps: flush ASCII85Decode file after useAdrian Johnson1-7/+18
If the image operator does not read all the ASCII85 data, the PS interpreter will try to execute the next byte of unread data. Define our own image operator that calls flushfile (reads until end of file) on the filter after drawing the image. https://bugs.freedesktop.org/show_bug.cgi?id=84811
2016-07-09truetype: Don't write glyph if num_contours == 0Adrian Johnson1-6/+24
According to the Opentype spec, num_contours in a glyf table entry can be > 0 (single glyph) or < 0 (composite glyph). num_contours == 0 is undefined. The embedded font in the test case for this bug contained a space glyph with num_contours == 0. This was failing on some printers. According to the spec, glyphs with no outlines such as space are required to have a 0 size entry in the loca table. https://bugs.freedesktop.org/show_bug.cgi?id=79897
2016-07-06cairo-misc: Whitespace cleanupBryce Harrington1-1/+1
2016-07-05test: refresh text-rotate ref imagesAdrian Johnson3-0/+0
2016-07-05ft: set font size to em size when retrieving unhinted metricsAdrian Johnson1-51/+91
fixes text-unhinted-metrics test