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

APIs missing: Outline #896

Open
matteogratton opened this issue Jul 14, 2022 · 1 comment
Open

APIs missing: Outline #896

matteogratton opened this issue Jul 14, 2022 · 1 comment

Comments

@matteogratton
Copy link

The outline function is not exposed.
In order to outline a layer, we should refer to the private APIs. Example outlying a text layer:
let outline = layer.sketchObject.layersByConvertingToOutlines();

let outlineText = sketch.fromNative(outline[0]);

It would be nice to have something like:

let outlineText = layer.outline();

@sandstrom
Copy link

We need this too. Fonts can't easily be embedded inside SVGs. So we need to outline the text before exporting. But we don't want to save the outline, so this is better as an automated API step, to avoid ruining the original sketch document.

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

No branches or pull requests

3 participants