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
18 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
13 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
40 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
34 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-*...
0
votes
1answer
28 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
39 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
57 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
18 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 ...
0
votes
0answers
44 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
25 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
95 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
43 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
vote
2answers
622 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
56 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
19 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
50 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
31 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
36 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 ...
0
votes
1answer
38 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
34 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
36 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
22 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
118 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
62 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
39 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
62 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
44 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
vote
2answers
96 views

Can Emacs render family emojis? (Emoji ZWJ Sequences)

For example (explained on Emojipedia): 👨‍👩‍👧‍👦
2
votes
0answers
82 views

How can someone set Emacs / Spacemacs to prefer OTF font over TTF font when both are available?

Recently the nixos fira-code package added both the otf and ttf fonts and Emacs/Spacemacs isn't quite happy with the ttf ones. How could I tell spacemacs to prefer OTF over TTF when both are ...
2
votes
0answers
46 views

Display one character in an alternative font family

I want to change the appearance of my lozenge character. I have tried running the following: (set-fontset-font "fontset-default" ?◊ (font-spec :family "PragmataPro")) However, if I type ◊ and ask ...
2
votes
0answers
274 views

Fontconfig Error in Snap version of Emacs

I installed Emacs 26.3 using Snap in my Debian Buster. After I launch it, it gives me the following errors: Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules" Fontconfig ...
0
votes
1answer
64 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 ...
1
vote
0answers
51 views

Set font family for comments

In coq mode I have ligatures being used: instead of "fun", it shows λ in the programming code. But in the comments lambda transformed into a character I can't even copy, so I'll attach a screenshot: ...
3
votes
3answers
137 views

How to change the font face of the current buffer?

I am using tex-mode in Aquamacs and would like to temporarily change the font for the current buffer. What is the way to do it? I tried: (set-face-attribute "American Typewriter" nil :height 150) ...
0
votes
0answers
49 views

Emacs Windows10 ragged font

I'm having issues with ragged or cutoff fonts in emacs with windows10. It's especially noticeable when looking at the bullets in org-mode bullets which seem pixelated and off center. Specs: Display ...
0
votes
1answer
40 views

Setting mode-line font size and Magit diff colours

I'd like to adjust the background colour of the part of the diffs displayed by Magit. In particular, the background colour of the text 1st, 2nd, and 3rd in the image. I'd like to increase the contrast ...
0
votes
1answer
56 views

Elisp to increase font-size in indirect buffer

I use org-mode for writing and frequently use a two pane setup, similar to the one described here: Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist. I have an outline on ...
1
vote
0answers
160 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
40 views

How to save font alterations?

Let's say I have this in the buffer: 'BE BOLD' I select it and type Alt-o b. It is now displayed as 'BE BOLD' I Save, quit, reopen: The font change is lost. How to keep the font change, please?
2
votes
2answers
230 views

How to change emacs font size on the fly from commandline?

Using 1autorandr for multimonitor detection, the script below is runned each time I dock my machine. In order to use spacemacs on the 4k monitor I curently must hit M-x zoom-frm-in. What command ...
0
votes
0answers
78 views

Emacs default font change in Ubuntu 19.04

I upgrades Ubuntu to 19.04, and it appears that the default font in Emacs has changed. Is it just me, or is it an Ubuntu/Debian change? Or has there been a change upsteram? Also, what is the name of ...
1
vote
1answer
187 views

Why can't Emacs get a font that it can list among the fonts?

When I list the fonts in my Emacs using the following code: (dolist (font-name (x-list-fonts "*")) (let ((str font-name)) (newline) (prin1 str))) One of the fonts I get is: "-outline-...
1
vote
2answers
339 views

Is there a better way in Emacs Lisp to print the list of monospace fonts in a separate buffer?

Is there a better way in Emacs Lisp to print the list of monospace fonts in a separate buffer? I found out the following Emacs Lips code in a gist on Github: (defun font-is-mono-p (font-family) ;; ...
0
votes
1answer
420 views

How do I set up all the fonts in my GUI Emacs

I have the following in my init.el: (add-to-list 'default-frame-alist '(font . "Monaco-10")) The above does the job, but Emacs uses some other fonts when displaying headlines in org ...
1
vote
0answers
69 views

Problem with the behavior of org-fontify-done-headline

I want entries with the DONE status to be greyed out, so in my init file I have (setq org-fontify-done-headline t) and I have added '(org-headline-done ((((class color) (min-colors 16) (...
0
votes
1answer
117 views

Changing font size of a region or single characters

Is it possible in Emacs to change the font size of a single character or region, without affecting the whole Emacs window?
1
vote
1answer
113 views

detect unprintable glyph (aka “no font available”) programmatically

Sometimes a font or a font at a special fontsize does not support a unicode glyph. Then a placeholder (box with character number) is printed, see screenshot with selected line: How can I ...
1
vote
1answer
103 views

How to change font size only for the buffer *Org Export Dispatcher*?

I'm using emacs with a large font, however I do not need the font to be too large on certain buffers and/or modes. For example, when I use neotree I use a different font and a smaller size, I do that ...
1
vote
1answer
43 views

right click for menu with choices (to change font size)?

I am using emacs 26.1 under macos. when I right-click with the mouse, emacs seems to want to select the region. alas, I would prefer to see a popup menu where I can select a few choices that I would ...
1
vote
0answers
22 views

When/how does font initialization occur? Changes at init time seem to only have partial effect

I have been experimenting with variable-pitch for some buffers. I have the following snippet in my emacs init: (set-face-attribute 'variable-pitch nil :family "Bookman Old Style" ...

1
2 3 4 5