diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-04-20 12:43:45 +0900 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2019-04-20 12:43:45 +0900 |
commit | d1dde7d04e5244179735592adc11d2a6f0af64ac (patch) | |
tree | 474c1999fd436600d77c20b41c8edab0b8929555 /src/ftfont.h | |
parent | 69771b4e6acfe2998e4c3c30e07fb4600d42515d (diff) | |
download | emacs-d1dde7d04e5244179735592adc11d2a6f0af64ac.tar.gz |
Use bitmap strikes as fallbacks for ftcr font backend
* src/ftfont.h (struct font_info): New member bitmap_strike_index.
* src/ftfont.c (ftfont_open2): Try bitmap strikes as fallbacks.
(ftfont_open): Discard bitmap strikes.
* src/ftcrfont.c (ftcrfont_open): Recalculate metrics for bitmap strikes.
(ftcrfont_get_bitmap, ftcrfont_anchor_point, ftcrfont_shape): New functions.
(struct font_driver): Use them.
Diffstat (limited to 'src/ftfont.h')
-rw-r--r-- | src/ftfont.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ftfont.h b/src/ftfont.h index 327cd085acf..adbda49ff1c 100644 --- a/src/ftfont.h +++ b/src/ftfont.h @@ -54,6 +54,10 @@ struct font_info #endif /* HAVE_LIBOTF */ FT_Size ft_size; int index; + /* Index of the bitmap strike used as a fallback for + FT_Set_Pixel_Sizes failure. If the value is non-negative, then + ft_size is not of the requested size. Otherwise it is -1. */ + FT_Int bitmap_strike_index; FT_Matrix matrix; #ifdef USE_CAIRO |