diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 01:18:48 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 01:18:48 +0200 |
commit | dabb6740d535e9f6abb1bd33f892cf5f7aeac3f0 (patch) | |
tree | 5868b60dfbfb45a586a7970090ed15359ed7df04 /apps | |
parent | 0dbfc980afc9d318a1fcb68994621006240ce205 (diff) | |
download | mupdf-dabb6740d535e9f6abb1bd33f892cf5f7aeac3f0.tar.xz |
Add special case non-aa scan converter with accompanying blit functions.
Also turn on font hinting when rendering non-aa text.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/x11_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c index 99343988..fd689736 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -514,6 +514,7 @@ static void onmouse(int x, int y, int btn, int modifiers, int state) static void usage(void) { fprintf(stderr, "usage: mupdf [options] file.pdf [page]\n"); + fprintf(stderr, "\t-b -\tset anti-aliasing quality in bits (0=off, 8=best)\n"); fprintf(stderr, "\t-p -\tpassword\n"); fprintf(stderr, "\t-r -\tresolution\n"); fprintf(stderr, "\t-A\tdisable accelerated functions\n"); @@ -577,13 +578,14 @@ int main(int argc, char **argv) int accelerate = 1; int fd; - while ((c = fz_getopt(argc, argv, "p:r:A")) != -1) + while ((c = fz_getopt(argc, argv, "p:r:b:A")) != -1) { switch (c) { case 'p': password = fz_optarg; break; case 'r': resolution = atoi(fz_optarg); break; case 'A': accelerate = 0; break; + case 'b': fz_set_aa_level(atoi(fz_optarg)); break; default: usage(); } } |