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 | |
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')
-rw-r--r-- | man/groff.man | 17 | ||||
-rw-r--r-- | man/groff_diff.man | 20 |
2 files changed, 34 insertions, 3 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" diff --git a/man/groff_diff.man b/man/groff_diff.man index a33710fe..4cfed149 100644 --- a/man/groff_diff.man +++ b/man/groff_diff.man @@ -3,7 +3,7 @@ .ig groff_diff.man -Last update : 04 Apr 2006 +Last update : 11 Jul 2006 This file is part of groff, the GNU roff type-setting system. It is the source of the man-page groff_diff(7). @@ -1494,6 +1494,19 @@ then font is not translated. . .TP +.BI .fzoom\ f\ zoom +Set zoom factor +.I zoom +for font\~\c +.IR f . +.I zoom +must a non-negative integer multiple of 1/1000th. +If it is missing or is equal to zero, it means the same as 1000, namely no +magnification. +.I f\c +\~must be a real font name, not a style. +. +.TP .BI .gcolor\ c Set the glyph color to .IR c . @@ -2922,6 +2935,11 @@ contains\~03. The revision number of groff. . .TP +.B \[rs]n[.zoom] +The zoom value of the current font, in multiples of 1/1000th. +Zero if no magnification. +. +.TP .B \[rs]n[llx] .TQ .B \[rs]n[lly] |