Home › Forums › WoodMart support forum › Console errors

Console errors

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #730595

    dtech10
    Participant

    File: wp-content/themes/woodmart/fonts/woodmart-font-3-400.woff2 Versions: Woodmart 8.6.2 and 8.6.3 (the file is identical in both). Reproduced on a stock install with no customization to the theme files.

    Symptom: in Firefox, every page logs this console warning, once per affected glyph:

    downloadable font: glyf: Glyph bbox was incorrect; adjusting (glyph 82) (font-family: “woodmart-font” style:normal weight:400 width:100 src index:0)
    Affected glyph IDs (22): 10, 11, 22, 23, 31, 32, 33, 46, 58, 59, 73, 75, 81, 82, 83, 86, 87, 89, 96, 99, 100, 101

    Cause: in the font’s glyf table, each glyph’s stored bounding box is the full em box (xMin 0, yMin -64, xMax = advance width, yMax 960) instead of the actual outline bounds. The outlines of the 22 glyphs above extend outside that stored box, so Firefox’s font sanitizer recalculates the box and logs the warning.

    Suggested fix: regenerate the font with bounding boxes recalculated from the glyph outlines (for example with fontTools, saving with recalcBBoxes=True, which is the default when compiling).

    The icons display correctly, so it’s console noise only, but could this be fixed in a future release?

Viewing 1 post (of 1 total)