gofpdf
gofpdf copied to clipboard
Possible to embed font-awesome ? tried makefont utility
Hi,
Tried to run this ../makefont/makefont --embed --enc=fa1.map fontawesome-webfont-fa1.ttf
Where fa1.mp was found here: https://www.deweyartdesign.com/wiki/code/fpdf
However it list all characters as missing. Is there a way to embed it somehow ?
Thanks!
I am not sure why this doesn't work. The font appears to be well-formed and all of the character indices are below 256. When I get a moment, I'll dig into this. If you have time, pay attention to what happens here and here.
Hi Kurt, In any event, it actually work even though the parse complain. If i just embed it. Will not close this yet until i have had a deeper look into your code (hinted above).
But i would like to say thanks for your wonderful work with this library! It is great!
pdf.AddFont("fontawesome-webfont", "", "fontawesome-webfont.json")
fontSize := 16.0
pdf.SetFont("fontawesome-webfont", "", fontSize)
str :=(string(32))
Interesting -- thanks for the update.