Skip to content

Empty _table object #333

Open
Open
@EhsanParsania

Description

@EhsanParsania

When I try to read the _table object that includes the fontFamily and fontSubfamily and some other information, the _table object is empty until I write this line const obtain_tableObject = font.familyName , it triggers like a function and then I can see the _table object is full with data

 const fontBuffer = await Parse.Cloud.httpRequest({ url: fontUrl, followRedirects: true })
      .then(response => response.buffer);


    const font = fontkit.create(fontBuffer);

    const obtain_tableObject = font.familyName;  // WARNING: This line is necessary to be, otherwise "_table" will be empty

    let fontFamily = font._tables.name.records.fontFamily.en
    let fontSubfamily = font._tables.name.records.fontSubfamily.en

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions