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
2
votes
0answers
34 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 ...
0
votes
0answers
10 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
45 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
38 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
37 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
28 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
26 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
23 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
58 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
34 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
60 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
53 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
104 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
1answer
72 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
105 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
40 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
60 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
65 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
49 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 ...
0
votes
0answers
27 views

Emacsclient uses new instance, weird font

When I open Emacs normally (using runemacs.exe), everything appears fine, including the font. However, when I try opening a file in Emacs using the client, while getting the client to start the server ...
1
vote
1answer
28 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 ...
0
votes
0answers
55 views

How to set/scale font to get 80 column width on emacs

How can I make it so that I can see 80 characters in my emacs window? For example, I connect my laptop to an external monitor somewhere, start emacs, and maximize it to the full screen. I want a font ...
1
vote
0answers
21 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" ...
0
votes
0answers
34 views

Installing font package only once via command in file

I have a package that install the all-the-icons-package automatically namely (use-package zerodark-theme :ensure t :init (load-theme 'zerodark t) (zerodark-setup-modeline-format)) all-the-icons ...
0
votes
0answers
28 views

Increase minubuffer font size for quail mode completion

I am trying to increase the font size of the text overlay displayed in the minibuffer when using quail completion without success so far. Does anyone have any idea how to achieve this? EDIT: I was ...
0
votes
1answer
196 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 ...
1
vote
1answer
237 views

error "Font 'tty' is not defined

I am running on Ubuntu 18.10 and emacs 25.2, I changed the default font to (set-default-font "Monaco 14") but get error report as: Debugger entered--Lisp error: (error "Font ‘tty’ is not defined"...
0
votes
0answers
34 views

Two different fonts for different languages for org latex export

I am trying to use Garamond for English and Arial Unicode MS for Hindi for exporting my bilingual documents created using .org mode and exported using xelatex in windows. Can you please help setting ...
0
votes
1answer
96 views

How to change the font color of popup in haskell layer

I am not good at emacs because using spacemacs only for haskell coding. I want to change the font color of popup from white to black. White text on yellow popup is too hard to read. It's solarized ...
0
votes
1answer
92 views

Setting font facename for emacs and xterm under linux

How can I set the font name and size for Arabic letters in both emacs and xterm? Thanks
3
votes
2answers
1k views

Setting Default Font in Emacs 26.1

I want to set a default font in my Emacs (version 26.1, running on Arch, using Xmonad). I have tried various options in my init.el file (under .emacs.d). None seemed to work or persist when I ...
1
vote
0answers
61 views

Adjusting to screen resolution changes on GNU/Linux/ubuntu/gnome

I'm running emacs 26.1 on ubuntu 18.04 on a Dell laptop with a high-resolution display. It works very well in that configuration. It also works very well when the laptop is plugged into a lower-...
3
votes
1answer
85 views

How should I disable variable font sizes globally

I'm aware of several answers regarding font sizes for org or auctex. However, is there a way to require all faces have the default font size for all modes? I'm new to emacs and currently using ...
2
votes
1answer
33 views

unreadable characters in buffer and bars

I have installed emacs 24.3 from source on CentOS 6.9. I configured, compiled and installed it with: ./configure --prefix=$HOME/install --with-xpm=no --with-gif=no --with-tiff=no make make install ...
0
votes
1answer
101 views

daemon startup, new frame configuration, and display-pixel-width

I have a snippet that I use to determine what font size to set based on the resolution of the display, for when my laptop has an external monitor set or not: (defconst prefs/font-size ...
1
vote
1answer
270 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 (...
3
votes
1answer
91 views

Why doesn't the same Windows font look the same when migrating to emacs 26.1?

I'm trying to migrate from emacs 24.5 to emacs 26.1. I installed 26.1 and running both with the same config files. I took several tries and fixing small things in the config, for emacs 26.1 to start ...
2
votes
1answer
181 views

How can I have same font and font-size everywhere?

I'm tired of the weird (seemingly) unpredictable font behavior not just in org-mode but also anywhere I use some unicode symbols. My setup is spacemacs and I'm looking for function that I can run on ...
7
votes
1answer
146 views

Combining diacritics not combining visually

The first two characters in the left buffer are LATIN SMALL LETTER A and COMBINING CIRCUMFLEX ACCENT. Together they should display as â, just like LATIN SMALL LETTER A WITH CIRCUMFLEX, â. However, ...
0
votes
0answers
32 views

Disabling boxy appearance of info bar

I've disabled my mode-line's boxy appearance with (set-face-attribute 'mode-line nil :box nil) (set-face-attribute 'mode-line-inactive nil :box nil)) Is it possible to do the same for the ...
4
votes
1answer
311 views

Is there a way to use spacemacs with emacs 24.3 version?

I am working in a cluster environment, where the default emacs version is 24.3. Unfortunately spacemacs support only from >24.4. Administrators refuse to update the version. They asked me install my ...
1
vote
1answer
121 views

Why are code blocks and code literals displaying with large face in markdown

In markdown mode, all of the fenced code blocks and inline code literal strings are displaying with this very large font. The size is large, and also I'm pretty sure it isn't the same font as the ...
0
votes
1answer
34 views

Re-align text after a bigger symbol

I'd like to customize a bit mu4e in order to display nice utf-8 chars (or still better, colored emojis). However, the problem is that the utf8 chars does not have the good width (even in the mono ...
3
votes
1answer
175 views

Fixed width font in Latex

I can't figure out how to have every character have the same fixed width in Latex. In this example: I would like the characters {i \in \math to have the same width as the others.
0
votes
1answer
44 views

Can not set font family in init file in Windows

In my .emacs file I have the following: (setq default_font "Office Code Pro D") (when (member default_font (font-family-list)) (set-face-attribute 'default nil :family ...
4
votes
2answers
98 views

Forbidding variable font sizes

In LaTeX mode, the content of \frametitle{...} gets a bigger font size. How can I prevent that from happening? And is there a general to prevent /all/ variation in font size? (I wish emacs would ...
0
votes
1answer
234 views

Font on emacs (Windows 10) appears cut off

How can I improve the appearance of the emacs (25.2.1) font on Windows 10 (1703)? Currently, text appears blurred and cut off (especially lines on the bottom):
2
votes
1answer
96 views

Unable to set font-family from a variable

The below line works correctly: (custom-set-faces '(default ((t (:family "Liberation Mono"))))) but when I try to retrieve the font-face from a variable, it fails (setq font-family-default "...
0
votes
1answer
85 views

Highlight (and increase font) for specific words in the buffer when it's opened

I'm looking for functionality that will allow me to highlight specific words of text when I open the buffer in specific mode, like it should work if you're in js2-mode web-mode vue-mode and the ...
2
votes
0answers
137 views

How can I enlarge the font of tooltips?

I want to enlarge the text in tooltips displayed via https://www.emacswiki.org/emacs/PosTip . What can I do?