On Thu Sep 2, 2021 at 22:21 CET, Andy Balholm wrote:
> You don't need a full PostScript interpreter to use a Type 1 font. They
> use a very limited subset of PS.
I surmised as much reading through:
- https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf
(which is my next target as
You don't need a full PostScript interpreter to use a Type 1 font. They
use a very limited subset of PS.
To embed one in a PDF, I don't think you need to parse it at all, if you
know the metrics and the encoding already. You can just embed it as a
binary blob, if I'm not mistaken.
Andy
On 9
Cool.
As to the Postscript interpreter, look at
https://github.com/llgcode/ps
Also, font specific
https://github.com/golang/image/blob/master/font/sfnt/postscript.go
Not sure how much either helps towards Type 1 support. Even Adobe is end
of lifing Type 1 support, though, so it might be wort
Howard,
On Wed Sep 1, 2021 at 18:11 CET, Howard C. Shaw III wrote:
> You would implement the Face interface to have your fonts available to
> Go's
> text drawing routines. You can try using basicfont directly, however it
> is
> fixedwidth only. But just implementing the interface does not seem tha