summaryrefslogtreecommitdiffstats
path: root/sys/dev/wsfont
AgeCommit message (Collapse)AuthorFilesLines
2021-03-12Update Spleen kernel fonts to version 1.9.0, bringing the followingfcambus2-27/+1691
improvements: - Enlarge vertical line for consistency with other small sizes (5x8 version) - Add full support for the Latin-1 Supplement Unicode block (6x12 version)
2020-07-31Update Spleen kernel fonts to version 1.8.2, bringing the followingfcambus3-65/+65
improvements: - Fix size of the lower case 'ae' character in the 16x32 and 32x64 versions - Shorten parentheses, square brackets, braces, slash, backslash in the 8x16 version, fixing alignment issues - Shift vertical line and double vertical line characters one pixel up in the 8x16 version
2020-07-20Update Spleen kernel fonts to version 1.8.1, bringing the followingfcambus6-32/+32
improvements: - Center tilde vertically for all sizes, as modern fonts do
2020-07-10Add "Spleen 6x12" to wsfont, a font targetted at OLED displays.fcambus2-5/+1307
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@
2020-07-09Enable spleen16x32 and spleen32x64 on armv7 for GENERIC kernels.fcambus1-2/+2
OK kettenis@, deraadt@, patrick@
2020-06-29Update Spleen kernel fonts to version 1.8.0, bringing the followingfcambus1-3/+3
improvements: - Improve ampersand character, making it more consistent with other sizes (5x8 version)
2020-06-24Use C99 initializers in wsdisplay_font struct definitions forfcambus3-39/+39
"Boldface", "Boldface.iso1", and "Gallant". OK mpi@
2020-06-23Use C99 initializers in wsdisplay_font struct definitions for Spleenfcambus5-65/+65
kernel fonts. OK mpi@
2020-06-21Update Spleen kernel fonts to version 1.7.1, bringing the followingfcambus5-35/+35
improvements: - Remove strain pixel on the '5' digit (5x8 version) - Improve the Esszet character (8x16, 12x24, 16x32, and 32x64 versions)
2019-10-03Update Spleen kernel fonts to version 1.5.0, bringing the followingfcambus3-19/+19
improvements: - Tweak the digit '7' for consistency with other sizes (5x8 version) - Tweak the digit '2' for consistency with other sizes (12x24 version) - Shift the middle bar of the digit '3' one pixel up, for better alignement (12x24 version) - Make the 'Z' and 'z' characters more balanced, as is the case with other sizes (12x24 version) - Make the slash inside the digit '0' one pixel thiner (32x64 version) OK patrick@, "go ahead" kettenis@
2019-09-05Update Spleen kernel fonts to the latest released version, bringingfcambus3-31/+31
the following improvements: - Character at position CB is 'E' with diaeresis, not with tilde (12x24 version) - Character at position D6 is 'O' with diaeresis, not with tilde (12x24 version) - Character at position DC is 'U' with diaeresis, not with tilde (12x24 version) - Fix middle bar thickness in the upper case 'eth' character (12x24 version) - Fix ring alignment for the 'A' and 'a' characters (16x32 and 32x64 versions) - Fix tilde alignment in the 'o' with tilde character (32x64 version) - Remove strain pixel on the '3' and 'k' characters (32x64 version) OK deraadt@, mpi@
2019-07-11Kill commented-out wsfont_remove().mpi2-39/+2
Gets rid of an unused free(9) w/o size argument. ok jan@, anton@
2019-06-08Update Spleen kernel fonts to the latest released version, bringingfcambus5-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@
2019-03-08Update Spleen kernel fonts to the latest released version, bringingfcambus4-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@
2019-01-09Enable Spleen in wsfont and modify the font selection logic at runtimefcambus1-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@
2018-12-02Remove artefacts from 'C', 'c' and 'F' characters, to match the otherfcambus1-4/+4
sizes. OK patrick@
2018-12-02Add Spleen 8x16, 12x24, 16x32, and 32x64 variants to wsfont.fcambus5-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@
2018-09-24Add "Spleen 5x8" to wsfont, a font targetted at small OLED displaysfcambus2-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@
2017-09-08If you use sys/param.h, you don't need sys/types.hderaadt1-2/+1
2017-08-18Backout because it breaks ramdisks. Anyone making changes in the kernelderaadt1-44/+1
is required to consider or test ramdisks before commit.
2017-08-18Add compressed fonts support in the kernel.fcambus1-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@
2017-08-17Implement counter-clockwise rotation.kettenis2-22/+63
ok bcook@, stsp@
2017-05-30Remove qvss8x15, vt220l8x8, and vt220l8x10 fonts.fcambus4-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@
2017-05-30Remove lucida16x29.h and omron12x20 fonts.fcambus3-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@
2017-01-22Remove sony8x16 and sony12x24 fonts.fcambus3-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@
2016-10-06Remove reference to non existing font.fcambus1-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.
2016-09-14limit the number of fonts that can be loadedjcs1-2/+10
ok millert mlarkin deraadt
2016-09-04remove some more sparc remnants. ok deraadttedu1-2/+2
2015-09-13Put the 12x22 font on alpha and macppc installation kernels, the 8x16 fontmiod1-9/+14
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 semariederaadt1-3/+4
2015-03-14Remove some includes include-what-you-use claims don'tjsg1-2/+1
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 namederaadt1-8/+8
seen my mlarkin, ok miod
2014-12-13yet more mallocarray() changes.doug1-2/+2
ok tedu@ deraadt@
2014-12-07Bring the 12x22 font in even if SMALL_KERNEL on sgi.miod1-3/+5
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu1-6/+6
after discussions with beck deraadt kettenis.
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into themiod2-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.
2013-10-20Add a load_font accessop to rasops, to allow for fonts to be loaded andmiod2-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.
2013-10-20Replace manual list handling with a TAILQ.miod1-35/+30
2013-10-19Remove Unicode to ISO-8859-7 translation tables, they would only be used ifmiod1-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.
2013-05-21Check for NULL ptr before dereferencing, not after; found the hard way bymiod1-5/+5
dcoppa@
2012-01-13Simplify function wsfont_map_unichar.shadchin1-28/+14
ok mpi@
2012-01-10Remove unused definition WSFONT_RDONLY.shadchin1-2/+1
ok mpi@
2012-01-10Remove unused function wsfont_getflg.shadchin2-23/+2
ok mpi@
2012-01-08Ansify non-ansified function definitions. No functional change.shadchin1-30/+13
ok miod@
2012-01-08Remove unused definition null16.shadchin1-7/+1
ok miod@
2012-01-06Remove extra and trailing spaces.shadchin10-132/+130
ok mpi@
2012-01-06Remove unused Makefile.shadchin1-8/+0
ok mpi@
2010-05-23luna88k moves to defining __luna88k__ insteadderaadt1-2/+2
2009-06-21Use static for forward decl of static arrays instead of externjsg8-16/+16
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 usedchl1-7/+1
ok krw@ miod@ (some months ago)