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
1
vote
0answers
30 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
1answer
67 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
0answers
96 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
vote
1answer
64 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
1answer
21 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
0answers
33 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
0answers
77 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 ...
1
vote
0answers
35 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
0answers
25 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;...
0
votes
1answer
69 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 ...
0
votes
1answer
56 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
0answers
55 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 ...
0
votes
0answers
9 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?
0
votes
0answers
22 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
0answers
21 views

How can I print with a particular font?

I'm using "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1", the same font that is used by xterm. How can I print in this font? It seems that, even with #'ps-print-with-...
0
votes
0answers
44 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
0answers
14 views

How can I get autocomplete lists to show correctly in a buffer with a variable-pitch font?

In a variable-pitch buffer, autocomplete dropdown lists show up with each row at a different column on the screen, I'm guessing because the dropdown lists are set to show at the same x-value based on ...
0
votes
1answer
28 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
1answer
79 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 ...
0
votes
2answers
53 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" ...
0
votes
1answer
199 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
0answers
118 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
1answer
147 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
1answer
47 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 ...
0
votes
0answers
51 views

Emacs as daemon will not use font config

When using emacs as daemon, systemctl --user start emacs-27.service emacsclient -c and also the following directly: emacs-27 --fg-daemon emacsclient -c the font config in :~/.emacs.d/init.el will ...
1
vote
1answer
166 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 ...
0
votes
1answer
72 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 ...
0
votes
0answers
53 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 ...
1
vote
0answers
17 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/...
2
votes
1answer
1k 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 ...
0
votes
0answers
50 views

term face font initially works but then falls back to default

I have defined my faces for the term group that way: '(term ((t (:inherit default :family "Courier")))) and all other colours pretty similarly. (I have also tried defining it without using ...
0
votes
0answers
17 views

How to adjust height of echo area if function signature contains non-ascii characters?

While working on a PureScript project, I have noticed that function signatures provided by company-mode get cropped if they contain non-ascii characters. How can I increase the minimal height of the ...
0
votes
0answers
122 views

Terminal capable of italics -- emacs not so much

I'm trying to get emacs (27.1) to render italics correctly in markdown mode. The above screenshot comes from my GUI emacs. But here's emacs 27 rendering italic text (markdown mode) in iTerm2. It jus ...
0
votes
0answers
175 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. ...
0
votes
1answer
39 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 ...
0
votes
1answer
71 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. ...
3
votes
2answers
920 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 ...
0
votes
0answers
52 views

How to set a font just for CJK?

I'm not happy with the font used for Japanese characters and would like to change it. I'm using Emacs 27.1 on Ubuntu 20.04.1. I did not have that problem with the last version(maybe the default font ...
3
votes
2answers
420 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 &...
0
votes
1answer
68 views

How to get ":size" from font-spec

How can I get :size from font-spec using Elisp?
1
vote
1answer
175 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 ...
2
votes
1answer
1k 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 ...
0
votes
0answers
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 ...
2
votes
1answer
414 views

Why Emacs cannot display emojis

Sorry if this was answered somewhere else, but I could not find an answer. All the text editors installed in my system can display emojis except Emacs (version 27), even if they use the same font. As ...
1
vote
2answers
88 views

Change font size globally with a shortcut

When I need to change the font size I evaluate the following region: (set-frame-font "JetBrains Mono-14") This is far from optimal since it involves a lot of typing. I'm looking for an ...
1
vote
2answers
52 views

How to cycle over a pre-defined list of fonts?

I would like to be able to switch fonts quickly between a predefined list of mono-spaced fonts I know work well in Emacs. Instead of selecting the font from all system fonts which shows too many, most ...
2
votes
0answers
72 views

replacement for `emacs -xrm Xft.embolden:true -fn Hack-13` for emacs 27.1

For last 2 years (2018-) I've been using emacs -xrm Xft.embolden:true -fn Hack-13 to start emacs w/ suitable sized and 'brightness'ed fonts for me in my systems. What that does gives extra boldness to ...
2
votes
1answer
276 views

Variable font height according to Org header

This seems like it's probably not possible, but I'm extremely new to Emacs and thought I'd ask. I have a number of faces set in Org mode. ;; Highlight Line Colors (add-hook 'org-mode-hook (lambda () (...
0
votes
0answers
22 views

Change font of a line

I'm thinking of making a UI which has different font size/color for different lines. Can I change the font of a particular line, like the color and size? Org-mode can do this for headlines, so I ...
0
votes
1answer
68 views

Links in Tables - fonts mess up table alignment

I would like to use links in a table to explain certain entries more in depth. | Some | random | table | entries | | More | data | and | LINK | <- misaligned * LINK target with - more ...

1
2 3 4 5
7