foliojs/fontkit

Fontkit and Typescript

Closed this issue · 1 comments

Hi, I have a couple of issues with fontkit in typescript.

I have installed

npm i fontkit @types/fontkit

I impoted fontkit to typescript:

import * as fontkit from 'fontkit';

Issues like this:

image

Because of the missing typings I cannot access for example tables in the font despite it is loaded correctly in browser:

image

Any tips on that?

Figured it out - It was a pebkac.