Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Document `svg_hooks` property.GSoC-2019-moazin | Moazin Khatti | 2019-08-26 | 1 | -0/+40 |
| | |||||
* | Improve ot-svg callback hooks documentation | Moazin Khatti | 2019-08-26 | 1 | -11/+33 |
| | |||||
* | [svg] Fix some unused variable warnings. | Moazin Khatti | 2019-08-26 | 1 | -0/+7 |
| | |||||
* | Minor doc and styling improvements. | Moazin Khatti | 2019-08-26 | 16 | -68/+120 |
| | |||||
* | [base,ot-svg] Minor fixes. | Moazin Khatti | 2019-08-26 | 2 | -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 Khatti | 2019-08-26 | 2 | -2/+12 |
| | |||||
* | [ot-svg] Makes `rsvg_port.c' a part of the single build. | Moazin Khatti | 2019-08-26 | 5 | -28/+12 |
| | |||||
* | [sfnt,svg] Fix includes to allow a `multi' build. | Moazin Khatti | 2019-08-26 | 6 | -0/+10 |
| | |||||
* | Adds `ttsvg' for tracing in ttsvg.c | Moazin Khatti | 2019-08-26 | 1 | -0/+1 |
| | |||||
* | [ot-svg] Renames `svgtypes.c' to `svgtypes.h'. | Moazin Khatti | 2019-08-26 | 3 | -4/+8 |
| | | | | Also adds an `ifndef' check to prevent loading multiple times. | ||||
* | [ot-svg] Properly indent module description. | Moazin Khatti | 2019-08-26 | 1 | -1/+1 |
| | |||||
* | [ot-svg] Bug fix. | Moazin Khatti | 2019-08-26 | 1 | -1/+1 |
| | |||||
* | [ot-svg] Free pixmap buffer if error occurs while rendering. | Moazin Khatti | 2019-08-26 | 1 | -1/+7 |
| | |||||
* | [ot-svg] Don't accept the hooks if value has been passed from an | Moazin Khatti | 2019-08-26 | 1 | -1/+7 |
| | | | | env variable. | ||||
* | Handle cascaded transformations correctly. | Moazin Khatti | 2019-08-26 | 2 | -22/+73 |
| | | | | | We use homogeneous coordinates to properly calculate an equivalent transformation correctly. | ||||
* | Adds transform support for OT-SVG glyphs. | Moazin Khatti | 2019-08-26 | 5 | -3/+81 |
| | |||||
* | Formatting improvement. | Moazin Khatti | 2019-08-26 | 1 | -18/+17 |
| | |||||
* | Minor doc improvement. | Moazin Khatti | 2019-08-26 | 1 | -8/+6 |
| | |||||
* | Minor name change. | Moazin Khatti | 2019-08-26 | 8 | -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 Khatti | 2019-08-26 | 1 | -1/+1 |
| | |||||
* | An old commit deleted a line by mistake. Fix that. | Moazin Khatti | 2019-08-26 | 1 | -0/+1 |
| | |||||
* | Fix TODOs. | Moazin Khatti | 2019-08-26 | 4 | -14/+8 |
| | |||||
* | Makes some helper functions `static'. | Moazin Khatti | 2019-08-26 | 2 | -5/+5 |
| | |||||
* | Check if the size has been properly set. | Moazin Khatti | 2019-08-26 | 1 | -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 Khatti | 2019-08-26 | 4 | -16/+23 |
| | |||||
* | No need to call `FT_Load_Glyph' with `XX_NO_SCALE'. | Moazin Khatti | 2019-08-26 | 4 | -18/+36 |
| | | | | We no longer need TTF/CFF outlines for SVG rendering. | ||||
* | Remove the dependence on outlines. No longer needed. | Moazin Khatti | 2019-08-26 | 3 | -20/+5 |
| | |||||
* | relying on cairo recording surface for extents and preset bitmap at load ↵ | Moazin Khatti | 2019-08-26 | 5 | -34/+94 |
| | | | | time, work in progress | ||||
* | Revert "Performs basic checks to see if SVG data is valid or not." | Moazin Khatti | 2019-08-26 | 1 | -36/+2 |
| | | | | | This reverts commit e5dc1b65cdc7ea357118fddbdb4b00afc403f81c. These aren't necessary. | ||||
* | Performs basic checks to see if SVG data is valid or not. | Moazin Khatti | 2019-08-26 | 1 | -2/+36 |
| | |||||
* | Tracing implemented for OT-SVG code. | Moazin Khatti | 2019-08-26 | 6 | -0/+42 |
| | |||||
* | Remove the TODO since I have implemented binary search. | Moazin Khatti | 2019-08-26 | 1 | -4/+0 |
| | |||||
* | Remove the unused variable. | Moazin Khatti | 2019-08-26 | 1 | -1/+0 |
| | |||||
* | For now resort to a simpler regular expresion. | Moazin Khatti | 2019-08-26 | 1 | -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 Khatti | 2019-08-26 | 1 | -0/+2 |
| | |||||
* | Implement binary search for SVG Document Lookup. | Moazin Khatti | 2019-08-26 | 1 | -14/+52 |
| | |||||
* | Created `Svg_doc' private struct. | Moazin Khatti | 2019-08-26 | 1 | -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 Khatti | 2019-08-26 | 1 | -0/+5 |
| | |||||
* | Make `ft_svg_renderer_class' dumb if OT-SVG | Moazin Khatti | 2019-08-26 | 1 | -4/+17 |
| | | | | support is disabled. | ||||
* | Correct the prioritization of options. Clean code. | Moazin Khatti | 2019-08-26 | 1 | -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 Khatti | 2019-08-26 | 5 | -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 Khatti | 2019-08-26 | 3 | -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 Khatti | 2019-08-26 | 4 | -4/+74 |
| | |||||
* | Instead of individual properties. Just use one that | Moazin Khatti | 2019-08-26 | 3 | -37/+18 |
| | | | | takes pointer to the hooks structure. | ||||
* | Use `FT_Property_Set' to set the hooks. One less API function. | Moazin Khatti | 2019-08-26 | 3 | -135/+81 |
| | |||||
* | Public interface should remain same whether | Moazin Khatti | 2019-08-26 | 6 | -10/+15 |
| | | | | `FT_CONFIG_OPTION_SVG' is set or not. | ||||
* | Added `FT_CONFIG_OPTION_SVG'. | Moazin Khatti | 2019-08-26 | 13 | -23/+79 |
| | |||||
* | Documentation formatting improvement. | Moazin Khatti | 2019-08-17 | 4 | -39/+36 |
| | |||||
* | Better naming used. | Moazin Khatti | 2019-08-17 | 7 | -67/+68 |
| | |||||
* | Forgot an `else', fix that. | Moazin Khatti | 2019-08-17 | 1 | -0/+1 |
| |