I am using pdf package to generate a pdf file.
I want my custom font for the pdf file.
But I don't know how to add a font in the pubspec.yaml
for the Dart project. This pubspec.yaml
of the dart project doesn't have flutter:
.
How to add font to the pubspec.yml for the dart server
24 views Asked by Sittiphan Sittisak At
1
From the comment by Randal Schwartz:
It looks like PdfTtfFont can construct a font from a byte data. Just gotta get that into your code.
The solution is