added a new glyph image format: ft_glyph_format_plotter for plotter-like vectorial images made of opened paths.. (seen in Windows font files as well as some Type 1 fonts with unusual PaintType)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/include/ftimage.h b/include/ftimage.h
index f18174b..565109c 100644
--- a/include/ftimage.h
+++ b/include/ftimage.h
@@ -468,6 +468,11 @@
* their own format.
*
* <Fields>
+ * ft_glyph_format_composite :: the glyph image is a composite of several
+ * other images. This glyph format is _only_
+ * used with the FT_LOAD_FLAG_NO_RECURSE flag
+ * (XXX: Which is currently iunimplemented)
+ *
* ft_glyph_format_bitmap :: the glyph image is a bitmap, and can
* be described as a FT_Bitmap
*
@@ -475,6 +480,10 @@
* made of bezier control points, and can
* be described as a FT_Outline
*
+ * ft_glyph_format_plotter :: the glyph image is a vectorial image
+ * made of plotter lines (some T1 fonts like
+ * Hershey contain glyph in this format).
+ *
***********************************************************************/
typedef enum FT_Glyph_Tag_
@@ -482,7 +491,8 @@
ft_glyph_format_none = 0,
ft_glyph_format_composite = FT_IMAGE_TAG('c','o','m','p'),
ft_glyph_format_bitmap = FT_IMAGE_TAG('b','i','t','s'),
- ft_glyph_format_outline = FT_IMAGE_TAG('o','u','t','l')
+ ft_glyph_format_outline = FT_IMAGE_TAG('o','u','t','l'),
+ ft_glyph_format_plotter = FT_IMAGE_TAG('p','l','o','t')
} FT_Glyph_Tag;