tfrere HF Staff Cursor commited on
Commit
1ab0394
·
1 Parent(s): 924cc91

fix: match sprite symbol IDs (font_id + '_a' suffix)

Browse files
src/components/FontMap/hooks/useMapRenderer.js CHANGED
@@ -88,7 +88,7 @@ export function useMapRenderer({ svgRef, fonts, glyphPaths, filter, searchTerm,
88
  const ns = 'http://www.w3.org/2000/svg';
89
 
90
  fonts.forEach(font => {
91
- const pathD = hasSprite ? glyphPaths[font.id] : null;
92
  if (!pathD) return;
93
 
94
  const x = mapX(font.x);
 
88
  const ns = 'http://www.w3.org/2000/svg';
89
 
90
  fonts.forEach(font => {
91
+ const pathD = hasSprite ? (glyphPaths[`${font.id}_a`] || glyphPaths[font.id]) : null;
92
  if (!pathD) return;
93
 
94
  const x = mapX(font.x);