Skip to content

Commit

Permalink
Disable char wrap hyphens for pango>=1.44
Browse files Browse the repository at this point in the history
  • Loading branch information
scotty007 committed Sep 3, 2020
1 parent 35c06a4 commit d1bc9ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/player/WordsNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ void WordsNode::updateLayout()
#endif
pango_layout_set_text(m_pLayout, m_sText.c_str(), -1);
}
#if PANGO_VERSION >= PANGO_VERSION_ENCODE(1,44,0)
pango_attr_list_insert(pAttrList, pango_attr_insert_hyphens_new(FALSE));
#endif
pango_layout_set_attributes(m_pLayout, pAttrList);
pango_attr_list_unref(pAttrList);

Expand Down

0 comments on commit d1bc9ae

Please sign in to comment.