<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def measure_string(self, text, fontname, fontsize, encoding=0):
 """Measure length of a string for a Base14 font."""

        return _fitz.Tools_measure_string(self, text, fontname, fontsize, encoding)