Skip to content

chore(deps): pin punktfunk at the CJK font merge - #325

Merged
enricobuehler merged 2 commits into
mainfrom
feat/cjk-language-font
Nov 12, 2026
Merged

enricobuehler merged 2 commits into
mainfrom
feat/cjk-language-font

Conversation

@enricobuehler

Copy link
Copy Markdown
Member

Pins punktfunk at 7a4b0442a (PR #2388 merge): the console kit now draws a character Geist lacks (Japanese, Chinese, Korean) in a system face, and UI text follows the OS language.

What changes

  • Pin 9eb2eb641 → 7a4b0442a on all five punktfunk crates. No lockfile churn beyond the rev.
  • API drift: HostRow gained screens and ConsoleCmd gained SetScreen (host screen pick). This client has no /display/targets client, so rows carry screens: None, the shell shows no Screen section, and SetScreen joins the no-op arm.
  • Language: already done on main (feat(l10n): word the client from the monorepo's messages #316). device::ui_languages() reads luna://com.webos.settingsservice/getSystemSettings {"keys":["localeInfo"]} → settings.localeInfo.locales.UI and hands the tag to pf_l10n::set_languages and ConsoleOptions.languages unchanged. webOS sends full BCP-47 tags (ja-JP, ko-KR, zh-Hans-CN, zh-Hant-TW, zh-Hant-HK), so there is no enum to map. A test now covers those tags passing through whole.
  • Font: nothing to hand in. The armv7 Skia archive (skia-binaries-…-armv7-unknown-linux-gnueabi-ganesh-gl-jpegd-jpege-pdf-textlayout) builds C_SkFontMgr_NewSystem as SkFontMgr_New_FontConfig (checked by relocation in libskia-bindings.a), and the TV ships libfontconfig.so.1.12. FontMgr::new() in the kit is therefore fontconfig, and its fallback reaches the TV's own fonts under /usr/share/fonts. No font bundled, no new library.

Checked

  • task docker:check (armv7 cross): clean.
  • task docker:lint (fmt + armv7 clippy -D warnings): clean.
  • task docker:test (host target): 121 passed.

Not checked

  • Nothing ran on a TV. docker:build / package and the webosbrew symbol gate were not run: no library or packaging change.

On-device checks

  1. A host or game title in Japanese, Korean, Simplified and Traditional Chinese (e.g. rename a host to 日本語 한국어 简体 繁體) draws as glyphs, not boxes, on the console and in the stream overlay.
  2. If boxes: over root ssh, ls /usr/share/fonts and ls /etc/fonts on the TV, then the same from inside the app's jail. fontconfig needs both its config and the font dirs visible; if only the files are visible, the fix is loading them for Console::with_fallback_fonts.
  3. Console start time on a webOS 4/5 set is unchanged (fontconfig already initialises at boot today).
  4. Menu language set to 日本語 / 한국어 / 中文: the log's language line names the TV's tag, and the UI stays English until those languages ship.

PR #2388 merged as 7a4b0442a. The kit now draws a char Geist lacks in a
system face; on the TV that is Skia's fontconfig manager, so no face is
handed in.

The pin also brings the host screen pick. This client has no display
targets client: its rows carry no screens, so the shell shows no Screen
section and never sends SetScreen.
webOS writes Chinese with its script, as zh-Hans-CN or zh-Hant-TW. The
tag must reach pf-l10n whole for it to pick Simplified or Traditional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant