Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
This post was updated on Oct 10, 2019; 11:57pm.
I've noticed some strange behavior when using Font Awesome inline icons.
1) Some icons get mirrored horizontally. The icon "ambulance" for example is shown driving to the right on Font Awesome. However, as an inline icon in the HTML output it drives to the left. (by the way, in ASCIIDoctor-PDF's output the ambulance drives to the right, as expected). 2) Some icons don't show I could not yet find a rule to this behavior but some of the icons just don't show on the HTML page (even though the code is embedded correctly in the HTML source). Working: bullseye, bullhorn, comments Not Working: mail-bulk, comments-dollar, lightbulb It seems to me like all the icons that have a hyphen in their name don't show. However, the lightbulb is written without a hyphen and still doesn't show so I'm not sure what the pattern is here. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Keep in mind the HTML converter uses Font Awesome 4, not Font Awesome 5. Asciidoctor PDF uses Font Awesome 5 with shims for Font Awesome 4. The switch to Font Awesome 5 in the HTML converter is very breaking, so we cannot do it before Asciidoctor 3. -Dan On Thu, Oct 10, 2019 at 3:10 AM TheMagician [via Asciidoctor :: Discussion] <[hidden email]> wrote: I've noticed some strange behavior when using Font Awesome inline icons. ... [show rest of quote] -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
That explains it. Thank you!
Perhaps the third paragraph of chapter 45 of the manual could be changed to: Alternatively, you can have Asciidoctor “draw” icons using the Font Awesome 4.7 font-based icon set. |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
|
Indeed. If you'd like to propose that change, I'll merge it in. Best, -Dan On Thu, Oct 10, 2019 at 5:57 PM TheMagician [via Asciidoctor :: Discussion] <[hidden email]> wrote: That explains it. Thank you! -- Dan Allen | @mojavelinux | https://twitter.com/mojavelinux |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Is there an option to pass on the style (such as far or fas) within an adoc file at the moment?
|
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
The current HTML5 output uses FontAwesome 4.7
The far/fas style was added in FontAwesome 5 AFAIK You can follow the discussion on upgrading AsciiDoctor to FontAwesome 5 on GitHub. So the answer to your question is "no" considering out-of-the-box options. There is always the chance of pass-through content (with the caveat mixing HTML with AsciiDoc and making the result less maintainable) or writing an extension of an inline macro that supports FA 5.
Alexander Schwartz (alexander.schwartz@gmx.net)
https://www.ahus1.de |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Thank you, Alexander! I got this now.
|
Free forum by Nabble | Edit this page |