diff options
| author | YAMAMOTO Mitsuharu | 2006-12-15 08:05:18 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2006-12-15 08:05:18 +0000 |
| commit | c9a75a9f3adfd4488388c29161a3213876a13be7 (patch) | |
| tree | b5e472cef66e2c73b465b5637c6923f3a6794c4a /src | |
| parent | 5c144a059cb4231064dd98e20e919d60e92fd87d (diff) | |
| download | emacs-c9a75a9f3adfd4488388c29161a3213876a13be7.tar.gz emacs-c9a75a9f3adfd4488388c29161a3213876a13be7.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macfns.c | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/macfns.c b/src/macfns.c index 2df3b4e203e..521156a0de6 100644 --- a/src/macfns.c +++ b/src/macfns.c | |||
| @@ -4597,6 +4597,30 @@ This is for internal use only. Use `mac-font-panel-mode' instead. */) | |||
| 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 |
| @@ -4829,6 +4853,9 @@ Chinese, Japanese, and Korean. */); | |||
| 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 |