harfbuzzjs 0.10.1 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hb-subset.wasm +0 -0
- package/hb.wasm +0 -0
- package/hbjs.js +2 -2
- package/package.json +1 -1
- package/test/index.js +4 -4
package/hb-subset.wasm
CHANGED
|
Binary file
|
package/hb.wasm
CHANGED
|
Binary file
|
package/hbjs.js
CHANGED
|
@@ -515,7 +515,7 @@ function hbjs(Module) {
|
|
|
515
515
|
**/
|
|
516
516
|
hExtents: function () {
|
|
517
517
|
var sp = stackSave();
|
|
518
|
-
var extentsPtr = stackAlloc(
|
|
518
|
+
var extentsPtr = stackAlloc(48);
|
|
519
519
|
exports.hb_font_get_h_extents(ptr, extentsPtr);
|
|
520
520
|
var extents = {
|
|
521
521
|
ascender: Module.HEAP32[extentsPtr / 4],
|
|
@@ -531,7 +531,7 @@ function hbjs(Module) {
|
|
|
531
531
|
**/
|
|
532
532
|
vExtents: function () {
|
|
533
533
|
var sp = stackSave();
|
|
534
|
-
var extentsPtr = stackAlloc(
|
|
534
|
+
var extentsPtr = stackAlloc(48);
|
|
535
535
|
exports.hb_font_get_v_extents(ptr, extentsPtr);
|
|
536
536
|
var extents = {
|
|
537
537
|
ascender: Module.HEAP32[extentsPtr / 4],
|
package/package.json
CHANGED
package/test/index.js
CHANGED
|
@@ -882,7 +882,7 @@ describe('shape', function () {
|
|
|
882
882
|
buffer.addText('abc');
|
|
883
883
|
buffer.guessSegmentProperties();
|
|
884
884
|
const result = hb.shapeWithTrace(font, buffer, "", 0, 0)
|
|
885
|
-
expect(result).to.have.lengthOf(
|
|
885
|
+
expect(result).to.have.lengthOf(59);
|
|
886
886
|
expect(result[2]).to.deep.equal({
|
|
887
887
|
"m": "start table GSUB script tag 'latn'",
|
|
888
888
|
"glyphs": true,
|
|
@@ -892,7 +892,7 @@ describe('shape', function () {
|
|
|
892
892
|
{ cl: 2, g: 70 },
|
|
893
893
|
],
|
|
894
894
|
});
|
|
895
|
-
expect(result[
|
|
895
|
+
expect(result[58]).to.deep.equal({
|
|
896
896
|
"m": "end table GPOS script tag 'latn'",
|
|
897
897
|
"glyphs": true,
|
|
898
898
|
"t": [
|
|
@@ -911,7 +911,7 @@ describe('shape', function () {
|
|
|
911
911
|
buffer.addText('fi AV');
|
|
912
912
|
buffer.guessSegmentProperties();
|
|
913
913
|
const result = hb.shapeWithTrace(font, buffer, "-liga,-kern", 0, 0)
|
|
914
|
-
expect(result).to.have.lengthOf(
|
|
914
|
+
expect(result).to.have.lengthOf(46);
|
|
915
915
|
expect(result[2]).to.deep.equal({
|
|
916
916
|
"m": "start table GSUB script tag 'latn'",
|
|
917
917
|
"glyphs": true,
|
|
@@ -923,7 +923,7 @@ describe('shape', function () {
|
|
|
923
923
|
{ cl: 4, g: 57 },
|
|
924
924
|
],
|
|
925
925
|
});
|
|
926
|
-
expect(result[
|
|
926
|
+
expect(result[45]).to.deep.equal({
|
|
927
927
|
"m": "end table GPOS script tag 'latn'",
|
|
928
928
|
"glyphs": true,
|
|
929
929
|
"t": [
|