elixir-pdf
elixir-pdf copied to clipboard
Add custom font (Mulish)
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?