Questions tagged [fonts]

specifying fonts and font enhancements, and in Emacs, fonts are closely associated with face and font-lock features.

379 questions
17
votes
4 answers

How to set the default font size?

I find myself consistently zooming out (C-x C--) in every buffer that I am using in order to see more lines of code that I'm working on. Is there a way to set the zoom level in my .emacs, not interactively? Or should I look into setting the…
aepound
  • 273
  • 1
  • 2
  • 8
12
votes
3 answers

Emacs doesn't display color fonts at all

I tried to add Noto Color Emoji from Google Noto as my font for Emoji in GNU Emacs, as mentioned in here, but for some reason GNU Emacs doesn't display these characters properly in its window. I'm using GNU Emacs 24.5.1 on GNU/Linux. Is this a bug…
user12563
9
votes
1 answer

Set font for a specific file?

I'd like to always display one particular text file named "table.txt" in a monospaced font, while displaying all the other buffers in a variable-width font. How can I achieve this? Edit: the suggested link doesn't have the code block solution in the…
stacko
  • 1,597
  • 1
  • 11
  • 19
9
votes
2 answers

How to improve emacs font rendering

On the left: emacs in console mode. On the right: emacs with GUI. Running 24.5.1 on Arch linux. Both my console and emacs have the font set to Inconsolata 12. What can I do to make the emacs with GUI fonts look "smoother"? [ETA more detail:] I…
pfctdayelise
  • 191
  • 1
  • 5
9
votes
2 answers

Japanese / CJK font settings for proper horizontal alignment

I've had this right at one point in the past on one machine with a certain font type at a particular font size, but I can't seem to get it right again. Look e.g. at how my org mode tables look once I add Japanese characters. Here are two examples…
8
votes
2 answers

How to enable opentype features in `font-spec`?

I'm using Emacs 28 (HEAD) on Debian Stable, compiled with HARFBUZZ and cairo (if that's important). I'm trying to enable opentype features on the Pragmata Pro font (as shown here). (font-spec :family "Iosevka Term SS10" :size 16 :otf '(latn nil nil…
precompute
  • 178
  • 1
  • 7
5
votes
2 answers

Fixed-width space character with a variable-width font?

Is it possible to display a space with a monospace font, while displaying all other characters with a variable-width font? I tried (set-fontset-font t '(#x20 . #x20) (font-spec :family "Source Code Pro")) but the result was an error message…
Kirill
  • 1,009
  • 7
  • 20
5
votes
1 answer

How to set a fractional font size in Emacs?

I'm so close to getting two 80-char vertical buffers side by side on a 1366px wide monitor. I've got a cool frame font, (set-frame-font (font-spec :family "Monkey" :size 20 :antialias nil)) I've removed my scrollbars, set my fringe to 1px width,…
bright-star
  • 869
  • 10
  • 17
5
votes
2 answers

Make "text-scale-increase" increase font by one?

Currently for me "text-scale-increase" and "C-X X-+" increase the font size by very high number- so it is either super big, or super tiny. How do I make it to increase it by 1?
Draif Kroneg
  • 270
  • 5
  • 15
5
votes
1 answer

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 uppercase letters, which I want to use Cooper Black…
stacko
  • 1,597
  • 1
  • 11
  • 19
4
votes
2 answers

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 Code, with what I think are the required…
Chen Levy
  • 385
  • 3
  • 12
4
votes
2 answers

How to change font of current frame?

I have two displays and different frames on each. Each display has very different DPI so I need different fonts sizes for them. How can I set different fonts sizes for different frames (font size changes not applied globally)?
licorna
  • 207
  • 1
  • 8
4
votes
1 answer

How to configure font in terminal mode (none display graphic)?

I try to use Emacs in terminal mode, but when I try to checking available font (font-family-list), I go nil. Is it anyway to check and set font in terminal mode?
Enze Chi
  • 1,460
  • 13
  • 29
3
votes
1 answer

Using Uninstalled Fonts

How to get Emacs to use a font that is not installed? Background My USB flash drive has the font that I want to use, but the school's computer room doesn't give students admin permission, so I can't install the font. Useful Information An IDE called…
shynur
  • 5,253
  • 1
  • 4
  • 25
3
votes
0 answers

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 mac-ct:-*-Hiragino…
d125q
  • 1,443
  • 6
  • 10
1
2 3 4 5 6