Skip to content

Conversation

@blikblum
Copy link
Member

Fixes #199

Uses stream from CFF table instead of font one which does not match in woff fonts

test/glyphs.js Outdated
return assert.equal(glyph.name, 'T');
});
describe('WOFF otf glyphs', function() {
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.otf.woff');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there's a prettifier running for the source at the moment, but it looks like this got indented twice.

test/glyphs.js Outdated
describe('WOFF2 glyph', function() {
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.woff2');
describe('WOFF2 ttf glyph', function() {
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.ttf.woff2');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like there's double indentation here, too.

test/glyphs.js Outdated
});

describe('WOFF2 otf glyph', function() {
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.otf.woff2');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like there's double indentation here, too

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.

CFF glyph parsing doesn’t work with WOFF

3 participants