Questions tagged [fonts]

specifying fonts and font enhancements, and in Emacs, fonts are closely associated with `face` and `font-lock` features.

354 questions
53
votes
2 answers

OTF ligature support in Emacs

PragmataPro is a typeface that comes with a number of programming ligatures. My understanding is that these are OpenType face (OTF) ligatures. I am aware that Emacs supports programmatic replacement of character combinations (for example -> to ⟶ or…
Matthew Piziak
  • 5,958
  • 3
  • 29
  • 77
46
votes
6 answers

How can I set default font in Emacs?

I can't set Inconsolata as default font in Emacs 24.4 Linux. I changed the font in the menu -> Save options. The font changed but after a restart the font is the same as it was by default. Added this to ~/.Xresources: Emacs.font: Inconsolata…
Maglight
  • 643
  • 1
  • 5
  • 6
25
votes
4 answers

Line height with unicode characters

Some Unicode characters cause the line they are displayed on to be quite large. For example, a grave accent "̀ " adds about 2.5 lines of space above and below it. Other characters that cause this behavior include the Greek letter "ϕ" (phi) or…
Patrick Steele
  • 1,105
  • 9
  • 10
25
votes
1 answer

How do I set up font fallback in a robust way?

TL;DR: What's a simple way to reliably say: use Consolas as the default font, FreeMono for the characters unsupported by Consolas, and Symbola for characters unsupported by both? Since my main programming font does not cover all the mathematical…
Clément
  • 3,924
  • 1
  • 22
  • 37
21
votes
2 answers

Using a different font for each major mode

Is it possible to set different fonts following the major mode? Say Inconsolata-12 in org-mode buffers and Symbola-12 in all remaining modes. Or at least, is it possible to do a (set-frame-font "Inconsolata" t) after switching to org-mode buffers?
csantosb
  • 1,045
  • 6
  • 15
19
votes
2 answers

How can I set different font sizes for buffers and for the mode-line?

I have this line in my init.el file to set the size of the font in all frames: (push '(font . "DejaVu Sans Mono-10") default-frame-alist) It works but i'd like to have a bigger font in all buffers while keeping a smaller one for the mode line (so…
undostres
  • 1,793
  • 12
  • 15
17
votes
4 answers

How to set the default font size?

I find myself consistently zooming out (C-x C--) in every buffer that I am using in order to see more lines of code that I'm working on. Is there a way to set the zoom level in my .emacs, not interactively? Or should I look into setting the…
aepound
  • 273
  • 1
  • 2
  • 8
16
votes
2 answers

Can I take vector (SVG) screenshots of Emacs?

The gtk-vector-screenshot program can be used to take vector screenshots of Gtk-3 applications. It seems to work by asking the application to redraw itself onto an SVG canvas. Emacs on GNU/Linux can be built with Gtk+, but trying to use the…
Clément
  • 3,924
  • 1
  • 22
  • 37
14
votes
2 answers

Force using fixed-width font in org-mode

What's the simplest way of forcing Emacs org-mode to use the same fixed-width Font Family and Height everywhere (but keeping other properties distinct, like Foreground)? I could make all org-level-n faces inherit from fixed-pitch, or make…
rsenna
  • 315
  • 3
  • 9
14
votes
2 answers

Align columns in Org mode table with Japanese fonts

How can I mix Japanese and English in the same org-mode table (that uses fixed-width fonts)? Something like: | m m m m m m | | | はどう デシウ | | | ハーフ | ハーフ | won't align. Emacs simply counts the Japanese characters as one,…
Quora Feans
  • 515
  • 3
  • 11
14
votes
1 answer

How to Strike out DONE items in org-mode?

I saw some folks have a way to strike out DONE items in org-mode. How do you do that?
Leo Ufimtsev
  • 4,488
  • 3
  • 22
  • 45
13
votes
4 answers

How to customize org-mode indentation?

this question actually arises because I like to use non-monospaced fonts, (Sabon, Minion, Garamond, etc.) This cause a problem when use org-indent-mode, since the text under the headlines are now not aligned with the headlines. Example: The font is…
Alex
  • 415
  • 5
  • 12
13
votes
1 answer

Excessive line spacing with certain fonts

For a long time I've been using DejaVu Sans Mono as my programming font. I've yet to find a better font. But a little while ago I discovered Mozilla's Fira, which looks very nice for code. So I decided to give it a try in Emacs. Unfortunately,…
user3871
12
votes
3 answers

Using both fixed-width and variable-width font in org-mode

I would like to have an org-mode file with the following content: #+TITLE: My awesome Emacs file * My Header Here's some information under the header #+BEGIN_SRC sh echo "this is some code" #+END_SRC More text and =verbatim= things Is it…
Lee H
  • 2,697
  • 1
  • 16
  • 31
12
votes
3 answers

Emacs doesn't display color fonts at all

I tried to add Noto Color Emoji from Google Noto as my font for Emoji in GNU Emacs, as mentioned in here, but for some reason GNU Emacs doesn't display these characters properly in its window. I'm using GNU Emacs 24.5.1 on GNU/Linux. Is this a bug…
user12563
1
2 3
23 24