summaryrefslogtreecommitdiff
path: root/font
diff options
context:
space:
mode:
authorwl <wl>2004-10-08 07:08:07 +0000
committerwl <wl>2004-10-08 07:08:07 +0000
commite751604d543e17be25b564894075c397e82d925d (patch)
tree4afd2e26fa18236fd221f9ce699fa6dfeaa512f9 /font
parent6115f62ca1a9f4099cb8e15f0a75f90b0ab93672 (diff)
downloadgroff-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 'font')
-rw-r--r--font/devhtml/DESC.proto2
-rw-r--r--font/devhtml/Makefile.sub2
2 files changed, 2 insertions, 2 deletions
diff --git a/font/devhtml/DESC.proto b/font/devhtml/DESC.proto
index 9a2fbe57..db407f7b 100644
--- a/font/devhtml/DESC.proto
+++ b/font/devhtml/DESC.proto
@@ -5,7 +5,7 @@ unitwidth 10
sizes 1-1000 0
fonts 9 R I B BI CR CI CB CBI S
tcommand
-html
+unscaled_charwidths
postpro post-grohtml
prepro pre-grohtml
use_charnames_in_special
diff --git a/font/devhtml/Makefile.sub b/font/devhtml/Makefile.sub
index 8afe0376..474c0f28 100644
--- a/font/devhtml/Makefile.sub
+++ b/font/devhtml/Makefile.sub
@@ -31,4 +31,4 @@ DESC: DESC.proto
-e "s/^vert .*$$/vert `expr $(RES) / $(LPI)`/" \
-e "s/^fonts .*$$/fonts `set $(FONTS); echo $$#` $(FONTS)/" \
$(srcdir)/DESC.proto >$@
-
+ @echo "image_generator $(GHOSTSCRIPT)" >> $@