Repository navigation
fix(fonts): take bundled Noto faces from the noto-fonts prebuilt stack - #1317
Merged
Merged
Conversation
Eight packages pinned Noto Sans CJK (and Longbridge also Noto Sans) as extra-data from jsDelivr's GitHub proxy. jsDelivr now answers 404 for the 19.5 MB CJK file, so none of them can be installed or updated (#1316). They now pin one noarch archive from flatpark/prebuilt's noto-fonts stack: the same bytes as before, xz-compressed to 11 MB, on a URL FlatPark controls. apply_extra unpacks it to /app/extra/noto-fonts, and fonts.conf, SLINT_FONT_PATH and SLINT_DEFAULT_FONT name its share/fonts. The font docs now point new packages at the stack instead of a CDN. Fixes #1316 Co-authored-by: Claude Opus 5.5 <[email protected]>
2 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1316.
What: jsDelivr now returns 404 for
[email protected]/Sans/OTC/NotoSansCJK-Regular.ttc, so eight packages that pinned it from there can't be installed or updated. They now pin thenoto-fontsprebuilt stack instead (flatpark/prebuilt#20, releasenoto-fonts-v1).Affected:
com.fluxdown.app,app.concat.editor,com.bigtree.zedis,com.kang.nyaterm.preview,dev.navop.Navop,com.longbridge.Longbridge,dev.dbflux.DBFlux,io.github.yituorou.meatshell.Packaging:
noto-fonts-noto-fonts-v1-noarch.tar.xz(11.2 MB). It's arch- and runtime-independent, so there's noonly-arches. It containsNotoSansCJK-Regular.ttcandNotoSans-Regular.ttf, byte-identical to the old pins (same sha256), plus their OFL texts.apply_extra.shunpacks it to/app/extra/noto-fonts.fonts.conf,SLINT_FONT_PATH(Concat) andSLINT_DEFAULT_FONT(MeatShell) now point at/app/extra/noto-fonts/share/fontsinstead of/app/extra/fonts.prebuilt.mdlists the stack and notes noarch stacks.rendering-and-fonts.mdtells new packages to pin the stack, not a font CDN.Tested:
check-apply-extra.shpassed on all eight apps (root, no capabilities, offline).publish.sh --verifypassed for one app per toolkit: FluxDown (GPUI) and MeatShell (Slint 1.16,SLINT_DEFAULT_FONT). Both start and draw their Chinese UI on:99with no tofu.fc-listwith the package'sfonts.conflists every Noto Sans CJK SC/TC/HK/JP/KR family from/app/extra/noto-fonts/share/fonts./proc/<pid>/mapsshows the host copy winning, as the fallback order intends. Longbridge, the one app with no host fonts at all, was not launched; its change is the same path swap.Co-authored-by: Claude Opus 5.5 [email protected]