summaryrefslogtreecommitdiff
path: root/src/cairo-tag-attributes.c
Commit message (Collapse)AuthorAgeFilesLines
* Make cairo_tag_begin/end work correctly in groupsAdrian Johnson2023-04-181-9/+136
| | | | Fixes #508
* Use _cairo_strndup where appropriateAdrian Johnson2023-01-031-4/+1
|
* Print tag error details when CAIRO_DEBUG_TAG is definedAdrian Johnson2021-07-291-77/+84
| | | | | | Add a _cairo_tag_error(fmt, ...) function that is used liked _cairo_error() but allows an error message to be specified. When CAIRO_DEBUG_TAG is defined the error is printed.
* Handle _cairo_strtod() failures in parse_float()Uli Schlachter2021-07-211-1/+1
| | | | | | | | | | | | When strtod cannot do anything, it returns zero and sets the end pointer to the beginning of the string. This commit changes the code in parse_float() to treat this case as an error. Without the fix from commit b7d67433b7c0, this commit turns the error from an endless loop into a parse error, which is a lot better error behaviour. Signed-off-by: Uli Schlachter <psychon@znc.in>
* Misc. typosluz.paz2019-01-311-1/+1
| | | | | | | Found via `codespell -i 3 -w -I ../cairo-word-whitelist.txt -L tim,ned,uint` Follow up of 12cb59be7da Reviewed-by: Bryce Harrington <bryce@bryceharrington.org>
* tag_attributes: Allow decimal points in non decimal point localesAdrian Johnson2018-12-311-2/+21
| | | | Issue #347
* Use _cairo_malloc instead of mallocAdrian Johnson2018-05-071-2/+2
| | | | | | | | | | _cairo_malloc(0) always returns NULL, but has not been used consistently. This patch replaces many calls to malloc() with _cairo_malloc(). Fixes: fdo# 101547 CVE: CVE-2017-9814 Heap buffer overflow at cairo-truetype-subset.c:1299 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* pdf: fix some annotation bugsAdrian Johnson2017-11-261-0/+4
| | | | | | | | | - each annotation was emitted on every page instead of just the page that contains the annotation - the document structure did not correctly link to annotation objects - fix some annotation related memory leaks
* ps: add CAIRO_MIME_TYPE_EPS mime type for embedding EPS filesAdrian Johnson2017-11-091-0/+47
|
* Add CCITT_FAX mime type for PDF and PS surfacesAdrian Johnson2017-10-221-0/+80
| | | | | | | | | | | This completes the full set of PDF/PS image filters allowing image data to be passed though without decompressing then recompresssing in a less efficient format. The difficulty with CCITT_FAX is it needs some decoding parameters that are not stored inside the image data. This is achieved by using an additional mime type CCITT_FAX_PARAMS that contains the params in key=value format.
* pdf: fix link positionsAdrian Johnson2017-08-261-0/+1
| | | | | | | | | | | | | | | Converting the link position from cairo to pdf coordinates requires the page height. Since the link may point to a different page, build an array of the height of each page and use the target page height for the conversion. Don't default to a [0,0] position if "pos" is not specified. PDF allows a null destination position to be specified which means don't change the position if the page is already displayed or show top left if switching to a different page. This is more useful default particularly for external files where the coordinates (which must be in PDF coordinates as we don't know the page height) of the top left corner may not be known.
* fix compiler warningsAdrian Johnson2016-10-041-1/+1
|
* pdf: structured text and hyperlink supportAdrian Johnson2016-10-011-0/+570