Source

pygame / src / freetype.h

Author Commit Message Labels Comments Date
Lenard Lindstrom
add use_bitmap_strike property to pygame.freetype.Font (towards Issue #75) Allow the user to control whether or not bitmaps embedded in an outline font file are used. Also prevent using embedded bitmaps for rotated text or for styles strong and oblique.
Lenard Lindstrom
Apply issue #109 suggested bug fixes. Use the submitted patches as a guide to making x86_64 compatibility fixes. I decided to make font_index the correct type, long, rather than just correct the format string. For bufferproxy, use conditional compilation to choose the correct format string based on Python version. Thanks lifning and cgohlke.
Lenard Lindstrom
Change "face" back to "font", ( undoes part of changeset 6425e6865ce4 ) Go back to the standard definition of a computer font as a set of glyphs in a font file that can be scaled or otherwise transformed. The freetype2 module, on the other hand, uses idiosyncratic definitions of "font" and "face", where "face" means a font, and "font" a typeface.
Lenard Lindstrom
fix bug introduced into arrinter.py in r3208 that affects Pythons earlier than 2.7
Lenard Lindstrom
freetype: underline position is now adjustable, removing the need for underscore font.Font emulation style
Lenard Lindstrom
freetype: Some identifier refactoring. The strength of the strong and wide styles is now adjustable
Lenard Lindstrom
freetype: Font is now Face; its bold style is renamed strong to distinguish it from a bold font face in a distinct file.
Lenard Lindstrom
freetype: Personal style preferences. - Use blocks for all for, if, and while bodies. - In if conditions, use direct value checks when a function returns a binary state such as success or fail. - Replace NULL with null pointer literal 0. '0' as the null pointer value is formalized in C99. It has also been this way for some time in C++. And, 0 is used in CPython source to initialize PyTypeObject slots (see dictobject.c for an example).
Lenard Lindstrom
freetype: make code style more consistent with PEP 7
Lenard Lindstrom
freetype: more features for compatibility with font.Font. To fix: freetype.Font crashes under Python 3.2 when reading an open python file
Lenard Lindstrom
freetype.Font: Now supports (optional) font.Font style underline and bounding box
Lenard Lindstrom
freetype: some recent experiments; unit tests fail
Lenard Lindstrom
freetype: replace tab characters with spaces
Lenard Lindstrom
freetype: fix render bug introduced in r3176. Also, changed misleadingly named 'italic' style to 'oblique'.
Lenard Lindstrom
freetype: on an existing surface text can be rendered at the text's origin, which Font.render also returns
Lenard Lindstrom
freetype: add Font.path font file path attribute; add vertical argument to Font.__init__
Lenard Lindstrom
Many changes to freetype: - Fix an unsuspected glyph scaling bug (too big) - Allow user set resolution (as dots per inch) - Make UTF-16 surrogate pair control a Font attribute rather that a method argument - Add an italic transformation - fix rotation problems for horizontally rendered text (vertical text rotation not yet supported) - get_metrics now returns glyph metrics adjusted for bold, italic, and rotation - fix a bug…
Lenard Lindstrom
freetype once again passes its unit tests
Lenard Lindstrom
freetype module now renders, but bold, vertical, and underline do not work.
Lenard Lindstrom
Use capsule objects in preference to cobject objects. This allows Pygame to build an run from Python 3.2, which has to cobjects.
Lenard Lindstrom
freetype module: - make UTF-16 surrogate pair translation by Font.render, render_raw, get_size, and get_metrics optional. - update documents. TODO: - have Font.render return (surface, rect), render_raw (bytes, (w, h))
Lenard Lindstrom
freetype module: - more error handling: hopefully all malloc errors are caught - handle multiple calls to Font.__init__ (added tp_new function) - simplied _ftfont_getmetrics TODO: - update documentation - need better test fonts for SMP tests and fixed_width checking - enable module building by default