Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maybe adds a parameter named postscriptName to pass in fontkit.create function when using ttc? #1710

Open
matt2023y opened this issue Dec 4, 2024 · 0 comments

Comments

@matt2023y
Copy link

matt2023y commented Dec 4, 2024

Describe your idea

add a param named postscriptName to pass to fontkit.create in CustomFontEmbedder

How could this be implemented?

const font = await fontkit.create(fontData);

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

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

No branches or pull requests

1 participant