git » firstones » commit 8312872

glyphs: Fix "T" title not showing on hover

author Alberto Bertogli
2026-07-02 09:52:44 UTC
committer Alberto Bertogli
2026-07-02 10:57:33 UTC
parent 157a619fd8fc993efa7be8144dfed2b40905d396

glyphs: Fix "T" title not showing on hover

When hovering a glyph, browsers typically show the title. This works
fine except for "T".

That was because the "D" glyph accidentally included an internal element
with `id="glyph:T"` attribute. This was a copy-paste error when writing
the glyph.

That duplication is not a problem for rendering (words like "adamant"
who have both D and T still render correctly), because D's sub-element
happens to have the same shape as T, and that's how it went unnoticed
all this time.

The only user-observable difference is the behaviour on hover.

The fix is to remove the incorrect `id=` attribute from the D glyph.

glyphs/D.svg +0 -2

diff --git a/glyphs/D.svg b/glyphs/D.svg
index 84e91da..34a3d9e 100644
--- a/glyphs/D.svg
+++ b/glyphs/D.svg
@@ -1,8 +1,6 @@
 <g id="glyph:D" _fo_height="6">
   <title>D</title>
   <rect
-    id="glyph:T"
-    _fo_height="6"
     x="-3"
     width="6" height="6"
     fill="transparent"