mirror of
https://github.com/github/awesome-copilot.git
synced 2026-07-14 10:01:06 +00:00
0aaced5332
font.getbbox() returns (left, top, right, bottom), so text line height must be bottom - top (bbox[3] - bbox[1]). The label placement code used bbox[3] - bbox[0] (bottom - left), mixing an x-coordinate into a height and producing a slightly wrong label-box height (empirically off by 0-4px depending on font). The debug heatmap labeling in the same module already uses the correct bbox[3] - bbox[1], so this brings placement in line.