Mercurial > hg > xemacs-beta
comparison lisp/x-faces.el @ 3747:c13b89ba4796
[xemacs-hg @ 2006-12-17 11:25:58 by aidan]
Don't use the server-side fallbacks for XFT.
author | aidan |
---|---|
date | Sun, 17 Dec 2006 11:26:09 +0000 |
parents | 98af8a976fc3 |
children | 049dc907c17a |
comparison
equal
deleted
inserted
replaced
3746:8052943fe6a7 | 3747:c13b89ba4796 |
---|---|
789 ; | 789 ; |
790 ;; And retain some of the fallbacks in the generated default face, | 790 ;; And retain some of the fallbacks in the generated default face, |
791 ;; since we don't want to try andale-mono's ISO-10646-1 encoding for | 791 ;; since we don't want to try andale-mono's ISO-10646-1 encoding for |
792 ;; Amharic or Thai. This is fragile; it depends on the code in | 792 ;; Amharic or Thai. This is fragile; it depends on the code in |
793 ;; faces.c. | 793 ;; faces.c. |
794 (dolist (assocked '((x encode-as-utf-8 initial) | 794 (unless (featurep 'xft-fonts) |
795 (x two-dimensional initial) | 795 (dolist (assocked '((x encode-as-utf-8 initial) |
796 (x one-dimensional final) | 796 (x two-dimensional initial) |
797 (x two-dimensional final))) | 797 (x one-dimensional final) |
798 (when (and (specifierp (face-font face)) | 798 (x two-dimensional final))) |
799 (consp (specifier-fallback (face-font face))) | 799 (when (and (specifierp (face-font face)) |
800 (setq assocked | 800 (consp (specifier-fallback (face-font face))) |
801 (assoc assocked | 801 (setq assocked |
802 (specifier-fallback | 802 (assoc assocked |
803 (face-font face))))) | 803 (specifier-fallback |
804 (set-face-font face (cdr assocked) locale | 804 (face-font face))))) |
805 (nreverse (car assocked)) append)))) | 805 (set-face-font face (cdr assocked) locale |
806 (nreverse (car assocked)) append))))) | |
806 | 807 |
807 ;; Kludge-o-rooni. Set the foreground and background resources for | 808 ;; Kludge-o-rooni. Set the foreground and background resources for |
808 ;; X devices only -- otherwise things tend to get all messed up | 809 ;; X devices only -- otherwise things tend to get all messed up |
809 ;; if you start up an X frame and then later create a TTY frame. | 810 ;; if you start up an X frame and then later create a TTY frame. |
810 (when fg | 811 (when fg |