mirror of
https://github.com/ZeroCatDev/Classworks.git
synced 2026-08-12 09:20:31 +00:00
feat:修改UAF导出字体样式,使其可读性更高
This commit is contained in:
parent
5bfb5c9abb
commit
64b15d058a
@ -1,3 +1,7 @@
|
|||||||
|
allowBuilds:
|
||||||
|
'@parcel/watcher': false
|
||||||
|
esbuild: false
|
||||||
|
sharp: false
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- '@parcel/watcher'
|
- '@parcel/watcher'
|
||||||
- esbuild
|
- esbuild
|
||||||
|
|||||||
BIN
public/uaf/HarmonyOS_Sans_SC_Regular.ttf
Normal file
BIN
public/uaf/HarmonyOS_Sans_SC_Regular.ttf
Normal file
Binary file not shown.
Binary file not shown.
@ -266,7 +266,7 @@ export async function downloadUafAssignments(assignments, dateValue) {
|
|||||||
if (issues.length) throw new UafExportValidationError(issues);
|
if (issues.length) throw new UafExportValidationError(issues);
|
||||||
const { createUafPdf } = await loadBrowserUaf();
|
const { createUafPdf } = await loadBrowserUaf();
|
||||||
const base = import.meta.env.BASE_URL || "/";
|
const base = import.meta.env.BASE_URL || "/";
|
||||||
const fontUrl = new URL(`${base}uaf/NotoSansSC-Regular.otf`, window.location.origin);
|
const fontUrl = new URL(`${base}uaf/HarmonyOS_Sans_SC_Regular.ttf`, window.location.origin);
|
||||||
const wasmUrl = new URL(`${base}uaf/hb-subset.wasm`, window.location.origin);
|
const wasmUrl = new URL(`${base}uaf/hb-subset.wasm`, window.location.origin);
|
||||||
const pdfBytes = await createUafPdf(assignments, {
|
const pdfBytes = await createUafPdf(assignments, {
|
||||||
fontUrl,
|
fontUrl,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user