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 коммит произвёл Facebook GitHub Bot
Родитель da27c78075
Коммит 2d2f9da80b
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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) {