4 ms·
I know. * https://github.com/jdebp/nosh/blob/79b1c0aab9834a09a59e15d47710f355c5c0417a/source/console-fb-realizer.cpp#L818 https://github.com/jdebp/nosh/blob/79
by JdeBP 6y ago
I 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. ;-)