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

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

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

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 ...
15
votes
2answers
498 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 ...
13
votes
1answer
1k views

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

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

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 ...
12
votes
2answers
890 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. ...
11
votes
3answers
1k views

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

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

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" #+...
10
votes
4answers
6k views

Disable enlarged org-mode header appearance

I am using org-mode on Macintosh GNU Emacs version 24.5.1 in GUI mode and the headers are enlarged. I would like to disable this feature so they rendered in the default font size. I have tried this... ...
10
votes
1answer
1k views

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

I am trying to set [Inconsolata-dz][1] as my default font to Emacs. Regular Inconsolata works fine, but the dz version is not working properly. Most functions I use keep throwing this error (followed ...
9
votes
2answers
822 views

Better debugging of crashing Emacs?

Although Emacs (24.3.93.1) runs fine if launched from the Finder, if the terminal version is launched: /Applications/Emacs.app/Contents/MacOS/Emacs -nw Emacs crashes with: Fatal error 11: ...
9
votes
1answer
4k views

How to improve emacs font rendering

On the left: emacs in console mode. On the right: emacs with GUI. Running 24.5.1 on Arch linux. Both my console and emacs have the font set to Inconsolata 12. What can I do to make the emacs with GUI ...
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 ...
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 ...
7
votes
1answer
426 views

Set font for a specific file?

I'd like to always display one particular text file named "table.txt" in a monospaced font, while displaying all the other buffers in a variable-width font. How can I achieve this? Edit: the ...
7
votes
1answer
278 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
7
votes
3answers
1k views

単 does not show up in Emacs, how to fix?

I'm editing a text file containing Japanese kanji characters. 単 does not show up in Emacs, how to fix? It shows up as some sort of white space. Update: I'm using GNU Emacs 24.3 (9) for Mac. After ...
7
votes
0answers
1k views

How to better align tags in Org Mode using variable-width font

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is ...
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
232 views

Variable-width font in info- and help-mode with correct text width?

If I use info inside emacs and enable variable-pitch-mode, all text is displayed in proportional fonts, but the text width is all wrong, because info-mode laid out the text assuming fixed-width ...
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-...
6
votes
1answer
214 views

How can I prevent large characters from breaking alignment?

How can I ask Emacs to scale or truncate wide characters (resp. pad narrow characters), so that falling back to a variable-width font does not cause alignment to be broken? I'm thinking of cases like ...
6
votes
1answer
430 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, ...
6
votes
0answers
1k views

Selecting correct font weight variant (Linux)

Here's a minimal example that does something on Linux (Ubuntu 16.04) that doesn't seem right to me: M-: (set-frame-font "Ubuntu") M-x describe-font <RET> The first couple of lines that Emacs ...
5
votes
1answer
133 views

Define a new key binding for font (Auctex)

I want to create a key binding like C-c C-f C-c to get \mathscr{} inside math environment. This is because there is no default key binding for getting \mathscr. How to do this? Remember that C-c C-f C-...
5
votes
1answer
574 views

New frame does not respect default font

I use Emacs mostly to write R using ESS. I like a large font to reduce eye strain so the last line of my .emacs file is: (set-default-font "Inconsolata-20") If I open a file of R code, this appears ...
5
votes
2answers
662 views

Can Emacs provide a wide scrollbar (birds-eye view) of code?

Microsoft Visual Studio has a very useful wide scrollbar where you get to see the whole file scaled so it fits vertically. Is there a way to do this in Emacs? I've looked into having a 2nd frame and ...
5
votes
1answer
418 views

How to set a fractional font size in Emacs?

I'm so close to getting two 80-char vertical buffers side by side on a 1366px wide monitor. I've got a cool frame font, (set-frame-font (font-spec :family "Monkey" :size 20 :antialias nil)) I've ...
5
votes
2answers
3k views

Setting Default Font in Emacs 26.1

I want to set a default font in my Emacs (version 26.1, running on Arch, using Xmonad). I have tried various options in my init.el file (under .emacs.d). None seemed to work or persist when I ...
5
votes
2answers
943 views

Opening emacsclient -n -c opens a small frame with small fonts

I had set up a emacs --daemon at the OS startup and whenever I try to open emacsclient -n -c emacs opens a small window (possibly the minimum size possible) and with unreadable fonts (they are too ...
5
votes
2answers
795 views

Make “text-scale-increase” increase font by one?

Currently for me "text-scale-increase" and "C-X X-+" increase the font size by very high number- so it is either super big, or super tiny. How do I make it to increase it by 1?
5
votes
2answers
1k views

Fixed-width space character with a variable-width font?

Is it possible to display a space with a monospace font, while displaying all other characters with a variable-width font? I tried (set-fontset-font t '(#x20 . #x20) (font-spec :family "Source Code ...
5
votes
1answer
996 views

Easiest way to render an overline in org mode?

Org mode has support for showing unicode in place of latex commands through org-pretty-entities. Org mode also has support for underlining through font locks that are activated through the _ character....
5
votes
0answers
503 views

Org mode italic does not work with some popular fonts in Linux

In org mode /word/ will display the word in italic. For me on Linux, that works for some fonts like Liberation or DejaVu but doesn't work for others, like Monaco, Noto, Inconsolata. I think fonts were ...
4
votes
2answers
2k views

Can't adjust font size anymore in emacs 25

I just upgraded Emacs to 25.1.1 (via the Arch Linux package manager pacman). Now I can't set the font size in my .emacs anymore. I am able to adjust it via C-x C-+ and C-x C--, and I can also use M-...
4
votes
2answers
703 views

How to change font of current frame?

I have two displays and different frames on each. Each display has very different DPI so I need different fonts sizes for them. How can I set different fonts sizes for different frames (font size ...
4
votes
2answers
742 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. ...
4
votes
1answer
522 views

Terminal warning when starting emacs

If I start emacs from the terminal, emacs will start up with a warning on the terminal: Warning: Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct I tried ...
4
votes
2answers
158 views

Forbidding variable font sizes

In LaTeX mode, the content of \frametitle{...} gets a bigger font size. How can I prevent that from happening? And is there a general to prevent /all/ variation in font size? (I wish emacs would ...
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'...
4
votes
1answer
406 views

Is there a way to use spacemacs with emacs 24.3 version?

I am working in a cluster environment, where the default emacs version is 24.3. Unfortunately spacemacs support only from >24.4. Administrators refuse to update the version. They asked me install my ...
4
votes
1answer
3k views

What is the proper way to identify a font for .spacemacs file?

Spacemacs isn't finding my Source Code Pro font files, and I think it's a naming issue. I have the fonts installed and in the font cache, /usr/local/share$ fc-list : file | grep source Returns: /...

1
2 3 4 5 6