i18n: say in the test that A stands in for the row's baseline

epaint exposes no baseline, but a capital without a descender has its ink bottom on
it, so the Latin half of the pair is load-bearing. Suggested by FeiLiuEM in #1309.

Co-Authored-By: DeepSeek V4.1 Flash <noreply@deepseek.com>
This commit is contained in:
zitann2020
2026-10-26 02:39:01 +09:00
co-authored by DeepSeek V4.1 Flash
parent a50a182a5f
commit 6938cf42da
+5
View File
@@ -780,6 +780,11 @@ mod script_font_tests {
/// A fallback face's glyphs sit on the row font's baseline, in every UI family and at every
/// interface size. (#1309)
///
/// `A` stands in for the row's baseline: epaint exposes none, but a capital without a descender
/// has its ink bottom on the baseline, so its ink bottom *is* the row's baseline. A glyph with a
/// descender (`g`) or a round one with an overshoot (`O`) would quietly stop holding, so keep `A`
/// as the Latin half of this pair.
///
/// Both glyphs of `Aあ` end on the baseline, so their ink bottoms agree up to the difference
/// between the two outlines themselves - the kana reaches a little below the Latin letter in the
/// Japanese faces. Without the correction the kana sits 3 pt high at 12 pt (measured), so the