Commit Graph

89 Commits

Author SHA1 Message Date
macallan
54ea21395e remove some stray pixels in the R glyph 2012-08-09 01:41:47 +00:00
macallan
c4ff263d05 add license header 2012-05-01 07:46:47 +00:00
macallan
54eeb2711b add license headers
I need to find a way to extract at least the copyright notice from the .ttf
file so ttf2wsfont can do this mostly automatically.
2012-04-10 16:16:03 +00:00
macallan
89fafab322 remove the FreeMono font for licensing reasons 2012-04-05 02:46:21 +00:00
macallan
b26b30a09a make this compile again with rotation enabled 2012-01-13 16:08:02 +00:00
macallan
7f836eb389 make rasops_init()'s font selection code a bit less boneheaded by:
- actually trying to pick a font which gets as close as possible to the
  requested terminal size
- accepting 0,0 as 'use system default' which can be changed by
   options RASOPS_DEFAULT_WIDTH=100
   options RASOPS_DEFAULT_HEIGHT=30
  default is 80x25
- putting alpha and bitmap fonts in the same list and making wsfont_find()
  aware of wether we support alpha fonts or not
- if supported, prefer alpha fonts over otherwise equally suitable bitmap
  fonts
2012-01-11 15:52:32 +00:00
macallan
dd77d71244 add WSFONT_GLYPH() to get a pointer to a given glyph in a given font 2012-01-04 15:53:49 +00:00
macallan
eb3066da32 add a somewhat smaller Droid font
this was generated with a newer version of ttf2wsfont so diacritics are no
longer cut off
2011-12-28 18:29:48 +00:00
macallan
50d883797e add some pre-rendered anti-aliased fonts from pkgsrc:
- DejaVu Sans Mono from fonts/dejavu-ttf
- Droid Sans Mono from fonts/droid-ttf
- Free Mono from fonts/freefonts-ttf
2011-12-22 05:01:15 +00:00
tsutsui
95c959ca44 In wsfont_rotate_cw_internal() and wsfont_rotate_ccw_internal(),
give a new name to rotated fonts so that 8x8 (and other X==Y) fonts
can be used properly on CW and CCW screens.
2010-07-22 13:23:02 +00:00
tsutsui
23800f3d5c Umm, revert unintended changes. 2010-07-22 12:52:59 +00:00
tsutsui
476a3c873b Add VT220 8x8 font with ISO-8859-1 chars which is converted from
sys/arch/atari/dev/font_8x8.c.
2010-07-22 12:48:00 +00:00
tsutsui
ab111ed11d Explicitly specify WSDISPLAY_FONTORDER_L2R for byte order even though
this one has 8 bit (one byte) width, because rasops(4) seems to require it.
(vga(4) on arc and shark doesn't require it)
2010-07-21 12:10:18 +00:00
macallan
9bdc7d44b6 add translation tables for ISO fonts in order to map unicode box drawing
characters to something else than whitespaces
2010-05-04 04:53:59 +00:00
nonaka
b62fc9e203 Added Sharp W-ZERO3 series support. 2010-04-17 13:36:21 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ober
5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
christos
168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos
4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
tsutsui
e44b991120 Fill undefined region (char 0x7f-0xa0) on ISO-8859-1 with dummy data
like other fonts. Closes PR kern/12899.
2006-10-07 02:34:59 +00:00
christos
a0917ad69e fix incomplete initializers 2006-08-28 21:33:16 +00:00
rillig
f2634b6a2b Reordered the declaration-specifiers so that "inline" comes before
"int", which fixes a gcc warning.
2006-07-16 06:32:42 +00:00
chris
fea7c6a78b Fix range to check to avoid a static buffer overrun, when
font->encoding == 4, which would cause access past the end of the encodings
array.

Fixes Coverity CID 1446.

Note that perhaps we should actually have an encoding line for
WSDISPLAY_FONTENC_ISO2 which is encoding 4.
2006-03-17 03:21:57 +00:00
perry
3d4ed1fbc7 __inline__ -> inline 2005-12-24 23:41:33 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
martin
26e557a8c6 Extend the gallant font to full ISO8859-1. Content provided by der Mouse,
formatting and any errors by me.
2005-09-19 19:27:31 +00:00
thorpej
7a3a3dd580 Use static. 2005-06-28 00:44:22 +00:00
christos
2c91ca8bd0 - add const
- avoid variable shadowing.
2005-05-29 22:18:25 +00:00
yamt
881f664bd1 fix static/extern mismatches. found by gcc4. 2005-04-22 14:46:01 +00:00
perry
f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
itojun
db9226c772 use bounded string ops 2004-04-23 21:29:16 +00:00
tsutsui
b386fab8f8 Use aprint_debug() instead of aprint_normal() for debug info. 2003-12-15 15:13:55 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
uwe
fadd31bf33 Add vt220 8x10 koi8-r/koi8-u fonts so that I can read mail using
Jornada 680 console.

XXX: The fonts are marked WSDISPLAY_FONTENC_ISO, which is wrong, but
at least makes the alphabet available.  Line-drawing is all broken.
2003-07-14 18:30:40 +00:00
fvdl
d5aece61d6 Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
darrenr
960df3c8d1 Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V
2003-06-28 14:20:43 +00:00
drochner
7460d83817 need wsfont.c for wsfont pseudodevice 2003-05-14 11:26:52 +00:00
jdolecek
cd6f847ec6 undo constification of 'data' for wsdisplay font - unfortunately we need
to be able to adjust the font to display adapter needs very soon (in consinit()),
so it's not possible to do font copy
2003-02-10 14:28:19 +00:00
jdolecek
2147742d01 wsfont_lock(): if bitorder/byteorder doesn't match, copy the font to new font
also if the font is static (and thus it's 'data' point to const/text location) -
later call to wsfont_rev{bit,byte}() needs to change the font data in-place
print info about the font copy when it's made

problem pointed out by Matthias Drochner
2003-02-09 18:40:31 +00:00
jdolecek
998befbc32 make 'name' and 'data' of struct wsdisplay_font const, mark data arrays
in font sources const
2003-02-09 10:29:35 +00:00
tsutsui
6d0bdd7f1b Don't use non-ASCII chars in comments. 2003-01-12 13:38:27 +00:00
tsutsui
76ce5f5560 Add entries for vt220l8x16 and vt220iso8x16. 2003-01-12 13:12:42 +00:00
tsutsui
e16295484c Add another 8x16 pixel VT220 font with ISO8859-1 charactors.
Generated from sys/arch/atari/dev/font_8x16.c rev 1.2.
2003-01-12 13:11:28 +00:00
tsutsui
28f92b4adc Add 8x16 pixel VT220L font generated from /usr/share/wscons/fonts/vt220l.816,
which is derived from pcvt.
2003-01-12 13:08:47 +00:00
jdolecek
e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
simonb
4e3613273b Remove breaks after returns, unreachable returns and returns after
returns(!).
2002-09-23 05:51:10 +00:00
gehenna
77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
enami
4aaba8dea1 - Allocate enough space to hold an object.
- No need to request to zero clear when we overwrite soon.
2002-03-21 03:26:55 +00:00