# Mismatch in number of glyphs between the "hmtx" table and the "cff" table.

**URL:** <https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511>\
**Category:** Glyphs\
**Created:** [October 27, 2026, 2:45pm UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511 "2026-10-27T14:45:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FranciscoTorres](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/franciscotorres/32/8859_2.png) [@FranciscoTorres](https://forum.glyphsapp.com/u/FranciscoTorres)\
**Post date:** [October 27, 2026, 2:45pm UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511/1 "2026-10-27T14:45:57Z")

</div>

For some reason i’m getting this error on some Font Bakery QA tests.

From what I can check, Glyphs should be counting 532 and I just get 493 on the hhea table.

 ![Screenshot 2026-10-27 at 14.39.55](https://forum.glyphsapp.com/uploads/default/original/3X/b/f/bf92c4e311a302a286c5565c3536f296ecd42501.png)

I believe it is related with the comb glyphs, but I can’t figure why this is happening. Glyph names and unicodes are correct.

What may be the issue?

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [October 27, 2026, 9:57pm UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511/2 "2026-10-27T21:57:06Z")

</div>

It means that the last glyphs all have the same width. Only the first one of those needs to have an entry in the hmtx (horizontal metrics) table. It’s not really an error.

---

<div class="post-metadata">

**Author:** ![jkutilek](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/jkutilek/32/29173_2.png) [@jkutilek](https://forum.glyphsapp.com/u/jkutilek)\
**Post date:** [October 28, 2026, 8:36pm UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511/3 "2026-10-28T20:36:39Z")

</div>

I wasn’t aware that the “[Recommendations](https://learn.microsoft.com/en-us/typography/opentype/spec/recom#hmtx-table)” appendix to the OpenType spec says that

> OpenType fonts that include CFF data must set numberOfHMetrics equal to the number of glyphs in the font and therefore cannot use the “repeat last width” optimization normally available within the ‘hmtx’ table.

If that’s the case, Glyphs should enforce that the hmtx table (and hhea.numberOfHMetrics) is written according to the recommendations. But maybe it’s not really a problem, and the recommendations are too strict or outdated?

In any case, @FranciscoTorres if you add a glyph at the end of the font that has a different width than the next-to-last glyph, the issue should be avoided.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [October 28, 2026, 9:07pm UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511/4 "2026-10-28T21:07:56Z")

</div>

Good to know. I’ll fix it.

---

<div class="post-metadata">

**Author:** ![FranciscoTorres](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/franciscotorres/32/8859_2.png) [@FranciscoTorres](https://forum.glyphsapp.com/u/FranciscoTorres)\
**Post date:** [October 29, 2026, 10:52am UTC](https://forum.glyphsapp.com/t/mismatch-in-number-of-glyphs-between-the-hmtx-table-and-the-cff-table/37511/6 "2026-10-29T10:52:58Z")

</div>

Thanks @jkutilek . It works.

It’s strange because i’m used to export a lot of projects with this glyphOrder and never had this Fail in the past. Maybe it’s from the Glyphs version idk.

@GeorgSeifert FYI it was Glyphs 3.5 (3532).
