Comments (6)
Excellent, thanks! I'll open the new issue about <style>
support.
Also, for text and truetype font support, I believe nanosvg
is borrowing some ideas from an stb header only library called stb_truetype
: https://github.com/nothings/stb
Maybe I could also look into basic text support.
from svgren.
Thanks for reporting this! I'll have a look next week. I'm currently on a trip without access to the computer.
from svgren.
I think 'use' support can be implemented and I will start working on it next week. But support of 'text', which is also present in your example, is not planned in the near future, because it is too complex and will require storing fonts somewhere.
from svgren.
Ok! By now I'm somewhat familiar with your library and I might have some time to help you next week so let me know ;)
from svgren.
@JaimeIvanCervantes
Ok, finally, the <use>
element is now supported in svgdom 0.2.49 and svgren 0.4.23.
But your example also uses the <style>
element which is not supported yet.
For <style>
support please open a new bug. Support for <style>
will require implementing CSS selectors logic (https://www.w3.org/TR/CSS2/selector.html), I might need help on that.
from svgren.
I am doing some refactoring right now, moving stuff to different files...
Regarding the truetype, I think it is not a problem to use freetype
, the other thing is that along with SVG file one will have to supply the fonts also to render the image, so it will be more clumsy. For now I consider it is simpler to just convert text to geometry in your favourite SVG editor and live with it :).
But I'm open to consider proposals regarding text support if any.
from svgren.
Related Issues (20)
- Image element not rendered HOT 5
- add <defs><style></style></defs> support HOT 8
- rgb(%) support HOT 6
- xi:include in svg HOT 1
- fatal error: rasterimage/image.hpp: No such file or directory HOT 4
- refactor surface class to use image_span
- utki cocoapod doesn't have a lib HOT 5
- Support for stroke-dasharray and stroke-dashoffset HOT 4
- Unresolved external symbol HOT 6
- Not correctly displaying shapes. HOT 8
- Pixel layout & console output HOT 5
- division by 0
- compiling errors after update to the latest version HOT 5
- add <pattern> support
- No Images loaded since last Update HOT 46
- VS2017 v141 toolset link failed HOT 6
- Problem rendering Instagram logo HOT 5
- XCFramework support HOT 10
- Tutorial needs update: requires C++/17 standard, not C++/11 HOT 2
- Artifact when drawing SVG with `circle` HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.