code: def measure_string(self, text, fontname, fontsize, encoding=0):
          
          return _fitz.Tools_measure_string(self, text, fontname, fontsize, encoding)
docs: Measure length of a string for a Base14 font.