41
Ohjelmointi, palvelimet ja muu edistyneempi käyttö / Vs: ikonien käyttö bash-skriptissä
« : 15.08.22 - klo:20.29 »
Onistuuko tällä ohjeella linkittämältäsi sivulta?
Luultavasti font avesome pitäisi asentaa ennenkuin toimii.
Lainaus
3. Convert unicode icon characters to proper UTF-8 HEX codes
You can't just put the fontawesome characters directly, you have to find out the proper UTF-8 encoded in HEX format. To do so, choose the icon you like, if your terminal supports directly copy paste, check it with hexdump -C command, look at the example bellow,
echo -n | hexdump -C
Cpoy only first six hex characters (3 bytes) , ef 80 87 in this case, and configure it to print the required icon character.
echo -e 'xefx80x87' # test it
just put the x prefix before every two hex character. Find out the rest characters in the same procedure.
example:
xefx80x87 for
xefx87xba for
xefx85xbc for
Luultavasti font avesome pitäisi asentaa ennenkuin toimii.