unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Leach <matthew@mattleach.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 23137@debbugs.gnu.org
Subject: bug#23137: 25.1.50; Subpixel rendering is broken when not running under gnome-session
Date: Thu, 31 Mar 2016 08:34:47 +0100	[thread overview]
Message-ID: <8760w3t814.fsf@mattleach.net> (raw)
In-Reply-To: <831t6swumh.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 30 Mar 2016 05:46:14 +0300")

[-- Attachment #1: Type: text/plain, Size: 971 bytes --]

Hi Eli,

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Matthew Leach <matthew@mattleach.net>
>> Cc: 23137@debbugs.gnu.org
>> Date: Tue, 29 Mar 2016 22:13:14 +0100
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> >> > What is "subpixel rendering"?
>> >> 
>> >> [1] gives an overview of what it is and the 'rgba' values in [2] show
>> >> how to configure it.  I think MS use the term ClearType on their Windows
>> >> platform.
>> >
>> > Then why do you think it's an Emacs problem?
>> 
>> I think it's an Emacs problem, because it is not behaving as configured,
>> even though other GTK applications do.
>
> What configuration options were supposed to tell Emacs to use subpixel
> rendering?

There are two: ~/.Xresources (attached).  On some systems there is
/etc/fonts/conf.avail/10-sub-pixel-*.conf and you can symlink one of
those to /etc/fonts/conf.d (I have attached the one I use).  The 'rgba'
value in both configs controls subpixel rendering.

Thanks,
-- 
Matt

[-- Attachment #2: .Xresources --]
[-- Type: application/octet-stream, Size: 109 bytes --]

Xft.antialias:  1
Xft.hinting:    1
Xft.hintstyle:  hintfull
Xft.lcdfilter:  lcddefault
Xft.rgba:       rgb


[-- Attachment #3: 10-sub-pixel-rgb.conf --]
[-- Type: application/octet-stream, Size: 489 bytes --]

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--  Enable sub-pixel rendering --> 
  <match target="pattern">
    <!--
      This configuration is available on the major desktop environments.
      We shouldn't overwrite it with "assign" unconditionally.
      Most clients may picks up the first value only. so using "append"
      may simply works to avoid it.
    -->
    <edit name="rgba" mode="append"><const>rgb</const></edit>
  </match>
</fontconfig>

  reply	other threads:[~2016-03-31  7:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-28 21:16 bug#23137: 25.1.50; Subpixel rendering is broken when not running under gnome-session Matthew Leach
2016-03-29  2:32 ` Eli Zaretskii
2016-03-29  7:05   ` Matthew Leach
2016-03-29 15:28     ` Eli Zaretskii
2016-03-29 21:13       ` Matthew Leach
2016-03-30  2:46         ` Eli Zaretskii
2016-03-31  7:34           ` Matthew Leach [this message]
2016-03-31 16:10             ` Wolfgang Jenkner
2016-03-31 16:41               ` Matthew Leach
2016-03-31 16:43             ` Eli Zaretskii
2022-02-08  6:53               ` Lars Ingebrigtsen
2022-02-08  7:24             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8760w3t814.fsf@mattleach.net \
    --to=matthew@mattleach.net \
    --cc=23137@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).