Update opentype.js dependency
This commit is contained in:
parent
57586d5456
commit
35b8145275
|
@ -11052,7 +11052,14 @@
|
||||||
|
|
||||||
const DEFAULT_FONT = 'sans-serif';
|
const DEFAULT_FONT = 'sans-serif';
|
||||||
|
|
||||||
const OPENTYPE_OPTIONS = {hinting: true};
|
const OPENTYPE_OPTIONS = {
|
||||||
|
features: [
|
||||||
|
{script: 'arab', tags: ['init', 'medi', 'fina', 'rlig']},
|
||||||
|
{script: 'latn', tags: ['liga', 'rlig']},
|
||||||
|
],
|
||||||
|
hinting: true,
|
||||||
|
kerning: true,
|
||||||
|
};
|
||||||
|
|
||||||
function getFont(attrs) {
|
function getFont(attrs) {
|
||||||
const family = (attrs['font-family'] || DEFAULT_FONT).split(',');
|
const family = (attrs['font-family'] || DEFAULT_FONT).split(',');
|
||||||
|
|
|
@ -4269,9 +4269,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"opentype.js": {
|
"opentype.js": {
|
||||||
"version": "0.12.0",
|
"version": "1.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/opentype.js/-/opentype.js-0.12.0.tgz",
|
"resolved": "https://registry.npmjs.org/opentype.js/-/opentype.js-1.1.0.tgz",
|
||||||
"integrity": "sha512-xb0kQVqtNCtLo3iPjCdjaoK48KomcPl2tWK6Fdja25CqwWTyYjpgK1ggb/ioXOzCArkcGzVC3Sts5t0mZSTAqw==",
|
"integrity": "sha512-SZimNGuUYrsGPk/nNCaytsrCWDbG+YB+G9Mzc6BM5XiIsIQpkhZa1QvSmNa+eN9xr1n+kBnBJih5YLVBviaJQg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"string.prototype.codepointat": "^0.2.1",
|
"string.prototype.codepointat": "^0.2.1",
|
||||||
"tiny-inflate": "^1.0.2"
|
"tiny-inflate": "^1.0.2"
|
||||||
|
|
|
@ -65,6 +65,6 @@
|
||||||
"uglify-es": "3.2.2"
|
"uglify-es": "3.2.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"opentype.js": "0.12.0"
|
"opentype.js": "^1.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,14 @@ addFont('handlee', {
|
||||||
|
|
||||||
const DEFAULT_FONT = 'sans-serif';
|
const DEFAULT_FONT = 'sans-serif';
|
||||||
|
|
||||||
const OPENTYPE_OPTIONS = {hinting: true};
|
const OPENTYPE_OPTIONS = {
|
||||||
|
features: [
|
||||||
|
{script: 'arab', tags: ['init', 'medi', 'fina', 'rlig']},
|
||||||
|
{script: 'latn', tags: ['liga', 'rlig']},
|
||||||
|
],
|
||||||
|
hinting: true,
|
||||||
|
kerning: true,
|
||||||
|
};
|
||||||
|
|
||||||
function getFont(attrs) {
|
function getFont(attrs) {
|
||||||
const family = (attrs['font-family'] || DEFAULT_FONT).split(',');
|
const family = (attrs['font-family'] || DEFAULT_FONT).split(',');
|
||||||
|
|
Loading…
Reference in New Issue