code: def get_most_common_font_pts(mentions, font_stat):
      
      log = logging.getLogger(__name__)
      try:
          # default min font size of 1 pt in case no font present
          most_common_font_size = font_stat.most_common(1)[0][0]
  
          count = 0.01  # avoid division by zero
          height_sum = 0.02  # default to pts 2.0
          for m in mentions:
              if m.font_size == most_common_font_size:
                  height_sum += m.height
                  count += 1
          return height_sum / count
  
      except IndexError:
          log.info("No text found on page. Default most_common_font_pts to 2.0")
          return 2.0
docs: font_stat: Counter object of font sizes