summaryrefslogtreecommitdiffstats
path: root/sys/dev/wsfont (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update Spleen kernel fonts to the latest released version, bringingfcambus2019-06-085-193/+193
| | | | | | | | | | | | | | | the following improvements: - Shift the middle bar of the upper case 'G' one pixel down in the 12x24 version - Shift lower case 'k' character right, for better alignment in the 12x24, 16x32, and 32x64 versions - Make upper case 'X' thicker in the 16x32 and 32x64 versions - Make upper case 'V' thicker in the 32x64 version - Make lower case 'g' character smoother in the 16x32 and 32x64 versions - Add some artefacts on each side of the lower case 'i' characters OK kettenis@, naddy@, deraadt@
* Update Spleen kernel fonts to the latest released version, bringingfcambus2019-03-084-29/+29
| | | | | | | | | | | | | the following improvements: - Remove strain pixels on the inner upper part of parentheses for the 16x32 version - Harmonize the 'v' and 'V' characters across all sizes - Remove artefacts from the 'c' in the copyright sign across all sizes - Make the upper left corner of the 'R' sharp in the registered sign for the 16x32 and 32x64 versions "Go for it" kettenis@, deraadt@
* 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@
* Remove artefacts from 'C', 'c' and 'F' characters, to match the otherfcambus2018-12-021-4/+4
| | | | | | sizes. OK patrick@
* Add Spleen 8x16, 12x24, 16x32, and 32x64 variants to wsfont.fcambus2018-12-025-1/+31577
| | | | | | | | | | 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-242-1/+919
| | | | | | | | | 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-172-22/+63
| | | | ok bcook@, stsp@
* Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.fcambus2017-05-304-8910/+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-303-5201/+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-223-11404/+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-202-9/+7
| | | | | | | | | | | | | | | 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-202-17/+14
| | | | | | | 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 definition WSFONT_RDONLY.shadchin2012-01-101-2/+1
| | | | ok mpi@
* Remove unused function wsfont_getflg.shadchin2012-01-102-23/+2
| | | | 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-0610-132/+130
| | | | ok mpi@
* Remove unused Makefile.shadchin2012-01-061-8/+0
| | | | ok mpi@
* luna88k moves to defining __luna88k__ insteadderaadt2010-05-231-2/+2
|
* Use static for forward decl of static arrays instead of externjsg2009-06-218-16/+16
| | | | | | | which made newer versions of gcc complain about mixing static and non-static decls. ok miod@
* 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-264-32/+4
| | | | | | | | | 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-063-1668/+1617
| | | | 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
|
* Insert empty glyphs to make the font data really contiguous, as rasopsmiod2006-07-241-1/+9
| | | | expects it.
* 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-153-48/+77
| | | | | | | | | | | | | | 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.