diff options
author | Roozbeh Pournader <roozbeh@google.com> | 2015-01-13 08:50:27 -0800 |
---|---|---|
committer | James Godfrey-Kittle <jamesgk@google.com> | 2015-04-16 12:16:25 -0700 |
commit | 36623f13d922461c897fe0ae1ff550a073385329 (patch) | |
tree | 9339ab434222da3393491673ea12090de381495b /third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py | |
parent | 9fc4898c2338e4b9bb028171f5f8492f01879fbe (diff) |
Add FreeType python bindings to third_party.
Diffstat (limited to 'third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py')
-rw-r--r-- | third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py b/third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py new file mode 100644 index 0000000..2de7bb7 --- /dev/null +++ b/third_party/freetype-py/freetype/ft_enums/ft_glyph_bbox_modes.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# ----------------------------------------------------------------------------- +# +# FreeType high-level python API - Copyright 2011-2012 Nicolas P. Rougier +# Distributed under the terms of the new BSD license. +# +# ----------------------------------------------------------------------------- +""" +The mode how the values of FT_Glyph_Get_CBox are returned. + +FT_GLYPH_BBOX_UNSCALED + + Return unscaled font units. + +FT_GLYPH_BBOX_SUBPIXELS + + Return unfitted 26.6 coordinates. + +FT_GLYPH_BBOX_GRIDFIT + + Return grid-fitted 26.6 coordinates. + +FT_GLYPH_BBOX_TRUNCATE + + Return coordinates in integer pixels. + +FT_GLYPH_BBOX_PIXELS + + Return grid-fitted pixel coordinates. +""" +FT_GLYPH_BBOX_MODES = {'FT_GLYPH_BBOX_UNSCALED' : 0, + 'FT_GLYPH_BBOX_SUBPIXELS' : 0, + 'FT_GLYPH_BBOX_GRIDFIT' : 1, + 'FT_GLYPH_BBOX_TRUNCATE' : 2, + 'FT_GLYPH_BBOX_PIXELS' : 3} +globals().update(FT_GLYPH_BBOX_MODES) |