David PHAM-VAN

Add more warnings on type1 fonts

... ... @@ -12,6 +12,7 @@
- Add Footer Widget
- Fix Page orientation
- Add Ascii85 test
- Add more warnings on type1 fonts
## 1.3.23
... ...
... ... @@ -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;
}
... ...
... ... @@ -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
... ...