emacsorphanage / fontawesome

fontawesome utility
33 stars 6 forks source link

helm-fontawesome buffer encoding #8

Closed jwintz closed 7 years ago

jwintz commented 7 years ago

Hello,

For some reasons I can't explain, fontawesome for emacs works great on my mac laptop, but not on my mac desktop, I however have the exact same setup since it is under version control (brew packages and emacs version are identical, just as ~/.bashrc and ~/.bash_profile).

Also, my emacs config contains:

(prefer-coding-system 'utf-8)

(setq coding-system-for-read 'utf-8)
(setq coding-system-for-write 'utf-8)

Any ideas why I have this rendering issues ?

Thanks !

syohex commented 7 years ago
jwintz commented 7 years ago

I'm running Emacs 26.0.50.1 on Sierra, on both systems and fonts are installed. They show correctly in helm-fontawesome buffer, but not once inserted. However it doesn't affect all glyphs. As an example, git and dashboard render just fine, while tag and align-left don't.

screen shot 2016-12-19 at 15 46 55

The former should be rendered in the first line, and the latter as the first character of the modeline.

And here it show it shows when everything is in place:

screen shot 2016-12-19 at 17 06 03

Anyway, I'll try to figure it out myself, thanks for the support and the excellent packages !

jwintz commented 7 years ago

Fixed. When appending to buffer from emacs-lisp, use:

(propertize "" 'face '(:family "FontAwesome"))

instead of just

""