![]() |
#136 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
my device is Kobo Aura Edition 2, koreader version:v2018.11.1-4-g26aeb61_2018_11_05
here is the output:
fbink -t regular=/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf, bold=/mnt/onboard/.adds/k oreader/fonts/noto/NotoSans-Bold.ttf,size=24,top=100,bottom=500,left=25,right= 50,format "Hello **world**" -v [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 212 dpi [FBInk] Variable fb info: 1024x758, 16bpp @ rotation: 0 (Upright, 0 ) [FBInk] Enabled Kobo @ 16bpp pickel rotation quirks (1024x758 -> 758x1024) [FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8) [FBInk] Line length: 47 cols, Page size: 64 rows [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 2048 bytes [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background Loading font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf' for the Regular style Initialized libunibreak [FBInk] Font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf' loaded Printing string 'bold=/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Bold.ttf,size=24,top=100,bottom=500,left=25,right= 50,format' @ 0pt, honoring the following margins { top: 0px, bottom: 0px, left: 0px, right: 0px } (formatted: false, ove rlay: false, backgroundless: false, foregroundless: false, inverted: false, flashing: false, centered: false, halign: 0, halfway: false, valign: 0, clear screen: false) Printing OpenType text. Unformatted text defaulting to Regular font style Max BL: 28 Max Desc: -7 Max LG: 0 Finished looking for linebreaks Current Measured LW: 15 Line# 0 Current Measured LW: 31 Line# 0 Current Measured LW: 37 Line# 0 Current Measured LW: 53 Line# 0 Current Measured LW: 69 Line# 0 Current Measured LW: 80 Line# 0 Current Measured LW: 102 Line# 0 Current Measured LW: 118 Line# 0 Current Measured LW: 129 Line# 0 Current Measured LW: 139 Line# 0 Current Measured LW: 154 Line# 0 Current Measured LW: 169 Line# 0 Current Measured LW: 186 Line# 0 Current Measured LW: 202 Line# 0 Current Measured LW: 216 Line# 0 Current Measured LW: 228 Line# 0 Current Measured LW: 241 Line# 0 Current Measured LW: 253 Line# 0 Current Measured LW: 259 Line# 0 Current Measured LW: 273 Line# 0 Current Measured LW: 288 Line# 0 Current Measured LW: 304 Line# 0 Current Measured LW: 318 Line# 0 Current Measured LW: 328 Line# 0 Current Measured LW: 342 Line# 0 Current Measured LW: 357 Line# 0 Current Measured LW: 369 Line# 0 Current Measured LW: 382 Line# 0 Current Measured LW: 395 Line# 0 Current Measured LW: 410 Line# 0 Current Measured LW: 426 Line# 0 Current Measured LW: 437 Line# 0 Current Measured LW: 447 Line# 0 Current Measured LW: 457 Line# 0 Current Measured LW: 471 Line# 0 Current Measured LW: 486 Line# 0 Current Measured LW: 497 Line# 0 Current Measured LW: 509 Line# 0 Current Measured LW: 519 Line# 0 Current Measured LW: 533 Line# 0 Current Measured LW: 550 Line# 0 Current Measured LW: 560 Line# 0 Current Measured LW: 575 Line# 0 Current Measured LW: 586 Line# 0 Current Measured LW: 604 Line# 0 Current Measured LW: 621 Line# 0 Current Measured LW: 631 Line# 0 Current Measured LW: 646 Line# 0 Current Measured LW: 660 Line# 0 Current Measured LW: 674 Line# 0 Current Measured LW: 689 Line# 0 Current Measured LW: 703 Line# 0 Current Measured LW: 711 Line# 0 Current Measured LW: 727 Line# 0 Current Measured LW: 743 Line# 0 Current Measured LW: 749 Line# 0 Current Measured LW: 765 Line# 0 Current Measured LW: 16 Line# 1 Current Measured LW: 32 Line# 1 Current Measured LW: 38 Line# 1 Current Measured LW: 54 Line# 1 Current Measured LW: 62 Line# 1 Current Measured LW: 72 Line# 1 Current Measured LW: 81 Line# 1 Current Measured LW: 91 Line# 1 Current Measured LW: 94 Line# 1 Current Measured LW: 108 Line# 1 Current Measured LW: 113 Line# 1 Current Measured LW: 127 Line# 1 Current Measured LW: 141 Line# 1 Current Measured LW: 155 Line# 1 Current Measured LW: 170 Line# 1 Current Measured LW: 186 Line# 1 Current Measured LW: 191 Line# 1 Current Measured LW: 202 Line# 1 Current Measured LW: 217 Line# 1 Current Measured LW: 233 Line# 1 Current Measured LW: 248 Line# 1 Current Measured LW: 259 Line# 1 Current Measured LW: 278 Line# 1 Current Measured LW: 293 Line# 1 Current Measured LW: 299 Line# 1 Current Measured LW: 316 Line# 1 Current Measured LW: 332 Line# 1 Current Measured LW: 342 Line# 1 Current Measured LW: 351 Line# 1 Current Measured LW: 366 Line# 1 Current Measured LW: 389 Line# 1 Current Measured LW: 405 Line# 1 Current Measured LW: 420 Line# 1 Current Measured LW: 435 Line# 1 Current Measured LW: 450 Line# 1 Current Measured LW: 456 Line# 1 Current Measured LW: 463 Line# 1 Current Measured LW: 479 Line# 1 Current Measured LW: 489 Line# 1 Current Measured LW: 497 Line# 1 Current Measured LW: 511 Line# 1 Current Measured LW: 526 Line# 1 Current Measured LW: 541 Line# 1 Current Measured LW: 547 Line# 1 Current Measured LW: 560 Line# 1 Current Measured LW: 565 Line# 1 Current Measured LW: 581 Line# 1 Current Measured LW: 597 Line# 1 Current Measured LW: 608 Line# 1 Current Measured LW: 622 Line# 1 Current Measured LW: 637 Line# 1 Current Measured LW: 652 Line# 1 Current Measured LW: 658 Line# 1 Current Measured LW: 670 Line# 1 Current Measured LW: 684 Line# 1 Current Measured LW: 696 Line# 1 Current Measured LW: 718 Line# 1 Current Measured LW: 733 Line# 1 Current Measured LW: 743 Line# 1 2 lines to be printed Maximum printable height is 1024 Actual print height is 70 Finished printing line# 0 Finished printing line# 1 Refreshing region from LEFT: 0, TOP: 0, WIDTH: 743, HEIGHT: 70 Printing string 'Hello **world**' @ 0pt, honoring the following margins { top: 0px, bottom: 0px, left: 0px, right: 0px } (formatted: false, overlay: false, backgroundless: false, foregroundless: false, inverted: false, flashing: false, cent ered: false, halign: 0, halfway: false, valign: 0, clear screen: false) Printing OpenType text. Unformatted text defaulting to Regular font style Max BL: 28 Max Desc: -7 Max LG: 0 Finished looking for linebreaks Current Measured LW: 17 Line# 0 Current Measured LW: 33 Line# 0 Current Measured LW: 38 Line# 0 Current Measured LW: 45 Line# 0 Current Measured LW: 62 Line# 0 Current Measured LW: 63 Line# 0 Current Measured LW: 84 Line# 0 Current Measured LW: 98 Line# 0 Current Measured LW: 118 Line# 0 Current Measured LW: 133 Line# 0 Current Measured LW: 145 Line# 0 Current Measured LW: 150 Line# 0 Current Measured LW: 166 Line# 0 Current Measured LW: 182 Line# 0 Current Measured LW: 196 Line# 0 1 lines to be printed Maximum printable height is 1024 Actual print height is 35 Finished printing line# 0 Refreshing region from LEFT: 0, TOP: 0, WIDTH: 196, HEIGHT: 35 [root@(none) ~]# |
![]() |
![]() |
![]() |
#137 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Surely you have printed the string in blue? Because you have an extra space after the coma in the command. Removing the space should print "Hello world".
Quote:
Last edited by PoP; 11-05-2018 at 07:00 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#138 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
i will try the solution and repost the output soon
|
![]() |
![]() |
![]() |
#139 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
What about this? This syntax gives no error but prints nothing.
[root@(none) ~]# fbink -t regular=/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf,bold =/mnt/onboard/.adds/koreader/fonts/noto/NotoSans- Bold.ttf,size=24,top=100,bottom=500,left=25,right =50,format "Hello **world**" -v [FBInk] Clock tick frequency appears to be 100 Hz [FBInk] Screen density set to 212 dpi [FBInk] Variable fb info: 1024x758, 16bpp @ rotation: 0 (Upright, 0°) [FBInk] Enabled Kobo @ 16bpp pickel rotation quirks (1024x758 -> 758x1024) [FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8) [FBInk] Line length: 47 cols, Page size: 64 rows [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 2048 bytes [FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background Loading font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf' for the Regular style Initialized libunibreak [FBInk] Font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Regular.ttf' loaded Loading font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Bold.ttf' for the Bold style [FBInk] Font '/mnt/onboard/.adds/koreader/fonts/noto/NotoSans-Bold.ttf' loaded Printing string 'Hello **world**' @ 24pt, honoring the following margins { top: 100px, bottom: 500px, left: 25px, right: 50px } (formatted: true, overlay: false, backgroundless: false, foregroundless: false, inverted: false, flashing: false, centered: false, halign: 0, halfway: false, valign: 0, clear screen: false) Printing OpenType text. Unformatted text defaulting to Regular font style Max BL: 55 Max Desc: -15 Max LG: 0 Finished looking for linebreaks Finished parsing formatting markup Current Measured LW: 34 Line# 0 Current Measured LW: 65 Line# 0 Current Measured LW: 76 Line# 0 Current Measured LW: 89 Line# 0 Current Measured LW: 122 Line# 0 Current Measured LW: 124 Line# 0 Current Measured LW: 181 Line# 0 Current Measured LW: 211 Line# 0 Current Measured LW: 236 Line# 0 Current Measured LW: 248 Line# 0 Current Measured LW: 281 Line# 0 1 lines to be printed Maximum printable height is 424 Actual print height is 70 Finished printing line# 0 Refreshing region from LEFT: 25, TOP: 100, WIDTH: 281, HEIGHT: 70 Last edited by codex-hex; 11-05-2018 at 12:27 PM. Reason: Extra unnecessary clipboard. |
![]() |
![]() |
![]() |
#140 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
It would appear that 16bpp handling is broken, for some mysterious (but probably stupid) reason.
I'll look into it. In the mean time, if you could just confirm that the classic fixed-cell rendering *does* work, and is properly positioned/rotated, that'd be something, at least ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#141 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
Could you give me exact command you need? İ can give you the output.
By the way a played with picture options and font options, thet work like charm. |
![]() |
![]() |
![]() |
#142 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
İt just work in Nickel, but in Koreader fbink doesnt print OT/TT fonts.
|
![]() |
![]() |
![]() |
#143 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@codex-hex: Then no need for further testing, as that answers my questions, thanks
![]() It was indeed an insidious snafu (pointers!), will be fixed next release, thanks ![]() Last edited by NiLuJe; 11-05-2018 at 01:21 PM. |
![]() |
![]() |
![]() |
#144 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
You are my savior ! Thanks dude
By the way, when will be ready next release? İ am impatient now. |
![]() |
![]() |
![]() |
#145 |
Member
![]() Posts: 12
Karma: 10
Join Date: Aug 2018
Device: kobo aura edition 2
|
By the way, "fucking pointers"
|
![]() |
![]() |
![]() |
#146 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Released v1.9.0!
Coming hot on the heels of 1.8.x, because it fixes a rather embarrassing issue in Kobo-land... It should also hopefully handle invalid font data better (i.e., fail gracefully instead of crashing). The CLI tool will also try harder to validate user input, which should hopefully help make sense of things when you pass wrong/invalid arguments, or getopt does weird things to the arguments order... (As an example, it will now catch overflows: for instance, if you pass a value >255 to the -S flag, it will tell you that you shouldn't, and that the error came from the value passed to the S flag in particular. It should also properly identify suboptions, f.g., showing it as t:size for the OT counterpart to S). Last edited by NiLuJe; 11-05-2018 at 10:41 PM. Reason: Now with an actually up to date first post attachment... xD |
![]() |
![]() |
![]() |
#147 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
I have found an interesting alpha blending feature
![]() Code:
Code:
-o , --overlay Don't draw background pixels, and compute foreground pixel color based on the inverse of the underlying framebufer pixel.
Code:
hr { border: white; background-color: #992211; height: 6px } |
![]() |
![]() |
![]() |
#148 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,793
Karma: 103362673
Join Date: Apr 2011
Device: pb360
|
|
![]() |
![]() |
![]() |
#149 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@PoP: I noticed
![]() I'm not sure if that's a quirk of AA (since it's done over 256 shades of grey, not 16, and I haven't checked if it's "stable"), of the blending, or of the color decimation (I'm loath to use quantization here, since what I've seen it do looks more like decim than proper quant ;p) done by the controller (especially since it does it on 32bpp fbs, too, where we do read back full-range 8-bit values from the fb, values that have almost no bearing as to what's actually displayed by the screen). It is a tiny bit more even on >4bpp fbs, because the crappy 4bpp layout kind of makes it worse (which leads to artifacts that looks a tiny bit like aliasing here). Increased screen density also helps, and as 4bpp screens are all 800x600 @ 167dpi, that's another strike against 'em ![]() I didn't look into it much further, because the "double -o" usage pattern is kind of anecdotal ![]() Last edited by NiLuJe; 11-07-2018 at 10:40 AM. |
![]() |
![]() |
![]() |
#150 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
|
![]() |
![]() |
![]() |
Tags |
eips, fbink |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
FBInk: A small tool/library to print crap on your screen! | NiLuJe | Kobo Developer's Corner | 311 | 06-20-2025 01:19 PM |
Small print | Broadback | Conversion | 12 | 12-12-2011 02:31 PM |
Small Tool to change book order (PRS-x50) | goaspy | Sony Reader | 113 | 10-14-2011 03:28 PM |
small print | breezeman | Introduce Yourself | 13 | 07-03-2011 09:02 AM |