manateelazycat / nox

Nox is a lightweight, high-performance LSP client for Emacs
209 stars 15 forks source link

nox-show-doc not work when "WenQuanYi Micro Hei Mono" not available #1

Closed hzzhang closed 4 years ago

hzzhang commented 4 years ago

If "WenQuanYi Micro Hei Mono" font is not available, nox-show-doc will produce the following error message:

error in process filter: set-face-attribute: Font not available: #<font-spec nil nil WenQuanYi\ Micro\ Hei\ Mono-14 nil nil nil nil nil nil nil nil nil ((:name . "WenQuanYi Micro Hei Mono-14") (:user-spec . "WenQuanYi Micro Hei Mono-14"))>

Is it possible to make nox-show-doc following the existing font configuration, or make the font configurable?

hzzhang commented 4 years ago

Just notice nox-doc-tooltip-font was added. After setting it to a proper font, my issue was solved.

manateelazycat commented 4 years ago

Thanks for report, see also https://github.com/manateelazycat/nox/commit/a55c65ef1ed46553268812f5cd48381d5b049bdf

hzzhang commented 4 years ago

That is pretty cool! I even do not need to explicitly set the tooltip face. Thanks for the quick fix and improvement!