Moazin Khatti
67c108bc9c
[svg] Fix some unused variable warnings.
5 years ago
Moazin Khatti
b84ae3420a
Minor doc and styling improvements.
5 years ago
Moazin Khatti
3325b42e91
[base,ot-svg] Minor fixes.
...
* src/svg/ftsvg.c (ft_svg_transform) Bug fix. Warning fix.
* src/base/ftglyph.c (ft_svg_glyph_transform) Warning fix.
5 years ago
Moazin Khatti
561364002a
For a devel build, enable SVG support as well as default hooks.
5 years ago
Moazin Khatti
7d6ebe3a81
[ot-svg] Makes `rsvg_port.c' a part of the single build.
5 years ago
Moazin Khatti
4d24f52ead
[sfnt,svg] Fix includes to allow a `multi' build.
5 years ago
Moazin Khatti
cb2e775408
Adds `ttsvg' for tracing in ttsvg.c
5 years ago
Moazin Khatti
03f7b5a6b6
[ot-svg] Renames `svgtypes.c' to `svgtypes.h'.
...
Also adds an `ifndef' check to prevent loading multiple times.
5 years ago
Moazin Khatti
253d2bad97
[ot-svg] Properly indent module description.
5 years ago
Moazin Khatti
e54fbbf283
[ot-svg] Bug fix.
5 years ago
Moazin Khatti
b6f04b03e4
[ot-svg] Free pixmap buffer if error occurs while rendering.
5 years ago
Moazin Khatti
836c94e8d2
[ot-svg] Don't accept the hooks if value has been passed from an
...
env variable.
5 years ago
Moazin Khatti
c492bf3f0a
Handle cascaded transformations correctly.
...
We use homogeneous coordinates to properly calculate an equivalent
transformation correctly.
5 years ago
Moazin Khatti
3f6f939378
Adds transform support for OT-SVG glyphs.
5 years ago
Moazin Khatti
2727bba550
Formatting improvement.
5 years ago
Moazin Khatti
cff4467f25
Minor doc improvement.
5 years ago
Moazin Khatti
22d7c8578f
Minor name change.
...
`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'.
5 years ago
Moazin Khatti
5f5a56a0cc
Minor. Fixes a silly mistake.
5 years ago
Moazin Khatti
c21c2b0e70
An old commit deleted a line by mistake. Fix that.
5 years ago
Moazin Khatti
b122db0953
Fix TODOs.
5 years ago
Moazin Khatti
168a8f8fe0
Makes some helper functions `static'.
5 years ago
Moazin Khatti
705320b72d
Check if the size has been properly set.
...
For TTF outlines this is already handled, however,
for traditional CFF outlines the check happens too
late. We need to check early.
5 years ago
Moazin Khatti
fdb7d53ebf
Fixes code warnings.
5 years ago
Moazin Khatti
74f80fba49
No need to call `FT_Load_Glyph' with `XX_NO_SCALE'.
...
We no longer need TTF/CFF outlines for SVG rendering.
5 years ago
Moazin Khatti
a227395912
Remove the dependence on outlines. No longer needed.
5 years ago
Moazin Khatti
dbcc809e7c
relying on cairo recording surface for extents and preset bitmap at load time, work in progress
5 years ago
Moazin Khatti
398801e2c0
Revert "Performs basic checks to see if SVG data is valid or not."
...
This reverts commit e5dc1b65cdc7ea357118fddbdb4b00afc403f81c.
These aren't necessary.
5 years ago
Moazin Khatti
0e8e132bd7
Performs basic checks to see if SVG data is valid or not.
5 years ago
Moazin Khatti
d7f6f8b16d
Tracing implemented for OT-SVG code.
5 years ago
Moazin Khatti
2cef19641a
Remove the TODO since I have implemented binary search.
5 years ago
Moazin Khatti
faa495befc
Remove the unused variable.
5 years ago
Moazin Khatti
b85cc5ef0d
For now resort to a simpler regular expresion.
...
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.
5 years ago
Moazin Khatti
3479e03cdb
Added a new error `Invalid_SVG_Document'.
5 years ago
Moazin Khatti
ba9e6f9d41
Implement binary search for SVG Document Lookup.
5 years ago
Moazin Khatti
6962986cf3
Created `Svg_doc' private struct.
...
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.
5 years ago
Moazin Khatti
2d13c5127c
Add a comment there. That part can be confusing.
5 years ago
Moazin Khatti
bb1b25e560
Make `ft_svg_renderer_class' dumb if OT-SVG
...
support is disabled.
5 years ago
Moazin Khatti
5e949729e3
Correct the prioritization of options. Clean code.
...
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.
5 years ago
Moazin Khatti
f86fe242d4
Improve `--with-svg' in the build system.
...
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.
5 years ago
Moazin Khatti
4025f1213e
Add a `hooks_set' flag.
...
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.
5 years ago
Moazin Khatti
246ac684e4
Plug in a default library. `librsvg' for now.
5 years ago
Moazin Khatti
d86de4e9d4
Instead of individual properties. Just use one that
...
takes pointer to the hooks structure.
5 years ago
Moazin Khatti
1541091e76
Use `FT_Property_Set' to set the hooks. One less API function.
5 years ago
Moazin Khatti
b6f2303338
Public interface should remain same whether
...
`FT_CONFIG_OPTION_SVG' is set or not.
5 years ago
Moazin Khatti
3b62e9dc9d
Added `FT_CONFIG_OPTION_SVG'.
5 years ago
Moazin Khatti
c25304fa34
Documentation formatting improvement.
5 years ago
Moazin Khatti
c6a6859ad9
Better naming used.
5 years ago
Moazin Khatti
bf1deae970
Forgot an `else', fix that.
5 years ago
Moazin Khatti
fbdd9f9ba3
Memory allocation for `state' of renderer should be performed
...
on the SVG port side not the FT size. Minor doc fixes.
5 years ago
Moazin Khatti
cf44c0cbdd
Remove unnecessary code from `FT_Render_Glyph_Internal'.
5 years ago