Giter VIP home page Giter VIP logo

Comments (4)

cscheid avatar cscheid commented on September 10, 2024 1

@elipousson we're a bit swamped right now as you have noticed. I'll get to it when I can.

from fontawesome.

cderv avatar cderv commented on September 10, 2024

Related issue on typst to follow

Someone made a typst library for it for now: https://github.com/duskmoon314/typst-fontawesome (it is findable in search list at https://typst.app/docs/packages/). They have nice syntax and lots of icons it seems: https://typst.app/project/rQwGUWt5p33vrsb_uNPR9F

I just learnt about this experimental package repo: https://github.com/typst/packages
Really cool to see all this available!

from fontawesome.

elipousson avatar elipousson commented on September 10, 2024

I made some progress on this but I'm not very familiar with Lua so I think I may still be missing some issues. I was able to implement support for relative sizes (e.g. "2xs" to "2xl"), limited support for groups ("brands" group only), and colored fill.

Unfortunately, while these all work for inline shortcodes—the shortcodes in the table from the example don't render as expected. In addition, the shortcode errors when used with LaTeX sizes ("tiny" to "Huge") and the literal sizes for HTML ("1x" to "10x"). The latter issues seem solvable (I'm just unsure how) but the first issue has me stumped. The shortcode also worked in tables before I implemented the group parameter!

Tips or suggestions of changes to try are welcome.

from fontawesome.

elipousson avatar elipousson commented on September 10, 2024

I just made a few updates to the PR:

  • Fixed the issue with icon rendering so they work in tables as well as inline
  • Added support for LaTeX sizes ("tiny" to "Huge")
  • Renamed the fill argument to color for consistent with #35
  • Updated the example document to document the format-specific parameters

Literal sizes for HTML ("1x" to "10x") are still not handled well and color-handling could be improved but it is coming together. No rush to review @cscheid but just wanted to make sure you saw this existed.

from fontawesome.

Related Issues (20)

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.