mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 23:28:07 +02:00
[cairo-ft] Use FcFreeTypeCharIndex instead of FT_Get_Char_Index
This commit is contained in:
parent
bc42989501
commit
ba95b9dee8
1 changed files with 5 additions and 1 deletions
|
|
@ -2140,7 +2140,11 @@ _cairo_ft_ucs4_to_index (void *abstract_font,
|
|||
face = _cairo_ft_unscaled_font_lock_face (unscaled);
|
||||
if (!face)
|
||||
return 0;
|
||||
index = FT_Get_Char_Index (face, ucs4);
|
||||
|
||||
/* If making this compile without fontconfig, use:
|
||||
* index = FT_Get_Char_Index (face, ucs4); */
|
||||
index = FcFreeTypeCharIndex (face, ucs4);
|
||||
|
||||
_cairo_ft_unscaled_font_unlock_face (unscaled);
|
||||
return index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue