Benoit KUGLER
Benoit KUGLER
Added one test
Sure thing ! Would you like to open a PR to do so ?
Almost all the tests use a font index, which must be generated at least once. I guess some tests incorrectly assume it has been done. It should be simple enough...
The last few commits have resolved the issue. Thank you for adding this test suite !
Your snippet is almost correct, just pass `fontconfig` instead of `fs` in `HtmlToPdf` The python implementation uses C dependencies to handle fonts. This module uses a pure Go implementation which...
See the file pdf/draw_test.go and the snippet : ```go // this command has to run once fmt.Println("Scanning fonts...") _, err := fc.ScanAndCache(fontmapCache) if err != nil { log.Fatal(err) } fs,...
The error message is just a warning, it shouldn't fatal. What is the error returned by fc.ScanAndCache ?
Thank you for the full example.There is something strange though : only one fatal log should happen (since `log.Fatal` exit the program). Could you be even more specific and print...
Could you add the exact Go sample you use ? It still don't get why the program does not exit at the first log.Fatal.
The issue is here : ```go _, err := fc.ScanAndCache(fontmapCache) if err != nil { fmt.Println(err.Error()) } ``` I think you don't have the proper directories to match the font...