Repository navigation
fix(web): lighter scripture text; self-hosted Korean and Hindi fonts - #26
Merged
Merged
Conversation
Goudy Scripture's outlines are about as heavy as Goudy Old Style Bold. On top
of that, Chrome got a faux-bold rule written for the lighter Sorts Mill Goudy,
and headings were thickened in every browser.
- Remove the Chrome faux-bold rule. The upright face now declares weights
400-1000, so browsers stop synthesizing bold from it.
- Scripture text is 1.25rem (was 24px); text inside .passage scales with it.
- Korean asked for KoPub Batang at Google early-access URLs that now return
404, so each device used a system font. KLB and KRREB had no rule at all.
Serve 'SG Batang', a renamed OFL subset of KoPub Batang ("KoPub Batang" is a
Reserved Font Name), about 225 KB per weight.
- Hindi had no web font. Serve Noto Serif Devanagari, about 50 KB per weight.
- Pages with no version class (parallel view) reach both through the body
stack. unicode-range keeps English pages from downloading them.
- word-break: keep-all, so Korean lines break between words.
- scripts/build-fonts.py rebuilds the fonts; docs/fonts.md records the licences.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Goudy Scripture rendered far too heavy, Korean fell back to whatever system font each device had, and Hindi had no web font.
Changes
SG Batang, a renamed OFL subset of KoPub Batang. Google's early-access files now return 404.KLBandKRREBhad no Korean rule before.unicode-range, which covers parallel view. English pages make no extra font requests.word-break: keep-allfor Korean line breaks.Checked
dc42:12,52:9,krbom/1.ne.1,hibom/1.ne.1, Korean parallel. Chromium also rendered NWT, SEBOM, RSV, KLB, KRREB and KJV parallel.Not checked
allow.jsonrecords theversions.cssandstyle.cssdifferences.Licensing
KoPub comes from
google/fontsofl/kopubbatang, under OFL 1.1. KOPUS's download page says serving its KoPubWorld release from a server needs separate approval, so these files must not be replaced with that download. Seeapps/web/docs/fonts.md.🤖 Generated with Claude Code