Skip to content

Commit

Permalink
update PR based on facebook#35949
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Feb 9, 2023
1 parent c4d82d3 commit eb0b424
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
@Nullsafe(Nullsafe.Mode.LOCAL)
public class CustomStyleSpan extends MetricAffectingSpan implements ReactSpan {

private static final String TAG = "CustomStyleSpan";
/**
* A {@link MetricAffectingSpan} that allows to change the style of the displayed font.
* CustomStyleSpan will try to load the fontFamily with the right style and weight from the
Expand Down Expand Up @@ -58,9 +57,9 @@ public CustomStyleSpan(
int fontWeight,
@Nullable String fontFeatureSettings,
@Nullable String fontFamily,
AssetManager assetManager,
TextAlignVertical textAlignVertical,
int textSize,
AssetManager assetManager) {
int textSize) {
this(fontStyle, fontWeight, fontFeatureSettings, fontFamily, assetManager);
mTextAlignVertical = textAlignVertical;
mSize = textSize;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,9 @@ private static void buildSpannableFromFragment(
textAttributes.mFontWeight,
textAttributes.mFontFeatureSettings,
textAttributes.mFontFamily,
context.getAssets(),
textAlignVertical,
textAttributes.mFontSize,
context.getAssets())));
textAttributes.mFontSize)));
}
if (textAttributes.mIsUnderlineTextDecorationSet) {
ops.add(new SetSpanOperation(start, end, new ReactUnderlineSpan()));
Expand Down

0 comments on commit eb0b424

Please sign in to comment.