harfbuzzjs 0.10.0 → 0.10.1

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 CHANGED
Binary file
package/hb.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "harfbuzzjs",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Minimal version of HarfBuzz for JavaScript use",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test/index.js CHANGED
@@ -882,8 +882,8 @@ 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(42);
886
- expect(result[0]).to.deep.equal({
885
+ expect(result).to.have.lengthOf(44);
886
+ expect(result[2]).to.deep.equal({
887
887
  "m": "start table GSUB script tag 'latn'",
888
888
  "glyphs": true,
889
889
  "t": [
@@ -892,7 +892,7 @@ describe('shape', function () {
892
892
  { cl: 2, g: 70 },
893
893
  ],
894
894
  });
895
- expect(result[41]).to.deep.equal({
895
+ expect(result[43]).to.deep.equal({
896
896
  "m": "end table GPOS script tag 'latn'",
897
897
  "glyphs": true,
898
898
  "t": [
@@ -911,8 +911,8 @@ 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(29);
915
- expect(result[0]).to.deep.equal({
914
+ expect(result).to.have.lengthOf(31);
915
+ expect(result[2]).to.deep.equal({
916
916
  "m": "start table GSUB script tag 'latn'",
917
917
  "glyphs": true,
918
918
  "t": [
@@ -923,7 +923,7 @@ describe('shape', function () {
923
923
  { cl: 4, g: 57 },
924
924
  ],
925
925
  });
926
- expect(result[28]).to.deep.equal({
926
+ expect(result[30]).to.deep.equal({
927
927
  "m": "end table GPOS script tag 'latn'",
928
928
  "glyphs": true,
929
929
  "t": [