Skip to content

Commit

Permalink
Scale text line height according to system font size
Browse files Browse the repository at this point in the history
Summary:
## Changelog:
[Android] [Added] - Added getter for line height in CustomLineHeightSpan

Reviewed By: javache

Differential Revision: D41324647

fbshipit-source-id: 4c2b18fb6566f5f9f25e26acb2f7f157f4ab75f8
  • Loading branch information
el1t authored and facebook-github-bot committed Nov 16, 2022
1 parent da27c78 commit 2d2f9da
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public CustomLineHeightSpan(float height) {
this.mHeight = (int) Math.ceil(height);
}

public int getLineHeight() {
return mHeight;
}

@Override
public void chooseHeight(
CharSequence text, int start, int end, int spanstartv, int v, Paint.FontMetricsInt fm) {
Expand Down

0 comments on commit 2d2f9da

Please sign in to comment.