Commits

marcus  committed c4289dd

Minr doc fixes for pygam2.font.

  • Participants
  • Parent commits 3c6134a
  • Branches pgreloaded

Comments (0)

Files changed (2)

File doc/src/font.xml

 
   <example></example>
   <func name="find_font">
+    <call>find_fonts (name, bold=False, italic=False, ftype=None) -> [ (str, bool, bool), ... ]</call>
+    <desc>
+      Finds all fonts matching a certain family or font filename.
+
+      Tries to find all fonts that match the passed requirements best. The
+      *name* argument denotes a specific font or font family name. If multiple
+      fonts match that name, the *bold* and *italic* arguments are used to find
+      the fonts that match the requirements best. *ftype* is an optional font
+      filetype argument to request specific font file types, such as bdf or ttf
+      fonts.
+
+      All found fonts are returned as list
+    </desc>
+    <example></example>
+  </func>
+  <func name="find_font">
     <call>find_font (name, bold=False, italic=False, ftype=None) -> str, bool, bool</call>
     <desc>
       Finds a font matching a certain family or font filename.
     return list (_families.keys ())
 
 def find_fonts (name, bold=False, italic=False, ftype=None):
-    """find_fonts(name, bold=False, italic=False, ftype=None) -> [ str, bool, bool, ... ]
+    """find_fonts(name, bold=False, italic=False, ftype=None) -> [ (str, bool, bool), ... ]
 
     Finds all fonts matching a certain family or font filename.
 
     Tries to find all fonts that match the passed requirements best. The
     *name* argument denotes a specific font or font family name. If
     multiple fonts match that name, the *bold* and *italic* arguments
-    are used to find a font that matches the requirements best. *ftype*
+    are used to find the fonts that match the requirements best. *ftype*
     is an optional font filetype argument to request specific font file
     types, such as bdf or ttf fonts.