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
0answers
33 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 ...
2
votes
1answer
129 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
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
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 ...
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 ...
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 ...
2
votes
1answer
99 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 <--...
4
votes
2answers
116 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 &...
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 ...
2
votes
1answer
75 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 ...
0
votes
1answer
145 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
93 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
0answers
300 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-...
0
votes
1answer
70 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
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 #+...
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
68 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 ...
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 ...
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 ...
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 ...
0
votes
1answer
238 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 ...
2
votes
0answers
39 views

What is the flying trashcan icon replacing colons in Python buffers?

There is a strange icon appearing in place of colons (:) in my Python buffers. I cannot identify it easily using C-x = or any other command to inspect the character at the point because the icon ...
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
vote
1answer
117 views

Why are the company-mode's drop downs ragged?

Here is how my company-mode's drop-downs look, As you can tell, they are uneven, ugly and somehow a different font than what my Emacs is using (Iosevka). I found this question, but did not quite ...
2
votes
1answer
216 views

Use all eight weights of IBM Plex fonts in emacs (including “Text”)

I was inspired by Paul Ford to use IBMs font Plex for my emacs config. One of the strengths of IBM Plex is that all the four families each have eight weights. The families: Mono, Sans, Sans ...
0
votes
0answers
20 views

Every monospace glyph rendered with two whitespaces after? [duplicate]

As said in the title, every monospace glyph seem to be "rendered" as itself plus two whipespace characters; so, for example, the cursor is three characters wide. This doesn't happen with any part of ...
2
votes
1answer
56 views

Lining up text with proportional fonts

Suppose I want to show text data in two columns like here: As you can see the font in the columns is proportional (not monospace). How can text data be shown in an emacs buffer like this, with the ...
1
vote
0answers
38 views

unicode-fonts help needed

Any experts in the unicode-fonts package out there? What I am trying to do is set the font for CJK characters and not use the default. This seems very tough! Using the customize interface injected ...
2
votes
2answers
179 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
19 views

How can I refer to the system default (Windows) proportional font?

Let's say I want to write a package which uses proportional font. But I don't want to hardcode a specific font, because the user may not have it installed. How can I refer to the system default ...
3
votes
2answers
647 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 ...
0
votes
1answer
51 views

Set Consistent line spacing, irrespective of bold or underlines etc

I current have set the current line number face to be bold: `(line-number-current-line ((,class (:foreground "#4F4F4F" :background "#00CC00" :bold t)))) When I move the cursor between lines, there ...
0
votes
1answer
29 views

Set LaTex export fallback font

How do I set a fallback font for LaTex export to pdf? I have the following setting in my init.el. (setq org-latex-classes '(("article" " \\documentclass[12pt,a4paper]{article} \\...
0
votes
2answers
451 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
0answers
60 views

Boldface and Italics not showing in self-defined font

I have the following setting in my init.el so that tables with Chinese characters can be displayed properly. (set-face-attribute 'default nil :font (font-spec :name "-*-Menlo-normal-normal-normal-*...
1
vote
1answer
65 views

scale text in eww with proportional fonts enabled

when i use eww, which is v often, coz i love reading the web by just text in a format i choose, i can scale the text (with C-x +/-) until i enable "proportional fonts" with F. it changes my display ...
0
votes
0answers
66 views

Emacs doesn't load font at startup

I am using Emacs 26. Although in my init file i have the following (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; ...
2
votes
0answers
121 views

Is it possible to override the column width in Emacs?

I'm using graphical GNU Emacs 26.3 on Windows. At least on Windows, Emacs determines column width by looking at the AveCharWidth field in the font's OS/2 table. As the name suggests, this field ...
0
votes
1answer
43 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 ...
1
vote
1answer
270 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
vote
1answer
37 views

Invoke emacsclient with a smaller font

For a certain application, I would like to start up emacsclient, but with a slightly smaller font. I can do it for a running emacs by eval'ing: (set-face-attribute 'default nil :height 90) But how ...
2
votes
1answer
241 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 ...
0
votes
0answers
66 views

Emacs font style and colorisation

I am used to Emacs under Windows 10 and trying to switch to Ubuntu. My Windows 10 Emacs font is M-x describe-font: name (opened by): -outline-Courier New-normal-normal-normal-mono-13-*-*-*-c-*-...

1
2 3 4 5 6