summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | doc: Fix parameter name in commentKhaled Hosny2023-02-021-1/+1
| | | | | |
| * | | | | doc: Fix dwrite gtk-doc warningsKhaled Hosny2023-02-021-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | Don’t use gtk-doc comment syntax for regular comments.
* | | | | | Merge branch 'remove-unused-tee-function' into 'master'Adrian Johnson2023-02-083-89/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unused _cairo_tee_surface_find_match See merge request cairo/cairo!447
| * | | | | | Remove unused _cairo_tee_surface_find_matchUli Schlachter2023-02-053-89/+0
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A little history digging shows that we only ever had one caller of _cairo_tee_surface_find_match. Commit 658cdc7c9a "Introduce cairo_tee_surface_t" added this code to _cairo_surface_clone_similar(): if (src->type == CAIRO_SURFACE_TYPE_TEE) { cairo_surface_t *match; match = _cairo_tee_surface_find_match (src, surface->backend, content); if (match != NULL) src = match; } Then, two years later in 2011, commit af9fbd176b1 "Introduce a new compositor architecture" removed _cairo_surface_clone_similar() and thus this code became unused. This commit drops this unused code. Signed-off-by: Uli Schlachter <psychon@znc.in>
* | | | | | Merge branch 'warnings' into 'master'Adrian Johnson2023-02-082-2/+2
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | | | | | | | | | | | | | Fix some compiler warnings See merge request cairo/cairo!427
| * | | | | Fix -Wunused-variableKhaled Hosny2023-02-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ../src/cairo-quartz-image-surface.c:149:24: warning: unused variable 'size' [-Wunused-variable] const unsigned int size = surface->imageSurface->height * surface->imageSurface->stride;
| * | | | | Fix -Wsometimes-uninitialized warningKhaled Hosny2023-02-061-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ../src/cairo-pdf-surface.c:2505:9: warning: variable 'status' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] if (surface->base.status != CAIRO_STATUS_SUCCESS) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/cairo-pdf-surface.c:2573:9: note: uninitialized use occurs here if (status == CAIRO_STATUS_SUCCESS) ^~~~~~ ../src/cairo-pdf-surface.c:2505:5: note: remove the 'if' if its condition is always false if (surface->base.status != CAIRO_STATUS_SUCCESS) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/cairo-pdf-surface.c:2497:5: note: variable 'status' is declared here cairo_status_t status, status2; ^
* | | | | DWrite: More accurate glyph paths for small fontsFujii Hironori2023-02-081-29/+37
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying a transformation matrix to a glyph path after converting floats to fixed point numbers caused caluculation errors. Apply the transform before the conversion. Fixes cairo/cairo#611
* | | | Fix -Wparentheses-equality warningsKhaled Hosny2023-02-042-4/+4
|/ / / | | | | | | | | | warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
* | | tee: Fix cairo wrapper functionsEmmanuele Bassi2023-02-031-10/+14
|/ / | | | | | | | | | | | | Follow-up to !391 to apply the same changes to the (disabled by default) tee surface. Fixes: #634
* | Merge branch 'bug-597' into 'master'Adrian Johnson2023-02-021-1/+2
|\ \ | | | | | | | | | | | | | | | | | | Win32 surface compositor should support DWrite font Closes #597 See merge request cairo/cairo!441
| * | Win32 surface compositor should support DWrite fontFujii Hironori2023-02-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | _cairo_win32_gdi_compositor_glyphs was falling back to the default implementation for DWrite font because check_glyphs() returned FALSE for CAIRO_FONT_TYPE_DWRITE. Fixes cairo/cairo#597
* | | Merge branch 'pdf-color-fonts' into 'master'Adrian Johnson2023-02-0215-143/+531
|\ \ \ | | | | | | | | | | | | | | | | PDF Type 3 color fonts See merge request cairo/cairo!434
| * | | PDF Type 3 color fontsAdrian Johnson2023-01-2915-143/+531
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements Type 3 color fonts for PDF for any font with a CAIRO_SCALED_GLYPH_INFO_RECORDING_SURFACE. This includes user-fonts, SVG fonts, and COLR fonts. Glyphs with foreground colors are not yet implemented as Type 3 glyphs and will be rendered as images by cairo-surface.
* | | | Merge branch 'fix-svg-render-debug' into 'master'Adrian Johnson2023-02-021-5/+14
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix build with -DDEBUG_SVG_RENDER See merge request cairo/cairo!439
| * | | | Fix build with -DDEBUG_SVG_RENDERAdrian Johnson2023-02-011-5/+14
| | | | |
* | | | | Post-release version bump to 1.17.9Emmanuele Bassi2023-02-021-1/+1
| | | | |
* | | | | Release Cairo 1.17.8 (snapshot)1.17.8Emmanuele Bassi2023-02-021-1/+1
| |_|/ / |/| | |
* | | | DWrite: Fix incorrect glyph metrics for negative glyph heightFujii Hironori2023-02-021-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GetGdiCompatibleMetrics may return a glyph metrics that yields a small nagative glyph height. But, it was calculated in unsigned integer. And, it resulted in a very large glyph metrics. Calculate glyph width and height in signed integer and let them non-negative.
* | | | DWrite: Added new API to set measuring mode and rendering paramsFujii Hironori2023-02-023-20/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added the following API: * cairo_dwrite_font_face_get_measuring_mode * cairo_dwrite_font_face_get_rendering_params * cairo_dwrite_font_face_set_measuring_mode * cairo_dwrite_font_face_set_rendering_params
* | | | DWrite: Removed old unused APIFujii Hironori2023-02-022-182/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Removed the following functions: * cairo_dwrite_get_cleartype_rendering_mode * cairo_dwrite_set_cleartype_params * cairo_dwrite_scaled_font_get_force_GDI_classic * cairo_dwrite_scaled_font_set_force_GDI_classic
* | | | Merge branch 'dwrite-cpp-header' into 'master'Adrian Johnson2023-02-014-15/+67
|\ \ \ \ | |/ / / |/| | | | | | | | | | | Add cairo-dwrite.h header file See merge request cairo/cairo!425
| * | | dwrite: create C++ dwrite headerAdrian Johnson2023-01-314-15/+67
| |/ /
* | | s/the the/the/Adrian Johnson2023-01-315-8/+8
| | |
* | | Fix dwrite crash when printing dwrite toy fontAdrian Johnson2023-01-301-0/+10
|/ / | | | | | | Fixes #632
* | Merge branch 'no-more-gl' into 'master'Emmanuele Bassi2023-01-2926-12021/+1
|\ \ | | | | | | | | | | | | Drop cairo-gl See merge request cairo/cairo!287
| * | Drop cairo-glEmmanuele Bassi2023-01-2726-12021/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | The GL support in Cairo has always been a prototype, and nothing happened in the past 10+ years to make it work as it was meant to. GL support is not enabled by any downstream packagers of Cairo, so nobody should notice its absence.
* | | Merge branch 'documentation-updates' into 'master'Adrian Johnson2023-01-284-18/+35
|\ \ \ | | | | | | | | | | | | | | | | Documentation updates See merge request cairo/cairo!431
| * | | Mime type updatesAdrian Johnson2023-01-283-7/+12
| | | |
| * | | Documentation updatesAdrian Johnson2023-01-281-11/+23
| |/ /
* | | Merge branch 'fix-ft-foreground' into 'master'Adrian Johnson2023-01-2812-171/+234
|\ \ \ | |/ / |/| | | | | | | | Fix foreground colors in FT/SVG/COLRv1 See merge request cairo/cairo!430
| * | Rename is_userfont_foreground to is_foreground_markerAdrian Johnson2023-01-275-17/+17
| | | | | | | | | | | | as it is used by FT as well as user fonts.
| * | Foreground color fixes for ft, svg, colrv1Adrian Johnson2023-01-2710-156/+219
| | |
* | | Merge branch 'dwrite-custom-palette' into 'master'Adrian Johnson2023-01-273-1/+12
|\ \ \ | | | | | | | | | | | | | | | | dwrite: use custom palette when rendering COLRv0 See merge request cairo/cairo!424
| * | | dwrite: use custom palette when rendering COLRv0Adrian Johnson2023-01-263-1/+12
| | | |
* | | | Merge branch 'doc-fixes' into 'master'Adrian Johnson2023-01-271-15/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Some documentation fixes See merge request cairo/cairo!428
| * | | | Fix gtk-doc syntaxKhaled Hosny2023-01-261-15/+16
| |/ / /
* | | | Merge branch 'dwrite-docs' into 'master'Adrian Johnson2023-01-274-135/+82
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Simplify generating dwrite-fonts docs See merge request cairo/cairo!426
| * | | Simplify generating dwrite-fonts docsKhaled Hosny2023-01-264-135/+82
| |/ / | | | | | | | | | Tell gtk-doc to scan .cpp files instead of making a proxy .c file.
* | | Add new cairo_user_scaled_font_get_foreground_source() functionAdrian Johnson2023-01-268-65/+268
|/ / | | | | | | | | | | | | | | | | | | | | | | The previous approach using foreground colors in user fonts does not work for gradients since the foreground color is not available at the time of recording. Add a new function cairo_user_scaled_font_get_foreground_source() that can be called by the color render function to retrieve the foreground pattern. Calling this function signals to cairo that the foreground color is used. In this case cairo will call the render function whenever the foreground color has changed.
* | Merge branch 'svg-font-palette' into 'master'Adrian Johnson2023-01-262-3/+4
|\ \ | | | | | | | | | | | | Add svg font test for custom palette colors See merge request cairo/cairo!418
| * | Add test for SVG font palettesAdrian Johnson2023-01-211-1/+1
| | |
| * | Silence make-cairo-def.sh outputAdrian Johnson2023-01-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | This removes the following output: Generating src/cairo.def <stdin>:6:9: warning: #pragma once in main file <stdin>:4377:9: warning: #pragma once in main file
* | | Merge branch 'fix-clear-color-glyphs' into 'master'Adrian Johnson2023-01-261-2/+6
|\ \ \ | | | | | | | | | | | | | | | | surface: Don't optimize away color glyphs See merge request cairo/cairo!419
| * | | surface: Don't optimize away color glyphsMatthias Clasen2023-01-211-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The surface code was optimizing away show_text_glyphs based on the operator when the source pattern is clear. But if we are rendering color glyphs, that is not correct since we are using the glyphs as source.
* | | | [colrv1] Fix crash in get_palette_colorBehdad Esfahbod2023-01-231-2/+2
|/ / / | | | | | | | | | is_foreground_color can be NULL.
* | | Merge branch 'fix-svg-crash' into 'master'Adrian Johnson2023-01-2111-6/+14
|\ \ \ | |/ / |/| | | | | | | | Fix svg renderer crash See merge request cairo/cairo!416
| * | svg-font: fix parse bug on empty tagsAdrian Johnson2023-01-201-1/+1
| | |
| * | svg-font: return SVG_FONT_ERROR on errorAdrian Johnson2023-01-2011-5/+13
| | |
* | | Reshuffle code for clarityMatthias Clasen2023-01-201-13/+13
| | | | | | | | | | | | | | | Only loop over custom colors if we got a palette selected successfully.