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
0
votes
1answer
29 views

Doom-emacs - How to align chinese characters in org-tables

I'm trying out doom emacs for the first time (previously was using spacemacs). I've run into an issue where chinese characters are not aligned in org mode tables. For example: | Character | Pingyin ...
0
votes
0answers
10 views

How can I get autocomplete lists to show correctly in a buffer with a variable-pitch font?

In a variable-pitch buffer, autocomplete dropdown lists show up with each row at a different column on the screen, I'm guessing because the dropdown lists are set to show at the same x-value based on ...
0
votes
1answer
13 views

How can I force a Hebrew font to match the fixed width of Latin text characters in a mono font

I have setup my Emacs to use Noto Sans Mono everywhere. I did this on the naïve assumption that it was in fact a mono-spaced font, with full coverage of Hebrew and Greek Extended characters. ...
0
votes
1answer
161 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 "...
0
votes
1answer
13 views

Set font for Devanagari Characters in Doom Emacs

Running Doom Emacs 2.0.9 on Emacs 27.1. I want to always display Devanagari characters in a specific font (Sarpanch). This font is installed on my computer and I can use it in all other applications ...
0
votes
1answer
19 views

Underline issue with Inconsolata font

I'm using Inconsolata font in emacs. The setting looks like (set-face-attribute 'default nil :font (font-spec :name "-*-Inconsolata-bold-italic-normal-*-*-*-*-*-m-0-iso10646-1" ...
0
votes
0answers
72 views

Emacs hangs/crashes when opening files with special unicode characters, does not crash with -nw

I'm using Arch Linux, i3wm and emacs 27.1, and I'm having an issue where emacs hangs when opening certain files, but I can't seem to find a pattern as to which files cause the hang. When emacs hangs, ...
1
vote
1answer
101 views

How to make emacs shell the same as system terminal experience?

On macOS, using iTerm2. It looks like In Emacs For Mac OS X, it looks like I copied system's ~/.zshrc file to ~/.profile and ~/.bash_profile, but doesn't they read configrations when start emacs?
1
vote
1answer
55 views

Italics not shown in block quotes in orgmode

In my blockquotes in org-mode, the fontification does not pick up on italics. I have looked at this question and answer that says it was fixed several years ago, but my issue persists. I have tried ...
2
votes
2answers
376 views

What exactly is the difference between `font-family` and `font-foundry`?

What is the historical context of these two terms? Why are they distinct? And why are they needed? What pragmatic utility is there in knowing how these two terms differ? In terms of Emacs/Emacs Lisp, ...
0
votes
1answer
28 views

How can I set and retain font size of the solarized-theme?

I like the solarized (light) theme in emacs but i have a 27" mac so the font is too small. I know I can enlarge with C-x C-+ but I do not know how to set the font size and retain that setting so ...
1
vote
1answer
324 views

Cannot set correct size for variable pitch font in Doom Emacs

I am trying to use a variable-pitch font for Org-mode: (add-hook! 'org-mode-hook #'mixed-pitch-mode) I am specifying a variable pitch font that is normally renders much smaller than the fixed pitch ...
3
votes
1answer
2k 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 ...
2
votes
1answer
312 views

emacs: cannot open terminfo database file

I've created a new terminfo entry to enable italics in my terminal, as described here. The new terminfo entry looks like: xterm-256color-italic|xterm with 256 colors and italic, sitm=\E[em, ritm=\E[...
1
vote
1answer
446 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
0answers
30 views

Emacs as daemon will not use font config

When using emacs as daemon, systemctl --user start emacs-27.service emacsclient -c and also the following directly: emacs-27 --fg-daemon emacsclient -c the font config in :~/.emacs.d/init.el will ...
0
votes
1answer
36 views

How to color specific keywords in python-mode?

My goal is to color specific keywords as function definition such as log in Python-mode to a spefic color or color of functions. Example, pattern for log("...."): coloring only log. from ...
0
votes
0answers
27 views

Replacing the font of a character using a BDF's glyph

I am trying to create some custom glyphs inside a BDF font file and want to use these inside Emacs afterwards. In order to get started I'd like to change one character (I used the greek alpha ...
1
vote
0answers
14 views

Why “set-face-attribute” needs to be executed twice when switching from a TTF font to a bitmap font?

I'm trying to write a function which switches between fonts in all frames. In order to do this, I first wrote the following commands: This font is a TTF font and is located in ~/.local/share/fonts/...
13
votes
4answers
4k 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 ...
2
votes
1answer
124 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 ...
1
vote
1answer
289 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 -> ...
0
votes
0answers
25 views

term face font initially works but then falls back to default

I have defined my faces for the term group that way: '(term ((t (:inherit default :family "Courier")))) and all other colours pretty similarly. (I have also tried defining it without using ...
0
votes
0answers
13 views

How to adjust height of echo area if function signature contains non-ascii characters?

While working on a PureScript project, I have noticed that function signatures provided by company-mode get cropped if they contain non-ascii characters. How can I increase the minimal height of the ...
2
votes
2answers
353 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
204 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 ...
5
votes
1answer
58 views

Override particular range of code points with a non-default font

Is it possible to override glyphs at some range of code points, that the default-font already covers, with ones from a non-default font? For instance, I'd like to use Arial only except for the ...
2
votes
1answer
585 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
0answers
47 views

Terminal capable of italics — emacs not so much

I'm trying to get emacs (27.1) to render italics correctly in markdown mode. The above screenshot comes from my GUI emacs. But here's emacs 27 rendering italic text (markdown mode) in iTerm2. It jus ...
0
votes
0answers
83 views

How do I run an Emacs function from the terminal with an argument?

I want to install icon font for that I need to run all-the-icons-install-fonts function. According to the documentation I have to type: emacs --batch -f all-the-icons-install-fonts in the terminal. ...
0
votes
1answer
175 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
60 views

“Cartograph” font has too much spacing

This is what happened when I set my default font to a new font I bought called Cartograph. Looks cool, but I'm not sure I could get used to it. Anyone know what might have happened? It's an otf font. ...
0
votes
1answer
20 views

Emacs org mode entitiespretty not complete

This #+STARTUP: entitiespretty in my org mode buffer allows Latex/MathJax symbols to render in situ . . . almost. I type, e.g., $\le$ and instantly the markup is replaced by the actual symbol. There ...
1
vote
2answers
285 views

How do I get colour emoji to display in Emacs

Emacs 27 gained support for Cairo for font rendering and this is supposed to let me render emojis but I can't find out how to make it work. I just about managed to set up some fontsets but the emoji ...
0
votes
0answers
25 views

How to set a font just for CJK?

I'm not happy with the font used for Japanese characters and would like to change it. I'm using Emacs 27.1 on Ubuntu 20.04.1. I did not have that problem with the last version(maybe the default font ...
2
votes
2answers
140 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 &...
0
votes
1answer
46 views

How to get “:size” from font-spec

How can I get :size from font-spec using Elisp?
38
votes
6answers
52k 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 ...
4
votes
2answers
229 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
76 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 ...
0
votes
0answers
42 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
180 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 ...
1
vote
2answers
602 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
85 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 ...
19
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
2k 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
0answers
53 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
76 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
37 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
374 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 ...

1
2 3 4 5 6