Scale text line height according to system font size

Summary:
## Changelog:
[Android] [Added] - Added getter for line height in CustomLineHeightSpan

Reviewed By: javache

Differential Revision: D41324647

fbshipit-source-id: 4c2b18fb6566f5f9f25e26acb2f7f157f4ab75f8
This commit is contained in:
Ellis Tsung
2022-11-16 11:24:56 -08:00
committed by Facebook GitHub Bot
parent da27c78075
commit 2d2f9da80b
@@ -21,6 +21,10 @@ public class CustomLineHeightSpan implements LineHeightSpan, ReactSpan {
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) {