Skip to content
This repository was archived by the owner on Feb 28, 2019. It is now read-only.
This repository was archived by the owner on Feb 28, 2019. It is now read-only.

Incorrect characters pulled from custom font #44

@devops-at-alinea

Description

@devops-at-alinea

Using: https://sphilee.github.io/jsPDF-CustomFonts-support/# with this font
baloo-tamma-v3-latin.zip
Downloaded from here: https://google-webfonts-helper.herokuapp.com/fonts/baloo-tammudu?subsets=latin
With the following code:
`
doc.addFont('baloo-tamma-v3-latin-regular.ttf', 'custom', 'normal');

doc.setFont('custom');
doc.text(15, 15, 'ABCDEFabcdefgAAAAAAAAAAAAAAAAAAAB');
`

Gnerates a pdf with the following text:
!"#$%&'()*+,-!!!!!!!!!!!!!!!!!!!"

demo (2).pdf

Base64 decoding the file using https://www.base64decode.org/ generates a ttf file which looks correct so it can't be the font data.

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