Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-10 Thread Lennart Poettering
On Thu, 28.11.13 09:32, David Herrmann (dh.herrm...@gmail.com) wrote: +sd_gfx_font *font; +int r; + +ppi = CLAMP(ppi, 10U, 1000U); + +font = calloc(1, sizeof(*font)); font = new0(sd_gfx_font, 1); I actually dislike new0() to require the type. I'd

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-10 Thread Lennart Poettering
On Sun, 01.12.13 06:28, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Wed, Nov 27, 2013 at 07:48:40PM +0100, David Herrmann wrote: As a first step, we add the required header+build-chain and add the font-handling. To avoid heavy font-pipelines in systemd, we only provide a

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-10 Thread Lennart Poettering
On Sun, 01.12.13 10:05, David Herrmann (dh.herrm...@gmail.com) wrote: I'm fine with installing the file into the system, but I doubt we win much. It's meant as fallback for early-boot, initrd and so on. If we keep it separate, we must make sure to include it in any systems we build (initrd,

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-10 Thread Kay Sievers
On Wed, Dec 11, 2013 at 1:56 AM, Lennart Poettering lenn...@poettering.net wrote: On Sun, 01.12.13 10:05, David Herrmann (dh.herrm...@gmail.com) wrote: I'm fine with installing the file into the system, but I doubt we win much. It's meant as fallback for early-boot, initrd and so on. If we

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-10 Thread Lennart Poettering
On Wed, 11.12.13 02:14, Kay Sievers (k...@vrfy.org) wrote: On Wed, Dec 11, 2013 at 1:56 AM, Lennart Poettering lenn...@poettering.net wrote: On Sun, 01.12.13 10:05, David Herrmann (dh.herrm...@gmail.com) wrote: I'm fine with installing the file into the system, but I doubt we win

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-02 Thread David Herrmann
Hi The binary file contains all glyphs in a compressed 1-bit-per-pixel format for all 8x16 and 16x16 glyphs. It is linked directly into libsystemd-gfx via the *.bin makefile target. Binary size is 2.1MB, but thanks to paging, the kernel only loads required pages into memory. A ASCII-only

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-12-01 Thread David Herrmann
Hi On Sun, Dec 1, 2013 at 6:28 AM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Wed, Nov 27, 2013 at 07:48:40PM +0100, David Herrmann wrote: As a first step, we add the required header+build-chain and add the font-handling. To avoid heavy font-pipelines in systemd, we only provide

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-11-30 Thread Shawn Landden
On Sat, Nov 30, 2013 at 9:28 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Wed, Nov 27, 2013 at 07:48:40PM +0100, David Herrmann wrote: As a first step, we add the required header+build-chain and add the font-handling. To avoid heavy font-pipelines in systemd, we only provide a

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-11-28 Thread David Herrmann
Hi On Wed, Nov 27, 2013 at 11:11 PM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 27.11.13 19:48, David Herrmann (dh.herrm...@gmail.com) wrote: This patch introduces sd-gfx, a systemd-internal library dealing with all these things. Note that it is designed to be exported some day,

[systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-11-27 Thread David Herrmann
If we want to interact with a user in the initrd, during emergency-situations, in single-user mode, or in any other rather limited situation, we currently rely on the kernel to do input and graphics access for us. More precisely, we rely on the VT layer to do keyboard parsing and font rendering.

Re: [systemd-devel] [RFC 05/12] gfx: add sd-gfx library with unifont section

2013-11-27 Thread Lennart Poettering
On Wed, 27.11.13 19:48, David Herrmann (dh.herrm...@gmail.com) wrote: This patch introduces sd-gfx, a systemd-internal library dealing with all these things. Note that it is designed to be exported some day, but for now we keep it internal. While the library itself will be kept small and