From 0a0ff94767ec95f005cfb443dae6dbd69848fa58 Mon Sep 17 00:00:00 2001 From: GreenAsJade Date: Tue, 17 Sep 2024 10:59:15 +0930 Subject: [PATCH] Fix up offset scaling for "top/sub" mark combination --- src/Goban/SVGRenderer.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Goban/SVGRenderer.ts b/src/Goban/SVGRenderer.ts index 8b9f791e..cb9c5747 100644 --- a/src/Goban/SVGRenderer.ts +++ b/src/Goban/SVGRenderer.ts @@ -5353,15 +5353,10 @@ class GCell { text.setAttribute("text-anchor", "middle"); text.setAttribute("x", cx.toString()); - let yy = cy; + let yy = cy + ss * 0.3; /// subscript offset // Adjust baseline based on the provided font size yy += font_size * 0.35; - if (room_for_letter) { - yy += ss * 0.6; - } else { - yy += ss * 0.31; - } if (room_for_sub_triangle) { yy -= ss * 0.08;