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
23 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
25 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
30 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
24 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 ...
0
votes
0answers
49 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
42 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
37 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 #+...
0
votes
1answer
36 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
19 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
60 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
90 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
31 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
97 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 ...
1
vote
0answers
28 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
31 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
57 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
111 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
34 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
32 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
91 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
518 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
33 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
22 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} \\...
-1
votes
1answer
211 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
50 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
52 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
51 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
83 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
30 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
151 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
33 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
178 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
50 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-*-...
2
votes
2answers
1k 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
77 views

How to make highlights persistent?

I don't want themes. I use bold,italics, and highlights. I also use background colors per file, so the code as in for background need to be embedded inside file. But when I Edit->Text Properties-&...
2
votes
0answers
24 views

How to set font failover for Vietnamese characters

To display a text "tiếng Việt" (which means Vietnamese), I tried this: (set-fontset-font t '(#x1e00 . #x1eff) "Consolas") but it did not work. describe-char shows: "ế" ⇒ 1ebf "ệ" ⇒ 1ec7, so they ...
1
vote
1answer
65 views

cannot have a different default for font's height with emacs daemon

Following an article called Emacs, fonts and fontsets I was revising my font setup. I ended with the following code: (defun font-exists-p (font) "Comprueba si una tipografía existe. Sacado de https:...
0
votes
0answers
34 views

How to set the pixel width and height of a character?

In Emacs with GUI mode, I notice that the same character with font size 10.5 has a 9*18 display in urxvt while it has a 8*18 display in Emacs. When the font size is 11 in Emacs, it has a 9*20 display. ...
1
vote
1answer
54 views

emacsclientw does not use font specified in init.el (Windows)

Emacs version: GNU Emacs 25.3.1 (x86_64-w64-mingw32) I have set up a shell-script which runs Emacs server at Windows startup as mentioned in Emacs Wiki. I have set up a shortcut on my desktop which I ...
1
vote
1answer
60 views

Increase the font size for Hebrew text in Emacs but leave English font size as is

I frequently type both in Hebrew and English. The font I use is Dejavu Sans Mono. This renders Hebrew fonts accurately. However, because Hebrew uses small vowels, I would like to increase the font ...
1
vote
1answer
43 views

How to set font-height for all future frames?

I've set the font-family and font-size in a few different ways before, one of which was: (custom-set-faces '(default ((t (:family "Liberation Mono" :height 150))))) However, I learned that if you ...
1
vote
0answers
39 views

Emacs via X: how to use higher resolution fonts?

I have attached a screenshot of Emacs 24.5 running in X-Quartz in a Debian VM. Does anyone know how to configure Emacs to use higher resolution fonts? For instance, like the ones Mac Terminal.app is ...
1
vote
1answer
23 views

Reach to the extreme of font size in one step

Usually to view the org or code in a bird view, I will decrease the font size to the extreme of minimal with M-x decrease, C-x z, z, z, z until reach the extreme. Is it possible to reach the ...
2
votes
1answer
198 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, ...
1
vote
3answers
104 views

Emacs displays some characters as squares

For example this: 𝔱𝔢𝔰𝔱 Emacs displays it like this: I have noticed this just after a Windows update this morning (now version is 1903). I remember it was working well a few days ago. I tried ...
0
votes
1answer
51 views

Fixed width font for sending mails - notmuch + gmailieer + emacs - How?

I have recently set-up my personal mail(gmail) for use through emacs, notmuch and gmailieer. For sending mails, I am relying on the inbuilt smtp mail package and the Message mode. Earlier, when ...
0
votes
0answers
89 views

Segmentation fault when creating new frames

I am reproducibly experiencing segmentation faults on Emacs 26.3 under Debian Buster when creating a new frame, which seems to be related to setting fonts for new frames. In order to illustrate I ...
0
votes
2answers
68 views

How can I make emacs monochrome in no-window-system mode?

I prefer to run emacs as a console application, and I would prefer that it be monochrome. I currently have (global-font-lock-mode 0) set in my init file, which works as I want it to on my mac. However,...

1
2 3 4 5 6