Mercurial > emacs
comparison src/nsfont.m @ 96759:1e2f7aab70ba
* Makefile.in: Undef LIB_STANDARD before defining it to silence warning
in case it was defined already.
USE @GNUSTEP_MAKEFILES@ rather than envvars.
* nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
ns_default.
(applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
Lisp_Objects.
* nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
(ns_defined_color, ns_color_to_lisp): Declare.
* nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
(Fns_own_selection_internal): Make the big ugly hack more explicit, so
it's accepted even with USE_LISP_UNION_TYPE.
* nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
(update_frame_tool_bar): Remove apparently obsolete tests for
non-integerness of f->tool_bar_lines.
(windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
* nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
(nsfont_open): Don't confuse NULL for Qnil.
* nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
* menu.h (find_and_call_menu_selection):
* menu.c (find_and_call_menu_selection): Use just int for vector size.
(find_and_return_menu_selection): Always return something.
* frame.h: Include dispextern.h for Display_Info.
(display_x_get_resource): Declare.
* configure.in: Extract and substitute GNUSTEP_MAKEFILES.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 17 Jul 2008 03:33:59 +0000 |
parents | 6fad3f85eab7 |
children | eb46d3216494 |
comparison
equal
deleted
inserted
replaced
96758:4962b860277b | 96759:1e2f7aab70ba |
---|---|
232 static int nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | 232 static int nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, |
233 int with_background); | 233 int with_background); |
234 | 234 |
235 struct font_driver nsfont_driver = | 235 struct font_driver nsfont_driver = |
236 { | 236 { |
237 (Lisp_Object) NULL, /* Qns */ | 237 0, /* Qns */ |
238 1, /* case sensitive */ | 238 1, /* case sensitive */ |
239 nsfont_get_cache, | 239 nsfont_get_cache, |
240 nsfont_list, | 240 nsfont_list, |
241 nsfont_match, | 241 nsfont_match, |
242 nsfont_list_family, | 242 nsfont_list_family, |
516 font_object = font_make_object (VECSIZE (struct nsfont_info), font_entity, | 516 font_object = font_make_object (VECSIZE (struct nsfont_info), font_entity, |
517 pixel_size); | 517 pixel_size); |
518 font_info = (struct nsfont_info *) XFONT_OBJECT (font_object); | 518 font_info = (struct nsfont_info *) XFONT_OBJECT (font_object); |
519 font = (struct font *)font_info; | 519 font = (struct font *)font_info; |
520 if (!font) | 520 if (!font) |
521 return NULL; /*PENDING: this copies w32, but causes a segfault */ | 521 return Qnil; /*PENDING: this copies w32, but causes a segfault */ |
522 | 522 |
523 if (NSFONT_TRACE) | 523 if (NSFONT_TRACE) |
524 { | 524 { |
525 fprintf (stderr, "nsfont: open size %d of fontentity:\n ", pixel_size); | 525 fprintf (stderr, "nsfont: open size %d of fontentity:\n ", pixel_size); |
526 debug_print (font_entity); | 526 debug_print (font_entity); |
569 build_string ([family UTF8String]), 1); | 569 build_string ([family UTF8String]), 1); |
570 nsfont = [NSFont userFixedPitchFontOfSize: pixel_size]; | 570 nsfont = [NSFont userFixedPitchFontOfSize: pixel_size]; |
571 if (!nsfont) | 571 if (!nsfont) |
572 { | 572 { |
573 fprintf (stderr, "*** Emacs.app: unable to load backup font\n"); | 573 fprintf (stderr, "*** Emacs.app: unable to load backup font\n"); |
574 return NULL; | 574 return Qnil; |
575 } | 575 } |
576 } | 576 } |
577 | 577 |
578 #if 0 | 578 #if 0 |
579 { | 579 { |
599 font_info->glyphs = (unsigned short *) | 599 font_info->glyphs = (unsigned short *) |
600 xmalloc (0x100 * sizeof (unsigned short *)); | 600 xmalloc (0x100 * sizeof (unsigned short *)); |
601 font_info->metrics = (struct font_metrics *) | 601 font_info->metrics = (struct font_metrics *) |
602 xmalloc (0x100 * sizeof (struct font_metrics *)); | 602 xmalloc (0x100 * sizeof (struct font_metrics *)); |
603 if (!font_info->glyphs || !font_info->metrics) | 603 if (!font_info->glyphs || !font_info->metrics) |
604 return NULL; | 604 return Qnil; |
605 bzero (font_info->glyphs, 0x100 * sizeof (unsigned short *)); | 605 bzero (font_info->glyphs, 0x100 * sizeof (unsigned short *)); |
606 bzero (font_info->metrics, 0x100 * sizeof (struct font_metrics *)); | 606 bzero (font_info->metrics, 0x100 * sizeof (struct font_metrics *)); |
607 | 607 |
608 | 608 |
609 BLOCK_INPUT; | 609 BLOCK_INPUT; |