@@ -118,14 +118,6 @@ private static void buildSpannedFromShadowNode(
118
118
new SetSpanOperation (
119
119
start , end , new BackgroundColorSpan (textShadowNode .mBackgroundColor )));
120
120
}
121
- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
122
- if (textShadowNode .mLetterSpacing != Float .NaN ) {
123
- ops .add (new SetSpanOperation (
124
- start ,
125
- end ,
126
- new CustomLetterSpacingSpan (textShadowNode .mLetterSpacing )));
127
- }
128
- }
129
121
if (textShadowNode .mFontSize != UNSET ) {
130
122
ops .add (new SetSpanOperation (start , end , new AbsoluteSizeSpan (textShadowNode .mFontSize )));
131
123
}
@@ -236,7 +228,6 @@ private static int parseNumericFontWeight(String fontWeightString) {
236
228
}
237
229
238
230
protected float mLineHeight = Float .NaN ;
239
- protected float mLetterSpacing = Float .NaN ;
240
231
protected boolean mIsColorSet = false ;
241
232
protected boolean mAllowFontScaling = true ;
242
233
protected int mColor ;
@@ -247,7 +238,6 @@ private static int parseNumericFontWeight(String fontWeightString) {
247
238
protected int mFontSize = UNSET ;
248
239
protected float mFontSizeInput = UNSET ;
249
240
protected float mLineHeightInput = UNSET ;
250
- protected float mLetterSpacingInput = Float .NaN ;
251
241
protected int mTextAlign = Gravity .NO_GRAVITY ;
252
242
protected int mTextBreakStrategy =
253
243
(Build .VERSION .SDK_INT < Build .VERSION_CODES .M ) ? 0 : Layout .BREAK_STRATEGY_HIGH_QUALITY ;
@@ -366,22 +356,12 @@ public void setLineHeight(float lineHeight) {
366
356
markUpdated ();
367
357
}
368
358
369
- @ ReactProp (name = ViewProps .LETTER_SPACING , defaultFloat = Float .NaN )
370
- public void setLetterSpacing (float letterSpacing ) {
371
- mLetterSpacingInput = letterSpacing ;
372
- mLetterSpacing = mAllowFontScaling
373
- ? PixelUtil .toPixelFromSP (mLetterSpacingInput )
374
- : PixelUtil .toPixelFromDIP (mLetterSpacingInput );
375
- markUpdated ();
376
- }
377
-
378
359
@ ReactProp (name = ViewProps .ALLOW_FONT_SCALING , defaultBoolean = true )
379
360
public void setAllowFontScaling (boolean allowFontScaling ) {
380
361
if (allowFontScaling != mAllowFontScaling ) {
381
362
mAllowFontScaling = allowFontScaling ;
382
363
setFontSize (mFontSizeInput );
383
364
setLineHeight (mLineHeightInput );
384
- setLetterSpacing (mLetterSpacingInput );
385
365
markUpdated ();
386
366
}
387
367
}
0 commit comments