diff --git a/src/core/glyphlist.js b/src/core/glyphlist.js index 2bf4423a8..071d3ee8d 100644 --- a/src/core/glyphlist.js +++ b/src/core/glyphlist.js @@ -15,7 +15,7 @@ /* no-babel-preset */ /* eslint-disable no-var */ -var getLookupTableFactory = require("./core_utils.js").getLookupTableFactory; +import { getLookupTableFactory } from "./core_utils.js"; var getGlyphsUnicode = getLookupTableFactory(function (t) { t.A = 0x0041; @@ -4550,5 +4550,4 @@ var getDingbatsGlyphsUnicode = getLookupTableFactory(function (t) { t[".notdef"] = 0x0000; }); -exports.getGlyphsUnicode = getGlyphsUnicode; -exports.getDingbatsGlyphsUnicode = getDingbatsGlyphsUnicode; +export { getGlyphsUnicode, getDingbatsGlyphsUnicode }; diff --git a/src/core/unicode.js b/src/core/unicode.js index 118a713b1..043b8c097 100644 --- a/src/core/unicode.js +++ b/src/core/unicode.js @@ -15,7 +15,7 @@ /* no-babel-preset */ /* eslint-disable no-var */ -var getLookupTableFactory = require("./core_utils.js").getLookupTableFactory; +import { getLookupTableFactory } from "./core_utils.js"; // Some characters, e.g. copyrightserif, are mapped to the private use area // and might not be displayed using standard fonts. Mapping/hacking well-known @@ -1635,8 +1635,10 @@ function reverseIfRtl(chars) { return s; } -exports.mapSpecialUnicodeValues = mapSpecialUnicodeValues; -exports.reverseIfRtl = reverseIfRtl; -exports.getUnicodeRangeFor = getUnicodeRangeFor; -exports.getNormalizedUnicodes = getNormalizedUnicodes; -exports.getUnicodeForGlyph = getUnicodeForGlyph; +export { + mapSpecialUnicodeValues, + reverseIfRtl, + getUnicodeRangeFor, + getNormalizedUnicodes, + getUnicodeForGlyph, +};