go-weasyprint icon indicating copy to clipboard operation
go-weasyprint copied to clipboard

Fix font handling

Open PylotLight opened this issue 7 months ago • 17 comments

I never used to have to deal with fonts in python, so not sure why I'm being forced to define all this stuff I don't want to deal with here.

fs, err := fc.LoadFontsetFile(fontmapCache) fontconfig := text.NewFontConfigurationPango(fcfonts.NewFontMap(fc.Standard.Copy(), fs))

All I want is a simple html to pdf here from string to file. err := pdf.HtmlToPdf(os.Stdout, utils.InputString(html), fs)

PylotLight avatar Jul 05 '24 04:07 PylotLight