Mike FABIAN <mfabian(a)suse.de> さんは書きました:
(x-make-font-italic-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:slant=110"
OK.
(x-make-font-bold-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:weight=200"
OK.
(x-make-font-bold-italic-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:weight=200"
Wrong, this should be "DejaVu Sans-14:weight=200:slant=110".
Attached is a patch which appears to fix the problem for me.
See also
http://bugzilla.novell.com/show_bug.cgi?id=292811
I think 'x-make-font-bold-xft' should keep the value of "slant" if
there is one in the pattern in order not to destroy the italicness.
In the same way, 'x-make-font-italic-xft' should keep the value of
"weight" in the pattern.
With my patch:
(x-make-font-italic-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:slant=110:weight=80"
(x-make-font-bold-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:slant=0:weight=200"
(x-make-font-bold-italic-xft "DejaVu Sans:size=14")
"DejaVu Sans-14:slant=110:weight=200"
(x-make-font-italic-xft "DejaVu Sans:size=14:style=Bold")
"DejaVu Sans-14:slant=110:weight=200"
(x-make-font-bold-xft "DejaVu Sans:size=14:style=Oblique")
"DejaVu Sans-14:slant=110:weight=200"
That seems to be a more reasonable behaviour.
--
Mike FABIAN <mfabian(a)suse.de>
http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。
I � Unicode
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta