summaryrefslogtreecommitdiff
path: root/third_party/freetype-py/freetype/ft_enums/tt_platforms.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/freetype-py/freetype/ft_enums/tt_platforms.py')
-rw-r--r--third_party/freetype-py/freetype/ft_enums/tt_platforms.py63
1 files changed, 63 insertions, 0 deletions
diff --git a/third_party/freetype-py/freetype/ft_enums/tt_platforms.py b/third_party/freetype-py/freetype/ft_enums/tt_platforms.py
new file mode 100644
index 0000000..7b3c397
--- /dev/null
+++ b/third_party/freetype-py/freetype/ft_enums/tt_platforms.py
@@ -0,0 +1,63 @@
+#!/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 valid values for the 'platform_id' identifier code in FT_CharMapRec
+and FT_SfntName structures.
+
+
+TT_PLATFORM_APPLE_UNICODE
+
+ Used by Apple to indicate a Unicode character map and/or name entry. See
+ TT_APPLE_ID_XXX for corresponding 'encoding_id' values. Note that name
+ entries in this format are coded as big-endian UCS-2 character codes only.
+
+
+TT_PLATFORM_MACINTOSH
+
+ Used by Apple to indicate a MacOS-specific charmap and/or name entry. See
+ TT_MAC_ID_XXX for corresponding 'encoding_id' values. Note that most TrueType
+ fonts contain an Apple roman charmap to be usable on MacOS systems (even if
+ they contain a Microsoft charmap as well).
+
+
+TT_PLATFORM_ISO
+
+ This value was used to specify ISO/IEC 10646 charmaps. It is however now
+ deprecated. See TT_ISO_ID_XXX for a list of corresponding 'encoding_id'
+ values.
+
+
+TT_PLATFORM_MICROSOFT
+
+ Used by Microsoft to indicate Windows-specific charmaps. See TT_MS_ID_XXX for
+ a list of corresponding 'encoding_id' values. Note that most fonts contain a
+ Unicode charmap using (TT_PLATFORM_MICROSOFT, TT_MS_ID_UNICODE_CS).
+
+
+TT_PLATFORM_CUSTOM
+
+ Used to indicate application-specific charmaps.
+
+
+TT_PLATFORM_ADOBE
+
+ This value isn't part of any font format specification, but is used by
+ FreeType to report Adobe-specific charmaps in an FT_CharMapRec structure. See
+ TT_ADOBE_ID_XXX.
+"""
+
+TT_PLATFORMS = {
+ 'TT_PLATFORM_APPLE_UNICODE' : 0,
+ 'TT_PLATFORM_MACINTOSH' : 1,
+ 'TT_PLATFORM_ISO' : 2, # deprecated
+ 'TT_PLATFORM_MICROSOFT' : 3,
+ 'TT_PLATFORM_CUSTOM' : 4,
+ 'TT_PLATFORM_ADOBE' : 7} # artificial
+globals().update(TT_PLATFORMS)
+