Skip to main content

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
1 answer
98 views

describe-char renders the character, but not the buffer

I put some unicode text in a buffer and it looks like this: But if I move to that box and run M-x describe-char I see it rendered correctly at the bottom, next to "decomposition". So, Emacs ...
Rob N's user avatar
  • 671
0 votes
0 answers
18 views

Avoid contents in M-x term to be shown out of the window

Table of contents The problem The question Appendix: Install and use font 5x7.bdf Appendix: My minimal Emacs configuration NOTE: This post contains many screenshots of the graphical interface of ...
Rodrigo Morales's user avatar
1 vote
1 answer
38 views

How to make all lines in a buffer have equal height?

The context I'm using term in GNU Emacs 29.3. I usually use tmux inside *terminal* (i.e. the buffer that is opened by M-x term) and in my tmux configuration I made the tmux status bar to be displayed ...
Rodrigo Morales's user avatar
0 votes
0 answers
35 views

The `'append` argument for `set-fontset-font` doesn't work

After reading Modifying-Fontsets, I started trying out the fontset fallback mechanism in Emacs 29.3. (set-face-attribute 'default nil :font (font-spec :family "Courier New" :size 24)) (set-...
chansey's user avatar
  • 153
3 votes
1 answer
58 views

How can I override character ranges in 'default font'?

There are two widely used interfaces that can change fonts in Emacs: set-face-attribute set-fontset-font. If I understand correctly set-face-attribute can set main font (or default font) and set-...
chansey's user avatar
  • 153
1 vote
1 answer
89 views

Setting default font to Inconsolata doesn’t work in Emacs 29/macOS

Using macOS Sonoma on M1 Mac Mini and M1 Air. Emacs from https://emacsformacosx.com. I have Inconsolata installed in ~/Library/Fonts/, validated by Font Book. My .emacs calls up .emacs-custom.el, at ...
Simon Wright's user avatar
1 vote
1 answer
61 views

Different fonts for buffer, minibuffer and modeline

I tried set-frame-font but it changes the font for not just the buffer, but also minibuffer and modeline. Is it possible to just change the font for the buffer, but not minibuffer and modeline? i.e. I ...
Microsoft Linux TM's user avatar
1 vote
1 answer
33 views

Cannot rescale frame font

Ubuntu 22.04, Emacs 30-ish. I set my font this way: (when (member "Terminus" (font-family-list)) (set-frame-font "-xos4-Terminus-normal-normal-normal-*-14-*-*-*-c-60-iso10646-1") ...
Gauthier's user avatar
  • 511
0 votes
1 answer
37 views

How to change the color of superscripts and subscripts in latex in org mode?

Changing emacs themes, it seems that there is a variable that determines the color of the superscript ^ and subscript _ symbols in latex math environments in org mode (in the source code not the ...
userrandrand's user avatar
0 votes
1 answer
41 views

Weird characters when using emacs on a Mac

I've been recently using a Mac more (usually I use Linux). I've noticed that some special characters look different in emacs when using a Mac and in emacs when using Linux. Here is what it looks like ...
oneself's user avatar
  • 341
0 votes
1 answer
34 views

How can I use Emacs under Linux Mint as a proportional font Evil-mode editor and a proportional-font terminal?

In OS X or X11 terminal emulator supporting proportional fonts Emacs is recommended for proportional font editing and shell use. What can / should I put in a .emacs file so it loads Evil mode and ...
Christos Hayward's user avatar
0 votes
0 answers
45 views

emacs 29.2 /file/new frame shows Gtk error?

Running a bare emacs, no init file. Open emacs, Try new frame, I get (emacs:20034): Gtk-CRITICAL **: 08:39:58.945: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed Resize the (...
Dave P's user avatar
  • 111
0 votes
0 answers
12 views

Weird windows split issue with fonts and toolbar

I found that after a recent upgrade, the window is not working splitting correctly. In some circumstances, the window is always split vertically, no matter how width the window is and even in the ...
Saddle Point's user avatar
1 vote
1 answer
86 views

Picking emoji fonts in Emacs?

How to set the font used for emojis in Emacs? More specifically, how do I set it to Noto Monochrome Emoji Font? https://github.com/googlefonts/noto-emoji/tree/main/fonts https://fonts.google.com/noto/...
01AutoMonkey's user avatar
1 vote
0 answers
137 views

Is there a way to enable OpenType font features (specifically for Monaspace)

I'm currently running Emacs 28.2 on Debian 12 (Doom core v3.0.0-pre, Doom modules v23.12.0-pre). I have checked for harfbuzz support and have ligature.el installed. I recently found Monaspace, and ...
Justin Jung's user avatar
0 votes
0 answers
22 views

Highlighted text not visible on Emacs manuals not visible on HPC

I installed GNU Emacs on a headless High-Performance-Cluster (Ubuntu 18.04). My emacs configuration is: init.el. I installed emacs using conda: conda install -c conda-forge emacs The same ...
Raghav Arora's user avatar
3 votes
1 answer
323 views

How to configure Emacs to display missing Unicode symbols

I am using Emacs 28.2 on Windows ("GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)"). It has Unicode support for many characters, but some seem to be missing. For example the Unicode character “...
AnoE's user avatar
  • 450
0 votes
0 answers
39 views

Broken fonts in new frames

In new frames opened by C-x 5 2, the text appears as rectangles (see the gif below). Possibly, Emacs doesn't respect my font settings. In my init.el file, I have the following lines: (set-face-...
Alex's user avatar
  • 155
2 votes
2 answers
86 views

Nordic characters rendered incorrectly in non-file buffers

I am having trouble with nordic characters (å, ä and ö) not rendering correctly in Emacs. In text files, they render correctly, but in dired and other non-file buffers (like counsel-find-file) they ...
najjt's user avatar
  • 33
0 votes
1 answer
94 views

Unicode displayed incorrectly

I recently discovered set-input-method TeX and really like it! But I noticed that certain characters are displayed incorrectly. For example, ₘ is displayed as a superscript ⊕ to me: To reproduce: ...
jpb's user avatar
  • 101
0 votes
0 answers
246 views

Set default face (font) with use-package ':custom-face'

What do I need to tell 'use-package' so that it will set the default font for all frames on Emacs startup? With 'use-package' now installed as part of Emacs, I want to specify faces with its :custom-...
bignose's user avatar
  • 639
0 votes
1 answer
51 views

How to make ligatures work for "Fragment Mono" font?

I use Emacs with Tuareg for writing code in OCaml. Also, I write code in documents out of Emacs (not for compilation) and found that some fixed-pitch fonts are pretty good in visualization for some ...
Valentyn Zakharenko's user avatar
0 votes
0 answers
148 views

Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources

After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts. The issue vanishes, when I start ...
kdb's user avatar
  • 1,571
0 votes
0 answers
82 views

org-emphasis-alist - why italic not work in org mode?

Emacs 27.1 Here my settings of org-emphasis-alist '(org-emphasis-alist '(("*" (bold :foreground "deep sky blue")) ("=" (italic :foreground "...
a_subscriber's user avatar
  • 4,174
1 vote
0 answers
36 views

How to change font-size for a single face in a single buffer

I am trying to change the font size of a single face only within a single buffer. Currently, the face is defined like this: So I thought that all I need to do is evaluate (face-remap-add-relative '...
Nikratio's user avatar
  • 949
0 votes
0 answers
16 views

define a special org-link face inside of org-table, different from outside?

I'd like to define a special org-link face inside of org tables, such as to set link to fixed fonts within a table, and to variable fonts outside. I tried to play with custom-theme-set-faces in ...
Laurent Jacques's user avatar
0 votes
0 answers
36 views

How can I control the height of the section superstar in org mode?

If I start Emacs (29.1 on macOS Ventura) using the .emacs file (require 'org-superstar) (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) ;; (set-face-attribute 'default nil :foundry "...
Sam7919's user avatar
  • 379
0 votes
0 answers
18 views

Select font for buffer via [Gtk] GUI font selection tool

From the menu-bar selecting: Option -> Set Default Font... pops up a (Gtk?) font selection tool: Is there a nice way to select font for the current (or specific) buffer without configuration ...
Yotam's user avatar
  • 101
1 vote
1 answer
237 views

How to customize the appearance of eglot's inlay hint?

eglot's inlay hints are extremely close to the actual code, it makes the code almost unreadable. For example: The name of field is input, but it looks like inputString! Is it possible to customize ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
28 views

resize font in ivy-posframe

i'm tryinng to set the font in ivy-posframe and no result. i have try code adapt to another cases, like: (defun text-scale-twice ()(interactive)(progn(text-scale-adjust 0)(text-scale-decrease 2))) (...
Levo's user avatar
  • 47
0 votes
0 answers
194 views

how do i customize font faces and sizes in neotree buffer

I am trying to find a good folder view package to work alongside projectile and magit, I tried treemacs for a while and did not find it to my liking, I am now trying neotree. Neotree seems to be ...
Ajaneesh Rajashekharaiah's user avatar
1 vote
3 answers
246 views

The mystery of the global font-size change shortcut

The official Emacs documentation says: ...to change the sizes of the fonts globally, type C-x C-M-+, C-x C-M-=, C-x C-M-- or C-x C-M-0,...1 Unfortunately, when I type C-x C-M-+ on my laptop's ...
kjo's user avatar
  • 3,267
0 votes
0 answers
19 views

Multilingual LaTeX pdf export

I have an org mode file with a mix of Bengali and English text, which I got to work using Adib Hasan's solution here: #+LATEX_HEADER: \usepackage[banglamainfont=Kalpurush, banglattfont=Akaash, feature=...
subhacom's user avatar
0 votes
2 answers
52 views

Human-readable font names to/in/from frame parameters?

I can use human-readable names for setting fonts, e.g., with M-x set-frame-font RET DejaVu Sans Mono 12 RET, or via menus. But when I ask for (frame-parameters nil 'font) to find out the current ...
toomas's user avatar
  • 183
1 vote
1 answer
2k views

Strange symbols in doom-modeline

When I first installed doom-modeline I used to get the nice symbols for each mode, for some reason now all I get is: Does anyone know how I can get proper symbols back?
Dave F's user avatar
  • 573
0 votes
1 answer
88 views

find out font used in terminal emacs

M-x describe-font shows fonts when run in mac, but when I run it on iterm2 (emacs -nw), it doesn't give me anything (no output) describe-face says Face: default (sample) (customize this face) ...
eugene's user avatar
  • 519
0 votes
1 answer
171 views

Increase text size permanently

How can I set the text size to be larger all the time, starting from when I open the GUI app? I am specifically referring to the text size for the buffer and modeline. I am moderately visually ...
vnbcs's user avatar
  • 1
1 vote
2 answers
116 views

Nonbreakable space font

I use C-x8space to insert a non-breakable space. In recent Emacs (I'm on 28.2 now), it started being displayed much narrower than in older versions. I use a monospace font called monofur, but the ...
choroba's user avatar
  • 2,085
1 vote
1 answer
72 views

Searching for text fragments by character text properties

The text to be processed has special words marked with a special font. The required text is copied to the clipboard with the mouse (from firefox). The text is pasted into the clipboard emacs("...
uanr81's user avatar
  • 169
0 votes
1 answer
104 views

Android emacs font not available, for resize

I've installed emacs with f-droid and I'm trying to increase the font size, but it says the font is not available no matter what i try. Is there a package that needs to be installed? All in trying to ...
Jason Hunter's user avatar
0 votes
1 answer
78 views

How can we customize the font size of the window-number in `ace-window` mode?

The font face of the window labels in ace window seem to have the same size as that of the text in the buffer, which is in general too small for me to allow for quick visual parsing. I was hoping that ...
loonatick's user avatar
  • 217
2 votes
1 answer
538 views

How to load font for emacs on Arch Linux?

I want to use a custom font for emacs on arch linux. Therefore, I installed the package ttc-iosevka. Then I added the following line to my init.el: (set-frame-font "/usr/share/fonts/TTF/iosevka-...
MySQLInjection's user avatar
0 votes
1 answer
40 views

How to add syntactic elements to modes with colourizing and correct tabulation

I am using literate programming in org mode. It adds a new syntactic construction to the language: <<macro name>>. Unfortunately, it breaks all the colouring and tabulation after it. For ...
user4035's user avatar
  • 1,069
1 vote
3 answers
155 views

Increase font size in mini-buffer (for Japanese Kanji selection)

I'm using Emacs and Xubuntu, and my default input is English, but (in Emacs) I use Japanese input method as well. To enter Kanji (Chinese characters), I type some letters (usually from 2 to about half ...
Chris's user avatar
  • 57
3 votes
1 answer
161 views

Using Uninstalled Fonts

How to get Emacs to use a font that is not installed? Background My USB flash drive has the font that I want to use, but the school's computer room doesn't give students admin permission, so I can't ...
shynur's user avatar
  • 5,578
1 vote
1 answer
752 views

font scaling on multiple monitors with different scalings

I have a 4k laptop display and dual 1920x1200 external monitors, one rotated vertically so emacs can have a million lines in view. Font scaling is set to 200% on the laptop display and 100% on the ...
Joe's user avatar
  • 13
1 vote
0 answers
110 views

Specify the size of a font in a fontset, but let it be scaled by `text-scale-adjust`

I want to use Inconsolata LGC's Greek with Inconsolata (plain Inconsolata has better hinting than Inconsolata LGC). I've set up a fontset (of course these are things you copy from Stack Exchange) (...
Arch Stanton's user avatar
  • 1,707
3 votes
2 answers
299 views

List items don't align properly when using a variable pitch font in Org mode

I'm using the "Charis SIL Compact" font for Org mode and everything looks fine except the second, third lines of list items that span multiple lines don't align properly. When using a ...
Zoli's user avatar
  • 451
0 votes
1 answer
155 views

Monospace font for non-ascii chars

I have some code that uses non-ASCII unicode chars. Here's a simple example that happens to be JS but the problem exists more generally: function replaceFractions(text) { // We're ignoring ⅙⅚⅑⅐⅑⅒ ...
Richard Wheeldon's user avatar
0 votes
2 answers
101 views

Change font size for buffer in a single frame (ideally zoom in/out using key or mousewheel)

In GNU Emacs 27.2 is there a way to change the text font size of a single buffer without changing all open instances of that buffer (in different frames)? In my version of emacs, when I use Ctrl+...
PatS's user avatar
  • 155

1
2 3 4 5
8