-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Use embedded SVG instead of fonts for icons, font-awesome 6.2 #1330
base: master
Are you sure you want to change the base?
Conversation
e22d06d
to
dec63d3
Compare
Thanks for the PR! I don't think this is something we can land right away, because I believe there are books that are using the FA icons, and this would break them. I'll try to review it when I get a chance, but merging may need to wait until the next major release. |
That’s fine. mdBook is still 0.4, so it can still release a 0.5 some time. Also, I should probably document the |
325be0f
to
3dde776
Compare
@ehuss Docs and inline fixup for fontawesome icons have been added to the HTML renderer, so that books using font-awesome will still be able to do so. |
de13cfa
to
96c3719
Compare
3bdc201
to
9b0ccfb
Compare
@ehuss Now that the fixups are included to allow books that already use font-awesome to continue doing so, and the documentation is written, is there anything else preventing this from being included in the 0.5.0 milestone? |
ec0479e
to
25f3c74
Compare
The [downsides of icon fonts] are well-documented, and also, why ship all of the icons when it only uses 14? [downsides of icon fonts]: https://speakerdeck.com/ninjanails/death-to-icon-fonts
Is there interest in reviving this pull request? I can try to bring these changes up to date with the latest in the repository... 👀 |
@uncenter yes if you can that would be helpful. Thanks |
The downsides of icon fonts are well-documented, and also, why ship all of the icons when it only uses 14?
Note:
font-awesome-as-a-crate 0.2.0
requires Rust 1.49.0, because it performs pattern matching on byte slices in aconst fn
. See rust-lang/docs.rs#1573