Skip to content

Add custom font (Mulish) #40

@dinhhuydh

Description

@dinhhuydh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions