index_of method

index_of

Returns an index of the specified rule in the collection.

Returns

Index of a font or -1 if font not found in list.

def index_of(self, font_name):
    ...
ParameterTypeDescription
font_namestrFont’s name to find.

See Also