Skip to content

Commit

Permalink
Fix incorrect hyphenation frequency in TextLayoutManagerMapBuffer
Browse files Browse the repository at this point in the history
Summary: Changelog: [Android][Fixed] Fixed text measurement issue related to hyphenation frequency

Reviewed By: makovkastar

Differential Revision: D44093758

fbshipit-source-id: 71b7b6cd862586b673a49f5e6efaf9aeeb25c6e1
  • Loading branch information
javache authored and facebook-github-bot committed Mar 15, 2023
1 parent b07cf33 commit 01e7ff5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public static long measureText(
? paragraphAttributes.getBoolean(PA_KEY_INCLUDE_FONT_PADDING)
: DEFAULT_INCLUDE_FONT_PADDING;
int hyphenationFrequency =
TextAttributeProps.getTextBreakStrategy(
TextAttributeProps.getHyphenationFrequency(
paragraphAttributes.getString(PA_KEY_HYPHENATION_FREQUENCY));

if (text == null) {
Expand Down

0 comments on commit 01e7ff5

Please sign in to comment.