-
-
Notifications
You must be signed in to change notification settings - Fork 21.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SVG in OT support. #64530
Implement SVG in OT support. #64530
Conversation
Some feedback. |
With some hacks, got it working. |
cf73d09
to
05ba695
Compare
This comment was marked as outdated.
This comment was marked as outdated.
104dee1
to
3347713
Compare
Is this ready to review / merge? |
It is ready. |
It doesn't seem to be implemented yet for the GDExtension builds of the TextServer. How do you envision it working? The multiple dependencies and separate module make it a bit tricky. |
This comment was marked as outdated.
This comment was marked as outdated.
Added GDExtension build support and moved
This part is much slower with GDExtension, due to lack of |
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ | ||
/*************************************************************************/ | ||
|
||
#ifndef THORVG_SVG_IN_OT_H |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is the exact same code in both modules, maybe we could avoid the duplication by allowing ourselves a relative include of the files in the other module? I.e. have text_server_fb
code compile and look for ../text_server_adv/thorvg_svg_in_ot.h
?
It's a bit dirty because it means that text_server_fb
couldn't build if text_server_adv
is deleted from the tree, but that might be better than fully duplicating the code?
Also, how is the current duplication handled if both modules are compiled together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit dirty because it means that text_server_fb couldn't build if text_server_adv is deleted from the tree, but that might be better than fully duplicating the code?
For the header it's probably OK, but for the thorvg_svg_in_ot.cpp
it might be an issue.
Edit: SCons will not accept the same file in the two places - scons: *** Two environments with different actions were specified for the same target:
Also, how is the current duplication handled if both modules are compiled together?
It's in the different compile units and is not used from any other code, so should not be an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Thanks! |
Implements support for SVG emoji fonts.