1. pygame
  2. Untitled project
  3. pygame

Source

pygame / src / doc / freetype_doc.h

Author Commit Message Date Builds
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
add bitmap size introspection to pygame.freetype.Font (toward Issue #75) To the freetype.Font type, add the fixed_sizes property and the get_sizes() method. For unit tests on the new features, add two new fonts to pygame/tests/fixtures/fonts: PyGameMono.otf and PyGameMono-8.bdf. PyGameMono.otf is a proper fixed-width outline font. It also contains two embedded bitmaps. PyGameMono-8.bdf is generated from one of those bitmaps. This changeset leaves pygame.freetype.Font …
Lenard Lindstrom
Clean up the freetype module doc page Correct spelling. Make method and attribute doc strings more consistent with the Python standard. Some rewording of awkward sentences. The doc page still needs a good final edit. TODO: consistent reST markup, standardized function call prototypes, more formal method argument descriptions.
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
Enable pygame._freetype extension module build by default Add pygame.freetype page to the docs. Add a mechanism by which pygame.ftfont can be loaded in place of pygame.font.
Lenard Lindstrom
Add pygame.freetype.Face.render_raw_to method and enhance render_raw (refs #75) The render_raw_to method draws glyphs in an array object exporting the array struct interface. The render_raw method now has an 'invert' argument, which makes the foreground alpha transparent, background opaque. Additional unit tests needed.
Lenard Lindstrom
freetype.Face.render: Split out Face.render_to method to blit to an existing surface
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: 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 doc: save some changes
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
freetype: tweaks to resolution control
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
Run makeref.py on doc changes
Lenard Lindstrom
pygame.freetype: - fix prebuilt creation so includes all freetype2 header files - make surrogates option True by default so is more consistent between UCS-2 and UCS-4 Pythons. TODO: - surrogate pair handling could still be better - maybe a ucs_ver argument that does surrogate pair decoding when 4, and surrogate pair encoding when 2 (default 4).
Lenard Lindstrom
freetype module: - have Font.render return (surface, rect), render_raw (bytes, (w, h))
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))