diff options
| author | Eli Zaretskii | 2019-06-01 12:53:41 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-06-01 12:53:41 +0300 |
| commit | 4363777d5c60af8bc93b30d4f6c5e12dc2761160 (patch) | |
| tree | 2ff9ea97c469140df5630f6ee5c250e745a78dcb /src/font.h | |
| parent | b7730c259bc91f030069e408aaddb43f02da3a3a (diff) | |
| download | emacs-4363777d5c60af8bc93b30d4f6c5e12dc2761160.tar.gz emacs-4363777d5c60af8bc93b30d4f6c5e12dc2761160.zip | |
Move common HarfBuzz code to a common file hbfont.c
* src/hbfont.c: New file, with code moved from w32uniscribe.c
and renamed/modified as appropriate.
* src/w32uniscribe.c: Move to hbfont.c DEF_DLL_FN and macro
definitions for HarfBuzz functions used in hbfont.c
(load_harfbuzz_funcs): Move loading of HarfBuzz functions used
by hbfont.c to hbfont.c:hbfont_init_w32_funcs, and call that
function from here.
(syms_of_w32uniscribe_for_pdumper): Fill the 'shape' and
'combining_capability' members with hbfont.c function names.
* src/w32common.h (hbfont_init_w32_funcs) [HAVE_HARFBUZZ]: Add
prototype.
* src/font.h (hbfont_shape, hbfont_combining_capability)
[HAVE_HARFBUZZ]: Add prototypes.
* src/Makefile.in (SOME_MACHINE_OBJECTS): Add hbfont.o.
* configure.ac (FONT_OBJ): Add hbfont.o if HAVE_HARFBUZZ.
Diffstat (limited to 'src/font.h')
| -rw-r--r-- | src/font.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/font.h b/src/font.h index 4d1341a0db8..99b95836d7a 100644 --- a/src/font.h +++ b/src/font.h | |||
| @@ -890,6 +890,11 @@ extern void font_fill_lglyph_metrics (Lisp_Object, Lisp_Object); | |||
| 890 | extern Lisp_Object font_put_extra (Lisp_Object font, Lisp_Object prop, | 890 | extern Lisp_Object font_put_extra (Lisp_Object font, Lisp_Object prop, |
| 891 | Lisp_Object val); | 891 | Lisp_Object val); |
| 892 | 892 | ||
| 893 | #ifdef HAVE_HARFBUZZ | ||
| 894 | extern Lisp_Object hbfont_shape (Lisp_Object, Lisp_Object); | ||
| 895 | extern Lisp_Object hbfont_combining_capability (struct font *); | ||
| 896 | #endif | ||
| 897 | |||
| 893 | #if defined (HAVE_XFT) || defined (HAVE_FREETYPE) | 898 | #if defined (HAVE_XFT) || defined (HAVE_FREETYPE) |
| 894 | extern void font_put_frame_data (struct frame *, Lisp_Object, void *); | 899 | extern void font_put_frame_data (struct frame *, Lisp_Object, void *); |
| 895 | extern void *font_get_frame_data (struct frame *f, Lisp_Object); | 900 | extern void *font_get_frame_data (struct frame *f, Lisp_Object); |