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
3
votes
2answers
3k 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
2k 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
847 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
760 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 ...
41
votes
6answers
53k 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 ...
6
votes
2answers
423 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-...
6
votes
2answers
230 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?
2
votes
1answer
419 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 ...
52
votes
2answers
9k 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 ...
25
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 ...
16
votes
2answers
608 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 ...
15
votes
3answers
18k 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
2k 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 ...
6
votes
1answer
462 views

Ragged menu in company-mode

I am using emacs-mac-port 24.4 on OSX 10.10. My company-mode drop-down menu is ugly. The unicode symbols in it are not the same width, which results in a ragged menu. The left image is with Monaco, ...
4
votes
1answer
722 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 ...
12
votes
2answers
1k 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. ...
4
votes
1answer
440 views

Fontify org quote blocks with font-locked markup

I have org-fontify-quote-and-verse-blocks set to t and '(org-block ((t (:foreground "#2E8B57")))) to make quote blocks stand out in a particular color. However, this also means that I cannot get ...
4
votes
2answers
1k views

Spacemacs - Change font size based on system name

I use one synced dotfiles repository for all of my computers, with some system-specific customization built-in. I've got a new high-DPI display on one of my computers, and would like to increase Emacs'...
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
2answers
241 views

Override the default font for emoji characters

My fonts setup is (setq default-frame-alist '((font . "DejaVu Sans Mono-10"))) (defun my-emoji-fonts () (set-fontset-font t 'symbol "Twemoji") (set-fontset-font t 'symbol &...
1
vote
1answer
531 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
2answers
733 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 ...
2
votes
1answer
689 views

Term buffer font-size

I am trying to make term buffer to use slightly smaller font than of the rest of Emacs. I was able to quickly find that for that I need to customize term face. I changed the font size, and indeed ...
1
vote
2answers
717 views

JetBrains Mono Ligatures Emacs27+

I know there is already a post asking this, but the author is using Emacs 26.3 and for what I've read starting with Emacs 27 there is now proper support for ligatures, but they should be enabled in ...
1
vote
3answers
732 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 ...
1
vote
2answers
2k 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 ...
0
votes
1answer
183 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 ...