class_docstr: the OS/2 table
class_docstr_tok: ["the","OS\/2","table"]
code: def recalcCodePageRanges(self, ttFont, pruneOnly=False):
      unicodes = set()
      for table in ttFont["cmap"].tables:
          if table.isUnicode():
              unicodes.update(table.cmap.keys())
      bits = calcCodePageRanges(unicodes)
      if pruneOnly:
          bits &= self.getCodePageRanges()
      # when no codepage ranges can be enabled, fall back to enabling bit 0
      # (Latin 1) so that the font works in MS Word:
      # https://github.com/googlei18n/fontmake/issues/468
      if not bits:
          bits = {0}
      self.setCodePageRanges(bits)
      return bits
  
imports: from fontTools.misc import sstruct
  from fontTools.misc.roundTools import otRound
  from fontTools.misc.textTools import safeEval, num2binary, binary2num
  from fontTools.ttLib.tables import DefaultTable
  import bisect
  import logging
label_desc: Use image node_id 17 for calling the table_O_S_2f_2 obj's underlying member method code with example usage: obj.recalcCodePageRanges(ttFont, pruneOnly) and returns: bits