aboutsummaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/font.c b/src/font.c
index 91bb84239ae..26adda26e47 100644
--- a/src/font.c
+++ b/src/font.c
@@ -46,6 +46,10 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46#include "w32term.h" 46#include "w32term.h"
47#endif /* HAVE_NTGUI */ 47#endif /* HAVE_NTGUI */
48 48
49#ifdef HAVE_NS
50#include "nsterm.h"
51#endif /* HAVE_NS */
52
49#ifdef MAC_OS 53#ifdef MAC_OS
50#include "macterm.h" 54#include "macterm.h"
51#endif /* MAC_OS */ 55#endif /* MAC_OS */
@@ -57,6 +61,12 @@ Lisp_Object Qopentype;
57/* Important character set strings. */ 61/* Important character set strings. */
58Lisp_Object Qascii_0, Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; 62Lisp_Object Qascii_0, Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip;
59 63
64#ifdef HAVE_NS
65#define DEFAULT_ENCODING Qiso10646_1
66#else
67#define DEFAULT_ENCODING Qiso8859_1
68#endif
69
60/* Special vector of zero length. This is repeatedly used by (struct 70/* Special vector of zero length. This is repeatedly used by (struct
61 font_driver *)->list when a specified font is not found. */ 71 font_driver *)->list when a specified font is not found. */
62static Lisp_Object null_vector; 72static Lisp_Object null_vector;
@@ -3096,7 +3106,7 @@ font_find_for_lface (f, attrs, spec, c)
3096 registry[0] = AREF (spec, FONT_REGISTRY_INDEX); 3106 registry[0] = AREF (spec, FONT_REGISTRY_INDEX);
3097 if (NILP (registry[0])) 3107 if (NILP (registry[0]))
3098 { 3108 {
3099 registry[0] = Qiso8859_1; 3109 registry[0] = DEFAULT_ENCODING;
3100 registry[1] = Qascii_0; 3110 registry[1] = Qascii_0;
3101 registry[2] = null_vector; 3111 registry[2] = null_vector;
3102 } 3112 }
@@ -4948,6 +4958,7 @@ extern void syms_of_ftxfont P_ (());
4948extern void syms_of_bdffont P_ (()); 4958extern void syms_of_bdffont P_ (());
4949extern void syms_of_w32font P_ (()); 4959extern void syms_of_w32font P_ (());
4950extern void syms_of_atmfont P_ (()); 4960extern void syms_of_atmfont P_ (());
4961extern void syms_of_nsfont P_ (());
4951 4962
4952void 4963void
4953syms_of_font () 4964syms_of_font ()
@@ -5117,6 +5128,9 @@ EMACS_FONT_LOG is set. Otherwise, it is set to t. */);
5117#ifdef WINDOWSNT 5128#ifdef WINDOWSNT
5118 syms_of_w32font (); 5129 syms_of_w32font ();
5119#endif /* WINDOWSNT */ 5130#endif /* WINDOWSNT */
5131#ifdef HAVE_NS
5132 syms_of_nsfont ();
5133#endif /* HAVE_NS */
5120#ifdef MAC_OS 5134#ifdef MAC_OS
5121 syms_of_atmfont (); 5135 syms_of_atmfont ();
5122#endif /* MAC_OS */ 5136#endif /* MAC_OS */