elixir-pdf icon indicating copy to clipboard operation
elixir-pdf copied to clipboard

Add custom font (Mulish)

Open dinhhuydh opened this issue 7 months ago • 0 comments

I'd like to add custom font (Mulish) to the pdf. I followed step in document (https://hexdocs.pm/pdf/Pdf.html#add_font/2) but it can't get the font render correctly. I download Mulish font from Google then used converter online tool or Fontforge to convert it into afm and pfb but the files are not correct. As i inspect, the sample fonts in library are StartFontMetrics 4.1 but the converted files are StartFontMetrics 2.0.

I'm wondering that what tool you use to convert a ttf to afm and pfb?

dinhhuydh avatar Dec 28 '23 04:12 dinhhuydh