diff options
author | wl <wl> | 2004-10-08 07:08:07 +0000 |
---|---|---|
committer | wl <wl> | 2004-10-08 07:08:07 +0000 |
commit | e751604d543e17be25b564894075c397e82d925d (patch) | |
tree | 4afd2e26fa18236fd221f9ce699fa6dfeaa512f9 /src/include | |
parent | 6115f62ca1a9f4099cb8e15f0a75f90b0ab93672 (diff) | |
download | groff-e751604d543e17be25b564894075c397e82d925d.tar.gz |
* src/include/font.h (font): New member function
`get_image_generator'.
New variables `unscaled_charwidths' and `image_generator'.
* src/libs/libgroff/font.cpp (font::get_width): Always return the
character's unscaled width if `font::unscaled_charwidths' is set.
(font::get_image_generator): New function.
(font::load_desc): Check the `unscaled_charwidths' and
`image_generator' keywords.
* src/libs/libgroff/fontfile.cpp: Initialize
`font::unscaled_charwidths' and `font::image_generator'.
* font/devhtml/DESC.proto: s/html/unscaled_charwidths/.
* font/devhtml/Makefile.sub (DESC): Set `image_generator' keyword.
* man/groff_font.man: Document `unscaled_charwidths' and
`image_generator'.
* src/preproc/html/pre-html.cpp: Include `device.h'.
(image_gen): New global variable.
(imageList::createPage): Use `image_gen'.
(main): Use `image_generator' keyword.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/font.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/font.h b/src/include/font.h index 987cf6cc..856bcd7b 100644 --- a/src/include/font.h +++ b/src/include/font.h @@ -54,6 +54,7 @@ public: const char *get_special_device_encoding(int index); const char *get_name(); const char *get_internal_name(); + const char *get_image_generator(); static int scan_papersize(const char *, const char **, double *, double *); @@ -77,8 +78,10 @@ public: static int spare2; static int sizescale; static int tcommand; + static int unscaled_charwidths; static int pass_filenames; static int use_charnames_in_special; + static const char *image_generator; static const char **font_name_table; static const char **style_table; |