Skip to content

Commit 03a31d5

Browse files
committed
fix indentation
1 parent c73cf16 commit 03a31d5

File tree

1 file changed

+56
-56
lines changed

1 file changed

+56
-56
lines changed

test/glyphs.js

Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -216,83 +216,83 @@ describe('glyphs', function() {
216216
});
217217

218218
describe('WOFF otf glyphs', function() {
219-
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.otf.woff');
220-
let glyph = font.glyphsForString('D')[0];
219+
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.otf.woff');
220+
let glyph = font.glyphsForString('D')[0];
221221

222-
it('should get the glyph name', function() {
223-
return assert.equal(glyph.name, 'D');
224-
});
222+
it('should get the glyph name', function() {
223+
return assert.equal(glyph.name, 'D');
224+
});
225225

226-
it('should get a CFFGlyph', function() {
227-
return assert.equal(glyph.constructor.name, 'CFFGlyph');
228-
});
226+
it('should get a CFFGlyph', function() {
227+
return assert.equal(glyph.constructor.name, 'CFFGlyph');
228+
});
229229

230-
it('should get a cubic path for the glyph', function() {
231-
return assert.equal(glyph.path.toSVG(), 'M90 0L258 0C456 0 564 122 564 331C564 539 456 656 254 656L90 656ZM173 68L173 588L248 588C401 588 478 496 478 331C478 165 401 68 248 68Z');
232-
});
230+
it('should get a cubic path for the glyph', function() {
231+
return assert.equal(glyph.path.toSVG(), 'M90 0L258 0C456 0 564 122 564 331C564 539 456 656 254 656L90 656ZM173 68L173 588L248 588C401 588 478 496 478 331C478 165 401 68 248 68Z');
232+
});
233233
});
234234

235235
describe('WOFF2 ttf glyph', function() {
236-
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.ttf.woff2');
236+
let font = fontkit.openSync(__dirname + '/data/SourceSansPro/SourceSansPro-Regular.ttf.woff2');
237237

238-
let glyph = font.glyphsForString('D')[0];
239-
let expectedBox = new BBox(90, 0, 564, 656);
238+
let glyph = font.glyphsForString('D')[0];
239+
let expectedBox = new BBox(90, 0, 564, 656);
240240

241-
it('should get the glyph name', function() {
242-
return assert.equal(glyph.name, 'D');
243-
});
241+
it('should get the glyph name', function() {
242+
return assert.equal(glyph.name, 'D');
243+
});
244244

245-
it('should get a WOFF2Glyph', function() {
246-
return assert.equal(glyph.constructor.name, 'WOFF2Glyph');
247-
});
245+
it('should get a WOFF2Glyph', function() {
246+
return assert.equal(glyph.constructor.name, 'WOFF2Glyph');
247+
});
248248

249-
it('should get a path for the glyph', function() {
250-
let tglyph = font.glyphsForString('T')[0];
251-
return assert.equal(tglyph.path.toSVG(), 'M226 0L226 586L28 586L28 656L508 656L508 586L310 586L310 0Z');
252-
});
249+
it('should get a path for the glyph', function() {
250+
let tglyph = font.glyphsForString('T')[0];
251+
return assert.equal(tglyph.path.toSVG(), 'M226 0L226 586L28 586L28 656L508 656L508 586L310 586L310 0Z');
252+
});
253253

254-
it('should get a correct quadratic path for all contours', function() {
255-
return assert.equal(glyph.path.toSVG(), 'M90 0L90 656L254 656Q406 656 485 571.5Q564 487 564 331Q564 174 485.5 87Q407 0 258 0ZM173 68L248 68Q363 68 420.5 137.5Q478 207 478 331Q478 455 420.5 521.5Q363 588 248 588L173 588Z');
256-
});
254+
it('should get a correct quadratic path for all contours', function() {
255+
return assert.equal(glyph.path.toSVG(), 'M90 0L90 656L254 656Q406 656 485 571.5Q564 487 564 331Q564 174 485.5 87Q407 0 258 0ZM173 68L248 68Q363 68 420.5 137.5Q478 207 478 331Q478 455 420.5 521.5Q363 588 248 588L173 588Z');
256+
});
257257

258-
it('should get the ttf glyph cbox', function() {
259-
return assert.deepEqual(glyph.cbox, expectedBox);
260-
});
258+
it('should get the ttf glyph cbox', function() {
259+
return assert.deepEqual(glyph.cbox, expectedBox);
260+
});
261261

262-
it('should get the ttf glyph bbox', function() {
263-
return assert.deepEqual(glyph.bbox, expectedBox);
264-
});
265-
});
262+
it('should get the ttf glyph bbox', function() {
263+
return assert.deepEqual(glyph.bbox, expectedBox);
264+
});
265+
});
266266

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

270-
let glyph = font.glyphsForString('D')[0];
271-
let expectedBox = new BBox(90, 0, 564, 656);
270+
let glyph = font.glyphsForString('D')[0];
271+
let expectedBox = new BBox(90, 0, 564, 656);
272272

273-
it('should get the glyph name', function() {
274-
return assert.equal(glyph.name, 'D');
275-
});
273+
it('should get the glyph name', function() {
274+
return assert.equal(glyph.name, 'D');
275+
});
276276

277-
it('should get a CFFGlyph', function() {
278-
return assert.equal(glyph.constructor.name, 'CFFGlyph');
279-
});
277+
it('should get a CFFGlyph', function() {
278+
return assert.equal(glyph.constructor.name, 'CFFGlyph');
279+
});
280280

281-
it('should get a path for the glyph', function() {
282-
let tglyph = font.glyphsForString('T')[0];
283-
return assert.equal(tglyph.path.toSVG(), 'M226 0L310 0L310 586L508 586L508 656L28 656L28 586L226 586Z');
284-
});
281+
it('should get a path for the glyph', function() {
282+
let tglyph = font.glyphsForString('T')[0];
283+
return assert.equal(tglyph.path.toSVG(), 'M226 0L310 0L310 586L508 586L508 656L28 656L28 586L226 586Z');
284+
});
285285

286-
it('should get a correct cubic path for all contours', function() {
287-
return assert.equal(glyph.path.toSVG(), 'M90 0L258 0C456 0 564 122 564 331C564 539 456 656 254 656L90 656ZM173 68L173 588L248 588C401 588 478 496 478 331C478 165 401 68 248 68Z');
288-
});
286+
it('should get a correct cubic path for all contours', function() {
287+
return assert.equal(glyph.path.toSVG(), 'M90 0L258 0C456 0 564 122 564 331C564 539 456 656 254 656L90 656ZM173 68L173 588L248 588C401 588 478 496 478 331C478 165 401 68 248 68Z');
288+
});
289289

290-
it('should get the otf glyph cbox', function() {
291-
return assert.deepEqual(glyph.cbox, expectedBox);
292-
});
290+
it('should get the otf glyph cbox', function() {
291+
return assert.deepEqual(glyph.cbox, expectedBox);
292+
});
293293

294-
it('should get the otf glyph bbox', function() {
295-
return assert.deepEqual(glyph.bbox, expectedBox);
296-
});
294+
it('should get the otf glyph bbox', function() {
295+
return assert.deepEqual(glyph.bbox, expectedBox);
296+
});
297297
});
298298
});

0 commit comments

Comments
 (0)