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

Unicode displayed incorrectly

I recently discovered set-input-method TeX and really like it! But I noticed that certain characters are displayed incorrectly. For example, ₘ is displayed as a superscript ⊕ to me: To reproduce: ...
jpb's user avatar
  • 101
0 votes
0 answers
40 views

Set default face (font) with use-package ':custom-face'

What do I need to tell 'use-package' so that it will set the default font for all frames on Emacs startup? With 'use-package' now installed as part of Emacs, I want to specify faces with its :custom-...
bignose's user avatar
  • 639
0 votes
1 answer
35 views

How to make ligatures work for "Fragment Mono" font?

I use Emacs with Tuareg for writing code in OCaml. Also, I write code in documents out of Emacs (not for compilation) and found that some fixed-pitch fonts are pretty good in visualization for some ...
Valentyn Zakharenko's user avatar
0 votes
0 answers
51 views

Erratic font behavior after upgrading from 27.1 to 29.1 related to --no-x-resources

After upgrading Emacs from 27.1 to 29.1 yesterday (both compiled from source without configure settings except for --prefix) I am seeing erratic behavior of the fonts. The issue vanishes, when I start ...
kdb's user avatar
  • 1,561
0 votes
0 answers
27 views

org-emphasis-alist - why italic not work in org mode?

Emacs 27.1 Here my settings of org-emphasis-alist '(org-emphasis-alist '(("*" (bold :foreground "deep sky blue")) ("=" (italic :foreground "...
a_subscriber's user avatar
  • 3,926
0 votes
0 answers
31 views

How to change font-size for a single face in a single buffer

I am trying to change the font size of a single face only within a single buffer. Currently, the face is defined like this: So I thought that all I need to do is evaluate (face-remap-add-relative '...
Nikratio's user avatar
  • 919
0 votes
0 answers
9 views

define a special org-link face inside of org-table, different from outside?

I'd like to define a special org-link face inside of org tables, such as to set link to fixed fonts within a table, and to variable fonts outside. I tried to play with custom-theme-set-faces in ...
Laurent Jacques's user avatar
0 votes
0 answers
28 views

How can I control the height of the section superstar in org mode?

If I start Emacs (29.1 on macOS Ventura) using the .emacs file (require 'org-superstar) (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) ;; (set-face-attribute 'default nil :foundry "...
Sam7919's user avatar
  • 339
0 votes
0 answers
14 views

Select font for buffer via [Gtk] GUI font selection tool

From the menu-bar selecting: Option -> Set Default Font... pops up a (Gtk?) font selection tool: Is there a nice way to select font for the current (or specific) buffer without configuration ...
Yotam's user avatar
  • 101
0 votes
0 answers
61 views

How to customize the appearance of eglot's inlay hint?

eglot's inlay hints are extremely close to the actual code, it makes the code almost unreadable. For example: The name of field is input, but it looks like inputString! Is it possible to customize ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
17 views

resize font in ivy-posframe

i'm tryinng to set the font in ivy-posframe and no result. i have try code adapt to another cases, like: (defun text-scale-twice ()(interactive)(progn(text-scale-adjust 0)(text-scale-decrease 2))) (...
Levo's user avatar
  • 47
0 votes
0 answers
33 views

how do i customize font faces and sizes in neotree buffer

I am trying to find a good folder view package to work alongside projectile and magit, I tried treemacs for a while and did not find it to my liking, I am now trying neotree. Neotree seems to be ...
Ajaneesh Rajashekharaiah's user avatar
1 vote
3 answers
73 views

The mystery of the global font-size change shortcut

The official Emacs documentation says: ...to change the sizes of the fonts globally, type C-x C-M-+, C-x C-M-=, C-x C-M-- or C-x C-M-0,...1 Unfortunately, when I type C-x C-M-+ on my laptop's ...
kjo's user avatar
  • 3,207
0 votes
0 answers
15 views

Multilingual LaTeX pdf export

I have an org mode file with a mix of Bengali and English text, which I got to work using Adib Hasan's solution here: #+LATEX_HEADER: \usepackage[banglamainfont=Kalpurush, banglattfont=Akaash, feature=...
subhacom's user avatar
0 votes
2 answers
36 views

Human-readable font names to/in/from frame parameters?

I can use human-readable names for setting fonts, e.g., with M-x set-frame-font RET DejaVu Sans Mono 12 RET, or via menus. But when I ask for (frame-parameters nil 'font) to find out the current ...
toomas's user avatar
  • 183
1 vote
1 answer
859 views

Strange symbols in doom-modeline

When I first installed doom-modeline I used to get the nice symbols for each mode, for some reason now all I get is: Does anyone know how I can get proper symbols back?
Dave F's user avatar
  • 553
0 votes
1 answer
44 views

find out font used in terminal emacs

M-x describe-font shows fonts when run in mac, but when I run it on iterm2 (emacs -nw), it doesn't give me anything (no output) describe-face says Face: default (sample) (customize this face) ...
eugene's user avatar
  • 489
0 votes
1 answer
69 views

Increase text size permanently

How can I set the text size to be larger all the time, starting from when I open the GUI app? I am specifically referring to the text size for the buffer and modeline. I am moderately visually ...
vnbcs's user avatar
  • 1
0 votes
0 answers
22 views

Font fallback breaks fixed-pitched grid

I'm looking for a way to achieve strict monospace alignment in Emacs, even when font fallback happens. There are various fallback fonts available for displaying icons in terminals, for example https://...
Zoltan's user avatar
  • 231
0 votes
1 answer
73 views

Nonbreakable space font

I use C-x8space to insert a non-breakable space. In recent Emacs (I'm on 28.2 now), it started being displayed much narrower than in older versions. I use a monospace font called monofur, but the ...
choroba's user avatar
  • 2,015
1 vote
1 answer
58 views

Searching for text fragments by character text properties

The text to be processed has special words marked with a special font. The required text is copied to the clipboard with the mouse (from firefox). The text is pasted into the clipboard emacs("...
uanr81's user avatar
  • 169
0 votes
1 answer
64 views

Android emacs font not available, for resize

I've installed emacs with f-droid and I'm trying to increase the font size, but it says the font is not available no matter what i try. Is there a package that needs to be installed? All in trying to ...
Jason Hunter's user avatar
0 votes
1 answer
33 views

How can we customize the font size of the window-number in `ace-window` mode?

The font face of the window labels in ace window seem to have the same size as that of the text in the buffer, which is in general too small for me to allow for quick visual parsing. I was hoping that ...
loonatick's user avatar
  • 217
2 votes
1 answer
301 views

How to load font for emacs on Arch Linux?

I want to use a custom font for emacs on arch linux. Therefore, I installed the package ttc-iosevka. Then I added the following line to my init.el: (set-frame-font "/usr/share/fonts/TTF/iosevka-...
MySQLInjection's user avatar
0 votes
1 answer
32 views

How to add syntactic elements to modes with colourizing and correct tabulation

I am using literate programming in org mode. It adds a new syntactic construction to the language: <<macro name>>. Unfortunately, it breaks all the colouring and tabulation after it. For ...
user4035's user avatar
  • 1,059
1 vote
3 answers
114 views

Increase font size in mini-buffer (for Japanese Kanji selection)

I'm using Emacs and Xubuntu, and my default input is English, but (in Emacs) I use Japanese input method as well. To enter Kanji (Chinese characters), I type some letters (usually from 2 to about half ...
Chris's user avatar
  • 57
3 votes
1 answer
152 views

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 ...
shynur's user avatar
  • 4,638
1 vote
1 answer
412 views

font scaling on multiple monitors with different scalings

I have a 4k laptop display and dual 1920x1200 external monitors, one rotated vertically so emacs can have a million lines in view. Font scaling is set to 200% on the laptop display and 100% on the ...
Joe's user avatar
  • 13
1 vote
0 answers
85 views

Specify the size of a font in a fontset, but let it be scaled by `text-scale-adjust`

I want to use Inconsolata LGC's Greek with Inconsolata (plain Inconsolata has better hinting than Inconsolata LGC). I've set up a fontset (of course these are things you copy from Stack Exchange) (...
Arch Stanton's user avatar
  • 1,575
2 votes
2 answers
187 views

List items don't align properly when using a variable pitch font in Org mode

I'm using the "Charis SIL Compact" font for Org mode and everything looks fine except the second, third lines of list items that span multiple lines don't align properly. When using a ...
Zoli's user avatar
  • 421
0 votes
1 answer
96 views

Monospace font for non-ascii chars

I have some code that uses non-ASCII unicode chars. Here's a simple example that happens to be JS but the problem exists more generally: function replaceFractions(text) { // We're ignoring ⅙⅚⅑⅐⅑⅒ ...
Richard Wheeldon's user avatar
0 votes
2 answers
46 views

Change font size for buffer in a single frame (ideally zoom in/out using key or mousewheel)

In GNU Emacs 27.2 is there a way to change the text font size of a single buffer without changing all open instances of that buffer (in different frames)? In my version of emacs, when I use Ctrl+...
PatS's user avatar
  • 155
2 votes
1 answer
318 views

How to set the font in an Org-mode buffer?

Is there a simple way to set the font used when viewing an .org file, so that it applies to that file every time you open it? I'm imagining something with the properties, like the imagined example ...
Rob N's user avatar
  • 587
0 votes
1 answer
62 views

Accents not rendering properly over greek letters in GUI mode

I noticed that (at the moment) accents are not properly positioned over Greek letters, for example the greek Letter pi (Unicode 03C0) with a combining circumflex accent (Unicode 0302) (used a lot in ...
swhalemwo's user avatar
1 vote
1 answer
120 views

Setting the Default Zoom of An Emacs Frame (Without Stutter)?

When launching emacs, I've been manually calling (dotimes (i (or arg 15)) (spacemacs/zoom-frm-in)) to zoom the frame in 15 times over. I actually added this to a script so that it happens every ...
George's user avatar
  • 889
1 vote
1 answer
382 views

Change org mode's heading font size (like logseq) in respect of properties

I want my org file can be used in Emacs and logseq interchangeably (in pc Emacs, in mobile logseq) What I want is like logseq to have other properties for the heading text, like :PROPERTIES: :heading: ...
justakidd's user avatar
0 votes
1 answer
115 views

My text is not aligned, what is causing this?

I noticed recently that across all my files, each line is slightly misaligned. As you can see, depending on the line number, the text is off a bit. I tried changing fonts with no luck. Which setting ...
Vinn's user avatar
  • 283
1 vote
1 answer
143 views

Correct alignment of in-buffer settings (and properties) when using variable-width font in org-mode

on the left side I'm using a variable-pitch font "Charis SIL Compact" and on the right side a fixed-pitch monospace font "Hack Regular." As expected, the monospace "Hack"...
Zoli's user avatar
  • 421
1 vote
1 answer
276 views

VTerm: Program characters seem to show in incorrect width/font

In VTerm, some of the display characters of a fairly graphical program called btop seems to not be displayed in the right width (or perhaps not in the right font? I can't tell). In comparison, here ...
adentinger's user avatar
1 vote
1 answer
217 views

Unicode characters missing only in Emacs

A few unicode characters are missing from my Emacs (GNU Emacs 28.2 on macOS 11.6.8.). They are displayed everywhere else on my system just fine, but in Emacs they look like this: (Same character in ...
Carapuce's user avatar
2 votes
1 answer
428 views

How to set heading and TODO fonts?

I use spacemacs theme on Emacs 28.2. My config for faces is: (custom-theme-set-faces 'user '...
crocefisso's user avatar
  • 1,220
0 votes
0 answers
123 views

Font style of In-Buffer settings

I’ve been having problems with elisp debugging lately. I restarted emacs and problems appear to have disappeared. But I noticed something else: all of the In-buffer settings, e.g. #+BEGIN_QUOTE #+...
zeynel's user avatar
  • 301
0 votes
0 answers
39 views

Can I use a different font for elisp files? [duplicate]

My default font is Monaco. But I'd like to use Courier and with a larger size for .el files? How do I do that?
zeynel's user avatar
  • 301
0 votes
1 answer
124 views

`buffer-face-mode` does not work with custom fontset

I can not change family and size of a custom fontset in buffer-face-mode. Below is the minimal test config (create-fontset-from-fontset-spec (font-xlfd-name (font-spec :registry "fontset-mine&...
Saddle Point's user avatar
0 votes
3 answers
402 views

Faces become italic automatically

I'm trying to set default face to use PingFang Mono SC font. But I notice that faces that don't use this font become italic unexpectedly. As one can see below the font-lock-comment-face is italic, but ...
Saddle Point's user avatar
1 vote
1 answer
296 views

How to use fonts for normal text for org-mode tables?

Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables? ...
Eminent's user avatar
  • 67
0 votes
1 answer
135 views

How to control inter-paragraph spacing in org-mode?

After reading Org Mode Syntax, my understanding is that blank lines in the content section under a heading are used syntactically to separate paragraphs and that each blank line "belongs" to ...
StackExchanger's user avatar
0 votes
1 answer
201 views

Fallback font for specific face

I'm trying to set a fallback font for variable-pitch face. More specifically, my current setup is: Default font set to JuliaMono with size 15 via (set-frame-font "JuliaMono 15" nil t). ...
Jay Lee's user avatar
  • 143
0 votes
1 answer
308 views

How to define consult faces generically for minibuffer highlighting that fits with your selected theme?

Background I'm experimenting with different themes to see which one I prefer. I'm giving a theme time to soak, so to speak, by using it for a few weeks. At the moment I'm trying the paganini theme. ...
ldeck's user avatar
  • 215
1 vote
1 answer
234 views

How to fix font on start page in spacemacs?

I'm using Spacemacs on macOS. I installed Hack Front and configged it in user-config of spacemacs: (set-face-attribute 'default nil :family "Hack Nerd Font") When I open the Emacs GUI Emacs ...
Alpin Cleopatra's user avatar

1
2 3 4 5
8