Module Name:    src
Committed By:   macallan
Date:           Fri Jan 13 16:06:20 UTC 2012

Modified Files:
        src/share/man/man9: rasops.9 wsfont.9

Log Message:
document recent changes


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/share/man/man9/rasops.9
cvs rdiff -u -r1.16 -r1.17 src/share/man/man9/wsfont.9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man9/rasops.9
diff -u src/share/man/man9/rasops.9:1.12 src/share/man/man9/rasops.9:1.13
--- src/share/man/man9/rasops.9:1.12	Thu Dec  2 12:54:13 2010
+++ src/share/man/man9/rasops.9	Fri Jan 13 16:06:20 2012
@@ -1,4 +1,4 @@
-.\"     $NetBSD: rasops.9,v 1.12 2010/12/02 12:54:13 wiz Exp $
+.\"     $NetBSD: rasops.9,v 1.13 2012/01/13 16:06:20 macallan Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -168,7 +168,10 @@ The arguments
 .Fa wantrows
 and
 .Fa wantcols
-are the number of rows and columns we'd like.
+are the number of rows and columns we'd like. Passing zero for either one of
+them uses the default - normally 80x25 but it can be changed with
+options RASOPS_DEFAULT_WIDTH=80
+options RASOPS_DEFAULT_HEIGHT=25
 If calling
 .Fn rasops_reconfig
 to change the font and ri_wsfcookie \*[Ge] 0, you must call

Index: src/share/man/man9/wsfont.9
diff -u src/share/man/man9/wsfont.9:1.16 src/share/man/man9/wsfont.9:1.17
--- src/share/man/man9/wsfont.9:1.16	Mon Jun 13 15:24:21 2011
+++ src/share/man/man9/wsfont.9	Fri Jan 13 16:06:20 2012
@@ -1,4 +1,4 @@
-.\"     $NetBSD: wsfont.9,v 1.16 2011/06/13 15:24:21 nonaka Exp $
+.\"     $NetBSD: wsfont.9,v 1.17 2012/01/13 16:06:20 macallan Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -49,10 +49,10 @@
 .Fn wsfont_init "void"
 .Ft int
 .Fn wsfont_matches "struct wsdisplay_font *font" "const char *name" \
-"int width" "int height" "int stride"
+"int width" "int height" "int stride" "int flags"
 .Ft int
 .Fn wsfont_find "const char *name" "int width" "int height" "int stride" \
-"int bitorder" "int byteorder"
+"int bitorder" "int byteorder" "int flags"
 .Ft int
 .Fn wsfont_add "struct wsdisplay_font *font" "int copy"
 .Ft int
@@ -126,11 +126,14 @@ Matches the font
 with the specifications
 .Fa name ,
 .Fa width ,
-.Fa height
+.Fa height ,
+.Fa stride 
 and
-.Fa stride .
+.Fa flags .
 Return zero if not matched and non-zero if matched.
-.It Fn wsfont_find "name" "width" "height" "stride" "bitorder" "byteorder"
+The "flags" parameter has the same meaning as in 
+.Fn wsfont_find .
+.It Fn wsfont_find "name" "width" "height" "stride" "bitorder" "byteorder" "flags"
 Find the font called
 .Fa name
 from the fonts loaded into the kernel.
@@ -161,6 +164,16 @@ The font is ordered left to right.
 The font is ordered right to left.
 .El
 .Pp
+The
+.Fa flags
+parameter determines what type of font can be returned.
+Any combination of the following values is allowed:
+.Bl -tag -width compact
+.It WSFONT_FIND_BITMAP
+To search bitmap fonts,
+.It WSFONT_FIND_ALPHA
+to search anti-aliased fonts.
+.El
 When more flexibility is required,
 .Fn wsfont_enum
 should be used.

Reply via email to