After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 142640 - FcConfigSubstitute in place of _vte_fc_defaults_from_gtk to get antialias and hinting value
FcConfigSubstitute in place of _vte_fc_defaults_from_gtk to get antialias and...
Status: RESOLVED FIXED
Product: vte
Classification: Core
Component: general
0.11.x
Other Linux
: Normal normal
: ---
Assigned To: VTE Maintainers
VTE Maintainers
: 126799 490191 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-05-17 05:27 UTC by federic zhang
Modified: 2008-10-12 14:08 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
the patch to configure pattern with FcConfigSubstitute (550 bytes, patch)
2004-05-17 05:31 UTC, federic zhang
rejected Details | Review
updated patch (954 bytes, patch)
2006-12-07 21:29 UTC, Brian Cameron
rejected Details | Review

Description federic zhang 2004-05-17 05:27:37 UTC
To decide the pattern of each font, _vte_fc_defaults_from_gtk () is called to
fill those values. But sometimes those GTK default setting contradicts to those
in /etc/fonts/fonts.conf. for example, i'd like to disable hinting in for CJK
font in fonts.conf and disable antialias for those fonts at specific range of
font size because those fonts embed bitmap data and i prefer bitmap data when
available. using _vte_fc_defaults_from_gtk would make UI inconsistency across
desktop.

Can FcConfigSubstitute() be used instead?
Comment 1 federic zhang 2004-05-17 05:31:46 UTC
Created attachment 27768 [details] [review]
the patch to configure pattern with FcConfigSubstitute
Comment 2 Joe Cai 2004-08-03 07:41:38 UTC
It works fine.thx a lot.
Comment 3 Mariano Suárez-Alvarez 2004-08-03 17:05:23 UTC
Isn't this a bug in gtk, then?
Comment 4 Kjartan Maraas 2004-10-18 10:17:18 UTC
Is gtk+ setting the wrong defaults? Please respond to Mariano's question.
Comment 5 federic zhang 2004-10-18 12:51:40 UTC
Sorry. i missed Mariano's question. Not sure whether it is bug in gtk or not.It
is due to that it looks for gtkrc to get AA and hinting setting. Can we change
to get those defaults from fonts.conf instead. 
Comment 6 basic 2004-12-09 06:14:32 UTC
I maybe wrong, but as far as I can see _vte_fc_defaults_from_gtk() only gets the
global settings and not the specific settings for the particular font.
Comment 7 Kjartan Maraas 2005-08-29 10:14:02 UTC
Owen, could you comment on this?
Comment 8 Owen Taylor 2005-08-29 11:33:36 UTC
You certainly can't use it *instead* - that will lose the ability to
get the settings set from gnome-settings-daemon. I don't know why, however,
the vte code is just blindly overwriting values already in the pattern - 
compare _vte_fc_defaults_from_gtk() with the (GTK+-2.6) gtk_default_substitute().

Some looking around in VTE CVS history to find out if it was like the GTK+
version and then changed might be useful.
Comment 9 Brian Cameron 2006-12-07 21:29:29 UTC
Created attachment 77926 [details] [review]
updated patch


We are now using the attached patch instead of the one in the above comment.  Not sure if this resolves the issues raised, but at least people should review the latest patch.
Comment 10 Owen Taylor 2006-12-11 15:26:44 UTC
No, the patch is still clearly wrong.
Comment 11 Chris Wilson 2007-02-11 19:18:31 UTC
*** Bug 126799 has been marked as a duplicate of this bug. ***
Comment 12 Behdad Esfahbod 2007-06-21 22:59:58 UTC
I've now done the research and found no reason for the broken behavior of _vte_fc_defaults_from_gtk().  So, someone should patch it to not overwrite already-set items in the pattern.   Much like _vte_fc_defaults_from_rdb().  We can get rid of all the FcPatternDel() stuff then.

Any takers?  Debian and JDS guys!
Comment 13 Behdad Esfahbod 2007-10-26 00:03:22 UTC
*** Bug 490191 has been marked as a duplicate of this bug. ***
Comment 14 Behdad Esfahbod 2007-11-07 03:18:50 UTC
2007-11-06  Behdad Esfahbod  <behdad@gnome.org>

        Bug 142640 – FcConfigSubstitute in place of _vte_fc_defaults_from_gtk
        to get antialias and hinting value

        * src/vtefc.c (_vte_fc_defaults_from_gtk),
        (_vte_fc_defaults_from_rdb): Replace _vte_fc_defaults_from_gtk() with
        gtk_default_substitute() from Gtk+-2.6.  It's essentially the same
        thing, but not overriding elements of the pattern already present.
        Also remove a couple redundant calls.

Comment 15 Behdad Esfahbod 2008-04-04 19:23:10 UTC
*** Bug 480936 has been marked as a duplicate of this bug. ***
Comment 16 Ilmari Vacklin 2008-04-26 17:22:21 UTC
I still see this on Ubuntu 8.04, using libvte 0.16.13-1ubuntu1 and gnome-terminal 2.22.1-0ubuntu2. That is, for gnome-terminal, /etc/fonts/conf.d override those in gnome-appearance-properties.
Comment 17 paul c 2008-07-27 20:31:04 UTC
I am using Ubuntu 8.04 with latest patches as of July 27th and the issue still appears to exists...  turned off system anti-aliasing to get non-fuzzy fonts but gnome terminal is still fuzzy.  The KDE terminal is ok.
Comment 18 paul c 2008-07-27 20:59:12 UTC
Konsole was having same issue when I just installed it on ubuntu as a work around to having fuzzy fonts with gnome-terminal.  Then I installed kcontrol on ubuntu and turned off anti-aliasing there it fixed gnome-terminal too.  Hope this helps someone figure out where the bug is.