-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Woff support #7449
base: dev-2.0
Are you sure you want to change the base?
Woff support #7449
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the test for this still exists, were these meant to be deleted? If not, we can restore by running this then committing the results:
git checkout dev-2.0 -- "test/unit/visual/screenshots/Typography/textWeight/can control variable fonts from files"
@@ -17,7 +17,8 @@ | |||
"gifenc": "^1.0.3", | |||
"libtess": "^1.2.2", | |||
"omggif": "^1.0.10", | |||
"opentype.js": "^1.3.1" | |||
"opentype.js": "^1.3.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh this reminds me, we can probably npm uninstall opentype.js
too if we no longer use it
|
||
if (typeof family !== 'string') { | ||
throw Error('null font passed to textFont', font); | ||
else if (typeof font === 'string') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch for this one! Do we have a test yet anywhere that checks for a raw canvas string that includes the font size? If not, it could be a good thing to add to make sure we don't accidentally break it going forward
Note: 'can control variable fonts from files' visual test is now failing - any idea @davepagurek ?