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
2021-04-16 07:42:58 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
42af351b6697379f4f1343e203596ec4e735ba35
42af351b
1 parent
0a503bfe
Fix textScalingFactor with lineSpacing
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
pdf/CHANGELOG.md
pdf/lib/src/widgets/text.dart
pdf/CHANGELOG.md
View file @
42af351
...
...
@@ -8,6 +8,7 @@
-
Improve Bullet Widget
-
Use covariant on SpanningWidget
-
ImageProvider.resolve returns non-null object
-
Fix textScalingFactor with lineSpacing
## 3.2.0
...
...
pdf/lib/src/widgets/text.dart
View file @
42af351
...
...
@@ -669,7 +669,7 @@ class RichText extends Widget {
}
offsetX
=
0.0
;
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!;
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!
*
textScaleFactor
;
top
=
0
;
bottom
=
0
;
...
...
@@ -740,9 +740,11 @@ class RichText extends Widget {
offsetX
=
0.0
;
if
(
spanCount
>
0
)
{
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!;
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!
*
textScaleFactor
;
}
else
{
offsetY
+=
space
.
ascent
+
space
.
descent
+
style
.
lineSpacing
!;
offsetY
+=
space
.
ascent
+
space
.
descent
+
style
.
lineSpacing
!
*
textScaleFactor
;
}
top
=
0
;
bottom
=
0
;
...
...
@@ -787,7 +789,7 @@ class RichText extends Widget {
}
offsetX
=
0.0
;
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!;
offsetY
+=
bottom
-
top
+
style
.
lineSpacing
!
*
textScaleFactor
;
top
=
0
;
bottom
=
0
;
...
...
Please
register
or
login
to post a comment