Giter Site home page Giter Site logo

Allow loading of external fonts about ansisvg HOT 4 CLOSED

wader avatar wader commented on May 24, 2024
Allow loading of external fonts

from ansisvg.

Comments (4)

wader avatar wader commented on May 24, 2024

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.

patrislav1 avatar patrislav1 commented on May 24, 2024

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.

wader avatar wader commented on May 24, 2024

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.

patrislav1 avatar patrislav1 commented on May 24, 2024

Yes, sounds good.

from ansisvg.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.