mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS might not be defined (harfbuzz 0.9.27)
This commit is contained in:
parent
7f9d1f64d8
commit
ddfe4e65b3
@ -33,7 +33,11 @@ namespace ft {
|
||||
hb_buffer_reset(buf);
|
||||
for (auto it=begin; it!=end; ++it)
|
||||
hb_buffer_add(buf, *it, it - begin);
|
||||
|
||||
// Just in case we're compiling with an old harfbuzz version
|
||||
#ifdef HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS
|
||||
hb_buffer_set_cluster_level(buf, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
|
||||
#endif
|
||||
hb_buffer_set_content_type(buf, HB_BUFFER_CONTENT_TYPE_UNICODE);
|
||||
hb_buffer_set_direction(buf, HB_DIRECTION_LTR);
|
||||
hb_buffer_guess_segment_properties(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user