-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Export to vector drawable when possible (primarily action bar/tab, and generic icons) #107
Comments
that's a good idea, but will take a bunch of new code... i hope to revamp the asset studio at some point, this would be a great feature request for that time |
You could export to SVG, so that designers could also modify the files easier. |
Explored this; it's basically not feasible to export vectors for any foreground images except clipart. I think it's probably better to use the Android Icon Animator tool. |
Why not ? |
Yes it would be possible for clipart, but not custom uploaded images, or text. I'll actually re-open and re-frame the request. |
Text is not possible only because VectorDrawable doesn't support it (sadly), right? |
text isn't possible because we'd need to convert the text to paths, and this isn't possible in the browser AFAIK (you can't extract shapes from a web font). |
But fonts are by definition vectorized, no? So that no matter how you resize them, they will keep being sharp and nice... |
I'm not sure I follow. For a web-based tool to generator vector icons from text that uses a web font, the web-based tool needs to somehow have access to the font's path data. This isn't feasible right now. If you really want a vector drawable where the shape is a letterform from a web font, the best option is to download the font, use it in something like Illustrator or Sketch, convert the type layer to outlines ('expand' in Illustrator), export to SVG, and convert to vector drawables using any one of the popular SVG-to-VD converters (e.g. the Vector Asset Studio in Android Studio, or the Android Icon Animator tool, or something else) |
It's not possible to get the font's paths? So how does it get drawn? Only by black-box commands of the web browser's engine? |
Yes take a look at |
OK sorry. Just not my field, so I sometimes don't know what is possible and what's not on a web browser. |
because now it's supported on various Android versions.
The text was updated successfully, but these errors were encountered: