Skip to content

Dev3.0.15 use better font#235

Open
hiroshisuga wants to merge 22 commits intotest3015ForPRBetterJAFontfrom
dev3.0.15_UseBetterFont
Open

Dev3.0.15 use better font#235
hiroshisuga wants to merge 22 commits intotest3015ForPRBetterJAFontfrom
dev3.0.15_UseBetterFont

Conversation

@hiroshisuga
Copy link
Copy Markdown
Owner

@hiroshisuga hiroshisuga commented Sep 23, 2025

You can switch using either A-M fonts or draw-KosugiMaru font (but need to struggle - by restarting the app, switching between dev and prod environments, etc - until the font cache evaporates..?)
This is an alternative (personal) solution of bigbluebutton#23938 .

To use it in the production mode, DO NOT forget removing the original /usr/share/bigbluebutton/html5-client/stylesheets/fonts.css.gz. Nginx provides primarily this file even if the new fonts.css file (uncompressed) is present. See bigbluebutton#24729 .

2026.3.12: add MG and MM fonts and use them as TimesNewRoman - MM - serif combination, but not so much improvement -> commented out for now.

To subset JP font,
% sudo apt install fonttools (already done on bbb1 server)
% pyftsubset XXX.TTC --font-number=0 --flavor=woff2 --output-file=XXX-subset.woff2 --unicodes=U+3000-303F,U+3040-309F,U+30A0-30FF,U+4E00-9FFF,U+FF00-FFEF --layout-features='*' --no-hinting

プロダクションモードでは、tldrawがfont-familyをinheritする設定が上書きしてしまう。今のところはこの変更なしでも大丈夫だが、少しだけ強い設定にしておくことにする。
もっと強い設定は
.tl-text[data-font="draw"],
.tl-text-shape__wrapper[data-font="draw"] .tl-text {
  font-family: AMT, MRY, sans-serif;
}
これをやると、tldrawのfont-family: inherit設定が完全に上書きされる。
The change that ChatGPT suggested is probably not necessary.
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