Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2024-02-21 07:29:43 -0400
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6691b09a566420532f1dbe095c804e1f7eccfe54
6691b09a
2 parents
19d9f4bf
bee56366
Merge branch 'janiselfert-master'
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
2 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/obj/font.dart
pdf/lib/src/widgets/text.dart
test/golden/widgets-table.pdf
pdf/CHANGELOG.md
View file @
6691b09
...
...
@@ -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
...
...
pdf/lib/src/pdf/obj/font.dart
View file @
6691b09
...
...
@@ -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
;
...
...
pdf/lib/src/widgets/text.dart
View file @
6691b09
...
...
@@ -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
;
...
...
test/golden/widgets-table.pdf
View file @
6691b09
No preview for this file type
Please
register
or
login
to post a comment