Fischx / wmii

Automatically exported from code.google.com/p/wmii
MIT License
0 stars 0 forks source link

xft font messes up font colors #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Switching between
wmiir xwrite /ctl 'font xft:Fixed'
wmiir xwrite /ctl 'font -*-fixed-*-*-*-*-10-*-*-*-*-*-iso10646-*'
changes font colors (background and border seem to be unaffected).

The #RRGGBB color notation works fine with X11 fonts, but I couldn't predict 
how it will look with XFT fonts.

Versions: wmii-hg2582, libixp-hg116, Arch Linux x86_64, Linux 2.6.30.9

Original issue reported on code.google.com by rogu...@gmail.com on 7 Nov 2009 at 3:37

GoogleCodeExporter commented 9 years ago
It works fine for me, but I would have to guess that you have AA turned on, and
hinting either turned off, or turned down, so your text color is blending with 
your
bg color at the edge and causing problems. Most distros (especially Arch) setup 
Xft
badly. Can you send me a screenshot of an affected titlebar (and only the 
affected
titlebar, please)?

Original comment by maglion...@gmail.com on 7 Nov 2009 at 6:48

GoogleCodeExporter commented 9 years ago
Actually, I don't know whether AA is turned on (the fonts look like it is). 
'autohint' is on.
So how do I setup my Xft (fontconfig?) correctly?

Attached (background was #ffffff).

The upper titlebar should be #ff0000 (red), with xft it becomes #00fb00.
The lower one should be #00ff00 (green), is #0004e6.

Original comment by rogu...@gmail.com on 7 Nov 2009 at 9:00

Attachments:

GoogleCodeExporter commented 9 years ago
Ok, that is strange. Can you post the output of xdpyinfo?

Thanks.

Original comment by maglion...@gmail.com on 7 Nov 2009 at 9:05

GoogleCodeExporter commented 9 years ago
Oh, sorry, but I keep forgetting that I'm running X with DefaultDepth 16 
(anyway, I didn't have any problems with this except for 
the lack of colors - couldn't say the same about Pixmap 24 instead of 32).

Attached.

Original comment by rogu...@gmail.com on 7 Nov 2009 at 9:17

Attachments:

GoogleCodeExporter commented 9 years ago
Ironically, colors with xft look ok at 24bpp (can't do 32 - not enough VRAM).

Original comment by rogu...@gmail.com on 7 Nov 2009 at 9:21

GoogleCodeExporter commented 9 years ago
Ok, well, that's the problem. wmii assumes that color codes will be 32 bit ARGB 
ints.
I'll play around with it on a 16 bit display and see where it's going wrong.
Ironically, I'd have expected, if anything, Xft to display the colors properly, 
and
for them to be incorrect elsewhere.

Original comment by maglion...@gmail.com on 7 Nov 2009 at 9:24

GoogleCodeExporter commented 9 years ago
Closed by revision 7b4154e0c31b.

Original comment by maglion...@gmail.com on 8 Nov 2009 at 12:00