Commits

Anonymous committed 62b2e17

Added pygam2.font unittest stubs.

Comments (0)

Files changed (3)

 * freetype: description/markup language for rendering text (like e.g. pango
    has)?
 
-
 Things to ADD:
 ==============
 * (re)add tests

doc/src/examples.rst

 | pygame2.examples.py2exe_setup      | Win32 standalone executable creation   |
 |                                    | example using Pygame2.                 |
 +------------------------------------+----------------------------------------+
+| pygame2.examples.freetype.sdlfont  | Simple freetype example                |
++------------------------------------+----------------------------------------+
 | pygame2.examples.physics.simple    | Simple physics example                 |
 +------------------------------------+----------------------------------------+
 | pygame2.examples.sdl.cdrom         | Demonstrates the features of the       |

test/font_test.py

+try:
+    import pygame2.test.pgunittest as unittest
+except:
+    import pgunittest as unittest
+
+import pygame2
+import pygame2.font as font
+
+class FontTest (unittest.TestCase):
+    def todo_test_pygame2_font_find_font(self):
+
+        # __doc__ (as of 2009-06-26) for pygame2.font.find_font:
+
+        # find_fonts(name, bold=False, italic=False, ftype=None) -> str, bool, bool
+        # 
+        # Finds a font matching a certain family or font filename best.
+        # 
+        # Tries to find a font that matches 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*
+        # is an optional font filetype argument to request specific font file
+        # types, such as bdf or ttf fonts.
+
+        self.fail ()
+
+    def todo_test_pygame2_font_find_fonts(self):
+
+        # __doc__ (as of 2009-06-26) for pygame2.font.find_fonts:
+
+        # 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 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
+
+        self.fail() 
+
+    def todo_test_pygame2_font_get_families(self):
+
+        # __doc__ (as of 2009-06-26) for pygame2.font.get_families:
+
+        # get_families () -> [str, str, str, ...]
+        # 
+        # Gets the list of available font families.
+
+        self.fail() 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.