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-03-21 18:10:19 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2b61aebd9ef9d8365c919bde37769792c0ac0e9f
2b61aebd
1 parent
1b098ee2
Fix letterSpacing issue
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
pdf/CHANGELOG.md
pdf/lib/src/pdf/graphics.dart
pdf/CHANGELOG.md
View file @
2b61aeb
...
...
@@ -7,6 +7,7 @@
-
Add RadialGrid for charts with polar coordinates
-
Add PieChart
-
Fix Text layout with softwrap
-
Fix letterSpacing issue
## 3.0.1
...
...
pdf/lib/src/pdf/graphics.dart
View file @
2b61aeb
...
...
@@ -262,28 +262,28 @@ class PdfGraphics {
void
setFont
(
PdfFont
font
,
double
size
,
{
double
?
charSpace
=
0
,
double
wordSpace
=
0
,
double
scale
=
1
,
double
?
charSpace
,
double
?
wordSpace
,
double
?
scale
,
PdfTextRenderingMode
?
mode
=
PdfTextRenderingMode
.
fill
,
double
rise
=
0
,
double
?
rise
,
})
{
buf
.
putString
(
'
${font.name}
'
);
PdfNum
(
size
).
output
(
buf
);
buf
.
putString
(
' Tf
\n
'
);
if
(
charSpace
!=
0
)
{
PdfNum
(
charSpace
!).
output
(
buf
);
if
(
charSpace
!=
null
)
{
PdfNum
(
charSpace
).
output
(
buf
);
buf
.
putString
(
' Tc
\n
'
);
}
if
(
wordSpace
!=
0
)
{
if
(
wordSpace
!=
null
)
{
PdfNum
(
wordSpace
).
output
(
buf
);
buf
.
putString
(
' Tw
\n
'
);
}
if
(
scale
!=
1
)
{
if
(
scale
!=
null
)
{
PdfNum
(
scale
*
100
).
output
(
buf
);
buf
.
putString
(
' Tz
\n
'
);
}
if
(
rise
!=
0
)
{
if
(
rise
!=
null
)
{
PdfNum
(
rise
).
output
(
buf
);
buf
.
putString
(
' Ts
\n
'
);
}
...
...
Please
register
or
login
to post a comment