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

Changing text size doesn't work on all fonts in org-mode

I have the following in my config: ;; set a non programming font for text (when (member "Lucida Sans Unicode" (font-family-list)) (set-face-attribute 'variable-pitch nil :font "...
0
votes
0answers
12 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 ...
0
votes
1answer
33 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
0answers
21 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
1answer
26 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-...
0
votes
0answers
12 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;...
3
votes
1answer
2k views

Wrong letter spacing when using certain fonts

I'm using Classic Console font in buffers. Unfortunately for some reason letter spacing is terrible in Emacs while being correct in Konsole and other programs. Text in Emacs: Text in Konsole (using ...
1
vote
1answer
138 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?
1
vote
0answers
594 views

How does Emacs manage Italics and Bold?

I use TrueType fonts with Emacs under X. There are specific Italic and Bold files for most fonts. All of them are recognized by font config and therefore by emacs. How does Emacs uses bold and ...
4
votes
1answer
725 views

Is it possible to change the font size in specific buffers?

I would like to have different font sizes for the buffer windows in Emacs. That is, I would like to have a bigger font in the buffer where i write the code, and a smaller font in the buffer where i ...
3
votes
0answers
44 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
8 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?
2
votes
1answer
160 views

Default font selection behaves strangely

After upgrading to Emacs 27.1, my default font changed to adobe courier. I would like to use Anonymous Pro or Inconsolata, but attempts to change it using M-x customize-face RET default fail. I am at ...
1
vote
1answer
294 views

set default fonts for Aquamacs in .emacs

I am running Aquamacs 3.3 under macOS Sierra (10.12.6). The default fonts are way too small. How can I do the equivalent of the following tedious procedure via code in my .emacs? Options Menu -> ...
0
votes
0answers
21 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
18 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-...
2
votes
2answers
428 views

Zoom with mouse-button + scroll wheel?

I'd like to enable changing the font size by holding down the right mouse button and using the scroll-wheel. Emacs does however treat mouse buttons as keys, so this obviously cannot be achieved ...
1
vote
1answer
222 views

how to make non-bold text in Elfeed?

I want search-title-face to be non-bold. Tried to add to my .emacs file this chunk (due to http://nullprogram.com/blog/2013/11/26/): (custom-set-faces '(elfeed-search-title-face ((t :weight ...
5
votes
1answer
63 views

Override particular range of code points with a non-default font

Is it possible to override glyphs at some range of code points, that the default-font already covers, with ones from a non-default font? For instance, I'd like to use Arial only except for the ...
2
votes
1answer
988 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
1answer
46 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
1answer
109 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
2answers
357 views

Font and frame configuration in daemon mode

In my .emacs I have (set-frame-font "Source Code Pro") (set-face-attribute 'default nil :font "Source Code Pro" :height 140) (set-face-font 'default "Source Code Pro") ...
3
votes
2answers
3k views

Ligatures with the JetBrains Mono font

After installing the JetBrains Mono Font and setting it as my default face. I am wandering how to enable Ligatures in Emacs. I tried a solution based on this answer that show how to do this with Fira ...
0
votes
0answers
30 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
1answer
32 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
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
19 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
0answers
94 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
96 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 ...
2
votes
2answers
450 views

What exactly is the difference between `font-family` and `font-foundry`?

What is the historical context of these two terms? Why are they distinct? And why are they needed? What pragmatic utility is there in knowing how these two terms differ? In terms of Emacs/Emacs Lisp, ...
0
votes
1answer
35 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 ...
1
vote
1answer
771 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 ...
3
votes
1answer
391 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[...
0
votes
0answers
39 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 ...
0
votes
1answer
43 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
45 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
16 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/...
13
votes
4answers
4k views

How to customize org-mode indentation?

this question actually arises because I like to use non-monospaced fonts, (Sabon, Minion, Garamond, etc.) This cause a problem when use org-indent-mode, since the text under the headlines are now not ...
0
votes
0answers
38 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
13 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
77 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
127 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
61 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. ...
0
votes
1answer
25 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 ...
1
vote
2answers
563 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
39 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 ...
2
votes
2answers
253 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
55 views

How to get “:size” from font-spec

How can I get :size from font-spec using Elisp?
41
votes
6answers
53k views

How can I set default font in Emacs?

I can't set Inconsolata as default font in Emacs 24.4 Linux. I changed the font in the menu -> Save options. The font changed but after a restart the font is the same as it was by default. Added ...

1
2 3 4 5
7