emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

another font-selection inconsistency


From: Miles Bader
Subject: another font-selection inconsistency
Date: Tue, 10 Jun 2008 20:24:28 +0900

(1) If I start a new emacs, and evaluate the following in *scratch*:

       (set-face-attribute 'default nil :family "Dejavu Sans Mono" :height 100)

    Then the resulting font _is_ dejavu sans mono, but is not
    anti-aliased.  C-u C-x = says:

       -dejavu-dejavu sans mono-medium-r-normal--13-94-100-100-m-80-iso8859-1

(2) If I then, in the same emacs, do:

       (set-frame-font  "Dejavu Sans Mono-10")

    Then the resulting font is _still_ dejavu sans mono, but _is_
    anti-aliased (it's fairly clear it's the same font, just with
    anti-aliasing turned on).  C-u C-x = says:

       -unknown-DejaVu Sans Mono-normal-normal-normal-*-13-*-*-*-m-0-iso8859-1

(3) If I then turn around, and do step (1) again, the font "stays"
    anti-aliased, so clearly some state that set-frame-font changes, but
    set-face-attribute:family:size does not, made a difference...]

This is particular annoying because `set-frame-font' only works with the
default face... for other faces, one must use set-face-attribute.

-Miles

-- 
Mayonnaise, n. One of the sauces that serve the French in place of a state
religion.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]