The issue was caused by extra spaces added to each line by applyLineSpacing. When setLineSpacing was called in a TextView, applyLineSpacing added unnecessary extra spacing to every line. The code already calls applyFontSize(style) and applyLineHeight(style), which together set the appropriate spacing between lines of text. Therefore, applyLineSpacing is redundant.
Additionally, the custom font sample was modified to demonstrate the fix.
Closes #98
The issue was caused by extra spaces added to each line by
applyLineSpacing
. WhensetLineSpacing
was called in aTextView
,applyLineSpacing
added unnecessary extra spacing to every line. The code already callsapplyFontSize(style)
andapplyLineHeight(style)
, which together set the appropriate spacing between lines of text. Therefore,applyLineSpacing
is redundant.Additionally, the custom font sample was modified to demonstrate the fix.