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
2019-11-24 08:20:45 -0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a77200d79e54887a016e9f90313476853c0b321c
a77200d7
1 parent
daa3397e
Add more warnings on type1 fonts
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/font.dart
pdf/lib/src/type1_font.dart
pdf/CHANGELOG.md
View file @
a77200d
...
...
@@ -12,6 +12,7 @@
-
Add Footer Widget
-
Fix Page orientation
-
Add Ascii85 test
-
Add more warnings on type1 fonts
## 1.3.23
...
...
pdf/lib/src/font.dart
View file @
a77200d
...
...
@@ -146,6 +146,7 @@ abstract class PdfFont extends PdfObject {
Can not decode the string to Latin1.
This font does not support Unicode characters.
If you want to use strings other than Latin strings, use a TrueType (TTF) font instead.
See https://github.com/DavBfr/dart_pdf/issues/76
---------------------------------------------'''
);
rethrow
;
}
...
...
pdf/lib/src/type1_font.dart
View file @
a77200d
...
...
@@ -20,7 +20,12 @@ class PdfType1Font extends PdfFont {
/// Constructs a [PdfTtfFont]
PdfType1Font
.
_create
(
PdfDocument
pdfDocument
,
this
.
fontName
,
this
.
ascent
,
this
.
descent
,
this
.
widths
)
:
super
.
_create
(
pdfDocument
,
subtype:
'/Type1'
);
:
assert
(()
{
print
(
'
$fontName
has no Unicode support see https://github.com/DavBfr/dart_pdf/issues/76'
);
return
true
;
}()),
super
.
_create
(
pdfDocument
,
subtype:
'/Type1'
);
/// The font's real name
@override
...
...
Please
register
or
login
to post a comment