NiLuJe / FBInk

FrameBuffer eInker, a small tool & library to print text & images to an eInk Linux framebuffer
https://www.mobileread.com/forums/showthread.php?t=299110
GNU General Public License v3.0
316 stars 23 forks source link

Color Font on the Kobo Clara Colour #79

Open leogott opened 1 month ago

leogott commented 1 month ago

Hejo, I recently got one of the new color ereaders (as they've become quite affordable) and am looking forward to do some tinkering. Maybe port Doom some piece of productivity software

From what I can tell FBInk stable is working, (unlike stable releases of KOReader and Plato :disappointed: ).

It looks like printing text in color is not implemented yet?

https://github.com/NiLuJe/FBInk/blob/c4cc9b61b739c300eafa30f1beef590e3bd45abc/CLI.md?plain=1#L208-L217

However one of the example screenshots shows a color image... haven't tried yet, are color images implemented?

I'd love to have at least RED, YELLOW, GREEN, BLUE available! Is that within the scope of this library?


Device: Kobo Clara Colour (But should apply to Kobo Libra Colour as well) Software: 4.39.22861

Version:Probably 1.25.0 ( whatever was bundled with the all in one. )

ericcastro commented 1 week ago

did you get it to work on a new color kobo ?

I have the Libra Colour and I'm getting this error:

[root@monza root]# fbink -x 1 -y 10 "Hello World!"
[FBInk] Unidentified Kobo device code (390)!
[FBInk] Detected a Kobo Unknown! (390 => ?? @ Mark ?)
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 167 dpi
[FBInk] Variable fb info: 1264x1680, 32bpp @ rotation: 1 (Clockwise, 90°)
[FBInk] Fixed fb info: ID is "hwtcon", length of fb mem: 8494080 bytes & line length: 5056 bytes
[FBInk] Canonical rotation: 2 (Upside Down, 180°)
[FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8)
[FBInk] Line length: 79 cols, Page size: 105 rows
[FBInk] Horizontal fit is perfect!
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
Printing string 'Hello World!' @ column 1 + 0px, row 10 + 0px (overlay: N, no BG: N, no FG: N, inverted: N, flashing: N, centered: N, halfway: N, left padded: N, right padded: N, clear screen: N, waveform: AUTO, dithering: PASSTHROUGH, nightmode: N, skip refresh: N, font: 0, font scaling: x0)
[FBInk] [refresh_kobo] MXCFB_SEND_UPDATE_V1_NTX: Interrupted system call!
[FBInk] [fbink_print] Failed to refresh the screen!
[CLI] Failed to print that string!

which makes me believe fbink has not yet updated to work with them.

hopefully we'll get them supported soon