comparison src/macfns.c @ 74627:20a6a4a69f48

(mac_atsu_font_face_attributes) [USE_ATSUI]: Add extern. (Fmac_atsu_font_face_attributes) [USE_ATSUI]: New function. (syms_of_macfns) [USE_ATSUI]: Defsubr it.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Fri, 15 Dec 2006 08:05:18 +0000
parents 6b0e5b6fca4f
children 8486ab1d2401 6588c6259dfb
comparison
equal deleted inserted replaced
74626:04ef1ad19c59 74627:20a6a4a69f48
4595 if (err != noErr) 4595 if (err != noErr)
4596 error ("Cannot change visibility of the font panel"); 4596 error ("Cannot change visibility of the font panel");
4597 return Qnil; 4597 return Qnil;
4598 } 4598 }
4599 #endif 4599 #endif
4600
4601 #if USE_ATSUI
4602 extern Lisp_Object mac_atsu_font_face_attributes P_ ((ATSUFontID));
4603
4604 DEFUN ("mac-atsu-font-face-attributes", Fmac_atsu_font_face_attributes,
4605 Smac_atsu_font_face_attributes, 1, 1, 0,
4606 doc: /* Return plist of face attributes and values for ATSU font ID.
4607 ID is specified by either an integer or a float. */)
4608 (id)
4609 Lisp_Object id;
4610 {
4611 ATSUFontID font_id;
4612 Lisp_Object result;
4613
4614 check_mac ();
4615 CHECK_NUMBER_OR_FLOAT(id);
4616 font_id = NUMBERP (id) ? XINT (id) : (ATSUFontID) XFLOAT (id);
4617 BLOCK_INPUT;
4618 result = mac_atsu_font_face_attributes (font_id);
4619 UNBLOCK_INPUT;
4620 return result;
4621 }
4622 #endif
4623
4600 4624
4601 /*********************************************************************** 4625 /***********************************************************************
4602 Initialization 4626 Initialization
4603 ***********************************************************************/ 4627 ***********************************************************************/
4604 4628
4827 #endif 4851 #endif
4828 defsubr (&Smac_clear_font_name_table); 4852 defsubr (&Smac_clear_font_name_table);
4829 #if USE_MAC_FONT_PANEL 4853 #if USE_MAC_FONT_PANEL
4830 defsubr (&Smac_set_font_panel_visibility); 4854 defsubr (&Smac_set_font_panel_visibility);
4831 #endif 4855 #endif
4856 #if USE_ATSUI
4857 defsubr (&Smac_atsu_font_face_attributes);
4858 #endif
4832 } 4859 }
4833 4860
4834 /* arch-tag: d7591289-f374-4377-b245-12f5dbbb8edc 4861 /* arch-tag: d7591289-f374-4377-b245-12f5dbbb8edc
4835 (do not change this comment) */ 4862 (do not change this comment) */