diff options
| author | Chong Yidong | 2009-04-17 18:38:00 +0000 |
|---|---|---|
| committer | Chong Yidong | 2009-04-17 18:38:00 +0000 |
| commit | cf70255861179c4af4309d27600b37a3e7399c45 (patch) | |
| tree | dbb8d05b3a6bfdae021d850384fe9782164e3f9a /src | |
| parent | 88758986d503023e3304f2923a9460ed1a956d50 (diff) | |
| download | emacs-cf70255861179c4af4309d27600b37a3e7399c45.tar.gz emacs-cf70255861179c4af4309d27600b37a3e7399c45.zip | |
* font.c (Qja, Qko): Move definitions here from ftfont.c.
* font.h (Qja, Qko): Extern them.
* ftfont.c (Qja, Qko): Remove declarations.
* xfont.c (Qja, Qko): Remove declarations.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/font.c | 6 | ||||
| -rw-r--r-- | src/font.h | 3 | ||||
| -rw-r--r-- | src/ftfont.c | 5 | ||||
| -rw-r--r-- | src/xfont.c | 2 |
5 files changed, 19 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8501f230fe5..521c2dae208 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2009-04-17 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * font.c (Qja, Qko): Move definitions here from ftfont.c. | ||
| 4 | |||
| 5 | * font.h (Qja, Qko): Extern them. | ||
| 6 | |||
| 7 | * ftfont.c (Qja, Qko): Remove declarations. | ||
| 8 | |||
| 9 | * xfont.c (Qja, Qko): Remove declarations. | ||
| 10 | |||
| 1 | 2009-04-17 Kenichi Handa <handa@m17n.org> | 11 | 2009-04-17 Kenichi Handa <handa@m17n.org> |
| 2 | 12 | ||
| 3 | * editfns.c (Ftranslate_region_internal): Use Fconcat to make a | 13 | * editfns.c (Ftranslate_region_internal): Use Fconcat to make a |
diff --git a/src/font.c b/src/font.c index b5496e82300..c133a1b8da8 100644 --- a/src/font.c +++ b/src/font.c | |||
| @@ -143,6 +143,9 @@ Lisp_Object QCspacing, QCdpi, QCscalable, QCotf, QClang, QCscript, QCavgwidth; | |||
| 143 | Lisp_Object QCantialias, QCfont_entity, QCfc_unknown_spec; | 143 | Lisp_Object QCantialias, QCfont_entity, QCfc_unknown_spec; |
| 144 | /* Symbols representing values of font spacing property. */ | 144 | /* Symbols representing values of font spacing property. */ |
| 145 | Lisp_Object Qc, Qm, Qp, Qd; | 145 | Lisp_Object Qc, Qm, Qp, Qd; |
| 146 | /* Special ADSTYLE properties to avoid fonts used for Latin | ||
| 147 | characters; used in xfont.c and ftfont.c. */ | ||
| 148 | Lisp_Object Qja, Qko; | ||
| 146 | 149 | ||
| 147 | Lisp_Object Vfont_encoding_alist; | 150 | Lisp_Object Vfont_encoding_alist; |
| 148 | 151 | ||
| @@ -5135,6 +5138,9 @@ syms_of_font () | |||
| 5135 | DEFSYM (Qp, "p"); | 5138 | DEFSYM (Qp, "p"); |
| 5136 | DEFSYM (Qd, "d"); | 5139 | DEFSYM (Qd, "d"); |
| 5137 | 5140 | ||
| 5141 | DEFSYM (Qja, "ja"); | ||
| 5142 | DEFSYM (Qko, "ko"); | ||
| 5143 | |||
| 5138 | staticpro (&null_vector); | 5144 | staticpro (&null_vector); |
| 5139 | null_vector = Fmake_vector (make_number (0), Qnil); | 5145 | null_vector = Fmake_vector (make_number (0), Qnil); |
| 5140 | 5146 | ||
diff --git a/src/font.h b/src/font.h index b481c31a132..c2607774c72 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -240,6 +240,9 @@ extern Lisp_Object QCavgwidth, QCfont_entity, QCfc_unknown_spec; | |||
| 240 | extern Lisp_Object Qascii_0; | 240 | extern Lisp_Object Qascii_0; |
| 241 | extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; | 241 | extern Lisp_Object Qiso8859_1, Qiso10646_1, Qunicode_bmp, Qunicode_sip; |
| 242 | 242 | ||
| 243 | /* Special ADSTYLE properties to avoid fonts used for Latin characters. */ | ||
| 244 | extern Lisp_Object Qja, Qko; | ||
| 245 | |||
| 243 | /* Structure for a font-spec. */ | 246 | /* Structure for a font-spec. */ |
| 244 | 247 | ||
| 245 | struct font_spec | 248 | struct font_spec |
diff --git a/src/ftfont.c b/src/ftfont.c index fdc6bc03bca..7dcdee61ab4 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -43,9 +43,6 @@ Lisp_Object Qfreetype; | |||
| 43 | /* Fontconfig's generic families and their aliases. */ | 43 | /* Fontconfig's generic families and their aliases. */ |
| 44 | static Lisp_Object Qmonospace, Qsans_serif, Qserif, Qmono, Qsans, Qsans__serif; | 44 | static Lisp_Object Qmonospace, Qsans_serif, Qserif, Qmono, Qsans, Qsans__serif; |
| 45 | 45 | ||
| 46 | /* Special ADSTYLE properties to avoid fonts used for Latin characters. */ | ||
| 47 | Lisp_Object Qja, Qko; | ||
| 48 | |||
| 49 | /* Flag to tell if FcInit is already called or not. */ | 46 | /* Flag to tell if FcInit is already called or not. */ |
| 50 | static int fc_initialized; | 47 | static int fc_initialized; |
| 51 | 48 | ||
| @@ -2229,8 +2226,6 @@ syms_of_ftfont () | |||
| 2229 | DEFSYM (Qmono, "mono"); | 2226 | DEFSYM (Qmono, "mono"); |
| 2230 | DEFSYM (Qsans, "sans"); | 2227 | DEFSYM (Qsans, "sans"); |
| 2231 | DEFSYM (Qsans__serif, "sans serif"); | 2228 | DEFSYM (Qsans__serif, "sans serif"); |
| 2232 | DEFSYM (Qja, "ja"); | ||
| 2233 | DEFSYM (Qko, "ko"); | ||
| 2234 | 2229 | ||
| 2235 | staticpro (&freetype_font_cache); | 2230 | staticpro (&freetype_font_cache); |
| 2236 | freetype_font_cache = Fcons (Qt, Qnil); | 2231 | freetype_font_cache = Fcons (Qt, Qnil); |
diff --git a/src/xfont.c b/src/xfont.c index 6d0e8d91127..afafca89c24 100644 --- a/src/xfont.c +++ b/src/xfont.c | |||
| @@ -792,8 +792,6 @@ xfont_prepare_face (f, face) | |||
| 792 | return 0; | 792 | return 0; |
| 793 | } | 793 | } |
| 794 | 794 | ||
| 795 | extern Lisp_Object Qja, Qko; | ||
| 796 | |||
| 797 | static int | 795 | static int |
| 798 | xfont_has_char (font, c) | 796 | xfont_has_char (font, c) |
| 799 | Lisp_Object font; | 797 | Lisp_Object font; |