summaryrefslogtreecommitdiff
path: root/source/svg
AgeCommit message (Collapse)Author
2017-05-31Avoid double literals causing casts to float.Sebastian Rasmussen
2017-05-29Make PI/RADIAN/SQRT2/LN2 global single precision float constants.Sebastian Rasmussen
2017-05-23Remove unused strtod function.Tor Andersson
2017-05-23svg: Allow missing optional commas in transform attribute.Tor Andersson
2017-04-27Include required system headers.Tor Andersson
2017-04-27Make HTML header private.Tor Andersson
2017-04-13Move extension/mimetype detection to common function.Sebastian Rasmussen
A document handler normally only exposes a list of extensions and mimetypes. Only formats that use some kind of extra detection mechnism need to supply a recognize() callback, such as xps that can handle .xps-files unpacked into a directory.
2017-03-28Return fz_document from all document handlers.Sebastian Rasmussen
To make it possible to avoid casting in most cases.
2017-03-23Introduce fz_new_derived_...Robin Watts
Instead of having fz_new_XXXX(ctx, type, ...) macros that call fz_new_XXXX_of_size etc, use fz_new_derived_... Clearer naming, and doesn't clash with fz_new_document_writer.
2017-03-22Update fz_new_page.Robin Watts
Move this into the same style as fz_new_document and fz_new_image.
2017-01-31svg: Add arc support.Tor Andersson
Copied from XPS implementation.
2017-01-09Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.Tor Andersson
2017-01-09Add fz_terminate_buffer function.Tor Andersson
Non-destructively zero terminate a fz_buffer for use as a C string.
2016-11-14Make fz_buffer structure private to fitz.Robin Watts
Move the definition of the structure contents into new fitz-imp.h file. Make all code outside of fitz access the buffer through the defined API. Add a convenience API for people that want to get buffers as null terminated C strings.
2016-10-19Move headers to make svg_document an internal type.Sebastian Rasmussen
2016-10-12svg: Remove newlines from fz_warn messages.Tor Andersson
2016-10-11Free document in fz_drop_document(), not in subclassing documents.Sebastian Rasmussen
2016-10-09Open document file in fz_open_document().Sebastian Rasmussen
This relieves all document formats from reimplementing opening a fz_stream unless the format wants to do something more than just opening the raw file.
2016-09-20SVG: If no width/height given, then guess from viewBox.Robin Watts
2016-09-19Update SVG document handler; circles.Robin Watts
Cope with circles, rounded rects, etc. Not the worlds best approximation to a circular arc, but it's better than nothing.
2016-09-19svg: Throw on nonconforming transform attributes.Sebastian Rasmussen
2016-09-18svg: Use fz_atof() and fz_strtod().Sebastian Rasmussen
2016-09-18svg: Ensure that read svg file is null-terminated.Sebastian Rasmussen
fz_parse_xml() assumes a null-terminated xml string.
2016-09-18svg: Fix typo in opacity attribute variable name.Sebastian Rasmussen
2016-09-16Silence some warnings.Robin Watts
2016-07-18Bug 696927: Move debug printfs to fz_warn.Robin Watts
I did debate about removing these, but it looks like they are flagging up places where processing is incomplete, so I've left them in, and they will just appear on stderr now.
2016-07-08Separate close and drop functionality for devices and writers.Tor Andersson
Closing a device or writer may throw exceptions, but much of the foreign language bindings (JNI and JS) depend on drop to never throw an exception (exceptions in finalizers are bad).
2016-05-20html: Add SVG image support.Tor Andersson
2016-04-26Improve fz_new_documentRobin Watts
Use a macro to make fz_new_document nicer (akin to fz_malloc_struct).
2016-04-26svg: Add fz_new_display_list_from_svg function.Tor Andersson
2016-04-26Fix refcounting on SVG documents.Robin Watts
2016-04-26svg: Add SVG parser.Tor Andersson
svg: Implement graphics state stack. svg: Use idmap for symbol and use elements. svg: Put viewport and viewBox in state stack. svg: Rebase to version 1.9 master.