Questions tagged [fonts]

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

Filter by
Sorted by
Tagged with
37
votes
5answers
49k views

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 ...
3
votes
2answers
2k views

Ligatures with the JetBrains Mono font

After installing the JetBrains Mono Font and setting it as my default face. I am wandering how to enable Ligatures in Emacs. I tried a solution based on this answer that show how to do this with Fira ...
8
votes
1answer
1k views

Force a single font for all unicode glyphs

I'm using GNU Emacs 24.4.1 in a GUI on OS X. I want to force every character to be displayed using just a single font rather than allowing Emacs to choose a supposedly most appropriate. I understand ...
4
votes
2answers
747 views

How to assign a certain font for each input method/language in Emacs 24?

C-x RET \ or M-x set-input-method to select the text input method; e.g. I use greek and hebrew. I must say C-\ is genius, because it brings you back to the default input which you use the most. ...
3
votes
2answers
645 views

Every letter in emacs is now separated by a space

Today when I opened Emacs (26.3) for the first time since updating Linux (Arch) I was greeted with a wide (two spaces) cursor, and every letter on the screen separated by a space, like this: F i l e ...
6
votes
2answers
223 views

some unicode characters such as “⊆” occupy 3 lines in emacs 24.4.1 on ubuntu gnome 15.04 64bit

Not every unicode character occupies 3 lines, but '⊆', '∈', and other unicode mathematical symbols occupy 3 lines in emacs on my system. How can I fix this rendering bug?
6
votes
2answers
364 views

How to set the glyph of a unicode character?

I would like to set the glyph of a certain unicode character. Specifically, I would like the glyph § (SECTION SIGN) to represent the unicode character U+202A (LEFT-TO-RIGHT EMBEDDING), a normally non-...
51
votes
2answers
8k views

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 ...
24
votes
4answers
4k views

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 ...
15
votes
2answers
504 views

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 ...
13
votes
3answers
15k views

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 ...
8
votes
2answers
1k views

Japanese / CJK font settings for proper horizontal alignment

I've had this right at one point in the past on one machine with a certain font type at a particular font size, but I can't seem to get it right again. Look e.g. at how my org mode tables look once I ...
6
votes
2answers
2k views

How can I determine the width of characters on the screen?

Specifically, I'm interested in the width of characters in the default font assuming that the default font is mono-spaced. From reading the documentation, I got the impression that this should give ...
12
votes
2answers
891 views

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. ...
2
votes
1answer
2k views

Enlarge font size of function names in source code like Source Insight

Source Insight can show function names in a larger font. Can Emacs display function names with a larger font and different color?
2
votes
1answer
593 views

Is it possible to change the font size in specific buffers?

I would like to have different font sizes for the buffer windows in Emacs. That is, I would like to have a bigger font in the buffer where i write the code, and a smaller font in the buffer where i ...
1
vote
1answer
436 views

How to use different fonts based on the language of the currently active keyboard layout?

I want to make Emacs aware of the language I input -- in my case, Arabic, English, German -- so that I can use different fonts for each of them. So, for example, I'd like Emacs to use the following ...
2
votes
1answer
240 views

How to make fonts show anti-aliased on Linux/X11?

With Linux/X11, certain font's show without anti-aliasing. JetBrains Mono Cascadia Code These two fonts show with anti-aliasing in other programs (st terminal for example). All other fonts show with ...
2
votes
2answers
492 views

How to change emacs font size on the fly from commandline?

Using 1autorandr for multimonitor detection, the script below is runned each time I dock my machine. In order to use spacemacs on the 4k monitor I curently must hit M-x zoom-frm-in. What command ...
1
vote
2answers
1k views

Org mode bullets

I am using org-bullets package but the rendering of unicode bullets doesn't seem correct to me. I tried changing the to different fonts without any success. Also I can't find anything related to ...
1
vote
3answers
632 views

How to determine where a face (as it appears on the screen) is defined?

I very much dislike the font faces I get for some modes. I know that I can customize them, but in some cases (e.g. org-mode) this would require customizing dozens of faces. Therefore, what I really ...
0
votes
1answer
159 views

What could be causing some characters to be displayed so tiny?

I'm using Spacemacs, and it uses a few special unicode characters in the modeline. Some of them look fine, but others are microscopically tiny: In this screenshot, notice that the a, y, and p ...