Skip to content

how can i use ttc font #1208

@qlynick

Description

@qlynick

What are you working on?

when i load ttc font.
can not use it.

`
var font_url = '/examples/pdf/font/AppleSDGothicNeo.ttc'
const fontBytes = await fetch(font_url).then(res => res.arrayBuffer())

const pdfDoc = await PDFDocument.create();
pdfDoc.registerFontkit(fontkit)
const customFont = await pdfDoc.embedFont(fontBytes, { subset: true })
`

can anybody help me?

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions