unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* another font-selection inconsistency
@ 2008-06-10 11:24 Miles Bader
  2008-06-10 11:40 ` Jason Rumney
  2008-06-10 11:48 ` Miles Bader
  0 siblings, 2 replies; 6+ messages in thread
From: Miles Bader @ 2008-06-10 11:24 UTC (permalink / raw)
  To: emacs-devel

(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.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-06-18 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 11:24 another font-selection inconsistency Miles Bader
2008-06-10 11:40 ` Jason Rumney
2008-06-11 12:46   ` Kenichi Handa
2008-06-13  4:23     ` Kenichi Handa
2008-06-18 21:40       ` Stefan Monnier
2008-06-10 11:48 ` Miles Bader

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).