Maybe adds a parameter named postscriptName to pass in fontkit.create function when using ttc?
Opened this issue · 0 comments
matt2023y commented
Describe your idea
add a param named postscriptName to pass to fontkit.create in CustomFontEmbedder
How could this be implemented?
class CustomFontEmbedder {
static async for(
fontkit: Fontkit,
fontData: Uint8Array,
customName?: string,
fontFeatures?: TypeFeatures,
postscriptName?: string,
) {
const font = await fontkit.create(fontData, postscriptName);
return new CustomFontEmbedder(font, fontData, customName, fontFeatures);
}
add a param: postscriptName
What problem are you trying to solve?
When working with TTC fonts, I was unable to use their PostScript names.
Why does this matter to you?
When working with TTC fonts, I was unable to use their PostScript names.
Would others find this helpful?
I dont know.
Are you interested in implementing your proposal?
Yes
Why are you submitting a proposal?
When working with TTC fonts, I want to use their PostScript names.
Additional Notes
No response