aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c
diff options
context:
space:
mode:
authorAndrew Choi2002-06-16 23:08:57 +0000
committerAndrew Choi2002-06-16 23:08:57 +0000
commitf00691a3e4e5b7997ee7efe6e745d1158a439b21 (patch)
tree036f7ab41500e1da9f67cd9399a8589a78052e1d /src/macfns.c
parent5fd4d15974c8437440a1b249feab59fb1fea5866 (diff)
downloademacs-f00691a3e4e5b7997ee7efe6e745d1158a439b21.tar.gz
emacs-f00691a3e4e5b7997ee7efe6e745d1158a439b21.zip
In src/:
2002-06-16 Andrew Choi <akochoi@shaw.ca> * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of Vdefault_fontset to Monaco with mac-roman coding. * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine init_process before and after inclusion of Carbon/Carbon.h, resp. * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and cursor_gc. (add_font_name_table_entry): New function. (init_font_name_table): Use add_font_name_table_entry; add italic, bold, and bold-italic entries for truetype fonts. * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces for Mac too. (try_font_list) [MAC_OS]: If no font matches given registry, try fonts with any registry matching face_family. (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here. * s/darwin.h: If autoconf detects the Ncurses library, define LIBS_TERMCAP to -lncurses to use it. In lisp/: 2002-06-16 Andrew Choi <akochoi@shaw.ca> * term/mac-win.el (scalable-fonts-allowed): Set to t.
Diffstat (limited to 'src/macfns.c')
-rw-r--r--src/macfns.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/macfns.c b/src/macfns.c
index 9571c53a760..b51b46569f4 100644
--- a/src/macfns.c
+++ b/src/macfns.c
@@ -72,6 +72,7 @@ static unsigned char gray_bits[] = {
72 precompiled header Carbon.h. */ 72 precompiled header Carbon.h. */
73#undef max 73#undef max
74#undef min 74#undef min
75#undef init_process
75#include <Carbon/Carbon.h> 76#include <Carbon/Carbon.h>
76#undef Z 77#undef Z
77#define Z (current_buffer->text->z) 78#define Z (current_buffer->text->z)
@@ -85,7 +86,9 @@ static unsigned char gray_bits[] = {
85#define min(a, b) ((a) < (b) ? (a) : (b)) 86#define min(a, b) ((a) < (b) ? (a) : (b))
86#undef max 87#undef max
87#define max(a, b) ((a) > (b) ? (a) : (b)) 88#define max(a, b) ((a) > (b) ? (a) : (b))
88#else /* not MAC_OSX */ 89#undef
90#define init_process emacs_init_process
91#else /* not MAC_OSX */
89#include <Windows.h> 92#include <Windows.h>
90#include <Gestalt.h> 93#include <Gestalt.h>
91#include <TextUtils.h> 94#include <TextUtils.h>
@@ -4434,7 +4437,7 @@ If omitted or nil, that stands for the selected frame's display. */)
4434 } 4437 }
4435#endif /* 0 */ 4438#endif /* 0 */
4436 4439
4437 error ("Display has an unknown visual class"); 4440 return (intern ("true-color"));
4438} 4441}
4439 4442
4440DEFUN ("x-display-save-under", Fx_display_save_under, 4443DEFUN ("x-display-save-under", Fx_display_save_under,