fix(ohos): set text default word break type

This commit is contained in:
etkmao
2025-12-08 20:08:45 +08:00
parent 4a41ed404e
commit ca11a67ca5
@@ -169,6 +169,8 @@ void TextMeasurer::StartMeasure(HippyValueObjectType &propMap, const std::set<st
OH_Drawing_SetTypographyTextEllipsis(typographyStyle_, ellipsis.c_str());
OH_Drawing_SetTypographyTextEllipsisModal(typographyStyle_, em);
OH_Drawing_SetTypographyTextWordBreakType(typographyStyle_, WORD_BREAK_TYPE_BREAK_ALL);
bool hasCustomFont = false;
if (fontCache) {
for (auto itName = fontFamilyNames.begin(); itName != fontFamilyNames.end(); itName++) {