3 ms·
> supporting Tektronix That'd be awesome, but it'd need to be green, flash bright when drawing and reverse-flashing the screen on erase. ;-) > The real proble
by rbanffy 6y ago
> supporting Tektronix
That'd be awesome, but it'd need to be green, flash bright when drawing and reverse-flashing the screen on erase. ;-)
> The real problem was that boldface and italics quadruple the kernel font memory requirements,
In ancient times we OR'ed a character with itself shifting it one pixel horizontally. Italics were usually done with shifting the top part of the cell to the right and the bottom to the left. Some terminals could shift things by half a pixel, which made for great screen fonts (I did that on Apple IIs).
The same way overlines, underlines and strikethrough are trivial to generate without adding any glyphs to the font.
- JdeBP 6y agoI know. * https://github.com/jdebp/nosh/blob/79b1c0aab9834a09a59e15d47710f355c5c0417a/source/console-fb-realizer.cpp#L818 https://github.com/jdebp/nosh/blob/79b1c0aab9834a09a59e15d47... But nowadays people expect to provide actual font files for weight and slant changes, as boldface is not actually overprinting and italics are not oblique. This starts to matter at cell sizes bigger than 8 by 8, and it isn't an 8 by 8 world nowadays. You'll notice that my terminal emulator reads different font files for bold/faint/italic combinations if they are given. (On one test machine I am currently feeding it a combination of UbuntuMono-i and UbuntuMono-n, with unscii-16-mini and Unifont 7 as fallbacks.) * https://github.com/jdebp/nosh/blob/79b1c0aab9834a09a59e15d47710f355c5c0417a/source/CompositeFont.cpp#L302 https://github.com/jdebp/nosh/blob/79b1c0aab9834a09a59e15d47... It is not alone. The FreeBSD kernel's newer built-in terminal emulator (vt) loads two fonts, one for normal (medium) weight and one for boldface. * https://github.com/freebsd/freebsd/blob/5f17a06d9cc0a87e26fbd0e40fe1407847819f17/sys/dev/vt/vt_font.c#L104 https://github.com/freebsd/freebsd/blob/5f17a06d9cc0a87e26fb...
- rbanffy 6y agoYou still can programatically generate those styles at larger grid sizes. OR and a single pixel shift will work at 8x8, but if you have enough pixels, you may need to OR more horizontal and vertical versions to get the effect. I would prefer better, specifically created font styles (as the good terminals had), but I'd be totally happy with whatever gave me support for character styles. I swear that if I could figure out how to add them, I would. That and smooth scrolling. ;-)