comefrom: <doocs>1618.Maximum Font to Fit a Sentence in a Screen_1.py
code: def check(text, fontSize, w, h, fontInfo) -> bool:
      if fontInfo.getHeight(fontSize) > h:
          return False
      width = 0
      for ch in text:
          width += fontInfo.getWidth(fontSize, ch)
          if width > w:
              return False
      return True
masked: def sample_funcname ( var_0 , var_1 , var_2 , var_3 , var_4 ) -> bool :
      if var_4.getHeight ( var_1 ) > var_3 :
          return False
      var_9 = 0
      for var_10 in var_0 :
          var_9 += var_4.getWidth ( var_1 , var_10 )
          if var_9 > var_2 :
              return False
      return True
  