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
1
vote
2answers
33 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 &...
2
votes
1answer
139 views

FiraCode font not rendering italics

I have been trying to get FiraCode to work inside of Doom Emacs and have mostly succeeded. Everything works except for italics, even bold and ligatures are fine strangely enough. When I switch to ...
0
votes
1answer
20 views

How to get “:size” from font-spec

How can I get :size from font-spec using Elisp?
38
votes
6answers
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 ...
0
votes
1answer
71 views

Changing text size doesn't work on all fonts in org-mode

I have the following in my config: ;; set a non programming font for text (when (member "Lucida Sans Unicode" (font-family-list)) (set-face-attribute 'variable-pitch nil :font "...
4
votes
2answers
117 views

How to enable opentype features in `font-spec`?

I'm using Emacs 28 (HEAD) on Debian Stable, compiled with HARFBUZZ and cairo (if that's important). I'm trying to enable opentype features on the Pragmata Pro font (as shown here). (font-spec :family &...
0
votes
0answers
34 views

JetBrains Mono font settings

I have been trying to configure emacs to use JetBrains Mono font, unfortunately i can hardly understand the way emacs handles font settings, there are way too many options and stuffs going on. So i ...
3
votes
1answer
1k views

Wrong letter spacing when using certain fonts

I'm using Classic Console font in buffers. Unfortunately for some reason letter spacing is terrible in Emacs while being correct in Konsole and other programs. Text in Emacs: Text in Konsole (using ...
0
votes
0answers
40 views

Misusing small font size as subscript

For typing mathematical formulas in emacs I often run into the problem that certain characters are not available as subscript (or superscript) characters. Since I would like a simple solution without ...
0
votes
1answer
240 views

How does Emacs manage Italics and Bold?

I use TrueType fonts with Emacs under X. There are specific Italic and Bold files for most fonts. All of them are recognized by font config and therefore by emacs. How does Emacs uses bold and ...
0
votes
1answer
88 views

Why Emacs cannot display emojis

Sorry if this was answered somewhere else, but I could not find an answer. All the text editors installed in my system can display emojis except Emacs (version 27), even if they use the same font. As ...
0
votes
2answers
453 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 ...
0
votes
1answer
82 views

In gui, font looks thicker than usual

I started using Emacs a few days ago and facing the problem. I use "M+ 1mn" for programming so I set this for Emacs. But It looks thicker than usual.(in Geany, VSCode, Xfce Terminal ...) How do I fix ...
18
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 ...
4
votes
2answers
1k views

How do I change the menu font size?

Right now the font in the menu bar is way too big, so I would like to add a line to my .emacs file that regulates that font size. I already have a line that takes care of the buffer font size, but it ...
2
votes
1answer
76 views

Default font selection behaves strangely

After upgrading to Emacs 27.1, my default font changed to adobe courier. I would like to use Anonymous Pro or Inconsolata, but attempts to change it using M-x customize-face RET default fail. I am at ...
2
votes
0answers
47 views

replacement for `emacs -xrm Xft.embolden:true -fn Hack-13` for emacs 27.1

For last 2 years (2018-) I've been using emacs -xrm Xft.embolden:true -fn Hack-13 to start emacs w/ suitable sized and 'brightness'ed fonts for me in my systems. What that does gives extra boldness to ...
1
vote
2answers
71 views

Change font size globally with a shortcut

When I need to change the font size I evaluate the following region: (set-frame-font "JetBrains Mono-14") This is far from optimal since it involves a lot of typing. I'm looking for an ...
1
vote
2answers
31 views

How to cycle over a pre-defined list of fonts?

I would like to be able to switch fonts quickly between a predefined list of mono-spaced fonts I know work well in Emacs. Instead of selecting the font from all system fonts which shows too many, most ...
1
vote
1answer
279 views

set default fonts for Aquamacs in .emacs

I am running Aquamacs 3.3 under macOS Sierra (10.12.6). The default fonts are way too small. How can I do the equivalent of the following tedious procedure via code in my .emacs? Options Menu -> ...
2
votes
2answers
181 views

Zoom with mouse-button + scroll wheel?

I'd like to enable changing the font size by holding down the right mouse button and using the scroll-wheel. Emacs does however treat mouse buttons as keys, so this obviously cannot be achieved ...
1
vote
1answer
186 views

how to make non-bold text in Elfeed?

I want search-title-face to be non-bold. Tried to add to my .emacs file this chunk (due to http://nullprogram.com/blog/2013/11/26/): (custom-set-faces '(elfeed-search-title-face ((t :weight ...
1
vote
1answer
271 views

emacs - Font ‘Menlo’ is not defined

I have installed emacs26.3 for macosx, but when I run emacs, below error happen: Font ‘Menlo’ is not defined Then I try to install Menlo font with below command but not helpful brew cask install ...
2
votes
1answer
102 views

Variable font height according to Org header

This seems like it's probably not possible, but I'm extremely new to Emacs and thought I'd ask. I have a number of faces set in Org mode. ;; Highlight Line Colors (add-hook 'org-mode-hook (lambda () (...
0
votes
0answers
18 views

Change font of a line

I'm thinking of making a UI which has different font size/color for different lines. Can I change the font of a particular line, like the color and size? Org-mode can do this for headlines, so I ...
0
votes
1answer
36 views

Links in Tables - fonts mess up table alignment

I would like to use links in a table to explain certain entries more in depth. | Some | random | table | entries | | More | data | and | LINK | <- misaligned * LINK target with - more ...
1
vote
1answer
55 views

Org mode headlines without bold font inside emacs

Is it possible to set org-mode to show the headlines inside emacs without bold font? My emacs: * Headline 1 <-- This is bolded a paragraph <-- This is not bolded ** Headline 2 <--...
3
votes
0answers
30 views

How do you force the width of a fallback font to be the same as the one of the main font, assuming monospace fonts?

I use Emacs with monospace fonts, and I would like all the characters to have the same width, which is the purpose of monospace fonts. The issue is that the main font may not support all the ...
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... ...
0
votes
1answer
97 views

Font and frame configuration in daemon mode

In my .emacs I have (set-frame-font "Source Code Pro") (set-face-attribute 'default nil :font "Source Code Pro" :height 140) (set-face-font 'default "Source Code Pro") ...
0
votes
1answer
30 views

Displaying some characters with all-icon instead of my current font

Usually people want to print some characters and end up having strange squares clearly telling them this character is unknown by their default font and they have no fallback font for it. My problem is ...
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 ...
0
votes
1answer
147 views

Long message showing up while opening emacs from command line in ubuntu 20.04

A long message appears every time I open emacs from the command line. I am currently using ubuntu 20.04. The message that appears every time, is shown at the end. It would be very helpful if someone ...
0
votes
0answers
25 views

Do I really have no fixed-width fonts installed?

In trying to debug a font issue in Emacs 26.3 on Windows 10, I ran the following, in the *scratch* buffer: (defun font-existsp (font) (if (null (x-list-fonts font)) nil t)) font-existsp (...
0
votes
1answer
40 views

Specify what combinations shown as ligature while using FiraCode?

I'm using FiraCode in Emacs. Some ligature satisfies me and some don't. For example, I really dislike this: Is there any means to include or exclude specific ligatures?
0
votes
1answer
44 views

Get window-total-width in another font

(window-total-width) returns the number of columns (characters) that fit in the current window (https://www.gnu.org/software/emacs/manual/html_node/elisp/Window-Sizes.html). This will take the current ...
15
votes
2answers
505 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 ...
12
votes
2answers
896 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. ...
1
vote
0answers
302 views

Adding Fira Code on either emacs < 27 or emacs >= 27

There's a thing I really never understood in emacs, and it comes to changing the default font. I tried following this tutorial to add Fira Code to emacs: https://github.com/tonsky/FiraCode/wiki/Emacs-...
2
votes
2answers
634 views

Change permanently font size in Aquamacs

I have been looking on the web to the existing answers to this question, but non of them works for me. I would like to change the default font size for all frames in Aquamacs 3.3 GNU Emacs 25.1.1 (...
0
votes
0answers
40 views

Is it possible to create a way to toggle showing/hiding/changing text following a pattern? (org-mode or generally)

I'd like to create a way to toggle showing/hiding/changing text following a pattern in org-mode, but if it works generally, that's fine also. A few examples of where this might be useful. Hiding #+...
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" #+...
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 ...
1
vote
1answer
43 views

How can I make Emacs use the first available font from a list I specify?

I share my Emacs config across several machines, and I can't necessarily guarantee that they will all have the same fonts installed. For this reason, I would like to be able to give Emacs a list of ...
1
vote
0answers
69 views

How to Change the font for org-date face in org-table context?

I like to have a variable font everywhere I can, but some things like tables in org-mode or the org-agenda itself look a little wonky that way, and I get around it by configuring specific fixed width ...
3
votes
1answer
107 views

Sort Chinese Characters in Emacs

Is there a ready-made function that sorts Chinese characters (by pinyin or stroke number) in Emacs in an org-table or line by line in regular text? If not, how should one go about writing such ...
0
votes
0answers
74 views

Setting custom font size for org-mode?

What's a recommended way to set the font size for org-mode (or any other major mode) to a certain value that is different from the global font size? By looking at documentation C-h k C-x C-+, this is ...
2
votes
0answers
82 views

How do you set the line height when customizing a font face? (e.g. an org-drawer)

I specifically want my :NOTES: org drawer (and :end:) to be a smaller font size (say 0.5 relative to normal text). Ideally the drawer contents also (say 0.8). However, when I set the height property ...
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 ...
1
vote
1answer
36 views

Syntax coloring: Unable to color special syntax

I am writing a mode to color a few common syntax in a symbolic language called FORM. I am a new user of emacs and I took the help of this website to write down the following code. I modified the ...

1
2 3 4 5 6