summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/ft_style_flags.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/freetype-py/freetype/ft_enums/ft_style_flags.py')
-rw-r--r--third_party/freetype-py/freetype/ft_enums/ft_style_flags.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/third_party/freetype-py/freetype/ft_enums/ft_style_flags.py b/third_party/freetype-py/freetype/ft_enums/ft_style_flags.py
new file mode 100644
index 0000000..e0032c9
--- /dev/null
+++ b/third_party/freetype-py/freetype/ft_enums/ft_style_flags.py
@@ -0,0 +1,28 @@
+#!/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.
+#
+# -----------------------------------------------------------------------------
+"""
+A list of bit-flags used to indicate the style of a given face. These are
+used in the 'style_flags' field of FT_FaceRec.
+
+
+FT_STYLE_FLAG_ITALIC
+
+ Indicates that a given face style is italic or oblique.
+
+
+FT_STYLE_FLAG_BOLD
+
+ Indicates that a given face is bold.
+"""
+FT_STYLE_FLAGS = {'FT_STYLE_FLAG_ITALIC' : 1,
+ 'FT_STYLE_FLAG_BOLD' : 2 }
+globals().update(FT_STYLE_FLAGS)
+
+
+