summaryrefslogtreecommitdiff
path: root/include/mupdf/fitz/context.h
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-04-12 17:20:25 +0100
committerRobin Watts <robin.watts@artifex.com>2016-04-26 15:15:43 +0100
commit4ecec105b46a096bc2da097003ff0f3e9d4473a6 (patch)
tree50490dd6f3fd77b717955fab2ca910a4b6cc92d0 /include/mupdf/fitz/context.h
parent26f4d19a9a575eb44a6fac44c3a991beee8b589d (diff)
downloadmupdf-4ecec105b46a096bc2da097003ff0f3e9d4473a6.tar.xz
Allow text/graphics aa levels to be controlled separately.
Diffstat (limited to 'include/mupdf/fitz/context.h')
-rw-r--r--include/mupdf/fitz/context.h35
1 files changed, 33 insertions, 2 deletions
diff --git a/include/mupdf/fitz/context.h b/include/mupdf/fitz/context.h
index 37bcd5ed..789efc0a 100644
--- a/include/mupdf/fitz/context.h
+++ b/include/mupdf/fitz/context.h
@@ -213,12 +213,13 @@ void *fz_user_context(fz_context *ctx);
/*
fz_aa_level: Get the number of bits of antialiasing we are
- using. Between 0 and 8.
+ using (for graphics). Between 0 and 8.
*/
int fz_aa_level(fz_context *ctx);
/*
- fz_set_aa_level: Set the number of bits of antialiasing we should use.
+ fz_set_aa_level: Set the number of bits of antialiasing we should
+ use (for both text and graphics).
bits: The number of bits of antialiasing to use (values are clamped
to within the 0 to 8 range).
@@ -226,6 +227,36 @@ int fz_aa_level(fz_context *ctx);
void fz_set_aa_level(fz_context *ctx, int bits);
/*
+ fz_text_aa_level: Get the number of bits of antialiasing we are
+ using for text. Between 0 and 8.
+*/
+int fz_text_aa_level(fz_context *ctx);
+
+/*
+ fz_set_text_aa_level: Set the number of bits of antialiasing we
+ should use for text.
+
+ bits: The number of bits of antialiasing to use (values are clamped
+ to within the 0 to 8 range).
+*/
+void fz_set_text_aa_level(fz_context *ctx, int bits);
+
+/*
+ fz_graphics_aa_level: Get the number of bits of antialiasing we are
+ using for graphics. Between 0 and 8.
+*/
+int fz_graphics_aa_level(fz_context *ctx);
+
+/*
+ fz_set_graphics_aa_level: Set the number of bits of antialiasing we
+ should use for graphics.
+
+ bits: The number of bits of antialiasing to use (values are clamped
+ to within the 0 to 8 range).
+*/
+void fz_set_graphics_aa_level(fz_context *ctx, int bits);
+
+/*
fz_user_css: Get the user stylesheet source text.
*/
const char *fz_user_css(fz_context *ctx);