Skip to content

Commit d0bbf9c

Browse files
committed
update
1 parent 3942b77 commit d0bbf9c

15 files changed

+589
-101
lines changed

mksh/bdfctool.1

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
.\" $MirOS: X11/extras/bdfctool/bdfctool.1,v 1.10 2013/05/17 21:51:40 tg Exp $
1+
.\" $MirOS: X11/extras/bdfctool/bdfctool.1,v 1.14 2016/02/11 20:16:24 tg Exp $
22
.\"-
3-
.\" Copyright © 2012, 2013
4-
.\" Thorsten “mirabilos” Glaser <tg@mirbsd.org>
3+
.\" Copyright (c) 2008, 2009, 2010, 2012, 2013, 2015, 2016
4+
.\" mirabilos <m@mirbsd.org>
55
.\"-
66
.\" Try to make GNU groff and AT&T nroff more compatible
77
.\" * ` generates ‘ in gnroff, so use \`
@@ -12,7 +12,9 @@
1212
.\" * ^ is size-reduced and placed atop in groff, so use \*(ha
1313
.\" * \(en does not work in nroff, so use \*(en
1414
.\" * <>| are problematic, so redefine and use \*(Lt\*(Gt\*(Ba
15-
.\" Also make sure to use \& especially with two-letter words.
15+
.\" Also make sure to use \& *before* a punctuation char that is to not
16+
.\" be interpreted as punctuation, and especially with two-letter words
17+
.\" but also (after) a period that does not end a sentence (“e.g.\&”).
1618
.\" The section after the "doc" macropackage has been loaded contains
1719
.\" additional code to convene between the UCB mdoc macropackage (and
1820
.\" its variant as BSD mdoc in groff) and the GNU mdoc macropackage.
@@ -57,7 +59,7 @@
5759
.\" with -mandoc, it might implement .Mx itself, but we want to
5860
.\" use our own definition. And .Dd must come *first*, always.
5961
.\"
60-
.Dd $Mdocdate: May 17 2013 $
62+
.Dd $Mdocdate: February 11 2016 $
6163
.\"
6264
.\" Check which macro package we use, and do other -mdoc setup.
6365
.\"
@@ -140,7 +142,7 @@
140142
.Fl c
141143
.Nm
142144
.Fl d
143-
.Op Fl F
145+
.Op Fl FGg
144146
.Nm
145147
.Fl e
146148
.Op Fl a
@@ -171,7 +173,9 @@ and the line end separator
171173
.It Ic +a
172174
In edit mode, emit Unicode (1:1) encoding (default).
173175
.It Fl d
174-
Decompress the font from bdfc into
176+
Decompress the font from bdfc
177+
.Pq or Tn BDF
178+
into
175179
.Tn BDF .
176180
.It Fl c
177181
Compress the font from
@@ -191,12 +195,17 @@ Revert selected glyphs from edit form back to compressed form
191195
Do a fast decompression with no error checking.
192196
Run this on files passed through
193197
.Nm
194-
.Fl c
198+
.Fl c ,
199+
without any subsequent manual or automated changes,
195200
.Em only .
196201
Used by the
197202
.Mx
198203
.Tn XFree86\(rg
199204
build process.
205+
.It Fl G
206+
Output a big-endian .gdf (libgd font) instead.
207+
.It Fl g
208+
Output a little-endian .gdf (libgd font) instead.
200209
.El
201210
.Sh BDFC FORMAT DESCRIPTION
202211
A
@@ -241,7 +250,7 @@ is put in
241250
Finally, there is the character block, which is somewhat stateless.
242251
There are two types of entries for that block, glyph defaults and glyph data.
243252
The block is ended with a period
244-
.Pq Dq Li .\&
253+
.Pq Dq Li \&.
245254
on a line by itself.
246255
.Pp
247256
Glyphs are sorted by their font encoding / Unicode code point, and each
@@ -372,8 +381,10 @@ The
372381
.Tn XFree86\(rg
373382
.Ic Bitmap Distribution Format ,
374383
version 2.1, specification
384+
.Pp
385+
.Pa http://php.net/manual/en/function.imageloadfont.php
375386
.Sh AUTHORS
376-
.An Thorsten Glaser Aq tg@mirbsd.org
387+
.An mirabilos Aq m@mirbsd.org
377388
wrote this tool because
378389
.Xr cvs 1
379390
does not scale for multi-thousand-line files,
@@ -396,3 +407,16 @@ is mandatory.
396407
The current practical limit on glyph width is 32.
397408
0-bit wide glyphs cause an error; those with height 0 are
398409
silently converted to an unset 1x1 bitmap.
410+
.Pp
411+
Passing a
412+
.Tn BDF
413+
file through
414+
.Nm
415+
.Fl d
416+
is not equivalent to compressing then decompressing it.
417+
The position of the
418+
.Li STARTPROPERTIES
419+
line can change, if bordering comments, for example.
420+
.Pp
421+
There is no support for padding BDF fonts yet.
422+
Output to gdf fonts requires padded input.

0 commit comments

Comments
 (0)