[Indic-computing-cvs-logs] cvs commit: src/py-freetype freetype.pyx pyft2test.py
Status: Alpha
Brought to you by:
jkoshy
|
From: Joseph K. <jk...@us...> - 2003-05-12 08:48:11
|
jkoshy 2003/05/12 01:48:09 PDT
Modified files:
py-freetype freetype.pyx pyft2test.py
Log:
- Correct function prototypes for FT_RoundFix, FT_CeilFix, FT_FloorFix.
Correct typo in declaration for FT_DivFix.
- Define `__repr__', '__add__', '__sub__', '__mul__', and '__div__'
methods for integral types.
- Add a new accessor attribute 'bits', that gets the internal representation
of an FT_Fixed or FT_F26Dot6 object.
- Add 'round', 'ceil', 'floor', 'muldiv' functions to FT_Fixed objects.
Provide alternate implemenations for '__mul__' and '__div__' that
use the FreeType API for FT_Fixed objects.
- Support for an FT_Angle class that wraps a FreeType FT_Angle object.
These support the expected 'sin', 'cos', 'tan' operations in addition
to the ones supported by other FT_ "integral" types.
- Make FT_ANGLE_[n]PI[m] constants available as top-level Python objects
- Add test cases for all new functionality.
Revision Changes Path
1.9 +145 -16 src/py-freetype/freetype.pyx
1.8 +148 -5 src/py-freetype/pyft2test.py
|