hi there,

Right now, I am pretty happy with the state of the
x/image/font{,/sfnt,/opentype}} packages. I can load TTF/OTF files, draw
some glyphs in a way that (almost) resembles LaTeX[1].

Great. (and many thanks, by the way.)

We migrated gonum/plot[2] from freetype to x/image/font recently and all
our use cases worked well (as far as I know.)

Well, all, save for one: being able to embed fonts into PDFs.

To some extent, embedding fonts into PDF files needs to re-serialize
sfnt.Font back into a []byte following the OTF format.

Unless I am mistaken, x/image/font doesn't seem to provide the reverse
function of sfnt.Parse.
(This is a bit annoying because one needs to provide a way to associate
a given font.Face or sfnt.Font with its original []byte raw data.)

Is it something that x/image/font should or would provide?

[1]: https://github.com/go-latex/latex/tree/main/cmd/mtex-render
[2]: https://gonum.org/v1/plot

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/mDlexRfwWwESA2w9pIRqq4SD72RMobdQ109RV5g0uQ%40cp3-web-020.plabs.ch.

Reply via email to