|Ondřej Hruška 86bf9c215e mention the custom css||9 months ago|
|Fork-Awesome @ 285008117b||9 months ago|
|output||9 months ago|
|patcher||9 months ago|
|.gitignore||9 months ago|
|.gitmodules||9 months ago|
|README.md||9 months ago|
|build.sh||9 months ago|
|install.sh||9 months ago|
|package-lock.json||9 months ago|
|package.json||9 months ago|
|screenshot.png||9 months ago|
This is a little hack that lets you generate custom Fork-Awesome builds with only a subset of icons.
Mostly dependencies of the Fork-Awesome project:
bundle(package may be named
Fork-Awesome/folder is not empty.
git submodule initand
git submodule update
./install.sh. This should prepare the FA submodule for building the font.
fontcustom.default.ymlhave been created.
wanted.ini, and customize it as needed.
#will be excluded.
fontconfig.ymlif you wish to give your custom font a different name, or change the class prefix.
./build.shto build your customized font.
The generated font should be compatible with the Fork-Awesome CSS. However, our CSS is different.
This version does not include any of the FA helper classes (like
fa-spin), and you also don't need to use the
to apply the font. Simply add the icon class, like
fa-star, to your element, and the icon will appear in
::before pseudo-element. This behavior is similar to fonts generated by fontello.
<i class="icon-save"></i> abusing the italic element
<div class="icon-save"> this works too</div>
Note that the icon does not include any spacing by default. If you want it, add it in your custom CSS, or include spaces
in your HTML (perhaps using
). You can also customize the CSS template in
this is used as a header, followed by the icon codes.
Another way to add the icon to an element is by adding
Ӓ is a character entity
code you copied from the preview HTML. This is a bit harder to use, but may be useful in some situations. You can also
use this method to sneak emoji or other characters into your pages as icons, but you have to html-encode them first.
<i data-icon="😀"></i> this is a grinning face emoji
--- EOF ---