* Subpixel averaging
@ 2008-03-28 20:21 Chong Yidong
2008-03-28 20:43 ` Tom Rauchenwald
0 siblings, 1 reply; 8+ messages in thread
From: Chong Yidong @ 2008-03-28 20:21 UTC (permalink / raw)
To: emacs-devel
[-- Attachment #1: Type: text/plain, Size: 367 bytes --]
Although Emacs now performs anti-aliasing, it doesn't seem to perform
subpixel averaging. I, for one, find the anti-aliased text in Emacs
blurry and very uncomfortable to read, especially when using
bright-on-dark color schemes. As a result, I'm forced to use the old
fonts.
The attached screenshot shows the difference between gedit (top) and
Emacs 23 (bottom).
[-- Attachment #2: emacs-aa.png --]
[-- Type: image/png, Size: 28728 bytes --]
[-- Attachment #3: Type: text/plain, Size: 276 bytes --]
I don't know how easy it is to add subpixel averaging. Could someone
who has been working on this part of the code enlighten me? Even if you
are too busy to work on this yourself, I'd appreciate it if you could
point me to the right starting place for adding this feature.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-28 20:21 Subpixel averaging Chong Yidong
@ 2008-03-28 20:43 ` Tom Rauchenwald
2008-03-28 21:50 ` Chong Yidong
0 siblings, 1 reply; 8+ messages in thread
From: Tom Rauchenwald @ 2008-03-28 20:43 UTC (permalink / raw)
To: Chong Yidong; +Cc: emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> Although Emacs now performs anti-aliasing, it doesn't seem to perform
> subpixel averaging. I, for one, find the anti-aliased text in Emacs
> blurry and very uncomfortable to read, especially when using
> bright-on-dark color schemes. As a result, I'm forced to use the old
> fonts.
>
> The attached screenshot shows the difference between gedit (top) and
> Emacs 23 (bottom).
>
> I don't know how easy it is to add subpixel averaging. Could someone
> who has been working on this part of the code enlighten me? Even if you
> are too busy to work on this yourself, I'd appreciate it if you could
> point me to the right starting place for adding this feature.
I don't know it that is the issue, but I have the following in my
.Xresources for that:
Xft.dpi: 96
Xft.hinting: true
Xft.hintstyle: hintfull
Xft.antialias: rgba
Xft.rgba: rgb
Tom
--
Then I drew in a breath, and my renewed will with it, lifted the rod
in my right hand, murmured a phrase in a language I didn't know, and
blew the tires off his fucking truck.
-- Harry Dresden
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-28 20:43 ` Tom Rauchenwald
@ 2008-03-28 21:50 ` Chong Yidong
2008-03-28 23:18 ` Andreas Schwab
2008-03-28 23:27 ` James Cloos
0 siblings, 2 replies; 8+ messages in thread
From: Chong Yidong @ 2008-03-28 21:50 UTC (permalink / raw)
To: Tom Rauchenwald; +Cc: emacs-devel
Tom Rauchenwald <sehnsucht.nach.unendlichkeit@quantentunnel.de> writes:
>> Although Emacs now performs anti-aliasing, it doesn't seem to perform
>> subpixel averaging. I, for one, find the anti-aliased text in Emacs
>> blurry and very uncomfortable to read, especially when using
>> bright-on-dark color schemes. As a result, I'm forced to use the old
>> fonts.
>
> I don't know it that is the issue, but I have the following in my
> .Xresources for that:
>
> Xft.dpi: 96
> Xft.hinting: true
> Xft.hintstyle: hintfull
> Xft.antialias: rgba
> Xft.rgba: rgb
That does indeed work. Many thanks.
But none of the other applications on the Gnome desktop seem to need
these tweaking. Why is Emacs the only one?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-28 21:50 ` Chong Yidong
@ 2008-03-28 23:18 ` Andreas Schwab
2008-03-29 14:12 ` Chong Yidong
2008-03-28 23:27 ` James Cloos
1 sibling, 1 reply; 8+ messages in thread
From: Andreas Schwab @ 2008-03-28 23:18 UTC (permalink / raw)
To: Chong Yidong; +Cc: Tom Rauchenwald, emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> But none of the other applications on the Gnome desktop seem to need
> these tweaking. Why is Emacs the only one?
Works for me without the tweaking.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-28 23:18 ` Andreas Schwab
@ 2008-03-29 14:12 ` Chong Yidong
2008-03-29 18:22 ` Stephen J. Turnbull
2008-03-29 18:35 ` Andreas Schwab
0 siblings, 2 replies; 8+ messages in thread
From: Chong Yidong @ 2008-03-29 14:12 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Tom Rauchenwald, emacs-devel
Andreas Schwab <schwab@suse.de> writes:
> Chong Yidong <cyd@stupidchicken.com> writes:
>
>> But none of the other applications on the Gnome desktop seem to need
>> these tweaking. Why is Emacs the only one?
>
> Works for me without the tweaking.
Well, it's strange. I just tried it on my laptop, and the fonts look OK
there. To be precise, Xft.hinting defaults to true (though
Xft.hintstyle is not hintfull). On my desktop, Xft.hinting defaults to
false.
The funny thing is that both are running Ubuntu gutsy, though the laptop
is a fresh install whereas the desktop was upgraded from Ubuntu feisty.
I suppose it's simply a matter of the OS neglecting to set the
appropriate default Xresources. And, and James Cloos pointed out, the
Gnome applications are not affected because they don't use xrm.
Maybe we should provide Lisp variables to allow setting the hintstyle
from within Emacs.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-29 14:12 ` Chong Yidong
@ 2008-03-29 18:22 ` Stephen J. Turnbull
2008-03-29 18:35 ` Andreas Schwab
1 sibling, 0 replies; 8+ messages in thread
From: Stephen J. Turnbull @ 2008-03-29 18:22 UTC (permalink / raw)
To: Chong Yidong; +Cc: Andreas Schwab, Tom Rauchenwald, emacs-devel
Chong Yidong writes:
> Maybe we should provide Lisp variables to allow setting the hintstyle
> from within Emacs.
FWIW, in XEmacs we simply exposed the whole fontconfig API to Lisp,
except for stuff like memory management which are done by Lisp
automatically. I haven't heard of this particular problem, but if we
see it and fontconfig APIs are insufficient (which IMO would be
considered a bug in fontconfig or Xft), I think we would probably do
the same thing for Xft APIs we need.
I would think that hintstyle is probably accessible via fontconfig.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-29 14:12 ` Chong Yidong
2008-03-29 18:22 ` Stephen J. Turnbull
@ 2008-03-29 18:35 ` Andreas Schwab
1 sibling, 0 replies; 8+ messages in thread
From: Andreas Schwab @ 2008-03-29 18:35 UTC (permalink / raw)
To: Chong Yidong; +Cc: Tom Rauchenwald, emacs-devel
Chong Yidong <cyd@stupidchicken.com> writes:
> Andreas Schwab <schwab@suse.de> writes:
>
>> Chong Yidong <cyd@stupidchicken.com> writes:
>>
>>> But none of the other applications on the Gnome desktop seem to need
>>> these tweaking. Why is Emacs the only one?
>>
>> Works for me without the tweaking.
>
> Well, it's strange. I just tried it on my laptop, and the fonts look OK
> there. To be precise, Xft.hinting defaults to true (though
> Xft.hintstyle is not hintfull). On my desktop, Xft.hinting defaults to
> false.
On my system, KDE creates a suitable fonts.conf.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Subpixel averaging
2008-03-28 21:50 ` Chong Yidong
2008-03-28 23:18 ` Andreas Schwab
@ 2008-03-28 23:27 ` James Cloos
1 sibling, 0 replies; 8+ messages in thread
From: James Cloos @ 2008-03-28 23:27 UTC (permalink / raw)
To: emacs-devel; +Cc: Chong Yidong, Tom Rauchenwald
>>>>> "Chong" == Chong Yidong <cyd@stupidchicken.com> writes:
Chong> But none of the other applications on the Gnome desktop seem to
Chong> need these tweaking. Why is Emacs the only one?
Gnome uses gconf for configuration rather than xrm resources.
The following is all I have in xrm related to Emacs, and -- when
combined with my fonts.conf config -- does generate subpixel fonts:
,----[ .Xdefaults excerpt ]
| Xft.rgba: rgb
|
| Emacs.toolBar: off
| Emacs.menuBar: off
| *FontBackend: xft
| emacs.font: DejaVu Sans Mono:pixelsize=14
`----
,----[ .fonts.conf excerpt ]
| <?xml version="1.0"?>
| <fontconfig>
|
| <match target="font" >
| <edit mode="assign" name="hinting" >
| <bool>true</bool>
| </edit>
| </match>
|
| <match target="font" >
| <edit mode="assign" name="hintstyle" >
| <const>hintfull</const>
| </edit>
| </match>
|
| <match target="font" >
| <edit mode="assign" name="rgba" >
| <const>rgb</const>
| </edit>
| </match>
|
| </fontconfig>
`----
-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-03-29 18:35 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 20:21 Subpixel averaging Chong Yidong
2008-03-28 20:43 ` Tom Rauchenwald
2008-03-28 21:50 ` Chong Yidong
2008-03-28 23:18 ` Andreas Schwab
2008-03-29 14:12 ` Chong Yidong
2008-03-29 18:22 ` Stephen J. Turnbull
2008-03-29 18:35 ` Andreas Schwab
2008-03-28 23:27 ` James Cloos
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.