Skip to content
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

OT-SVG support: binding SkGraphics::SetOpenTypeSVGDecoderFactory() #2939

Open
1 task done
HinTak opened this issue Jul 12, 2024 · 1 comment
Open
1 task done

OT-SVG support: binding SkGraphics::SetOpenTypeSVGDecoderFactory() #2939

HinTak opened this issue Jul 12, 2024 · 1 comment

Comments

@HinTak
Copy link

HinTak commented Jul 12, 2024

Is your feature request related to a problem?

The skia-python equivalent is in:

https://github.com/kyamagu/skia-python/blob/e0b030c14e33f70880cfcc502eaeed898a77fc3c/src/skia/main.cpp#L82

Either provide that as a extra /optional call, or put it in SkiaSharp somewhere during load-time, one off, as in skia-python. The line switches on OT-SVG colour font support within skia.

You might need to add a little to your libskiasharp.so process, but ask me if you encounter problems. (I am the one who put that line in skia-python).

And possibly reference this shell script for skia build options:

https://github.com/HinTak/skia-building-fun/blob/main/download-and-build-skia.sh

Describe the solution you would like

Support ot-svg colour fonts

Describe alternatives you have considered

This is an obscure and new part of skia's api (since m103 or thereabouts, I believe), it unlikely you have already bound it yet.

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@HinTak
Copy link
Author

HinTak commented Jul 13, 2024

Didn't know you are so behind compared to skia-python - you need the svg module for the functionality I mentioned. The svg module became non-experimental in m88. I.e. you might need to deal with #2689 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant