GNU bug report logs - #79285
[Patch] support :font-features in face

Previous Next

Package: emacs;

Reported by: Binbin YE <phantom2501 <at> gmail.com>

Date: Thu, 21 Aug 2025 15:16:02 UTC

Severity: normal

Tags: patch

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Binbin YE <phantom2501 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [Patch] support :font-features in face
Date: Thu, 21 Aug 2025 23:28:53 +0900
[Message part 1 (text/plain, inline)]
Greetings,

It is my first time trying to contribute to Emacs source code.

The change is adding support for enabling stylistic set (font features)
when using harfbuzz font backend. It is a commonly supported feature in the
editors. See following links

https://code.visualstudio.com/docs/terminal/appearance#_font-feature-settings

https://developer.mozilla.org/en-US/docs/Web/CSS/font-feature-settings

The change adds :font-feature configuration like following

(set-face-attribute 'default nil :font "JetBrains Mono" :height 80
  :font-features '((zero . 1) (ss19 . 0) (calt . 1)))

The render result can be confirmed by adding "0" to composition table

(set-char-table-range composition-function-table
  ?0
  '(["." 0 font-shape-gstring]))

I have read the CONTRIBUTE file and tried to make the commit message as
clear as possible. Please let me know the code review process to get the
patch accepted.


Best,

Binbin
[Message part 2 (text/html, inline)]
[0001-support-configuring-font-features-in-face.patch (text/x-patch, attachment)]

This bug report was last modified 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.