David PHAM-VAN

Merge branch 'janiselfert-master'

... ... @@ -8,6 +8,7 @@
- Add support for hyphenation [ilja]
- Add an option to disable bidirectional support [Olzhas-Suleimen]
- Fix operator== type in TextDecoration class
- Fixed wrong empty line height [janiselfert]
## 3.10.7
... ...
... ... @@ -283,7 +283,7 @@ See https://github.com/DavBfr/dart_pdf/wiki/Fonts-Management
double get descent;
/// Height of an empty line
double get lineGap => ascent + descent;
double get emptyLineHeight => ascent + (-descent);
/// Internal units per
int get unitsPerEm;
... ...
... ... @@ -1073,7 +1073,8 @@ class RichText extends Widget with SpanningWidget {
if (spanCount > 0) {
offsetY += bottom - top;
} else {
offsetY += font.lineGap * style.fontSize! * textScaleFactor;
offsetY +=
font.emptyLineHeight * style.fontSize! * textScaleFactor;
}
top = 0;
bottom = 0;
... ...