@effindomv2/runtime 0.1.0 → 0.1.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/package.json
CHANGED
|
@@ -64,7 +64,8 @@ export function installCallbacks(runtimeRef: { current: BridgeRuntime | null }):
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
void runtime.loadFont(fontId, url).catch((error: unknown) => {
|
|
67
|
-
|
|
67
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
68
|
+
console.error(`[fui_host] font ${String(fontId)} failed lazy load from ${url}: ${message}`);
|
|
68
69
|
});
|
|
69
70
|
},
|
|
70
71
|
onMissingFontCoverage: (fontId, coverageKind, sampleText) => {
|
|
@@ -295,9 +295,9 @@ export class IncrementalFontManager {
|
|
|
295
295
|
return new Uint8Array(await response.arrayBuffer());
|
|
296
296
|
}
|
|
297
297
|
|
|
298
|
-
private
|
|
299
|
-
|
|
300
|
-
|
|
298
|
+
private reportNonFatalFontError(context: string, error: unknown): void {
|
|
299
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
300
|
+
console.error(`[fui_host] ${context}: ${message}`);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
private applyFontFallbacks(fontId: number, fallbackIds: readonly number[]): void {
|
|
@@ -470,7 +470,10 @@ export class IncrementalFontManager {
|
|
|
470
470
|
fontState.requestedCharactersByFamily.delete(pendingRequest.familyKey);
|
|
471
471
|
}
|
|
472
472
|
}
|
|
473
|
-
this.
|
|
473
|
+
this.reportNonFatalFontError(
|
|
474
|
+
`incremental font shard fetch failed for ${pendingRequest.googleFamily} (${shardKey})`,
|
|
475
|
+
error,
|
|
476
|
+
);
|
|
474
477
|
throw error;
|
|
475
478
|
}
|
|
476
479
|
}
|