-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Enable Font Awesome icons #15
Comments
I haven't finished implementing support for Font Awesome yet, but the precursor materials are all there. Here are the steps to complete it:
I'm not sure how soon I can get to it, but if you take a shot, I'd certainly be there to help out. |
I'd already done 1 and 2, but not 3 or 4. Looking at the
I tried uncommenting the |
I hadn't yet added the logic to check for the font attribute value. You can see an example in the html5 converter: |
@mojavelinux: I'm not sure on your policy/opinion about dependencies, but I recently made a Prawn extension for rendering FontAwesome icons to a document. Prawn::Icon provides a simple API to render and style icons within Prawn documents. The extension also takes care of providing necessary Sorry for the shameless self-promotion - my intentions are to help the community. |
Cool @jessedoyle! That could definitely help us solve this issue. I'll definitely look into it. |
+1 |
1 similar comment
+1 |
Hi guys, I submitted pull request #90 that implements icon-based admonitions. Feel free to use it as a starting point! |
Thanks @jessedoyle! I'm hoping I'll be able to look at this soon. |
Awesome @mojavelinux! I'm going to be away for a couple of weeks so leave me a message if you have questions or concerns. I'll get to it as soon as I get back. |
👍 Thanks for getting the ball rolling! |
Thanks to @jessedoyle, this is now resolved. As a follow-up, I'd like to make the icons names and colors optionally part of the theme. This is clearly something people are going to want to customize. I've filed an issue to track this improvement. See #121. |
You shouldn't need to do anything special to enable this. As you've figured out, the prawn-icon gem provides and loads the necessary fonts. Can you try to generate the examples/chronicles-example.adoc document in the repository and see if icons work there. That will tell us whether it's an issue with your environment or your document. |
@mojavelinux Thanks for the prompt response. It works now. The issue was that I'm very new to asciidoctor and didn't realize that there should be :icons: font at the top of the document. When I added that, it works :) |
👍 |
The PDF uses text tags instead of fontawesome icons for admonitions, even if you add
-a icons=font
to the command line. Any hints?The text was updated successfully, but these errors were encountered: