def __init__(self, path=None, **kwargs):
if path is None:<EOL><INDENT>if sys.platform == "<STR_LIT:win32>":<EOL><INDENT>name = "<STR_LIT>"<EOL><DEDENT>elif sys.platform == "<STR_LIT>":<EOL><INDENT>name = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>name = "<STR_LIT>"<EOL><DEDENT>path = os.path.join(os.path.dirname(__file__), name)<EOL>if not os.path.isfile(path):<EOL><INDENT>path = find_library("<STR_LIT>")<EOL>if not path:<EOL><INDENT>raise OSError("<STR_LIT>" % name)<EOL><DEDENT><DEDENT><DEDENT>self.lib = lib = cdll.LoadLibrary(path, **kwargs)<EOL>self.path = path<EOL>lib.TTF_autohint_version.argtypes = [POINTER(c_int)] * <NUM_LIT:3><EOL>lib.TTF_autohint_version.restype = None<EOL>_major, _minor, _revision = c_int(), c_int(), c_int()<EOL>lib.TTF_autohint_version(_major, _minor, _revision)<EOL>self.major = _major.value<EOL>self.minor = _minor.value<EOL>self.revision = _revision.value<EOL>lib.TTF_autohint_version_string.restype = c_char_p<EOL>version_string = lib.TTF_autohint_version_string().decode('<STR_LIT:ascii>')<EOL>self.version_string = version_string<EOL>
Initialize a new handle to the libttfautohint shared library.
        If no path is provided, by default the embedded shared library that
        comes with the binary wheel is loaded first. If this is not found,
        then `ctypes.util.find_library` function is used to search in the
        system's default search paths.