Skip to content

Commit d92dc58

Browse files
chaxusclaude
andcommitted
revert: restore sdkjs files to pre-91bc4e2 state
The changes in 91bc4e2 introduced: 1. AllFonts.js: mapped Windows font paths to large local files (NotoSansTC-VF.ttf 11.4MB), which caused A.Ya to be non-null so the ?? 'ASC.ttf' fallback never triggered, leading to crashes 2. cell/sdk-all.js: added || q['ASC.ttf'] to paper over the crash, but this set wrong family_name causing font rendering chaos 3. slide/sdk-all.js and word/sdk-all.js: were left unpatched, later patched by us but with cascading HarfBuzz errors Restoring pre-91bc4e2 state: Windows font paths fail to load, A.Ya is null/undefined, ?? 'ASC.ttf' fallback applies naturally, matching the stable v0.0.3 behavior. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 0d4ef61 commit d92dc58

4 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎public/sdkjs/cell/sdk-all.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18784,7 +18784,6 @@
1878418784
this.$s.load(this.Jha);
1878518785
if (0 == this.$s.aBc) {
1878618786
var U = q[B.jb ?? 'ASC.ttf'];
18787-
if (!U) return;
1878818787
this.$s.Sjc = !0;
1878918788
this.$s.aBc = U.units_per_EM;
1879018789
this.$s.s8a = U.ascender;

‎public/sdkjs/common/AllFonts.js‎

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎public/sdkjs/slide/sdk-all.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18854,7 +18854,6 @@
1885418854
this.uq.load(this.N8);
1885518855
if (0 == this.uq.yUc) {
1885618856
var K = q[A.Ya ?? 'ASC.ttf'];
18857-
if (!K) { this.uq.c2b = !0; this.uq.yUc = 2048; return; }
1885818857
this.uq.c2b = !0;
1885918858
this.uq.yUc = K.units_per_EM;
1886018859
this.uq.oid = K.ascender;

‎public/sdkjs/word/sdk-all.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18844,7 +18844,6 @@
1884418844
this.Up.load(this.M4);
1884518845
if (0 == this.Up.vMc) {
1884618846
var O = q[A.Za ?? 'ASC.ttf'];
18847-
if (!O) { this.Up.FWb = !0; this.Up.vMc = 2048; return; }
1884818847
this.Up.FWb = !0;
1884918848
this.Up.vMc = O.units_per_EM;
1885018849
this.Up.hYb = O.ascender;

0 commit comments

Comments
 (0)