sciter-fontawesome
v1.1.4
Published
sciter.js fontawesome support
Downloads
23
Readme
sciter fontawesome
Fontawesome 6 support for sciter.js.

demo
- git clone the repository
- install packages
npm install - install latest sciter sdk
npm run install-sdk - start the demo
npm run scapp
demo requirements
- A recent version of Node.js
node(tested with 22 LTS) and its package managernpm.- On Windows download and run the installer
- On Linux check the installation guide
add to your project
using npm
- install package
npm install sciter-fontawesome - include
<style src="node_modules/sciter-fontawesome/src/fontawesome.css" />
copy source
- add the
srcdir to your project - include
<style src="src/fontawesome.css" />
known issues
on linux the fontawesome font cannot be installed *
Current Linux implementation does not support this functionality. GTK/Cairo has no means for that. Please wait for Sciter 5.X.X.X where I am switching to Skia as a primary backend on Linux.
how to convert fontawesome css to work with sciter
download
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.css https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.ttf https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-regular-400.ttf https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.ttf https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-v4compatibility.ttf
in all
all.cssremove all
:root, :host {...}remove all
srcfrom@font-faceexcept thettfonesremove
format("truetype")from@font-facecomment
unicode-range:...;remove unrecognized
@-webkit-keyframespropertiesreplace all
:beforeby::beforefinally add to the end of file
// reset ux-master.css default vertical flow
button {
flow: horizontal;
}
// reset master-base.css properties on first and last child
button > :first-child {
margin-top: 0;
}
button > :last-child {
margin-bottom: 0;
}
// fix icons vertical alignment in button
button > i {
vertical-align: middle;
}
// improve icon position in button
button > i:first-child {
margin-right: 0.5em;
}
button > i:last-child {
margin-left: 0.5em;
}