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-06-18 07:53:38 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aee549d59a818015404bfb08d25f4703cac8d790
aee549d5
1 parent
d4bff213
Fix Nunito font parsing
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/font_metrics.dart
pdf/lib/src/pdf/ttf_parser.dart
pdf/pubspec.yaml
pdf/CHANGELOG.md
View file @
aee549d
# Changelog
## 3.4.1
-
Fix Nunito font parsing
## 3.4.0
-
Fix Text.softWrap behavior
...
...
pdf/lib/src/pdf/font_metrics.dart
View file @
aee549d
...
...
@@ -36,10 +36,7 @@ class PdfFontMetrics {
})
:
ascent
=
ascent
??
bottom
,
descent
=
descent
??
top
,
advanceWidth
=
advanceWidth
??
right
-
left
,
leftBearing
=
leftBearing
??
left
,
assert
(
left
<=
right
),
assert
(
top
<=
bottom
),
assert
((
descent
??
top
)
<=
(
ascent
??
bottom
));
leftBearing
=
leftBearing
??
left
;
/// Add another metric
factory
PdfFontMetrics
.
append
(
...
...
pdf/lib/src/pdf/ttf_parser.dart
View file @
aee549d
...
...
@@ -358,7 +358,6 @@ class TtfParser {
if
(
flag
&
REPEAT
!=
0
)
{
var
repeatCount
=
bytes
.
getUint8
(
offset
++);
assert
(
repeatCount
>
0
);
i
+=
repeatCount
;
while
(
repeatCount
--
>
0
)
{
flags
.
add
(
flag
);
...
...
pdf/pubspec.yaml
View file @
aee549d
...
...
@@ -4,7 +4,7 @@ description: A pdf producer for Dart. It can create pdf files for both web or fl
homepage
:
https://github.com/DavBfr/dart_pdf/tree/master/pdf
repository
:
https://github.com/DavBfr/dart_pdf
issue_tracker
:
https://github.com/DavBfr/dart_pdf/issues
version
:
3.4.
0
version
:
3.4.
1
environment
:
sdk
:
"
>=2.12.0
<3.0.0"
...
...
Please
register
or
login
to post a comment