aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJan Djärv2013-09-15 19:58:46 +0200
committerJan Djärv2013-09-15 19:58:46 +0200
commit3fa2054efdfa3c22456072254e6c67682a595233 (patch)
treef882ecc281d2ac5d5aefd27e2c22ece5a0bb0ca4 /etc
parentc089653d568d5c696f2d35e1bcf9bba64af85b97 (diff)
downloademacs-3fa2054efdfa3c22456072254e6c67682a595233.tar.gz
emacs-3fa2054efdfa3c22456072254e6c67682a595233.zip
Port the font backend from the Mac port.
* configure.ac: Add check for OSX 10.5, required for macfont.o. * etc/NEWS: Mention the macfont backend. * src/Makefile.in (NS_OBJ, SOME_MACHINE_OBJECTS): Add macfont.o. * src/font.c (syms_of_font): Call syms_of_macfont. * src/font.h: Declare syms_of_macfont. * src/nsfns.m: Include macfont.h. (Fx_create_frame): Register macfont driver, make a better default font. (Fns_popup_font_panel): Get font from macfont driver, if used. * src/nsfont.m (ns_tmp_flags, ns_tmp_font): Remove. (nsfont_open): Set font driver type. Set font->ascent and font->descent. Figure out font instead of ns_tmp_font, and flags instead of ns_tmp_flags. Fix indentation. Remove call to ns_draw_text_decoration, moved to nsterm. * src/nsterm.m: Include macfont.h. (ns_tmp_flags, ns_tmp_font): Remove. (ns_compute_glyph_string_overhangs): Check for driver Qns. (ns_draw_glyph_string): Use local variables instead of ns_tmp_flags, ns_tmp_font. Call ns_draw_text_decoration here instead of nsfont.m. (changeFont:): Fix code style. Check for font driver type when getiing font. * src/nsterm.h (FONT_DESCENT, FONT_ASCENT): Define to (f)->ascent and (f)->descent.
Diffstat (limited to 'etc')
-rw-r--r--etc/ChangeLog4
-rw-r--r--etc/NEWS5
2 files changed, 9 insertions, 0 deletions
diff --git a/etc/ChangeLog b/etc/ChangeLog
index bd5534d9446..5483d824da4 100644
--- a/etc/ChangeLog
+++ b/etc/ChangeLog
@@ -1,3 +1,7 @@
12013-09-15 Jan Djärv <jan.h.d@swipnet.se>
2
3 * NEWS: Mention the macfont backend.
4
12013-09-09 Glenn Morris <rgm@gnu.org> 52013-09-09 Glenn Morris <rgm@gnu.org>
2 6
3 * refcards/Makefile (PS_ENGLISH, PS_CZECH, PS_FRENCH, PS_GERMAN) 7 * refcards/Makefile (PS_ENGLISH, PS_CZECH, PS_FRENCH, PS_GERMAN)
diff --git a/etc/NEWS b/etc/NEWS
index a5da8eaa893..7558fc53052 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -54,6 +54,11 @@ and zlib-format compressed data.
54** Emacs for NS (OSX, GNUStep) can be built with ImageMagick support. 54** Emacs for NS (OSX, GNUStep) can be built with ImageMagick support.
55pkg-config is required to find ImageMagick libraries. 55pkg-config is required to find ImageMagick libraries.
56 56
57** For OSX >= 10.5, the Core text based font backend from the Mac port is used.
58For GNUStep and OSX 10.4 the old backend is used.
59To use the old backend by default, do on the command line:
60% defaults write org.gnu.Emacs FontBackend ns
61
57 62
58* Startup Changes in Emacs 24.4 63* Startup Changes in Emacs 24.4
59 64