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
6
votes
1answer
2k views

Selecting correct font weight variant (Linux)

Here's a minimal example that does something on Linux (Ubuntu 16.04) that doesn't seem right to me: M-: (set-frame-font "Ubuntu") M-x describe-font <RET> The first couple of lines that Emacs ...
1
vote
2answers
170 views

How to make highlights persistent?

I don't want themes. I use bold,italics, and highlights. I also use background colors per file, so the code as in for background need to be embedded inside file. But when I Edit->Text Properties-&...
0
votes
0answers
65 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
46 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, ...
2
votes
1answer
194 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 ...
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
2answers
51 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
1answer
311 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 -> ...
1
vote
1answer
240 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 ...
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
1answer
67 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
vote
1answer
152 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 ...
0
votes
0answers
31 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 ...
0
votes
1answer
267 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 "...
2
votes
0answers
57 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
57 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 ...
1
vote
0answers
32 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
37 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
21 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
145 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
660 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
764 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
52 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
19 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
470 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 ...
5
votes
1answer
66 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 ...
0
votes
1answer
173 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
441 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
40 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
24 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
106 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
145 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
507 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
45 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 ...
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 ...
3
votes
1answer
454 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
48 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
63 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
51 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/...
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
47 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
115 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
165 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. ...

1
2 3 4 5
7