• Proposal: change Japanese font for GUI installer

    From Kentaro HAYASHI@21:1/5 to All on Fri Jun 30 17:20:01 2023
    Hi,

    I want to try fixing a bug that debian-installer: GUI font for
    Japanese was incorrectly rendered. [1]

    So, I suggest to use MotoyaLCedar for Japanese with GUI installer.
    (Any advice are welcome to fix this issue correctly)


    As far as I know, this bug was caused by switching from
    ttf-cjk-compact to fonts-android udeb.

    At that time, kmuto-san explains Cons [2] about fonts-android.

    - Some Japanese characters look bit funny.
    (I believe it is negligible for installer.)

    "funny" means that Japanese Kanji is not rendered appropriate Kanji
    glyph (typeface), instead, it was rendered as Simplified Chinese.

    This is a known issue of han unification. [3] [4]
    He says negligible for installer, but I don't think so.
    You must reinterpret different glyph(typeface) when you
    choose Japanese explicitly during GUI install.

    Here is the actual examples:

    * Unexpected rendered screenshot image with current Debian 12 installer:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=1037256;filename=actual-partman_choose_partition_0.png;msg=5
    * Appropriately rendered screenshot image:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?att=2;bug=1037256;filename=expected-partman_choose_partition_0.png;msg=5

    NOTE: even though "Continue" and "Back" button can't be
    rendered correctly when you choose Japanese.

    To solve this issue, I've tried the following steps.

    Step 1: Bundle MotoyaLCedar (MTLc3m.ttf) for fonts-android-udeb.
    MTLc3m.ttf itself is included fonts-android source archive,
    but not shipped as a udeb yet.
    Step 2: Apply PoC patch for cdebconf package to use MotoyaLCedar.
    The actual patch file is attached to #1037256.
    Step 3: build cdimage with build_netboot-gtk

    Here is the Pros and Cons:

    Pros:
    * Fix longstanding Japanese glyph (typeface) rendering issue
    which is introduced since Debian 9 (stretch).
    * No side effect for other languages.

    Cons:
    * Increase image size a bit. +1.9MB

    Any though?

    [1] debian-installer: GUI font for Japanese was incorrectly rendered
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037256
    [2] Proposal: Drop ttf-cjk-compact, get fonts-droid
    https://lists.debian.org/debian-boot/2015/07/msg00304.html
    [3] https://wiki.debian.org/DebianInstaller/GUIFonts
    [4] Your Code Displays Japanese Wrong
    https://heistak.github.io/your-code-displays-japanese-wrong/

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Cyril Brulebois@21:1/5 to All on Tue Jul 4 03:10:01 2023
    Hi,

    Kentaro HAYASHI <[email protected]> (2023-06-30):
    To solve this issue, I've tried the following steps.

    Step 1: Bundle MotoyaLCedar (MTLc3m.ttf) for fonts-android-udeb.
    MTLc3m.ttf itself is included fonts-android source archive,
    but not shipped as a udeb yet.
    Step 2: Apply PoC patch for cdebconf package to use MotoyaLCedar.
    The actual patch file is attached to #1037256.
    Step 3: build cdimage with build_netboot-gtk

    Here is the Pros and Cons:

    Pros:
    * Fix longstanding Japanese glyph (typeface) rendering issue
    which is introduced since Debian 9 (stretch).
    * No side effect for other languages.

    Cons:
    * Increase image size a bit. +1.9MB

    I'm interested in fixing this issue but before doing so, I'd like us to
    take some time to investigate the increased memory pressure we've seen
    between Debian 11 and Debian 12, leading to situations where the OOMK
    kicks in.


    Cheers,
    --
    Cyril Brulebois ([email protected]) <https://debamax.com/>
    D-I release manager -- Release team member -- Freelance Consultant

    -----BEGIN PGP SIGNATURE-----

    iQIyBAABCgAdFiEEtg6/KYRFPHDXTPR4/5FK8MKzVSAFAmSjcS4ACgkQ/5FK8MKz VSAPbQ/3f3CE4u7BfyqPzxdPO/pVA5FM9pIMae0GBcfbAphqzxtD8v0riClF3w/M JQd7OqK+WTlzWCbM/4VQab3bNa4ggRtWsl/VQC2fOGSydj5sL4xLWukhsHCoTLL9 6JlDmC54cH5HZdkgd0kMqA92+2JD3l2SxqTLLh5mw3TVTPABGczo55H/tN7sRcNq tjnFRQ9HX+bWbR83NCTZKLJZMtwKHAJ0pI6Dg/kctioQhXp7TEUOflY3X9dk1vX8 ZcYklejTZy4IlNCkQ0XzBxZuErkvvJOMWNpMbwYAqP2TfW0hCUq1mfiBH7LgNPtl MOf6ZwMCHEso9fTLj6kaCakR1rM+lT3v/mjk9EwR1T8av5+bOmoI5He0Ex5voLrJ ri0mDfUGCB9cbpjBRwT4d4KUsx8I1LPSopeNvafpImaeXGlfpEgnFm62h4mip1HU AEcRdoWUZC98E2qSud+f69l6PTj1Kr4Gs/WALDDRZAV1qxbnq4c8TnzMqiKs6Q5r Zn46r7lMVG4vMYPg8q3F+PFbriYdM93T4hEUuTKf3ZLNc6ZCwcCD5dwm9pVet0Pa u3ag7JJz0+t8biG+ze5BW+uSMfGIeIoqMOEO88H06H4WvaRRVAxRaQNTlFsDMJPC aJYcValjisZz5YWQeg84Fc5DxQ0ZoHQpoMDOmRz8NPsbEohaHw==
    =entF
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    *
  • From Kentaro HAYASHI@21:1/5 to Cyril Brulebois on Wed Jul 5 13:00:01 2023
    On Tue, 4 Jul 2023 03:09:05 +0200
    Cyril Brulebois <[email protected]> wrote:

    Hi,

    Kentaro HAYASHI <[email protected]> (2023-06-30):
    To solve this issue, I've tried the following steps.

    Step 1: Bundle MotoyaLCedar (MTLc3m.ttf) for fonts-android-udeb.
    MTLc3m.ttf itself is included fonts-android source archive,
    but not shipped as a udeb yet.

    As mentioned https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1037256#10, making fonts-motoya-l-cedar-udeb and using it may be better
    instead of changing fonts-android-udeb itself.

    I'm interested in fixing this issue but before doing so, I'd like us to
    take some time to investigate the increased memory pressure we've seen between Debian 11 and Debian 12, leading to situations where the OOMK
    kicks in.

    Thanks, as I'm not familiar with d-i internals well, I hope
    PoC patch will be revised appropriately by expert.

    Cheers,
    --
    Cyril Brulebois ([email protected]) <https://debamax.com/>
    D-I release manager -- Release team member -- Freelance Consultant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Kentaro Hayashi@21:1/5 to All on Mon Sep 11 06:40:01 2023
    Hi, Cyril.


    2023年7月4日(火) 10:09 Cyril Brulebois <[email protected]>:

    Hi,


    Cons:
    * Increase image size a bit. +1.9MB

    I'm interested in fixing this issue but before doing so, I'd like us to
    take some time to investigate the increased memory pressure we've seen between Debian 11 and Debian 12, leading to situations where the OOMK
    kicks in.


    By the way, is there the maximum limitation about the size of font file
    to be bundled for d-i?

    We have a discussion about "Which font should be used?" topic in
    Japanese debian-devel ML.
    Above question is raised from the discussion.

    Regards,

    --
    Kentaro Hayashi <[email protected]>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)