David PHAM-VAN

Fix TTF font name lookup

  1 +# 1.0.6
  2 +* Fix TTF font name lookup
  3 +
1 # 1.0.5 4 # 1.0.5
2 * Remove dependency to dart:io 5 * Remove dependency to dart:io
3 * Add Contributing 6 * Add Contributing
@@ -88,8 +88,10 @@ class TTFParser { @@ -88,8 +88,10 @@ class TTFParser {
88 if (platformID == 1 && nameID == 6) { 88 if (platformID == 1 && nameID == 6) {
89 _fontName = utf8.decode(bytes.buffer 89 _fontName = utf8.decode(bytes.buffer
90 .asUint8List(basePosition + stringOffset + offset, length)); 90 .asUint8List(basePosition + stringOffset + offset, length));
  91 + return;
91 } 92 }
92 } 93 }
  94 + _fontName = hashCode.toString();
93 } 95 }
94 96
95 void _parseHmtx() { 97 void _parseHmtx() {
@@ -2,7 +2,7 @@ name: pdf @@ -2,7 +2,7 @@ name: pdf
2 author: David PHAM-VAN <dev.nfet.net@gmail.com> 2 author: David PHAM-VAN <dev.nfet.net@gmail.com>
3 description: A pdf producer for Dart. It can create pdf files for both web or flutter. 3 description: A pdf producer for Dart. It can create pdf files for both web or flutter.
4 homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf 4 homepage: https://github.com/DavBfr/dart_pdf/tree/master/pdf
5 -version: 1.0.5 5 +version: 1.0.6
6 6
7 environment: 7 environment:
8 sdk: ">=1.8.0 <3.0.0" 8 sdk: ">=1.8.0 <3.0.0"