GithubHelp home page GithubHelp logo

Comments (2)

jkzinzindohoue avatar jkzinzindohoue commented on July 23, 2024

I had the same issue, I think that emacs default font does not support some of the unicode characters. Installing Deja Vu Sans Mono and setting it as my default font did it for me :
http://dejavu-fonts.org/wiki/Download

I added (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10")) to the .emacs.

The rest works pretty well, thanks !

from fstar-mode.el.

cpitclaudel avatar cpitclaudel commented on July 23, 2024

Indeed, it's a font issue. Emacs doesn't really come with a default font; it uses the system one, and resorts to font fallback when the default font doesn't cover a particular character.

What this means is that just installing a font with good coverage should normally be enough to get the symbols to display properly. That doesn't always cut it, though (there are some small issues with font fallback, on Windows in particular).

DejaVu Sans Mono, Symbola, FreeMono, STIX, Unifont, Segoe UI Symbol, Arial Unicode and Cambria Math are all good candidates. If Emacs doesn't pick up on the new fonts after a restart, the following snippet should help:

(set-fontset-font t 'unicode (font-spec :name "YOUR USUAL EMACS FONT") nil 'append)
(set-fontset-font t 'unicode (font-spec :name "SOME FONT WITH GOOD COVERAGE") nil 'append)

from fstar-mode.el.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.