diff options
| author | Dmitry Gutov | 2022-08-15 02:22:59 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2022-08-15 02:22:59 +0300 |
| commit | ee3a674c7c9e39fe7ff296ce1f9830fc45520de8 (patch) | |
| tree | e8ba1e7be54314f208454e80e3d31044c913f3eb /src/ftcrfont.c | |
| parent | fe0e53d963899a16e0dd1bbc1ba10a6b59f7989e (diff) | |
| parent | 0a8e88fd83db5398d36064a7f87cff5b57da7284 (diff) | |
| download | emacs-scratch/font_lock_large_files.tar.gz emacs-scratch/font_lock_large_files.zip | |
Merge branch 'master' into scratch/font_lock_large_filesscratch/font_lock_large_files
Diffstat (limited to 'src/ftcrfont.c')
| -rw-r--r-- | src/ftcrfont.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ftcrfont.c b/src/ftcrfont.c index 119ec284094..e089f9dea85 100644 --- a/src/ftcrfont.c +++ b/src/ftcrfont.c | |||
| @@ -677,7 +677,11 @@ ftcrhbfont_begin_hb_font (struct font *font, double *position_unit) | |||
| 677 | 677 | ||
| 678 | ftcrfont_info->ft_size = ft_face->size; | 678 | ftcrfont_info->ft_size = ft_face->size; |
| 679 | hb_font_t *hb_font = fthbfont_begin_hb_font (font, position_unit); | 679 | hb_font_t *hb_font = fthbfont_begin_hb_font (font, position_unit); |
| 680 | if (ftcrfont_info->bitmap_position_unit) | 680 | /* HarfBuzz 5 correctly scales bitmap-only fonts without position |
| 681 | unit adjustment. | ||
| 682 | (https://github.com/harfbuzz/harfbuzz/issues/489) */ | ||
| 683 | if (!hb_version_atleast (5, 0, 0) | ||
| 684 | && ftcrfont_info->bitmap_position_unit) | ||
| 681 | *position_unit = ftcrfont_info->bitmap_position_unit; | 685 | *position_unit = ftcrfont_info->bitmap_position_unit; |
| 682 | 686 | ||
| 683 | return hb_font; | 687 | return hb_font; |