Repository navigation
feat(platform): hand the console's own CJK fonts to the console UI - #17
Merged
Merged
Conversation
The kit now draws a character Geist lacks from faces the host hands in, which the console needs for Han, kana and Hangul. The pin also brings the screen pick; this client fetches no screens, so its rows carry none and the command is a no-op.
Skia here has no font manager, so a Japanese, Chinese or Korean game title or host name drew as boxes. The sandbox mounts the system's fonts under its random word; the title reads the Japanese, Chinese and Korean faces from there, the system language's own first so Han takes that region's shape. Nothing is bundled.
The font file names come from a 4.03 sandbox listing and the PS4's table, not from this console. One probe run shows what the title can read, so a renamed face is a one-line fix.
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.
Pins punktfunk
7a4b0442a(monorepo #2388), which lets the console UI draw a character Geist lacks from faces the host hands in, and hands it the console's own Japanese, Chinese and Korean fonts. Nothing is bundled.What changes
Cargo.toml,scripts/pins.env,docs/pins.md. Drift from the screen pick: host rows carryscreens: NoneandConsoleCmd::SetScreenis a no-op, since this client fetches no screens./preinst/common/fontat/<word>/common/font;pf-ps5-sysbindssceKernelGetFsSandboxRandomWord(libkernel) for the word.pf-ps5-platform::fontsnamesSSTJpPro-Regular.otf(kana, JIS kanji),DFHEI5-SONY.ttf(Chinese, GB Hei) andSCEPS4Yoongd-Medium.otf(Hangul), the system language's own first, so Han takes that region's shape.DeviceInfo::fontscarries the paths; the app reads them when it builds the menu and the stream overlay, drops a file that is missing or not a face, and logs count, size and time.fontslists the directory with sizes, and fails when none can be listed.SCE_SYSTEM_SERVICE_PARAM_ID_LANG(feat(l10n): word the title from the shared messages #15). The 0-29 table matches the public enum and mapsja,ko,zh-Hant,zh-Hans; this adds tests for those four.Checked
cargo fmt --check,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace(incl. the fake-platform menu run).scripts/cargo-ps5.sh clippy -- -D warnings, title and--probe. Not linked:task packageis CI's.Not checked
Nothing ran on a console. The font names come from a PS5 4.03 sandbox listing and shadPS4's PS4 font table, not from 13.x.
On the console
fontslists/<word>/common/fontwith the three files above. If a name differs, the fix iscrates/pf-ps5-platform/src/fonts.rs.punktfunk-ps5: fonts: /<word>/common/font.fonts: 3 of 3 system faces, … KiB, in … mson each menu and stream start. Is the time noticeable?language:line showsja,zh-Hant,zh-Hans,ko. The UI stays English until those languages ship.param.jsonlistsen-USonly. The title name is the product name in every language, and the shell falls back todefaultLanguage, so no entries were added.