code: def removeTTGlyphOverlaps(
      glyphName: str,
      glyphSet: _TTGlyphMapping,
      glyfTable: _g_l_y_f.table__g_l_y_f,
      hmtxTable: _h_m_t_x.table__h_m_t_x,
      removeHinting: bool = True,
  ) -> bool:
      glyph = glyfTable[glyphName]
      # decompose composite glyphs only if components overlap each other
      if (
          glyph.numberOfContours > 0
          or glyph.isComposite()
          and componentsOverlap(glyph, glyphSet)
      ):
          path = skPathFromGlyph(glyphName, glyphSet)
  
          # remove overlaps
          path2 = _simplify(path, glyphName)
  
          # replace TTGlyph if simplified path is different (ignoring contour order)
          if {tuple(c) for c in path.contours} != {
              tuple(c) for c in path2.contours
          }:
              glyfTable[glyphName] = glyph = ttfGlyphFromSkPath(path2)
              # simplified glyph is always unhinted
              assert not glyph.program
              # also ensure hmtx LSB == glyph.xMin so glyph origin is at x=0
              width, lsb = hmtxTable[glyphName]
              if lsb != glyph.xMin:
                  hmtxTable[glyphName] = (width, glyph.xMin)
              return True
  
      if removeHinting:
          glyph.removeHinting()
      return False
  
file_path: catboost/contrib/python/fonttools/fontTools/ttLib/removeOverlaps.py
imports: import itertools
  import logging
  from typing import Callable, Iterable, Optional, Mapping
  from fontTools.misc.roundTools import otRound
  from fontTools.ttLib import ttFont
  from fontTools.ttLib.tables import _g_l_y_f
  from fontTools.ttLib.tables import _h_m_t_x
  from fontTools.pens.ttGlyphPen import TTGlyphPen
  import pathops
label_desc: Use image node_id 7 for calling a global function with example usage: removeTTGlyphOverlaps(glyphName, glyphSet, glyfTable, hmtxTable, removeHinting) and returns: False, True