summaryrefslogtreecommitdiffstats
path: root/sys/dev/wsfont/wsfont.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add "Spleen 6x12" to wsfont, a font targetted at OLED displays.fcambus2020-07-101-5/+13
| | | | | | | | | Similar to "Spleen 5x8" it only contains the printable ASCII characters (96 glyphes). The font is 2-Clause BSD licensed and is my original creation. OK patrick@
* Enable spleen16x32 and spleen32x64 on armv7 for GENERIC kernels.fcambus2020-07-091-2/+2
| | | | OK kettenis@, deraadt@, patrick@
* Kill commented-out wsfont_remove().mpi2019-07-111-37/+1
| | | | | | Gets rid of an unused free(9) w/o size argument. ok jan@, anton@
* Enable Spleen in wsfont and modify the font selection logic at runtimefcambus2019-01-091-13/+29
| | | | | | | | | | | | | | | | | in rasops(9) to allow selecting larger fonts when available. Summary of the changes: - Enable spleen8x16 for all architectures, replacing bold8x16_iso1. - Enable spleen12x24 on all arches but sparc64, replacing gallant12x22. - Enable spleen16x32 and spleen32x64 on amd64, i386, and arm64 for GENERIC kernels. - Modify the font selection logic in rasops(9) so the 16x32 and 32x64 fonts are selected if at least 120 columns can be displayed. Screens with widths equal or larger than 1920px will use the 16x32 font, and screens with widths equal or larger than 3840px the 32x64 one. OK kettenis@, ratchov@, deraadt@
* Add Spleen 8x16, 12x24, 16x32, and 32x64 variants to wsfont.fcambus2018-12-021-1/+33
| | | | | | | | | | Together with the already imported Spleen 5x8, it will allow using the same font family across a wide range of screen resolutions, from small OLED displays to 4K monitors. The fonts are 2-Clause BSD licensed and are my original creation. OK jcs@, brynet@, bcallah@, kettenis@
* Add "Spleen 5x8" to wsfont, a font targetted at small OLED displaysfcambus2018-09-241-1/+9
| | | | | | | | | to be used with devices handled by ssdfb(4). It contains all printable ASCII characters (96 glyphes). The font is 2-Clause BSD licensed and is my original creation. OK patrick@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-2/+1
|
* Backout because it breaks ramdisks. Anyone making changes in the kernelderaadt2017-08-181-44/+1
| | | | is required to consider or test ramdisks before commit.
* Add compressed fonts support in the kernel.fcambus2017-08-181-1/+44
| | | | | | | | | | | | 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@
* Implement counter-clockwise rotation.kettenis2017-08-171-20/+61
| | | | ok bcook@, stsp@
* Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.fcambus2017-05-301-25/+1
| | | | | | | Those fonts are not compiled in by default, and are smaller than the smallest font (bold8x16_iso1) we currently include. OK mpi@, deraadt@
* Remove lucida16x29.h and omron12x20 fonts.fcambus2017-05-301-20/+4
| | | | | | | | | | | | | - 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@
* Remove sony8x16 and sony12x24 fonts.fcambus2017-01-221-18/+2
| | | | | | | 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@
* Remove reference to non existing font.fcambus2016-10-061-12/+9
| | | | | | | 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.
* limit the number of fonts that can be loadedjcs2016-09-141-2/+10
| | | | ok millert mlarkin deraadt
* remove some more sparc remnants. ok deraadttedu2016-09-041-2/+2
|
* Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontmiod2015-09-131-9/+14
| | | | | is really fugly on large displays (tga, vgafb). It's only 10KB more data before compression, which fits in our floppies.
* sizes for free(); checked by semariederaadt2015-09-081-3/+4
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* global "list" is not the nicest variable namederaadt2015-01-111-8/+8
| | | | seen my mlarkin, ok miod
* yet more mallocarray() changes.doug2014-12-131-2/+2
| | | | ok tedu@ deraadt@
* Bring the 12x22 font in even if SMALL_KERNEL on sgi.miod2014-12-071-3/+5
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-6/+6
| | | | after discussions with beck deraadt kettenis.
* No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into themiod2013-10-201-7/+5
| | | | | | | | | | | | | | | 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.
* Add a load_font accessop to rasops, to allow for fonts to be loaded andmiod2013-10-201-14/+11
| | | | | | | 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.
* Replace manual list handling with a TAILQ.miod2013-10-201-35/+30
|
* Remove Unicode to ISO-8859-7 translation tables, they would only be used ifmiod2013-10-191-54/+5
| | | | | 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.
* Check for NULL ptr before dereferencing, not after; found the hard way bymiod2013-05-211-5/+5
| | | | dcoppa@
* Simplify function wsfont_map_unichar.shadchin2012-01-131-28/+14
| | | | ok mpi@
* Remove unused function wsfont_getflg.shadchin2012-01-101-21/+1
| | | | ok mpi@
* Ansify non-ansified function definitions. No functional change.shadchin2012-01-081-30/+13
| | | | ok miod@
* Remove unused definition null16.shadchin2012-01-081-7/+1
| | | | ok miod@
* Remove extra and trailing spaces.shadchin2012-01-061-81/+81
| | | | ok mpi@
* luna88k moves to defining __luna88k__ insteadderaadt2010-05-231-2/+2
|
* do not check malloc return value against NULL, as M_WAITOK is usedchl2009-02-151-7/+1
| | | | ok krw@ miod@ (some months ago)
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | 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@
* Only the most obvious bzero() -> M_ZERO changes. No cast changes, nokrw2007-09-171-4/+2
| | | | | MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
* more MALLOC/FREE -> malloc/free and M_ZERO changesgilles2007-09-101-7/+8
| | | | ok pyr@
* Convert the Sony wsfonts to ISO-Latin1 encoding, and drop the Sony encodingmiod2006-08-061-63/+12
| | | | conversion tables; from NetBSD.
* Switch luna88k from rcons to rasops. Tested by aoyama@miod2006-08-061-2/+2
|
* Provide the usual 8x16 font, instead of the qvss 8x15 font, for low-res vaxmiod2006-08-021-17/+5
| | | | | 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.
* Do not compile non-iso font encoding conversion tables and {bit(*),byte} ordermiod2006-07-311-12/+36
| | | | | | | reversal if SMALL_KERNEL. Saves ~5KB before compression. ok deraadt@ (*) except on alpha because tga needs it.
* Add the 12x22 font to vax defaults.miod2006-07-241-1/+2
|
* Select the 8x15 font by default on vax.miod2006-07-231-2/+8
|
* Stop compiling the texte console rotation code #ifdef __zaurus__, but usemiod2005-09-151-45/+67
| | | | | | | | | | | | | | 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@
* Provide both 8x16 and 12x22 fonts on sparc64 even if SMALL_KERNEL, asmiod2005-05-051-12/+15
| | | | | vigra and some cgthree clones might need tho 8x16 font. Fits the floppies, other architectures unaffected.
* Temporary hack to (un)rotate the Zaurus console until a proper rasopspascoe2005-04-301-1/+71
| | | | rotation framework is ready.
* correct a spellopascoe2005-04-151-2/+2
| | | | ok jolan@
* Enable wsfont_add(), it will be necessary on sparc.miod2005-03-261-3/+1
|
* Select the Latin-1 8x16 font as the default 8x16 font, instead of themiod2004-05-101-8/+8
| | | | | IBM 8x16 one. ok deraadt@