diff options
| author | Paul Eggert | 2018-12-14 16:40:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-12-14 16:41:23 -0800 |
| commit | 051d65a5a028fe31a735f2a50174d6078f830aa9 (patch) | |
| tree | dd17cec928f3b29f888657bf1ea0d3455839793f | |
| parent | ffb3bd9bb109b5dcba748ebcf61ea11766430aaa (diff) | |
| download | emacs-051d65a5a028fe31a735f2a50174d6078f830aa9.tar.gz emacs-051d65a5a028fe31a735f2a50174d6078f830aa9.zip | |
Assume hb_ft_font_create_referenced if HarfBuzz
* configure.ac (HAVE_HB_FT_FONT_CREATE_REFERENCED):
Remove test, since we now require 0.9.42 and
hb_ft_font_create_referenced has been present since 0.9.38.
* src/ftfont.c (ft_face_destroy, hb_ft_font_create_referenced):
Remove; no longer needed.
| -rw-r--r-- | configure.ac | 7 | ||||
| -rw-r--r-- | src/ftfont.c | 15 |
2 files changed, 0 insertions, 22 deletions
diff --git a/configure.ac b/configure.ac index 7a45a541f28..991ab55c685 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3317,13 +3317,6 @@ if test "${HAVE_X11}" = "yes"; then | |||
| 3317 | EMACS_CHECK_MODULES([HARFBUZZ], [harfbuzz >= 0.9.42]) | 3317 | EMACS_CHECK_MODULES([HARFBUZZ], [harfbuzz >= 0.9.42]) |
| 3318 | if test "$HAVE_HARFBUZZ" = "yes"; then | 3318 | if test "$HAVE_HARFBUZZ" = "yes"; then |
| 3319 | AC_DEFINE(HAVE_HARFBUZZ, 1, [Define to 1 if using HarfBuzz.]) | 3319 | AC_DEFINE(HAVE_HARFBUZZ, 1, [Define to 1 if using HarfBuzz.]) |
| 3320 | AC_CHECK_LIB(harfbuzz, hb_ft_font_create_referenced, | ||
| 3321 | HAVE_HB_FT_FONT_CREATE_REFERENCED=yes, | ||
| 3322 | HAVE_HB_FT_FONT_CREATE_REFERENCED=no) | ||
| 3323 | if test "${HAVE_HB_FT_FONT_CREATE_REFERENCED}" = "yes"; then | ||
| 3324 | AC_DEFINE(HAVE_HB_FT_FONT_CREATE_REFERENCED, 1, | ||
| 3325 | [Define to 1 if HarfBuzz has hb_ft_font_create_referenced.]) | ||
| 3326 | fi | ||
| 3327 | fi | 3320 | fi |
| 3328 | fi | 3321 | fi |
| 3329 | if test "${with_libotf}" != "no"; then | 3322 | if test "${with_libotf}" != "no"; then |
diff --git a/src/ftfont.c b/src/ftfont.c index 47442df0e5a..bc988963937 100644 --- a/src/ftfont.c +++ b/src/ftfont.c | |||
| @@ -478,21 +478,6 @@ ftfont_get_otf (struct ftfont_info *ftfont_info) | |||
| 478 | 478 | ||
| 479 | #ifdef HAVE_HARFBUZZ | 479 | #ifdef HAVE_HARFBUZZ |
| 480 | 480 | ||
| 481 | # ifndef HAVE_HB_FT_FONT_CREATE_REFERENCED | ||
| 482 | static void | ||
| 483 | ft_face_destroy (void *data) | ||
| 484 | { | ||
| 485 | FT_Done_Face (data); | ||
| 486 | } | ||
| 487 | |||
| 488 | static hb_font_t * | ||
| 489 | hb_ft_font_create_referenced (FT_Face face) | ||
| 490 | { | ||
| 491 | FT_Reference_Face (face); | ||
| 492 | return hb_ft_font_create (face, ft_face_destroy); | ||
| 493 | } | ||
| 494 | # endif | ||
| 495 | |||
| 496 | static hb_font_t * | 481 | static hb_font_t * |
| 497 | ftfont_get_hb_font (struct ftfont_info *ftfont_info) | 482 | ftfont_get_hb_font (struct ftfont_info *ftfont_info) |
| 498 | { | 483 | { |