Subject: 23.2; Fontconfig issues

From: Eli Barzilay <[email-masked]>
Date: Thu, 24 Feb 2011 05:56:24 -0500

First, I've seen somewhere (on the popular emacs wiki maybe) a hint on
disabling antialiasing by using "Fontname-12:antialias=none".  After a
bunch of failures, I finally got it to work with a 0 instead:
"Fontname-12:antialias=0".  It's probably a good idea to include this
in the info file, since it's pretty hard to deal with.

But I have a real problem with the antialiasing now.  If I set the
font on startup to a non-antialiased font, it will stay this way.  For
example, if I use `set-frame-font' with "Fontname-12" after I used
the "...:antialias=none" initially, then it doesn't change the font
back to a smooth one.

And the reason I want this: I want to run with no antialiasing in a
vnc session in my office to make remote work faster, but I want to be
able to open a new frame locally on :0, *with* smoothing, when I'm in
the office.  With Emacs v23.1, I did that by using a different
xdefaults for the two displays, but since 23.2 it seems like there is
no effect in what emacs actually uses.

In GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.21.4)
 of 2010-07-08 on x86-10.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.10904000
configured using `configure  '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-optimize-sibling-calls''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: POSIX
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US
  value of $XMODIFIERS: @im=none
  locale-coding-system: iso-latin-1-unix
  default enable-multibyte-characters: t

Major mode: Emacs-Lisp

Minor modes in effect:
  whitespace-mode: t
  rcirc-track-minor-mode: t
  desktop-save-mode: t
  cua-mode: t
  display-time-mode: t
  minibuffer-electric-default-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  temp-buffer-resize-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/eli/EliEmacs/extras/git hides /usr/share/emacs/site-lisp/git/git
/home/eli/EliEmacs/extras/git-blame hides /usr/share/emacs/site-lisp/git/git-blame
/home/eli/MyEmacs/quack hides /usr/share/emacs/site-lisp/goodies/quack
/home/eli/MyEmacs/matlab hides /usr/share/emacs/site-lisp/goodies/matlab
/home/eli/EliEmacs/extras/folding hides /usr/share/emacs/site-lisp/goodies/folding
/usr/share/emacs/site-lisp/goodies/htmlize hides /usr/share/emacs/site-lisp/htmlize/htmlize
/usr/share/emacs/site-lisp/goodies/emacs-goodies-loaddefs hides /usr/share/emacs/site-lisp/site-start.d/emacs-goodies-loaddefs
/usr/share/emacs/site-lisp/camldebug hides /usr/share/emacs/site-lisp/tuareg/camldebug
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-save hides /usr/share/emacs/site-lisp/vm/vm-save
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-message-history hides /usr/share/emacs/site-lisp/vm/vm-message-history
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-reply hides /usr/share/emacs/site-lisp/vm/vm-reply
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-startup hides /usr/share/emacs/site-lisp/vm/vm-startup
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-w3 hides /usr/share/emacs/site-lisp/vm/vm-w3
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-undo hides /usr/share/emacs/site-lisp/vm/vm-undo
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-window hides /usr/share/emacs/site-lisp/vm/vm-window
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-thread hides /usr/share/emacs/site-lisp/vm/vm-thread
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-mime hides /usr/share/emacs/site-lisp/vm/vm-mime
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-biff hides /usr/share/emacs/site-lisp/vm/vm-biff
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-pine hides /usr/share/emacs/site-lisp/vm/vm-pine
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-sort hides /usr/share/emacs/site-lisp/vm/vm-sort
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-serial hides /usr/share/emacs/site-lisp/vm/vm-serial
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-page hides /usr/share/emacs/site-lisp/vm/vm-page
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-delete hides /usr/share/emacs/site-lisp/vm/vm-delete
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/tapestry hides /usr/share/emacs/site-lisp/vm/tapestry
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-avirtual hides /usr/share/emacs/site-lisp/vm/vm-avirtual
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vcard hides /usr/share/emacs/site-lisp/vm/vcard
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-user hides /usr/share/emacs/site-lisp/vm/vm-user
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-imap hides /usr/share/emacs/site-lisp/vm/vm-imap
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-message hides /usr/share/emacs/site-lisp/vm/vm-message
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-pgg hides /usr/share/emacs/site-lisp/vm/vm-pgg
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-pcrisis hides /usr/share/emacs/site-lisp/vm/vm-pcrisis
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm hides /usr/share/emacs/site-lisp/vm/vm
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-build hides /usr/share/emacs/site-lisp/vm/vm-build
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-pop hides /usr/share/emacs/site-lisp/vm/vm-pop
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-version hides /usr/share/emacs/site-lisp/vm/vm-version
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-minibuf hides /usr/share/emacs/site-lisp/vm/vm-minibuf
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-digest hides /usr/share/emacs/site-lisp/vm/vm-digest
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-mark hides /usr/share/emacs/site-lisp/vm/vm-mark
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-macro hides /usr/share/emacs/site-lisp/vm/vm-macro
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-license hides /usr/share/emacs/site-lisp/vm/vm-license
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-w3m hides /usr/share/emacs/site-lisp/vm/vm-w3m
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-motion hides /usr/share/emacs/site-lisp/vm/vm-motion
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-vcard hides /usr/share/emacs/site-lisp/vm/vm-vcard
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-toolbar hides /usr/share/emacs/site-lisp/vm/vm-toolbar
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-crypto hides /usr/share/emacs/site-lisp/vm/vm-crypto
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/u-vm-color hides /usr/share/emacs/site-lisp/vm/u-vm-color
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-autoloads hides /usr/share/emacs/site-lisp/vm/vm-autoloads
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-rfaddons hides /usr/share/emacs/site-lisp/vm/vm-rfaddons
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-grepmail hides /usr/share/emacs/site-lisp/vm/vm-grepmail
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-autoload hides /usr/share/emacs/site-lisp/vm/vm-autoload
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-summary-faces hides /usr/share/emacs/site-lisp/vm/vm-summary-faces
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-search hides /usr/share/emacs/site-lisp/vm/vm-search
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-mouse hides /usr/share/emacs/site-lisp/vm/vm-mouse
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-summary hides /usr/share/emacs/site-lisp/vm/vm-summary
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-ps-print hides /usr/share/emacs/site-lisp/vm/vm-ps-print
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-cus-load hides /usr/share/emacs/site-lisp/vm/vm-cus-load
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-edit hides /usr/share/emacs/site-lisp/vm/vm-edit
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-folder hides /usr/share/emacs/site-lisp/vm/vm-folder
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-virtual hides /usr/share/emacs/site-lisp/vm/vm-virtual
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-vars hides /usr/share/emacs/site-lisp/vm/vm-vars
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-misc hides /usr/share/emacs/site-lisp/vm/vm-misc
/home/eli/EliEmacs/extras/vm/vm-8.1.93a/lisp/vm-menu hides /usr/share/emacs/site-lisp/vm/vm-menu
/usr/share/emacs/site-lisp/site-start.d/maxima-modes hides /usr/share/emacs/site-lisp/maxima/site_start.d/maxima-modes
/usr/share/emacs/site-lisp/flim/sha1 hides /usr/share/emacs/23.2/lisp/sha1
/home/eli/EliEmacs/extras/calculator hides /usr/share/emacs/23.2/lisp/calculator
/usr/share/emacs/site-lisp/flim/hex-util hides /usr/share/emacs/23.2/lisp/hex-util
/usr/share/emacs/site-lisp/flim/md4 hides /usr/share/emacs/23.2/lisp/md4
/home/eli/EliEmacs/extras/scheme hides /usr/share/emacs/23.2/lisp/progmodes/scheme
/usr/share/emacs/site-lisp/flim/ntlm hides /usr/share/emacs/23.2/lisp/net/ntlm
/usr/share/emacs/site-lisp/flim/sasl-digest hides /usr/share/emacs/23.2/lisp/net/sasl-digest
/usr/share/emacs/site-lisp/flim/sasl hides /usr/share/emacs/23.2/lisp/net/sasl
/usr/share/emacs/site-lisp/flim/hmac-def hides /usr/share/emacs/23.2/lisp/net/hmac-def
/usr/share/emacs/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/23.2/lisp/net/sasl-ntlm
/usr/share/emacs/site-lisp/flim/sasl-cram hides /usr/share/emacs/23.2/lisp/net/sasl-cram
/usr/share/emacs/site-lisp/flim/hmac-md5 hides /usr/share/emacs/23.2/lisp/net/hmac-md5
/usr/share/emacs/site-lisp/gnus-bonus/nnnil hides /usr/share/emacs/23.2/lisp/gnus/nnnil
/usr/share/emacs/site-lisp/gnus-bonus/nnir hides /usr/share/emacs/23.2/lisp/gnus/nnir
/usr/share/emacs/site-lisp/gnus-bonus/spam-stat hides /usr/share/emacs/23.2/lisp/gnus/spam-stat

Features:
(mail-utils flyspell ispell newcomment shadow mailabbrev mailalias
vm-reply emacsbug debug vm-delete vm-save tapestry sendmail
vm-rfaddons vm-menu vm-window vm-toolbar vm-folder vm-mime vm-undo
vm-virtual vm-summary-faces vm-summary vm-mouse vm-page vm-motion
vm-minibuf vm-message vm-misc vm-macro vm-autoloads vm-version vm-vars
vm mule-util ebuff-menu electric multi-isearch whitespace dired
help-mode easymenu view regexp-opt rcirc time-date ring desktop
filladapt cua-base time minibuf-eldef paren mic-paren uniquify advice
help-fns advice-preload disp-table tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset
image fringe lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces
cus-face files text-properties overlay md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote
make-network-process dbusbind system-font-setting font-render-setting
gtk x-toolkit x multi-tty emacs)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!