Update for changes to 'struct wsdisplay_font'.

This commit is contained in:
ad 2000-01-05 18:46:43 +00:00
parent 59a1ab9791
commit a4eb83847b
2 changed files with 23 additions and 3 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: wsfontload.8,v 1.5 1999/04/06 04:54:22 cgd Exp $ .\" $NetBSD: wsfontload.8,v 1.6 2000/01/05 18:46:43 ad Exp $
.\" .\"
.Dd January 13, 1999 .Dd January 13, 1999
.Os .Os
@ -23,6 +23,12 @@
.Bk -words .Bk -words
.Op Fl N Ar name .Op Fl N Ar name
.Ek .Ek
.Bk -words
.Op Fl b
.Ek
.Bk -words
.Op Fl B
.Ek
.Op Ar fontfile .Op Ar fontfile
.Sh DESCRIPTION .Sh DESCRIPTION
The The
@ -68,6 +74,12 @@ Specifies a name which can be used later to refer to the font.
In none is given, the In none is given, the
.Ar fontfile .Ar fontfile
name is used to create one. name is used to create one.
.It Fl b
Specifies that the font data is ordered right-to-left bit wise. The default
is left-to-right.
.It Fl B
Specifies that the font data is ordered right-to-left byte wise. The default
is left-to-right.
.El .El
.Pp .Pp
Typically, the Typically, the

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsfontload.c,v 1.1 1999/01/13 19:02:34 drochner Exp $ */ /* $NetBSD: wsfontload.c,v 1.2 2000/01/05 18:46:43 ad Exp $ */
/* /*
* Copyright (c) 1999 * Copyright (c) 1999
@ -82,8 +82,10 @@ main(argc, argv)
f.stride = 0; f.stride = 0;
f.encoding = DEFENC; f.encoding = DEFENC;
f.name = 0; f.name = 0;
f.bitorder = WSDISPLAY_FONTORDER_L2R;
f.byteorder = WSDISPLAY_FONTORDER_L2R;
while ((c = getopt(argc, argv, "f:w:h:e:N:")) != -1) { while ((c = getopt(argc, argv, "f:w:h:e:N:bB")) != -1) {
switch (c) { switch (c) {
case 'f': case 'f':
wsdev = optarg; wsdev = optarg;
@ -102,6 +104,12 @@ main(argc, argv)
case 'N': case 'N':
f.name = optarg; f.name = optarg;
break; break;
case 'b':
f.bitorder = WSDISPLAY_FONTORDER_R2L;
break;
case 'B':
f.byteorder = WSDISPLAY_FONTORDER_R2L;
break;
case '?': case '?':
default: default:
usage(); usage();