From f6080936e89b80b0214decdd63c7d5c6009877c3 Mon Sep 17 00:00:00 2001 From: GreenAsJade Date: Tue, 17 Sep 2024 11:38:15 +0930 Subject: [PATCH] Put "sub" back in the middle of the cell. --- src/Goban/SVGRenderer.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Goban/SVGRenderer.ts b/src/Goban/SVGRenderer.ts index cb9c5747..ec1dd234 100644 --- a/src/Goban/SVGRenderer.ts +++ b/src/Goban/SVGRenderer.ts @@ -5353,10 +5353,12 @@ class GCell { text.setAttribute("text-anchor", "middle"); text.setAttribute("x", cx.toString()); - let yy = cy + ss * 0.3; /// subscript offset - // Adjust baseline based on the provided font size - yy += font_size * 0.35; + let yy = cy + font_size * 0.3; + + if (room_for_letter) { + yy += ss * 0.3; + } if (room_for_sub_triangle) { yy -= ss * 0.08;