summaryrefslogtreecommitdiff
path: root/include/freetype/ftcache.h
diff options
context:
space:
mode:
authorDavid Turner <david@freetype.org>2000-08-29 16:04:28 +0000
committerDavid Turner <david@freetype.org>2000-08-29 16:04:28 +0000
commitf96983e0032cf4c197fa3a7624ac1ef771779438 (patch)
tree62252fcf9afddea87bd067104a65254470316078 /include/freetype/ftcache.h
parenta84d72d1fc998ac57fe7434646eb059f9b6f144f (diff)
downloadfreetype2-f96983e0032cf4c197fa3a7624ac1ef771779438.tar.gz
fixed some bugs in the caching sub-system and improved
its API to enable many kinds of glyph images.. (note that the "ftview" program has been changed to use the caching sub-system, "ftmulti" and "ftstring" should come soon).
Diffstat (limited to 'include/freetype/ftcache.h')
-rw-r--r--include/freetype/ftcache.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/include/freetype/ftcache.h b/include/freetype/ftcache.h
index e4c100025..6f7d9e987 100644
--- a/include/freetype/ftcache.h
+++ b/include/freetype/ftcache.h
@@ -318,12 +318,26 @@
/* <Note> */
/* Other types may be defined in the future. */
/* */
+
+#define FTC_IMAGE_FORMAT(x) ((x) & 7)
+
typedef enum FTC_Image_Type_
{
- ftc_image_mono = 0, /* monochrome bitmap */
- ftc_image_grays, /* anti-aliased bitmap */
- ftc_image_outline, /* scaled outline */
- ftc_image_master_outline /* original outline */
+ ftc_image_format_bitmap = 0,
+ ftc_image_format_outline = 1,
+
+ ftc_image_flag_monochrome = 16,
+ ftc_image_flag_unhinted = 32,
+ ftc_image_flag_autohinted = 64,
+ ftc_image_flag_unscaled = 128,
+ ftc_image_flag_no_sbits = 256,
+
+ ftc_image_mono = ftc_image_format_bitmap |
+ ftc_image_flag_monochrome, /* monochrome bitmap */
+
+ ftc_image_grays = ftc_image_format_bitmap, /* anti-aliased bitmap */
+
+ ftc_image_outline = ftc_image_format_outline /* scaled outline */
} FTC_Image_Type;