mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-06-17 19:08:21 +02:00
[autofit] Request at least HarfBuzz 7.2.0 for diacritic support. (3/3)
This version (from April 2023) added 'SingleSubst' support to `hb_ot_layout_lookup_get_glyph_alternates`.
This commit is contained in:
parent
de98b1bab5
commit
a64b49ccfc
2 changed files with 7 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ CHANGES BETWEEN 2.13.3 and 2.13.4 (2025-Mmm-DD)
|
|||
construct a proper Unicode character map from a given font to make
|
||||
this work.
|
||||
|
||||
You need HarfBuzz 7.2.0 or newer for the new diacritic support.
|
||||
|
||||
This was Craig White's GSoC 2023 project.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -333,7 +333,8 @@
|
|||
}
|
||||
|
||||
|
||||
#ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
|
||||
#if defined( FT_CONFIG_OPTION_USE_HARFBUZZ ) && \
|
||||
HB_VERSION_ATLEAST( 7, 2, 0 )
|
||||
|
||||
/*
|
||||
Find all glyphs that a code point could turn into from the OpenType
|
||||
|
|
@ -464,7 +465,7 @@
|
|||
hb_set_destroy( helper_result );
|
||||
}
|
||||
|
||||
#endif /*FT_CONFIG_OPTION_USE_HARFBUZZ*/
|
||||
#endif /* FT_CONFIG_OPTION_USE_HARFBUZZ */
|
||||
|
||||
|
||||
FT_LOCAL_DEF( FT_Error )
|
||||
|
|
@ -504,7 +505,8 @@
|
|||
if ( FT_NEW_ARRAY( ( *map )->entries, capacity ) )
|
||||
goto Exit;
|
||||
|
||||
#ifdef FT_CONFIG_OPTION_USE_HARFBUZZ
|
||||
#if defined( FT_CONFIG_OPTION_USE_HARFBUZZ ) && \
|
||||
HB_VERSION_ATLEAST( 7, 2, 0 )
|
||||
|
||||
{
|
||||
/* No need to check whether HarfBuzz has allocation issues; */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue