Repository navigation
M9: place Japanese vertical punctuation using font metrics - #298
Merged
h-a-n-a-s-h-i merged 1 commit intoOct 9, 2026
Merged
Conversation
Co-Authored-By: Codex <noreply@openai.com>
Member
|
Merged. Thanks! Vertical Japanese punctuation from VORG/vmtx is a real fidelity win. One heads-up: the test skips when no Japanese font is installed, so CI may not exercise it. If you haven't joined yet, come hang out with us on Discord: https://discord.gg/artcraft |
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.
Vertical Source Text shapes Japanese punctuation using horizontal glyphs, then keeps them upright around a horizontal-font centre. Enable
vert/vrt2only for CJK runs and position their outlines from the font's VORG/vmtx vertical origin and horizontal advance. Updateoutline_xfwith the same placement so animated/variable-outline redraws agree. Half-width Roman text stays sideways and tate-chu-yoko stays horizontally shaped.The regression fails on unchanged main and verifies vertical glyph IDs, upper-right comma/full-stop ink, unchanged horizontal cache entries and tracking-independent cross-column placement. Text-package debug/release tests pass (43 unit + 2 integration), including the new punctuation regression in its own process so native font probing does not affect fallback tests. Package Clippy (with the existing
collapsible_matchexception) and wasm check pass; Shippori Mincho output was also rasterized and inspected using locally loaded OFL font data. No font assets, project-schema fields, UI controls or ROADMAP log are added. This is independent of the open toolbar PR #213.Stock
cargo xtask cistops at existingclippy::collapsible_matchwarnings in unchanged path_text/audio_fx/generate code. Asset/layer checks and the full lower-crate wasm gate passed. This fixes vertical forms/origins, not complete Japanese paragraph composition.Reference: OpenType vertical forms, JLReq punctuation placement.