After I upgraded to xorg-7.0, gnome-terminal does not respond to my customized fonts.conf. To improve visibility, I turn off antialiasing at several Korean fonts. However, gnome-terminal always sticks to global configuration. Interestingly, when I set to monochrome on font-properties of control-center, g-t shows non-antialiased fonts, but it hurts visibility for looking at non-Korean charactors. Actually, I have searched for the solution here and ther on the web, but someone says that the problem is due to vte, but at this time, i'm not sure.
I don't think vte can override fontconfig preferences just like that, should look at what happens in the source i guess.
could you provide the terminal output of 'VTE_DEBUG_FLAGS=misc vte' ?
here is the output from `VTE_DEBUG_FLAGS=misc vte` -------- btlee@southstar ~ $ VTE_DEBUG_FLAGS=misc vte Setting emulation to `xterm'...Loading termcap `/usr/share/vte/termcap/xterm'... Setting PTY size to 80x24. Sizing scrollback buffer to 0 lines. Sizing scrollback buffer to 0 lines. Sizing scrollback buffer to 100 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Using default pango font. VteXft font metrics = 7x13 (11). Don't change style if we aren't realized. Sizing scrollback buffer to 100 lines. Sizing scrollback buffer to 24 lines. Setting background tint to 255,255,255. Calculated bold (0, 0, 0) = (-52428.000000,-52428.000000,-52428.000000)= (0000,0 000,0000). Calculated bold (0, 0, 0) = (32767.500000,32767.500000,32767.500000)= (7fff,7fff ,7fff). Using pango font "Monospace 12". VteXft font metrics = 7x15 (12). Using user's shell (/bin/bash). Setting PTY size to 80x24. Size request is 562x362. Sizing window to 562x362 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 100 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Using pango font "Monospace 12". VteXft font metrics = 7x15 (12). Using user's shell (/bin/bash). Setting PTY size to 80x24. Size request is 562x362. Sizing window to 562x362 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 100 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Using pango font "Monospace 12". VteXft font metrics = 7x15 (12). New background image 1280x800 Updating background image. -------------- I also performed with gnome-terminal. -------------- btlee@southstar ~ $ VTE_DEBUG_FLAGS=misc gnome-terminal Setting emulation to `xterm'...Loading termcap `/usr/share/vte/termcap/xterm'.. Setting PTY size to 80x24. Sizing scrollback buffer to 0 lines. Sizing scrollback buffer to 0 lines. Sizing scrollback buffer to 100 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Using default pango font. VteXft font metrics = 7x13 (11). Word charset includes hyphen. Word charset includes range from `A' to `Z'. Word charset includes range from `a' to `z'. Word charset includes range from `0' to `9'. Word charset includes `,'. Word charset includes `.'. Word charset includes `/'. Word charset includes `?'. Word charset includes `%'. Word charset includes `&'. Word charset includes `#'. Word charset includes `:'. Word charset includes `_'. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Clearing background image. Setting background saturation to 10000/10000. Turning background transparency off. Don't change style if we aren't realized. Size request is 562x314. Sizing window to 562x314 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Calculated bold (49152, 49152, 49152) = (88473.600000,88473.600000,88473.600000 = (ffff,ffff,ffff). Using default pango font. VteXft font metrics = 7x13 (11). Word charset includes hyphen. Word charset includes range from `A' to `Z'. Word charset includes range from `a' to `z'. Word charset includes range from `0' to `9'. Word charset includes `,'. Word charset includes `.'. Word charset includes `/'. Word charset includes `?'. Word charset includes `%'. Word charset includes `&'. Word charset includes `#'. Word charset includes `:'. Word charset includes `_'. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Clearing background image. Setting background saturation to 10000/10000. Turning background transparency off. Don't change style if we aren't realized. Size request is 562x314. Sizing window to 562x314 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Using VteXft. Calculated bold (49152, 49152, 49152) = (88473.600000,88473.600000,88473.600000 = (ffff,ffff,ffff). Calculated bold (49152, 49152, 49152) = (24576.000000,24576.000000,24576.000000 = (6000,6000,6000). Using pango font "Hangang 12". VteXft font metrics = 7x13 (11). New background image 1280x800 Updating background image. Calculated bold (53199, 51400, 51400) = (87945.400000,85019.586208,85346.278230 = (ffff,ffff,ffff). Calculated bold (53199, 51400, 51400) = (31482.500000,30048.277553,30208.420701 = (7afa,7560,7600). Setting background tint to 38,35,35. Using pango font "GulimChe 12". VteXft font metrics = 6x13 (11). Size request is 482x314. Setting PTY size to 80x24. Sizing window to 482x314 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Setting PTY size to 80x24. Size request is 482x314. Sizing window to 482x314 (80x24). Setting PTY size to 80x24. Sizing scrollback buffer to 999 lines. Sizing scrollback buffer to 24 lines. Updating background image.
you use the Xft backend (which is correct), according to upstream there should be no difference in rendering then between versions. What xorg, libXft & fontconfig do you use ?
as aforementioned, I'm using xorg7.0-r1, which is equipped with libXft 2.1.8.2. To make use of embolden, I installed freetype 2.1.10 and fontconfig 2.3.2. Every package is in portage. Actually, I had rebuilt vte with freetype. At that case, gnome-terminal rendered font for my intent, but it was very slow when I launch a new window or open a new tab. Also, I encountered memory leak, so I gave it up, and rebuilt with xft support.
I replicated this problem on ppc. So this problem is not specific to x86.
that might point to a bug in pango xft backend then.
can you post exact information on how to reproduce this problem ? configs, used fonts, settings, emerge --info, etc. Also provide screenshots of the difference between the way it looks and how it used to look.
Created attachment 83785 [details] screenshot showing weird font problem. my .fonts.conf is here. <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/fonts.conf file to configure system font access --> <fontconfig> <!-- /etc/fonts/conf.d/enable-fixed.conf --> <selectfont> <acceptfont> <pattern> <patelt name="family"><string>Fixed</string></patelt> <patelt name="family"><string>GulimChe</string></patelt> </pattern> </acceptfont> </selectfont> <match target="font" > <test compare="eq" name="family" qual="any" > <string>Batang</string> <string>Dotum</string> <string>Gulim</string> <string>BatangChe</string> <string>DotumChe</string> <string>New Gulim</string> <string>Hangang</string> </test> <test compare="more_eq" name="pixelsize" > <int>15</int> </test> <edit mode="assign" name="embeddedbitmap" > <bool>false</bool> </edit> <edit mode="assign" name="antialias" > <bool>true</bool> </edit> <edit mode="assign" name="hinting" > <bool>true</bool> </edit> </match> <match target="font" > <test compare="eq" name="family" qual="any" > <string>Seoul</string> </test> <edit mode="assign" name="antialiasing"> <bool>false</bool> </edit> <edit mode="assign" name="hinting"> <bool>false</bool> </edit> <edit mode="assign" name="smoothing"> <const>none</const> </edit> <edit name="rgba" mode="assign"> <const>none</const> </edit> </match> <dir>~/.fonts</dir> </fontconfig> And here is emerge --info. Portage 2.1_pre7-r3 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.5-r3, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.80GHz Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium-m -mtune=pentium-m -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium-m -mtune=pentium-m -O2 -pipe -mmmx -msse -msse2 -mfpmath=sse" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups dri eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib isdnlog jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses ogg oggvorbis opengl oss pam pdflib perl png pppd python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib elibc_glibc input_devices_mouse input_devices_keyboard input_devices_evdev input_devices_synaptics kernel_linux userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS The version of fontconfig is 2.3.2, and freetype is 2.1.10. Pango: 1.12.0 and libXft is 2.1.8.2. And Finally, I attached the screenshot of before and after. In the screenshot, I used a 12 point of GulimChe, which is a monospace Korean font of truetype with an embedded bitmap font.
oops, there is a little confusion in the above thread. above ~/.fonts.conf was for fontconfig-2.3.94, which was from fedora core 5. Actually, I tried to upgrade fontconfig from 2.3.2 to 2.3.94, but it didn't make any change. When I used fontconfig 2.3.2, ~/.fonts.conf includes following: <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <!-- /etc/fonts/fonts.conf file to configure system font access --> <fontconfig> <match target="font" > <test compare="eq" name="family" qual="any" > <string>Batang</string> <string>Dotum</string> <string>Gulim</string> <string>BatangChe</string> <string>DotumChe</string> <string>GulimChe</string> <string>New Gulim</string> <string>Hangang</string> <string>Seoul</string> </test> <test compare="more_eq" name="pixelsize" > <int>9</int> </test> <test compare="less" name="pixelsize" > <int>14</int> </test> <edit mode="assign" name="antialias" > <bool>false</bool> </edit> <edit mode="assign" name="hinting" > <bool>false</bool> </edit> <match target="font"> <!-- check to see if the font is just regular --> <test name="weight" compare="less_eq"> <int>100</int> </test> <!-- check to see if the pattern requests bold --> <test target="pattern" name="weight" compare="more_eq"> <int>150</int> </test> <!-- set the embolden flag --> <edit name="embolden" mode="assign"> <bool>true</bool> </edit> </match> </match> <match target="font"> <test name="family"> <string>GulimChe</string> <string>DotumChe</string> <string>BatangChe</string> </test> <edit name="globaladvance"> <bool>false</bool> </edit> <edit name="spacing"> <int>0</int> </edit> </match> <dir>~/.fonts</dir>
For the rawhide config to work there are patches needed to at least cairo, also it contains properties that do not exist. As for your config, is the <match target="font" > inside <match target="font" > valid and functional ? Also it misses </fontconfig> , but I assume that's just a c&p mistake. What is the actual fontsize set for the terminal ? A last thing to look at is inclusion order in the syswide fonts.conf , is there anything after the local conf that could be overriding your personal preferences ?
(In reply to comment #11) > For the rawhide config to work there are patches needed to at least cairo, also > it contains properties that do not exist. > > As for your config, is the <match target="font" > inside <match target="font" > > valid and functional ? Also it misses </fontconfig> , but I assume that's just > a c&p mistake. What is the actual fontsize set for the terminal ? > > A last thing to look at is inclusion order in the syswide fonts.conf , is there > anything after the local conf that could be overriding your personal > preferences ? > Actually, I am running three computers, which makes me confused a little bit. With one laptop, I installed fontconfig 2.3.94 and cairo 1.0.2 with an fedora patch set. After emerging the programs, I have rebuilt pango, too. There was no change between before and after recompiling pango, As for missing </fontconfig>, you are right, I made an C&P mistake. The terminal font size is 12 point at 72dpi. Finally, I have not modified any files in /etc/fontfs/. I change only ~/.fonts.conf to tweak fonts.
Recently, I upgraded pango, vte and gnome-terminal, so the version is 1.12.2. 0.12.1, and 2.14.1, respectively. But still no change.
To all people here, Any updates? Is the bug still present in stable and soon to be stable gnome-terminal? Thanks
No response from reporters, marking as NEEDINFO.
Created attachment 134331 [details] fonts.conf This fonts.conf file excludes fonts from 7px to 12px from being antialiased.
VTE allows the user to choose between different backends. Problem is there's no documentation about available backends and the default backend ignores local (~/.fonts.conf) and global (/etc/fonts/fonts.conf and /etc/fonts/local.conf) settings. I found a working backend, though: Pango. Put export VTE_BACKEND=pango somewhere, for instance ~/.bash_profile, and you're all set.
Problem with pango is that gnome-terminal requires more cpu time :(
Created attachment 134332 [details] default.png gnome-terminal running top with default backend.
Created attachment 134334 [details] pango.png gnome-terminal running top with pango backend.