Precision East Asian typography on the web demands strict alignment between Latin numerals, punctuation, and Japanese CJK glyphs. When rendering tabular reports, technical documentation, or formal legal notices in Japanese, setting OpenType jp04 (JIS2004 standard forms) alongside fwid (Full-Width Forms) ensures that every character occupies a uniform, predictable em-box width. Apple Safari’s Web Inspector provides native font analysis tools that simplify testing and validation of these advanced layout features.
Understanding the Synergy Between jp04 and Full-Width (fwid) Glyphs
The jp04 OpenType feature updates historical character representations to conform with contemporary Japanese publishing standards defined in JIS X 0213:2004. Concurrently, the fwid tag forces half-width and proportional ASCII characters—including digits and Roman letters—to render at full em-width (zenkaku). This guarantees pristine vertical alignment in multi-column tables and vertical writing layouts (writing-mode: vertical-rl).
Declare these OpenType properties using modern high-level CSS properties with fallbacks:
.cjk-tabular-matrix {
font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
font-variant-east-asian: jis04 full-width;
font-feature-settings: "jp04" 1, "fwid" 1;
text-spacing-trim: space-first;
line-break: strict;
}
Validating Full-Width Forms in Safari Web Inspector
To inspect and audit OpenType glyph substitution inside Apple Safari:
- Launch Safari and navigate to your target page.
- Right-click on the full-width Japanese text passage and click Inspect Element.
- Navigate to the Elements tab and select the Font sub-panel located in the right-hand inspection drawer.
- Expand the Font Features disclosure widget.
- Verify that both JIS2004 Forms (jp04) and Full-Width (fwid) are enabled and highlighted in blue.
- Use the live text editing input within the Font panel to confirm that alphanumeric inputs immediately expand into zenkaku em-square dimensions.
Troubleshooting Glyphs and Fallback Rendering
When font features fail to apply as anticipated in Safari, verify the following configuration vectors:
- Subset Stripping: Ensure your web font distribution pipeline has not stripped the
fwidfeature table during WOFF2 subsetting. - CSS Shorthand Precedence: Be cautious when using the
font:shorthand property on child selectors, as it resetsfont-variantandfont-feature-settingsto initial values. - Text Orientation: When pairing full-width glyphs with vertical layouts, explicitly set
text-orientation: uprightto keep Roman characters upright alongside kanji.