shithub: freetype+ttf2subf

Download patch

ref: 5eaadfcda64395ee0fc4809be152de9f2150a03b
parent: 86fbfb505943731dd04763b6cf64a60c6ee066d1
author: David Turner <[email protected]>
date: Wed Feb 2 07:47:44 EST 2000

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)

git/fs: mount .git/fs: mount/attach disallowed
--- 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;