GNU bug report logs - #36028
26.2; Some faces are ignoring rendering settings in fontconfig pattern

Previous Next

Package: emacs;

Reported by: Tetsumi <tetsumi <at> protonmail.com>

Date: Fri, 31 May 2019 14:38:01 UTC

Severity: normal

Found in version 26.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tetsumi <tetsumi <at> protonmail.com>
To: 36028 <at> debbugs.gnu.org
Subject: bug#36028: 26.2; Some faces are ignoring rendering settings in fontconfig pattern
Date: Fri, 31 May 2019 13:32:46 +0000
[Message part 1 (text/plain, inline)]
Hi,

Some faces like 'bold, 'italic, or 'bold-italic are ignoring font rendering settings
when setting a font through a font-config pattern.

For example,

    (set-frame-font "Ubuntu Mono-12:antialias=true:lcdfilter=lcddefault" t nil)

The settings antialias and lcdfilter have no effect on the aforementioned faces.
Another more explicit example,

    ; alternating between these two lines turns on/off aliasing for the default face
    (set-face-font 'default "Ubuntu Mono-12:antialias=true:lcdfilter=lcddefault")
    (set-face-font 'default "Ubuntu Mono-12:antialias=false:lcdfilter=lcdnone")

    ; alternating between these two lines has no effect at all.
    (set-face-font 'bold "Ubuntu Mono-12:bold:antialias=true:lcdfilter=lcddefault")
    (set-face-font 'bold "Ubuntu Mono-12:bold:antialias=false:lcdfilter=lcdnone")

It shall be noted that Xresources settings (eg: Xft.antialias) are not ignored by the
aforementioned faces.
[Message part 2 (text/html, inline)]

This bug report was last modified 4 years and 20 days ago.

Previous Next


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