-
Notifications
You must be signed in to change notification settings - Fork 20
Working with WHHG icons
FilipLeitner edited this page Apr 30, 2024
·
3 revisions
- Only add new icon when it is needed in the GUI
- Do not use the same icon to represent different features
- Find the icon you need at https://www.webhostinghub.com/glyphs/#preview
- Inspect the icon to find its code, e.g.
.icon-addcomment::before {content: '\f74a';}
- Copy this CSS style into whhg.css file (projects > hslayers > css > whhg-font > css)
- Add correspondingg new line inside the subset-font.sh file (projects > hslayers > css), e.g.
# icon-addcomment U+f74a
and the icon's code into the penultimate line, e.g. ...",U+f05c,U+f74a" --output-file="
... - Run the subset-font.sh script
- Navigate to https://www.giftofspeed.com/base64-encoder/ , encode the updated subset.ttf file and copy the base64-encoded content
- Paste the base64-encoded font inside the
src
property of@font-face
rule inside the whhg.css file. E.g.@font-face { font-family: 'WebHostingHub-Glyphs'; /* Encoded using https://www.giftofspeed.com/base64-encoder/ */ src: url(data:font/opentype;charset=utf-8;base64,AAEAAAAQAQAABAAAR0RFRgASAE....
. Don't touch theurl(data:font/opentype;charset=utf-8;base64,
prefix, neither the) format('truetype');
suffix - DONE
Quick Links: Home ➖ App configuration ➖ Layer configuration ➖ Cesium configuration ➖ Composition schema (separate repo)