Skip to content

Commit

Permalink
add missing import file extensions, add @todo comments for refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Connum authored and yne committed Mar 3, 2023
1 parent 90bf641 commit c5c2c06
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
3 changes: 3 additions & 0 deletions src/features/arab/arabicRequiredLigatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import { ContextParams } from '../../tokenizer.js';
import applySubstitution from '../applySubstitution.js';

// @TODO: use commonFeatureUtils.js for reduction of code duplication
// once #564 has been merged.

/**
* Update context params
* @param {any} tokens a list of tokens
Expand Down
3 changes: 3 additions & 0 deletions src/features/latn/latinLigatures.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
import { ContextParams } from '../../tokenizer.js';
import applySubstitution from '../applySubstitution.js';

// @TODO: use commonFeatureUtils.js for reduction of code duplication
// once #564 has been merged.

/**
* Update context params
* @param {any} tokens a list of tokens
Expand Down
6 changes: 3 additions & 3 deletions src/tables/gvar.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// The `gvar` table stores information on how to modify glyf outlines across the variation space
// https://learn.microsoft.com/en-us/typography/opentype/spec/gvar

// import check from '../check';
// import parse from '../parse';
// import table from '../table';
// import check from '../check.js';
// import parse from '../parse.js';
// import table from '../table.js';

function makeGvarTable() {
console.warn('Writing of gvar tables is not yet supported.');
Expand Down
4 changes: 2 additions & 2 deletions test/tables/avar.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import { hex, unhex } from '../testutil';
import avar from '../../src/tables/avar';
import { hex, unhex } from '../testutil.js';
import avar from '../../src/tables/avar.js';

describe('tables/avar.js', function() {
const fvar = {axes: [
Expand Down
4 changes: 2 additions & 2 deletions test/tables/stat.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import assert from 'assert';
import { hex, unhex } from '../testutil';
import STAT from '../../src/tables/stat';
import { hex, unhex } from '../testutil.js';
import STAT from '../../src/tables/stat.js';

describe('tables/stat.js', function() {
// Style Attributes Header, v1.2
Expand Down

0 comments on commit c5c2c06

Please sign in to comment.