Skip to content

Commit

Permalink
Use hb_buffer_set_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 31, 2019
1 parent c27ad85 commit 0fcad70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ivis_opengl/textdraw.cpp
Expand Up @@ -426,6 +426,7 @@ struct TextShaper

hb_buffer_add_utf8(m_buffer, text.text.c_str(), length, 0, length);
hb_buffer_guess_segment_properties(m_buffer);
hb_buffer_set_flags(m_buffer, (hb_buffer_flags_t)(HB_BUFFER_FLAG_BOT | HB_BUFFER_FLAG_EOT));

// harfbuzz shaping
std::array<hb_feature_t, 3> features = { {HBFeature::KerningOn, HBFeature::LigatureOn, HBFeature::CligOn} };
Expand Down

0 comments on commit 0fcad70

Please sign in to comment.