Comments (4)
Hey, yeah that would be nice. Any idea how it could be done? some generic argument to prepend text or something more font specific? thinking it would be nice to make it easy to embed a font to not make the svg depend on external resources?
from ansisvg.
As I said, I'm more of a trial and error person when it comes to web tech - so probably not in a position to advise anything specific here. Yes, it would be nice if the SVG stays self-contained, but OTOH, if I explicitly reference external resources then I can as well put them in the same folder as the generated SVGs - so it's more of a nice-to-have, I guess.
from ansisvg.
Hmm tricky, looking at https://cdn.jsdelivr.net/gh/wernight/powerline-web-fonts/PowerlineFonts.css it does not look trivial to embed as it depend on other resources (in differens paths) and i think you would have to use data: urls to embed? but i could be wrong
Maybe it should be two differente argument, one to add a font file via filsystem path and one to inject extra css?
from ansisvg.
Yes, sounds good.
from ansisvg.
Related Issues (11)
- build errors HOT 3
- Smaller SVG output
- Support invert HOT 1
- recognizing more colors HOT 10
- Wrong foreground/background alignment for some glyphs and fonts HOT 21
- Better tests
- Version number HOT 1
- Animatable screen using CSS animations HOT 3
- Consolidate text to allow copy/paste HOT 13
- Colors are not picked up when content is from clipboard instead of pipe HOT 22
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.
from ansisvg.