go-weasyprint
go-weasyprint copied to clipboard
Fix font handling
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)