summaryrefslogtreecommitdiff
path: root/sys/dev/wsfont
AgeCommit message (Collapse)Author
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-08-18Backout because it breaks ramdisks. Anyone making changes in the kernelTheo de Raadt
is required to consider or test ramdisks before commit.
2017-08-18Add compressed fonts support in the kernel.Frederic Cambus
The wsdisplay_font structure has been modified to add two new members (zdata and zdata_len) to store compressed font data and its size. We define compressed fonts by setting the data field to NULL and populating the zdata and zdata_len fields. In wsfont_lock(), we check if the selected font needs to be inflated, and we call the newly introduced wsfont_inflate() if required. OK kettenis@
2017-08-17Implement counter-clockwise rotation.Mark Kettenis
ok bcook@, stsp@
2017-05-30Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.Frederic Cambus
Those fonts are not compiled in by default, and are smaller than the smallest font (bold8x16_iso1) we currently include. OK mpi@, deraadt@
2017-05-30Remove lucida16x29.h and omron12x20 fonts.Frederic Cambus
- lucida16x29 is a bad conversion from a truetype font, it is too bold which makes it unreadable. - omron12x20 is a serif font, and is very difficult to read due to inconsistencies in character spacing, alignement, and width. Moreover, both fonts only have 96 glyphs. No objection from mlarkin@ OK mpi@, jcs@
2017-01-22Remove sony8x16 and sony12x24 fonts.Frederic Cambus
They were not compiled in by default, and are Serif fonts, which doesn't work very well for monospaced bitmap fonts intended for console use. OK mpi@, visa@, jcs@
2016-10-06Remove reference to non existing font.Frederic Cambus
Include file with font data (courier11x18.h) was removed from NetBSD due to licensing concerns before wsfont was imported into OpenBSD. Cookie values have been renumbered for consistency.
2016-09-14limit the number of fonts that can be loadedJoshua Stein
ok millert mlarkin deraadt
2016-09-04remove some more sparc remnants. ok deraadtTed Unangst
2015-09-13Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontMiod Vallat
is really fugly on large displays (tga, vgafb). It's only 10KB more data before compression, which fits in our floppies.
2015-09-08sizes for free(); checked by semarieTheo de Raadt
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
2015-01-11global "list" is not the nicest variable nameTheo de Raadt
seen my mlarkin, ok miod
2014-12-13yet more mallocarray() changes.Doug Hogan
ok tedu@ deraadt@
2014-12-07Bring the 12x22 font in even if SMALL_KERNEL on sgi.Miod Vallat
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
after discussions with beck deraadt kettenis.
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into theMiod Vallat
wsdisplay softc. Instead, since the knowledge about available fonts lies in the parent driver itself, introduce a list_font wsdisplay_accessop which queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl. With this in place: - there is no global wsdisplay limit on the number of fonts loaded. Such a limit will be enforced by the display drivers themselves. - built-in kernel fonts will now appear in the list of fonts. Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which is turned into something useful (and abortable if you do not need to iterate further). Not used by any rasops driver yet.
2013-10-20Add a load_font accessop to rasops, to allow for fonts to be loaded andMiod Vallat
selected. All rasops fonts are managed by wsfont, which allows a font to be loaded on a rasops device and used on another. Currently not plumbed in any driver yet. This is work in progress.
2013-10-20Replace manual list handling with a TAILQ.Miod Vallat
2013-10-19Remove Unicode to ISO-8859-7 translation tables, they would only be used ifMiod Vallat
one were to use an ISO-8859-7-encoded font on a raster display, yet none of the fonts the kernel chooses from uses this encoding.
2013-05-21Check for NULL ptr before dereferencing, not after; found the hard way byMiod Vallat
dcoppa@
2012-01-13Simplify function wsfont_map_unichar.Alexandr Shadchin
ok mpi@
2012-01-10Remove unused definition WSFONT_RDONLY.Alexandr Shadchin
ok mpi@
2012-01-10Remove unused function wsfont_getflg.Alexandr Shadchin
ok mpi@
2012-01-08Ansify non-ansified function definitions. No functional change.Alexandr Shadchin
ok miod@
2012-01-08Remove unused definition null16.Alexandr Shadchin
ok miod@
2012-01-06Remove extra and trailing spaces.Alexandr Shadchin
ok mpi@
2012-01-06Remove unused Makefile.Alexandr Shadchin
ok mpi@
2010-05-23luna88k moves to defining __luna88k__ insteadTheo de Raadt
2009-06-21Use static for forward decl of static arrays instead of externJonathan Gray
which made newer versions of gcc complain about mixing static and non-static decls. ok miod@
2009-02-15do not check malloc return value against NULL, as M_WAITOK is usedCharles Longeau
ok krw@ miod@ (some months ago)
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-09-10more MALLOC/FREE -> malloc/free and M_ZERO changesGilles Chehade
ok pyr@
2006-08-06Convert the Sony wsfonts to ISO-Latin1 encoding, and drop the Sony encodingMiod Vallat
conversion tables; from NetBSD.
2006-08-06Switch luna88k from rcons to rasops. Tested by aoyama@Miod Vallat
2006-08-02Provide the usual 8x16 font, instead of the qvss 8x15 font, for low-res vaxMiod Vallat
frame buffers (and smg until it can use non-8bit wide fonts), as the latter has too many symbols in the 8-bit range stubbed out.
2006-07-31Do not compile non-iso font encoding conversion tables and {bit(*),byte} orderMiod Vallat
reversal if SMALL_KERNEL. Saves ~5KB before compression. ok deraadt@ (*) except on alpha because tga needs it.
2006-07-24Add the 12x22 font to vax defaults.Miod Vallat
2006-07-24Insert empty glyphs to make the font data really contiguous, as rasopsMiod Vallat
expects it.
2006-07-23Select the 8x15 font by default on vax.Miod Vallat
2005-09-15Stop compiling the texte console rotation code #ifdef __zaurus__, but useMiod Vallat
a flag in the rasops_info structure; drivers which may use it shall declare a specific attribute for the config(8) machinery, so that the necessary code is compiled in. In addition to this, rotated font computation is now done on-demand, and a list of unrotated-rotated font cookie pairs is kept, rather than rotating all built-in wsfonts at initialization time. No user-perceptible functional change. Tested matthieu@ uwe@, ok uwe@
2005-05-05Provide both 8x16 and 12x22 fonts on sparc64 even if SMALL_KERNEL, asMiod Vallat
vigra and some cgthree clones might need tho 8x16 font. Fits the floppies, other architectures unaffected.
2005-04-30Temporary hack to (un)rotate the Zaurus console until a proper rasopsChristopher Pascoe
rotation framework is ready.
2005-04-15correct a spelloChristopher Pascoe
ok jolan@
2005-03-26Enable wsfont_add(), it will be necessary on sparc.Miod Vallat
2004-05-10Select the Latin-1 8x16 font as the default 8x16 font, instead of theMiod Vallat
IBM 8x16 one. ok deraadt@
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-10Make the HAVE_FONT logic work correctly when user requests FONT_BOLD8x16Miod Vallat
only.