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

Unicode characters missing only in Emacs

A few unicode characters are missing from my Emacs (GNU Emacs 28.2 on macOS 11.6.8.). They are displayed everywhere else on my system just fine, but in Emacs they look like this: (Same character in ...
0 votes
1 answer
32 views

How to set heading and TODO fonts?

I use spacemacs theme on Emacs 28.2. My config for faces is: (custom-theme-set-faces 'user '...
0 votes
0 answers
75 views

Font style of In-Buffer settings

I’ve been having problems with elisp debugging lately. I restarted emacs and problems appear to have disappeared. But I noticed something else: all of the In-buffer settings, e.g. #+BEGIN_QUOTE #+...
  • 107
0 votes
0 answers
39 views

Can I use a different font for elisp files? [duplicate]

My default font is Monaco. But I'd like to use Courier and with a larger size for .el files? How do I do that?
  • 107
0 votes
1 answer
35 views

`buffer-face-mode` does not work with custom fontset

I can not change family and size of a custom fontset in buffer-face-mode. Below is the minimal test config (create-fontset-from-fontset-spec (font-xlfd-name (font-spec :registry "fontset-mine&...
0 votes
3 answers
143 views

Faces become italic automatically

I'm trying to set default face to use PingFang Mono SC font. But I notice that faces that don't use this font become italic unexpectedly. As one can see below the font-lock-comment-face is italic, but ...
0 votes
1 answer
39 views

How to use fonts for normal text for org-mode tables?

Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables? ...
  • 13
0 votes
1 answer
28 views

How to control inter-paragraph spacing in org-mode?

After reading Org Mode Syntax, my understanding is that blank lines in the content section under a heading are used syntactically to separate paragraphs and that each blank line "belongs" to ...
0 votes
1 answer
44 views

Fallback font for specific face

I'm trying to set a fallback font for variable-pitch face. More specifically, my current setup is: Default font set to JuliaMono with size 15 via (set-frame-font "JuliaMono 15" nil t). ...
  • 121
0 votes
1 answer
58 views

How to define consult faces generically for minibuffer highlighting that fits with your selected theme?

Background I'm experimenting with different themes to see which one I prefer. I'm giving a theme time to soak, so to speak, by using it for a few weeks. At the moment I'm trying the paganini theme. ...
  • 185
0 votes
1 answer
41 views

How to fix font on start page in spacemacs?

I'm using Spacemacs on macOS. I installed Hack Front and configged it in user-config of spacemacs: (set-face-attribute 'default nil :family "Hack Nerd Font") When I open the Emacs GUI Emacs ...
0 votes
1 answer
36 views

How to make hte title and headers the same size as the text in Org mode?

I have this in my Emacs: I want the title and headers to be the same as the normal text. What should I put into my .spacemacs file?
  • 35
0 votes
1 answer
81 views

Solved: New install - white font on white background

New install of EMACS on arco linux, and new user. All fonts are white on a white background and cannot be seen unless they are highlighted, which makes the tutorial useless. How can I fix this? I have ...
0 votes
1 answer
51 views

Can't set bold weight for fonts

I trying make the variable-pitch font weight to be bold, as I find the variable-pitch font be very thin and almost not visible clearly, but it doesn't seem to work for neither default nor fixed-pitch ...
1 vote
2 answers
74 views

Symbol's function definition is void: python-font-lock-assignment-matcher

My emacs won't start properly any more. The basic, unmodified interface is opened with the following error: Warning (initialization): An error occurred while loading ‘/home/qohelet/.emacs’: Symbol's ...
  • 165
1 vote
0 answers
32 views

Since Emacs 28: A new font problem with Arabic

Since Emacs 28 I have a new problem with Arabic fonts. I can't change the Arabic characters to the font of DejaVu Sans Mono (or others). This wasn't a problem before. The old one: As you can see the ...
  • 326
0 votes
5 answers
105 views

Devanagari script in org-table

Org-table works as expected when it comes to English characters. | a | b | c | d | e | | f | g | h | i | j | | k | l | m | n | o | | p | q | r | s | t | | u | v | w | x | y | | z | | | | | ...
  • 365
1 vote
0 answers
75 views

Is there a way to globally disable ligatures?

Sometimes I copy text from pdf/html sources that contains ligatures (like "fi" as a single character). This causes all kinds of problems (e.g. spellchecking). Is there a way to turn ...
2 votes
1 answer
225 views

how does my org mode have different fonts in src block / table and other texts?

I am surprised to find the font used in table / src block is different from normal text (see below). Any one knows why? and how to make the font universal? The "0" on heading: The "0&...
  • 349
0 votes
0 answers
20 views

Lost fonts on upgrade to emacs 27.2

Using ubuntu 21.10. I know this is a recurring nightmare and I have dug around but not found anything clear. I recently upgraded manually from Emacs 27.1 to 27.2, downloaded source code and ...
  • 103
1 vote
0 answers
24 views

use of "system font" on recent MacOS failing

With emacs-version = 27.2, and on MacOS 12.2.1, attempts to do something like (set-fontset-font t '(#x2070 . #x209C) "System Font" nil 'prepend) are causing error logs to the terminal where ...
1 vote
0 answers
45 views

Emacs 27.2 not rendering Devanagari fonts properly

I am having problems with Devanagari fonts in Emacs 27.2. I am using the Noto Sans Devanagari font to render the devanagari unicode font block. When I first start emacs up, everything works fine and ...
1 vote
0 answers
33 views

Set a non-default font for latin characters

I want to display phonetic alphabet characters alongside general text in a somewhat coherent manner. My default font is JetBrains Mono, so at the very least, the characters of the phonetic alphabet ...
2 votes
1 answer
176 views

Emacs on X11 - problem getting italic font

I'm running Emacs 26.3 on Ubuntu 20.04.3 LTS in a WSL1 container on a Windows laptop, using MobaXterm's X server to provide the display. Using "Options > Set Default Font..." I select &...
  • 171
0 votes
2 answers
81 views

Font issues using monokai on emacs 27.2 on WINDOWS 10

Hello guys i am experiencing some font issues using the theme monokai on windows 10 and emacs 27.2. Emacs seems to compile everything quite nice even there are not error and warnings. However, when i ...
1 vote
1 answer
89 views

Why am i getting this "E926" character on my dashboard?

Why am i getting this E926 in my Emacs dashboard and how can I fix this? dashboard is an Emacs package - https://github.com/emacs-dashboard/emacs-dashboard.
  • 51
1 vote
1 answer
69 views

How can I apply a user-defined fontset to a face?

Say I create a fontset and populate it with fonts: (create-fontset-from-fontset-spec (font-xlfd-name (font-spec :registry "fontset-mine"))) (set-fontset-font "fontset-mine" 'latin ...
  • 155
2 votes
2 answers
353 views

Emacs says "Font not available" on pretty much any font spec except XLFD strings

I'm trying to customize fonts on Emacs with (custom-theme-set-faces 'user `(org-level-1 ((t (:font "STIXIntegralsUp"))))) but it says "Font not available", despite ...
  • 155
0 votes
0 answers
46 views

Why the same font size for different latex sections with Auctex when `font-latex-fontify-sectioning` is a float?

As far as I understand, setting font-latex-fontify-sectioning to a number larger than 1.0 should make it so that the titles of sections of different levels have different sizes. However, even though I ...
  • 103
1 vote
0 answers
206 views

Setting default font/face

I'm using Emacs nightly, and I suspect some font code has changed, or maybe it's just how I've been using it doesn't work anymore. I do something like this: (defun find-font-size (name size &...
  • 426
1 vote
0 answers
264 views

How to install a font on arch linux + doom emacs

I am trying to be able to use this font on Arch Linux + Doom Emacs. So far what I did is the following: Download and unzip font to ~/.local/share/fonts/ run fc-cache The font is working on ...
1 vote
1 answer
144 views

How to specify a different font for plain-text-files

Let me say first my English is not so good and I'm totally new to Emacs. In Org-Mode I can specify a monospace font in code-blocks while using a proportional font in normal text. So I defined a ...
0 votes
1 answer
685 views

Doom Emacs - Setting Font for Devanagari characters

I had faced the similar problem earlier and found a solution myself here. But I am stumped now. I am running Doom Emacs 3.0.0 on Emacs 27.2 on Gnome 40.4. In my config.el, there is: (set-fontset-font ...
  • 1,712
2 votes
1 answer
172 views

Characters in unicode-smp charset have no glyphs in Emacs 27.1, debian buster, using MesloLGS NF font

I'm using Gnu Emacs 27.1 GTK on Debian 10 from buster-backports. I'm also using the MesloLGS NF font that ships with zsh powerlevel10k, and has a heck of a lot of unicode characters. Nonetheless, ...
0 votes
1 answer
31 views

How to define font for Greek text

On my Emacs 27 on MacOS ("GNU Emacs 27.2 (build 1, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.7 (Build 19H1030)) of 2021-05-17") I use ETBembo 18pt as font for org-mode. ...
0 votes
0 answers
76 views

Emacs fixed pitch text: Why Emacs uses Chinese font for it?

I use Emacs on Windows. As I have noticed while using markdown-mode, for fixed pitch text Emacs uses a very weird and ugly font, which is in fact was designed to show Chinese characters, but for some ...
2 votes
0 answers
254 views

Change CJK fonts in default fontset

Is there a way to change the CJK fonts used in the default fontset? Currently, when I open the HELLO file using C-h h, I see: Japanese (日本語) こんにちは / コンニチハ with charset japanese-jisx0208 and font ...
  • 998
1 vote
0 answers
106 views

Is it possible to change font size only for Chinese characters in Org tables?

I want to use different fonts for different languages, for example, Consolas for Latin characters and Microsoft YaHei for Chinese characters. I can do this by M-x customize-face RET default and ...
0 votes
1 answer
125 views

Emacs does not respoect custom-set-faces, loads wrong font

I have an issue setting fonts in GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 which is under Windows 10. I set the font successfully, but when I reopen Emacs my setting is not respected ...
  • 203
0 votes
1 answer
196 views

Certain keywords show font weight of bold

The syntax highlighting in Emacs is not great so I installed tree-sitter plugin to improve it and configured it like this, ;; Tree sitter (use-package! tree-sitter :config (require 'tree-sitter-...
3 votes
0 answers
132 views

Full Justification for Proportional Fonts

I am having difficulty getting text to fully justify when I use a proportional font. When I do, I get staggered text. As I understand it, the way emacs generally handles filling is by number of ...
  • 61
0 votes
3 answers
76 views

Font problem: Coelacanth Italics

I use Ben Whitmore's excellent http://benwhitmore.altervista.org/coelacanth-type-family/Coelacanth font in org-mode. The font family is provided in several OTF files. Setting xfthb:-PfEd-Coelacanth-...
0 votes
0 answers
82 views

Emacs can't see system fonts on Debian

I have small problem with fonts' availability in Emacs on Debian 10. I have downloaded 'Fira Code' fonts and correctly installed them. They are exists on fc-list and are available in other programs ...
0 votes
1 answer
48 views

How can I force a Hebrew font to match the fixed width of Latin text characters in a mono font

I have setup my Emacs to use Noto Sans Mono everywhere. I did this on the naïve assumption that it was in fact a mono-spaced font, with full coverage of Hebrew and Greek Extended characters. ...
0 votes
1 answer
145 views

Set font for Devanagari Characters in Doom Emacs

Running Doom Emacs 2.0.9 on Emacs 27.1. I want to always display Devanagari characters in a specific font (Sarpanch). This font is installed on my computer and I can use it in all other applications ...
  • 1,712
0 votes
2 answers
79 views

Underline issue with Inconsolata font

I'm using Inconsolata font in emacs. The setting looks like (set-face-attribute 'default nil :font (font-spec :name "-*-Inconsolata-bold-italic-normal-*-*-*-*-*-m-0-iso10646-1" ...
1 vote
1 answer
535 views

Doom-emacs - How to align chinese characters in org-tables

I'm trying out doom emacs for the first time (previously was using spacemacs). I've run into an issue where chinese characters are not aligned in org mode tables. For example: | Character | Pingyin ...
0 votes
1 answer
222 views

Emacs hangs/crashes when opening files with special unicode characters, does not crash with -nw

I'm using Arch Linux, i3wm and emacs 27.1, and I'm having an issue where emacs hangs when opening certain files, but I can't seem to find a pattern as to which files cause the hang. When emacs hangs, ...
1 vote
1 answer
239 views

How to make emacs shell the same as system terminal experience?

On macOS, using iTerm2. It looks like In Emacs For Mac OS X, it looks like I copied system's ~/.zshrc file to ~/.profile and ~/.bash_profile, but doesn't they read configrations when start emacs?
0 votes
1 answer
78 views

How can I set and retain font size of the solarized-theme?

I like the solarized (light) theme in emacs but i have a 27" mac so the font is too small. I know I can enlarge with C-x C-+ but I do not know how to set the font size and retain that setting so ...
  • 103

1
2 3 4 5
7