diff options
author | wl <wl> | 2006-07-12 19:31:08 +0000 |
---|---|---|
committer | wl <wl> | 2006-07-12 19:31:08 +0000 |
commit | d0aaf996772a9b623023b45a47fa6ea656d64872 (patch) | |
tree | 5b28076dc0fb537b632079ebeb4a4875df4bfefa /man/groff.man | |
parent | c5116ee8cc5889b23b1049ff702f19b828026af2 (diff) | |
download | groff-d0aaf996772a9b623023b45a47fa6ea656d64872.tar.gz |
Add a request `.fzoom' and a number register `.zoom' to magnify
fonts.
* src/include/font.h (font): Add member variable `zoom'.
Add member functions `set_zoom' and `get_zoom'.
Remove `static' attribute from `scale' member function.
* src/libs/libgroff/font.cpp (font::font): Updated.
(scale_round): New version with three parameters to handle zoom
factor.
(font::scale, font::get_width): Handle zoom factor.
(font::set_zoom, font::get_zoom): New functions.
(font::load): Handle `zoom' while computing `space_width'.
* src/roff/troff/env.h: Declare `env_get_zoom'.
(environment): Add member function `get_zoom'.
* src/roff/troff/env.cpp (environment::get_zoom): New function.
(init_env_requests): Initialize `.zoom' register.
* src/roff/troff/node.cpp (font_info): New member functions
`set_zoom' and `get_zoom'.
(tfont): New member function `get_zoom'.
(env_get_zoom): New function.
(troff_output_file::set_font): Handle zoom factor.
(font_zoom_request): New function.
(init_node_requests): Initialize `fzoom' request.
* docs/groff.texinfo (Changing Fonts), man/groff.man,
man/groff_diff.man, NEWS: Document `fzoom' request and `.zoom'
register.
* src/roff/troff/TODO: Updated.
Diffstat (limited to 'man/groff.man')
-rw-r--r-- | man/groff.man | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/man/groff.man b/man/groff.man index f636aaac..921bed0e 100644 --- a/man/groff.man +++ b/man/groff.man @@ -2,7 +2,7 @@ .ig groff.man -Last update: 26 Apr 2006 +Last update: 11 Jul 2006 This file is part of groff, the GNU roff type-setting system. @@ -1644,6 +1644,15 @@ Translate to .IR font2 . . +.REQ .fzoom font +Don't magnify +.IR font . +. +.REQ .fzoom font zoom +Set zoom factor for +.I font +(in multiples of 1/1000th). +. .REQ .gcolor Set glyph color to previous glyph color. . @@ -3316,7 +3325,7 @@ Current vertical line spacing. Available vertical resolution in basic units. . .REG .vpt -1\~ if vertical position traps are enabled, 0\~otherwise. +1\~if vertical position traps are enabled, 0\~otherwise. . .REG .w Width of previous character. @@ -3337,6 +3346,10 @@ The revision number of groff. Name of current diversion. .PD . +.REG .zoom +Zoom factor for current font (in multiples of 1/1000th; zero if no +magnification). +. . .\" -------------------------------------------------------------------- .SS "Writable Registers" |