2022 Developer Survey is open! Take survey.

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
5 answers
88 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 | | | | | ...
user avatar
  • 365
1 vote
0 answers
45 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 ...
user avatar
2 votes
1 answer
42 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&...
user avatar
  • 339
0 votes
0 answers
18 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 ...
user avatar
  • 103
1 vote
0 answers
22 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 ...
user avatar
1 vote
0 answers
36 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 ...
user avatar
1 vote
0 answers
22 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 ...
user avatar
2 votes
1 answer
92 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 &...
user avatar
  • 171
0 votes
2 answers
55 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 ...
user avatar
0 votes
1 answer
52 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.
user avatar
  • 31
1 vote
1 answer
46 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 ...
user avatar
  • 155
2 votes
1 answer
100 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 ...
user avatar
  • 155
0 votes
0 answers
41 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 ...
user avatar
  • 103
1 vote
0 answers
112 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 &...
user avatar
  • 406
1 vote
0 answers
181 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 ...
user avatar
1 vote
1 answer
98 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 ...
user avatar
0 votes
1 answer
482 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 ...
user avatar
  • 1,668
2 votes
1 answer
134 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, ...
user avatar
0 votes
1 answer
24 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. ...
user avatar
0 votes
0 answers
54 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 ...
user avatar
2 votes
0 answers
176 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 ...
user avatar
  • 668
1 vote
0 answers
74 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 ...
user avatar
0 votes
0 answers
52 views

Change math (MathJax) font size in org-reveal

I'm trying to change the size of math text in org-reveal, but I'm running into a weird problem. I'm doing it via CSS, with the following option: #+reveal_html: <style> .MathJax {font-size: 0.7em;...
user avatar
  • 143
0 votes
1 answer
109 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 ...
user avatar
  • 203
0 votes
1 answer
130 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-...
user avatar
3 votes
0 answers
88 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 ...
user avatar
  • 61
0 votes
0 answers
11 views

Increase scale only for devanagari characters using dir-locals

In my .dir-locals, I have the following: ((nil . ((eval . (text-scale-set 5))))) It blows up all characters. But I want that rule to apply ONLY to devanagari characters. How do I achieve that?
user avatar
  • 1,668
0 votes
1 answer
37 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-...
user avatar
0 votes
0 answers
61 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 ...
user avatar
0 votes
1 answer
42 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. ...
user avatar
0 votes
1 answer
125 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 ...
user avatar
  • 1,668
0 votes
2 answers
69 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" ...
user avatar
  • 1,086
1 vote
1 answer
396 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 ...
user avatar
0 votes
0 answers
165 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, ...
user avatar
1 vote
1 answer
178 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?
user avatar
0 votes
1 answer
59 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 ...
user avatar
  • 103
1 vote
1 answer
270 views

Italics not shown in block quotes in orgmode

In my blockquotes in org-mode, the fontification does not pick up on italics. I have looked at this question and answer that says it was fixed several years ago, but my issue persists. I have tried ...
user avatar
  • 203
0 votes
1 answer
105 views

How to color specific keywords in python-mode?

My goal is to color specific keywords as function definition such as log in Python-mode to a spefic color or color of functions. Example, pattern for log("...."): coloring only log. from ...
user avatar
  • 1,112
0 votes
0 answers
59 views

Replacing the font of a character using a BDF's glyph

I am trying to create some custom glyphs inside a BDF font file and want to use these inside Emacs afterwards. In order to get started I'd like to change one character (I used the greek alpha ...
user avatar
  • 101
1 vote
0 answers
18 views

Why "set-face-attribute" needs to be executed twice when switching from a TTF font to a bitmap font?

I'm trying to write a function which switches between fonts in all frames. In order to do this, I first wrote the following commands: This font is a TTF font and is located in ~/.local/share/fonts/...
user avatar
  • 487
3 votes
1 answer
2k views

Cannot set correct size for variable pitch font in Doom Emacs

I am trying to use a variable-pitch font for Org-mode: (add-hook! 'org-mode-hook #'mixed-pitch-mode) I am specifying a variable pitch font that is normally renders much smaller than the fixed pitch ...
user avatar
0 votes
0 answers
245 views

How do I run an Emacs function from the terminal with an argument?

I want to install icon font for that I need to run all-the-icons-install-fonts function. According to the documentation I have to type: emacs --batch -f all-the-icons-install-fonts in the terminal. ...
user avatar
  • 263
0 votes
1 answer
51 views

Emacs org mode entitiespretty not complete

This #+STARTUP: entitiespretty in my org mode buffer allows Latex/MathJax symbols to render in situ . . . almost. I type, e.g., $\le$ and instantly the markup is replaced by the actual symbol. There ...
user avatar
  • 2,717
0 votes
1 answer
95 views

"Cartograph" font has too much spacing

This is what happened when I set my default font to a new font I bought called Cartograph. Looks cool, but I'm not sure I could get used to it. Anyone know what might have happened? It's an otf font. ...
user avatar
  • 2,717
3 votes
2 answers
1k views

How do I get colour emoji to display in Emacs

Emacs 27 gained support for Cairo for font rendering and this is supposed to let me render emojis but I can't find out how to make it work. I just about managed to set up some fontsets but the emoji ...
user avatar
3 votes
2 answers
657 views

Override the default font for emoji characters

My fonts setup is (setq default-frame-alist '((font . "DejaVu Sans Mono-10"))) (defun my-emoji-fonts () (set-fontset-font t 'symbol "Twemoji") (set-fontset-font t 'symbol &...
user avatar
  • 1,392
0 votes
1 answer
116 views

How to get ":size" from font-spec

How can I get :size from font-spec using Elisp?
user avatar
  • 1,320
1 vote
1 answer
253 views

JetBrains Mono font settings

I have been trying to configure emacs to use JetBrains Mono font, unfortunately i can hardly understand the way emacs handles font settings, there are way too many options and stuffs going on. So i ...
user avatar
  • 41
2 votes
1 answer
2k views

FiraCode font not rendering italics

I have been trying to get FiraCode to work inside of Doom Emacs and have mostly succeeded. Everything works except for italics, even bold and ligatures are fine strangely enough. When I switch to ...
user avatar
0 votes
0 answers
42 views

Misusing small font size as subscript

For typing mathematical formulas in emacs I often run into the problem that certain characters are not available as subscript (or superscript) characters. Since I would like a simple solution without ...
user avatar
  • 101

1
2 3 4 5
7