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

unpack: Add support for extracting from TrueType Collection #208

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

michaeltaranto
Copy link
Contributor

Inspired by #156, this PR goes a little further introducing an options object and error handling (opened a separate PR due to the previous PR laying dormant).

Add support for extracting from TrueType Collection by PostScript name

Enable the extraction of font metrics for a specific font from TrueType Collection (TTC) file by providing the postscriptName option.

For example:

import { fromFile } from '@capsizecss/unpack';

const metrics = await fromFile('AvenirNext.ttc', {
  postscriptName: 'AvenirNext-Bold',
});

@michaeltaranto michaeltaranto requested a review from a team as a code owner July 24, 2024 01:54
Copy link

changeset-bot bot commented Jul 24, 2024

🦋 Changeset detected

Latest commit: db50119

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@capsizecss/unpack Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@michaeltaranto michaeltaranto changed the title Add support for extracting from TrueType Collection by PostScript name unpack: Add support for extracting from TrueType Collection Jul 24, 2024
@michaeltaranto michaeltaranto merged commit e3f73ea into master Jul 26, 2024
6 checks passed
@michaeltaranto michaeltaranto deleted the extract-postscriptname-from-collection branch July 26, 2024 03:20
@seek-oss-ci seek-oss-ci mentioned this pull request Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants