summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Document `svg_hooks` property.GSoC-2019-moazinMoazin Khatti2019-08-261-0/+40
|
* Improve ot-svg callback hooks documentationMoazin Khatti2019-08-261-11/+33
|
* [svg] Fix some unused variable warnings.Moazin Khatti2019-08-261-0/+7
|
* Minor doc and styling improvements.Moazin Khatti2019-08-2616-68/+120
|
* [base,ot-svg] Minor fixes.Moazin Khatti2019-08-262-4/+5
| | | | | | * src/svg/ftsvg.c (ft_svg_transform) Bug fix. Warning fix. * src/base/ftglyph.c (ft_svg_glyph_transform) Warning fix.
* For a devel build, enable SVG support as well as default hooks.Moazin Khatti2019-08-262-2/+12
|
* [ot-svg] Makes `rsvg_port.c' a part of the single build.Moazin Khatti2019-08-265-28/+12
|
* [sfnt,svg] Fix includes to allow a `multi' build.Moazin Khatti2019-08-266-0/+10
|
* Adds `ttsvg' for tracing in ttsvg.cMoazin Khatti2019-08-261-0/+1
|
* [ot-svg] Renames `svgtypes.c' to `svgtypes.h'.Moazin Khatti2019-08-263-4/+8
| | | | Also adds an `ifndef' check to prevent loading multiple times.
* [ot-svg] Properly indent module description.Moazin Khatti2019-08-261-1/+1
|
* [ot-svg] Bug fix.Moazin Khatti2019-08-261-1/+1
|
* [ot-svg] Free pixmap buffer if error occurs while rendering.Moazin Khatti2019-08-261-1/+7
|
* [ot-svg] Don't accept the hooks if value has been passed from anMoazin Khatti2019-08-261-1/+7
| | | | env variable.
* Handle cascaded transformations correctly.Moazin Khatti2019-08-262-22/+73
| | | | | We use homogeneous coordinates to properly calculate an equivalent transformation correctly.
* Adds transform support for OT-SVG glyphs.Moazin Khatti2019-08-265-3/+81
|
* Formatting improvement.Moazin Khatti2019-08-261-18/+17
|
* Minor doc improvement.Moazin Khatti2019-08-261-8/+6
|
* Minor name change.Moazin Khatti2019-08-268-11/+11
| | | | | | | | `svgrender.h' -> `otsvg.h' `FT_SVG_RENDER_H' -> `FT_OTSVG_H' Since `svgrender.h' contains just the hooks and the SVG document structure it's probably just better to name it something general like `otsvg.h'.
* Minor. Fixes a silly mistake.Moazin Khatti2019-08-261-1/+1
|
* An old commit deleted a line by mistake. Fix that.Moazin Khatti2019-08-261-0/+1
|
* Fix TODOs.Moazin Khatti2019-08-264-14/+8
|
* Makes some helper functions `static'.Moazin Khatti2019-08-262-5/+5
|
* Check if the size has been properly set.Moazin Khatti2019-08-261-0/+7
| | | | | | For TTF outlines this is already handled, however, for traditional CFF outlines the check happens too late. We need to check early.
* Fixes code warnings.Moazin Khatti2019-08-264-16/+23
|
* No need to call `FT_Load_Glyph' with `XX_NO_SCALE'.Moazin Khatti2019-08-264-18/+36
| | | | We no longer need TTF/CFF outlines for SVG rendering.
* Remove the dependence on outlines. No longer needed.Moazin Khatti2019-08-263-20/+5
|
* relying on cairo recording surface for extents and preset bitmap at load ↵Moazin Khatti2019-08-265-34/+94
| | | | time, work in progress
* Revert "Performs basic checks to see if SVG data is valid or not."Moazin Khatti2019-08-261-36/+2
| | | | | This reverts commit e5dc1b65cdc7ea357118fddbdb4b00afc403f81c. These aren't necessary.
* Performs basic checks to see if SVG data is valid or not.Moazin Khatti2019-08-261-2/+36
|
* Tracing implemented for OT-SVG code.Moazin Khatti2019-08-266-0/+42
|
* Remove the TODO since I have implemented binary search.Moazin Khatti2019-08-261-4/+0
|
* Remove the unused variable.Moazin Khatti2019-08-261-1/+0
|
* For now resort to a simpler regular expresion.Moazin Khatti2019-08-261-1/+1
| | | | | | | | We have to remove the system installation of FreeType from the includes, the proper way is to write a regular expression that removes the whole path. The last one is buggy (it can remove other libs along with freetype) so for now I am temporarily resorting to this one.
* Added a new error `Invalid_SVG_Document'.Moazin Khatti2019-08-261-0/+2
|
* Implement binary search for SVG Document Lookup.Moazin Khatti2019-08-261-14/+52
|
* Created `Svg_doc' private struct.Moazin Khatti2019-08-261-16/+40
| | | | | | | Inside the SVG Document List, four fields exist. It's better to create a struct to hold at one place instead of 4 variables. Also created `compare_svg_doc' which will be helpful in writing binary search later.
* Add a comment there. That part can be confusing.Moazin Khatti2019-08-261-0/+5
|
* Make `ft_svg_renderer_class' dumb if OT-SVGMoazin Khatti2019-08-261-4/+17
| | | | support is disabled.
* Correct the prioritization of options. Clean code.Moazin Khatti2019-08-261-19/+16
| | | | | | | If `yes' is choosen but SVG library isn't found, exit with error. If `auto' was choosen but the library wasn't found, go with `no' NOT `no-default'. `no-default' should be a separate option.
* Improve `--with-svg' in the build system.Moazin Khatti2019-08-265-11/+37
| | | | | | | | | | | | | | | | | | | | | | | Added a `no-default' option that compiles SVG support but keeps no default rendering port. Thus, the client application must inject its own hooks. * builds/unix/configure.raw: Changes in the build system to support `no-default'. * builds/unix/unix-cc.in: Add `COMPILE_SVG_PORT' var to ultimately let the `rules.mk' in `svg' folder know whether to build the port files or not. * include/freetype/config/ftoption.h: Change the flag `FT_CONFIG_OPTION_SVG_DEFAULT' to `*_DEFAULT_SVG' as `sed' and `ftoption_set' has a problem with the older version. * src/svg/ftsvg.c: Ditto. * src/svg/rules.mk: Compile the port only if `COMPILE_SVG_PORT' is set.
* Add a `hooks_set' flag.Moazin Khatti2019-08-263-3/+15
| | | | | | | A flag is to be used to indicate whether hooks have been set or not. In case the hooks haven't been set, a `Missing_SVG_Hooks' error will be thrown.
* Plug in a default library. `librsvg' for now.Moazin Khatti2019-08-264-4/+74
|
* Instead of individual properties. Just use one thatMoazin Khatti2019-08-263-37/+18
| | | | takes pointer to the hooks structure.
* Use `FT_Property_Set' to set the hooks. One less API function.Moazin Khatti2019-08-263-135/+81
|
* Public interface should remain same whetherMoazin Khatti2019-08-266-10/+15
| | | | `FT_CONFIG_OPTION_SVG' is set or not.
* Added `FT_CONFIG_OPTION_SVG'.Moazin Khatti2019-08-2613-23/+79
|
* Documentation formatting improvement.Moazin Khatti2019-08-174-39/+36
|
* Better naming used.Moazin Khatti2019-08-177-67/+68
|
* Forgot an `else', fix that.Moazin Khatti2019-08-171-0/+1
|