Skip to content

Commit

Permalink
Put "sub" back in the middle of the cell.
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenAsJade committed Sep 17, 2024
1 parent 0a0ff94 commit f608093
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Goban/SVGRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f608093

Please sign in to comment.