Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use floating-point -Tps "moveto" arguments to smooth out column and row | Kristaps Dzonsons | 2010-07-20 | 1 | -4/+4 | |
| | | | | misalignments. | |||||
* | correct lots of copyright notices; | Ingo Schwarze | 2010-07-13 | 1 | -1/+1 | |
| | | | | ok kristaps@ | |||||
* | Suppress duplicate "Page: 1 1" -Tps printing and instead relay on | Kristaps Dzonsons | 2010-07-05 | 1 | -5/+1 | |
| | | | | PS_NEWPAGE to do the job for us. Noted by Dillo. | |||||
* | gv(1) doesn't remember the last set font when displaying new pages, so | Kristaps Dzonsons | 2010-07-04 | 1 | -6/+24 | |
| | | | | | print it out for each new page. This also prevents superfluous printings of the font before the %%Page: comment has been displayed. | |||||
* | Set line-height to be 1.4em. Removed check for minimum margins that are no | Kristaps Dzonsons | 2010-07-04 | 1 | -18/+5 | |
| | | | | longer important. | |||||
* | Suppress printing blank eof pages in -Tps. Delay printing of Page: | Kristaps Dzonsons | 2010-07-04 | 1 | -9/+13 | |
| | | | | until actual text is ready to be displayed. | |||||
* | Suppress printing of newlines/space at start of new -Tps page. | Kristaps Dzonsons | 2010-07-04 | 1 | -15/+31 | |
| | | | | | Also renamed "psstate" -> "flags" (was wrongly implying some sort of state machine). | |||||
* | Backed out margin calculations in favour of much simpler rule of thumb: | Kristaps Dzonsons | 2010-07-04 | 1 | -15/+10 | |
| | | | | margins are 1/9 the length/width. | |||||
* | Auto-margins. Documented in mandoc.1. Also bumped line-height and made | Kristaps Dzonsons | 2010-07-04 | 1 | -12/+39 | |
| | | | | sure header and footer accomodate for said line-height. | |||||
* | Lint fixes. | Kristaps Dzonsons | 2010-07-02 | 1 | -0/+1 | |
| | ||||||
* | First, I'm defaulting to 11-point font, which renders much nicer (the | Kristaps Dzonsons | 2010-07-01 | 1 | -14/+40 | |
| | | | | | | | | | | | "Internet" vaguely suggests using 11- or 9-Point for serifed fonts). This verified on GNU/Linux, Mac OSX, Windows, and OpenBSD. Noted in mandoc.1. Then added a3, a4, a5, letter, legal, and custom page dimensions. These seem to be the main players. Noted in mandoc.1. Lintified the casting. | |||||
* | Now using Times AFM provided by Dillo. Verified on OpenBSD by me and Mac OSX | Kristaps Dzonsons | 2010-06-30 | 1 | -270/+270 | |
| | | | | by M. Deksters. | |||||
* | Correct dimensions for DocumentMedia. Noted by schwarze@, as gv(1) was | Kristaps Dzonsons | 2010-06-30 | 1 | -5/+4 | |
| | | | | puking on input. | |||||
* | Embedding Charter proportional-width glyphs. Nice-looking output. | Kristaps Dzonsons | 2010-06-30 | 1 | -288/+288 | |
| | ||||||
* | PostScript can now handle scaled glyph sizes (see "scale" in struct | Kristaps Dzonsons | 2010-06-30 | 1 | -17/+27 | |
| | | | | termp_ps) to arbitrarily scale font. Tested with 10 (default), 12, 14. | |||||
* | Pushed normalisation of scaling units into term_hspan(). | Kristaps Dzonsons | 2010-06-30 | 1 | -9/+3 | |
| | ||||||
* | Move term_hspan() calculation into the output devices, where it belongs. | Kristaps Dzonsons | 2010-06-30 | 1 | -6/+65 | |
| | ||||||
* | Push paper calculation out of getsubopt() loop. Make all points be AFM | Kristaps Dzonsons | 2010-06-30 | 1 | -20/+21 | |
| | | | | glyph units to make positioning more precise. | |||||
* | Add in -Opaper=xxx support for -Tps postscript. This doesn't have any | Kristaps Dzonsons | 2010-06-29 | 1 | -1/+23 | |
| | | | | | | functional changes beyond the getsubopt() parse in term_ps.c. If you want to test this (it only does -Opaper=a4 and -Opaper=letter; adding more is trivial), make sure you specify (e.g.) -sPAPERSIZE=a4 to gs(1). | |||||
* | Give -Tps better PostScript hinting. Note that we're using Adobe-3.0 | Kristaps Dzonsons | 2010-06-29 | 1 | -23/+56 | |
| | | | | | constructs. Push the stupid CPP defines for page boundaries and margins into proper variables. Give enum termfont a proper TERMFONT__MAX. | |||||
* | Clean-up of variable-width glyph support. Adds no new code; only | Kristaps Dzonsons | 2010-06-28 | 1 | -9/+11 | |
| | | | | | restructured to make a bit more readable. Also removed an unused entry in the PS engine structure. | |||||
* | This enables variable glyph-width output. The checkin will be followed | Kristaps Dzonsons | 2010-06-28 | 1 | -15/+13 | |
| | | | | | | by a [functionless] clean-up in term_ps.c, but this makes the appropriate changes to "enable" initial proportional-width functionality in term.c and fixes some areas of term_ps.c that were causing errors. | |||||
* | Initial encoding of glyph widths. From /usr/X11R6/lib/X11/fonts/Type1. | Kristaps Dzonsons | 2010-06-28 | 1 | -14/+341 | |
| | | | | These continues proportional-width glyph encoding. | |||||
* | Remove "pt" from struct roffsu, as CSS (the only reason it was there) is | Kristaps Dzonsons | 2010-06-25 | 1 | -0/+1 | |
| | | | | | unclear about which units accept floats/integers, which leads me to assume that it handles either and rounds as appropriate. | |||||
* | Initial chunks for variable-width fonts. Pushes all width calculations | Kristaps Dzonsons | 2010-06-25 | 1 | -0/+12 | |
| | | | | | | | | in mdoc_term.c and man_term.c down into term.c. This is still not implemented in term.c, although stubs for width calculations are in place. From now on, offset, rmargin, and other layout variables are abstract screen widths. They will resolve to the the familiar values for -Tascii but -Tps will eventually use points instead of chars. | |||||
* | Churn as I finish email address migration kth.se -> bsd.lv. | Kristaps Dzonsons | 2010-06-19 | 1 | -1/+1 | |
| | ||||||
* | Implement font-switching for PostScript. -Tps now supports | Kristaps Dzonsons | 2010-06-11 | 1 | -61/+133 | |
| | | | | | | TERMFONT_BOLD (Courier-Bold) and TERMFONT_UNDER (Courier-Oblique). It doesn't look half bad. This accomplished through tricksy juggling of the one-char back-buffer. | |||||
* | Delay opening a word state until a character is ready to be output. | Kristaps Dzonsons | 2010-06-11 | 1 | -20/+41 | |
| | | | | | This paves the way for closing/reopening scope in the event that a font changes. | |||||
* | Teach -Tps to ignore backspace-encoding by using a one-char buffer and a | Kristaps Dzonsons | 2010-06-11 | 1 | -1/+30 | |
| | | | | simple state machine. This paves the way for decorated text. | |||||
* | Allow open word contexts in -Tps to preserve whitespace, as whitespace | Kristaps Dzonsons | 2010-06-10 | 1 | -3/+4 | |
| | | | | | apparently doesn't collapse in PostScript (surprise!). Makes output files much more compact. | |||||
* | Forgot to increment into the nil terminator. And call va_end() while | Kristaps Dzonsons | 2010-06-09 | 1 | -1/+3 | |
| | | | | we're at it. | |||||
* | Have the standard manpage header and footer print on every page of -Tps | Kristaps Dzonsons | 2010-06-09 | 1 | -54/+138 | |
| | | | | | | | | | | | | | | | output. This is more tricky than you may think: we can't just call the header function out-of-state (i.e., before a flushln has occured) because we'd clobber our current state. Thus, we call at the beginning and dump the output into an auxiliary buffer. For the record, I don't think there's any other clean way to do this. The only other Way That Works is to copy-aside *all* termp state, zero it, and do the necessary headf/footf. This is just as complex, as memory needs to be alloc'd and free'd per margin. Unfortunately, this prohibits page numbering (the margin is only printed once), so I'll probably end up re-writing this down the line. | |||||
* | Lint noops. Also fixed getsubopt() to be in unistd.h (noted by joerg@). | Kristaps Dzonsons | 2010-06-08 | 1 | -0/+1 | |
| | ||||||
* | Broke ascii_*() functions into term_ascii.c | Kristaps Dzonsons | 2010-06-08 | 1 | -0/+172 | |
| | | | | Made low-level engine functions into function pointers. | |||||
* | No functionality changes: just restructuring. Deprecated | Kristaps Dzonsons | 2010-06-08 | 1 | -0/+45 | |
terminal_free() in favour of ps_free() and ascii_free(). Moved ps_*() functions into term_ps.c so that they don't clutter up term.c. |