diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-08-03 16:01:54 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-08-03 16:30:23 -0400 |
commit | 3ef436bf8df0890280547ae392be03e4789a8a89 (patch) | |
tree | 43d7920950b51d0c968cf78a8e87a94568c66526 /utils/viewer-render.c | |
parent | 7d3e528978ee1a1b5f1e12eaa09ad13fa8b13606 (diff) | |
download | pango-3ef436bf8df0890280547ae392be03e4789a8a89.tar.gz |
pango-view: Add a --subpixel-positions option
This lets us explore the influence of subpixel
positioning in various contexts without relying
on gtk applications.
Diffstat (limited to 'utils/viewer-render.c')
-rw-r--r-- | utils/viewer-render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/viewer-render.c b/utils/viewer-render.c index 36cee596..82b30f05 100644 --- a/utils/viewer-render.c +++ b/utils/viewer-render.c @@ -63,6 +63,7 @@ HintMode opt_hinting = HINT_DEFAULT; HintMetrics opt_hint_metrics = HINT_METRICS_DEFAULT; SubpixelOrder opt_subpixel_order = SUBPIXEL_DEFAULT; Antialias opt_antialias = ANTIALIAS_DEFAULT; +gboolean opt_subpixel_positions = FALSE; PangoWrapMode opt_wrap = PANGO_WRAP_WORD_CHAR; gboolean opt_wrap_set = FALSE; static const char *opt_pangorc = NULL; /* Unused */ @@ -800,6 +801,8 @@ parse_options (int argc, char *argv[]) "Antialiasing", "none/gray/subpixel"}, {"hint-metrics", 0, 0, G_OPTION_ARG_CALLBACK, &parse_hint_metrics, "Hint metrics", "on/off"}, + { "subpixel-positions", 0, 0, G_OPTION_ARG_NONE, &opt_subpixel_positions, + "Subpixel positioning", NULL}, {"subpixel-order", 0, 0, G_OPTION_ARG_CALLBACK, &parse_subpixel_order, "Subpixel order", "rgb/bgr/vrgb/vbgr"}, {"indent", 0, 0, G_OPTION_ARG_INT, &opt_indent, |