07-30-2018, 07:51 PM | #16 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
That's (the game of) life.
or Maybe your K3 has detected an Alien life form. |
07-30-2018, 08:07 PM | #17 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@PoP: I'll double-check, but I fixed a bunch of stupid things around "large" font multipliers, so that may already be taken care of (and by taken care of that might mean the max value will be clamped to the largest safe value ).
|
Advert | |
|
07-30-2018, 08:13 PM | #18 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@PoP: Yeah, it's "fixed" in master:
Code:
[FBInk] Clamped font size multiplier from 37 to 25 The double X was probably a side-effect of an overflow wraparound . (I don't remember if that was already fixed in the latest release or not, but if you pushed the value a bit, you'd hit a SIGFPE because of the division by 0 I mentioned earlier ^^). EDIT: I can *probably* fine-tune it a bit, if you really want to play w/ higher values . EDIT²: Done, it'll honor the settings, so you can push things to the actual max when centering is disabled. Code:
./fbink -cp -S 100 XX -F tall [FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°) [FBInk] Clamped font size multiplier from 100 to 50 [FBInk] Fontsize set to 400x800 [FBInk] Line length: 1 cols, Page size: 1 rows [FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes [FBInk] Kernel's HZ value appears to be 100 Printing string 'XX' @ column 0, row 0 (inverted: false, flashing: false, centered: false, left padded: true, clear screen: true, font scaling: x100) Code:
./fbink -cp -S 100 XX [FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°) [FBInk] Clamped font size multiplier from 100 to 75 [FBInk] Fontsize set to 600x600 [FBInk] Line length: 1 cols, Page size: 1 rows [FBInk] It's a perfect fit! [FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes [FBInk] Kernel's HZ value appears to be 100 Printing string 'XX' @ column 0, row 0 (inverted: false, flashing: false, centered: false, left padded: true, clear screen: true, font scaling: x100) Code:
./fbink -cmp -S 100 XX [FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°) [FBInk] Clamped font size multiplier from 100 to 37 [FBInk] Fontsize set to 296x296 [FBInk] Line length: 2 cols, Page size: 2 rows [FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes [FBInk] Kernel's HZ value appears to be 100 Printing string 'XX' @ column 0, row 0 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: true, font scaling: x100) Code:
./fbink -cmp -S 100 XX -F tall [FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°) [FBInk] Clamped font size multiplier from 100 to 37 [FBInk] Fontsize set to 296x592 [FBInk] Line length: 2 cols, Page size: 1 rows [FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes [FBInk] Kernel's HZ value appears to be 100 Printing string 'XX' @ column 0, row 0 (inverted: false, flashing: false, centered: true, left padded: true, clear screen: true, font scaling: x100) Last edited by NiLuJe; 07-30-2018 at 09:18 PM. |
07-31-2018, 06:47 AM | #19 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
^ Thank you. Respect!
Now I can zoom to the max on alien Life from the UNSCII private area U+EC2B to U+EC30 (Just kidding, I know you did not convert these ) |
07-31-2018, 11:02 AM | #20 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
That X alone was starting to look like a space invader... ;o).
|
Advert | |
|
08-02-2018, 04:32 PM | #21 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Released v1.2.6 .
A few code cleanups & tweaks, and the aforementioned fix for potentially broken behavior at high font scaling values . |
08-11-2018, 11:31 AM | #22 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Block Style Writing
When I saw a tweet using these blocky letters,
I thought it would be nice to make fbink print in that style. Spoiler:
Ready to try? Then Spoiler:
somewhat buggy [EDIT 2021-03-31] don't miss version 0.20 here Last edited by PoP; 03-31-2021 at 01:32 PM. |
08-11-2018, 04:04 PM | #23 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@PoP: That's insane, I love it! ;p.
The other, non-scalable approach is a glyph per PNG w/ transparency. Or going the extra mile and encoding that as a proper font in the Hex format, which we can then convert & bundle in fbink . Sidebar: this works on my end: Code:
./fbink '' 2>&1 | grep Line | sed 's/.*Line length: \(.*\) cols.*/\1/' 47 ./fbink '' 2>&1 | grep Line | sed 's/.*Page size: \(.*\) rows/\1/' 64 ---- If not, I can easily add a flag that outputs the config in a single eval'able line? EDIT: Done, might come in handy, and was trivial to implement. Code:
./fbink -qe viewWidth=758;viewHeight=1024;BPP=8;FONTW=16;FONTH=16;FONTSIZE_MULT=2;MAXCOLS=47;MAXROWS=64;isPerfectFit=0;FBID=mxc_epdc_fb;USER_HZ=100# Last edited by NiLuJe; 08-11-2018 at 09:45 PM. |
08-12-2018, 06:52 AM | #24 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
Sidebar: Yes I know, it is the assignment to a variable that gives me an unterminated quoted string shell error. I will gladly use your new ./fbink -qe one liner and stop fighting puzzling shell substitutions. Code:
[root@kindle us]# fbink '' 2>&1 | grep Line | sed 's/.*Line length: \(.*\) cols. */\1/' 44 [root@kindle us]# MC="$(fbink '' 2>&1 | grep Line | sed 's/.*Line length: \(.*\) cols.*/\1/'" > |
|
08-12-2018, 02:07 PM | #25 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
The giant comment block in hextoc.py has a link to the Unifont stuff, if you want to look into it.
(The higher the grid-size, the longer you'll have to spend working per-glyph, obviously . But a higher base grid-size should not be an issue for FBInk, as the 8x16 Unscii Tall variant proved .). |
08-12-2018, 05:18 PM | #26 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
^
OK I'll have a look. In the mean time, not knowing the format, I prepared 32x32 Block Font.txt, could you use this? |
08-12-2018, 06:13 PM | #27 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Hmmm, a higher horizontal resolution means a different data type (here, uint32_t instead of uint8_t), which is moderately more annoying to handle...
But other than that, yeah, that works. Code:
row="........########................" row.replace('.', '0') row.replace('#', '1') hex = '%0*X' % ((len(row) + 3) // 4, int(row, 2)) 00FF0000 Last edited by NiLuJe; 08-12-2018 at 07:39 PM. |
08-12-2018, 07:40 PM | #28 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yup, got a test glyph working .
Now you get to choose a name for it . |
08-12-2018, 08:54 PM | #29 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
Posts: 3,002
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Already!!
"BLOCK", "TWEET", "ATOM", "V127", "PoP", Came to mind. Maybe "☐" or "6⃣ " to make it cryptic . Anyway, you can choose too, it is yours now. Last edited by PoP; 08-12-2018 at 09:07 PM. Reason: cryptified even more ☐ into 6⃣ ...for 6 atomic blocks |
08-12-2018, 09:53 PM | #30 |
BLAM!
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@PoP: And there we go .
I wouldn't mind a full set of lowercase letters, when you have the chance . (Some glyphs might need "kerning" tweaks, at a quick glance, some digits, for instance: printing "1234" makes it somewhat obvious ^^). EDIT: Also, the last four characters have the wrong codepoint . Found a minor bug in the conversion script while working on this, and this lays the groundwork for making BDF conversions even easier now . Everybody wins! . EDIT²: Yuuup, BDF conversions are a definite go! . Last edited by NiLuJe; 08-13-2018 at 06:46 PM. |
Tags |
eips, fbink |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FBInk: A small tool/library to print crap on your screen! | NiLuJe | Kobo Developer's Corner | 282 | Yesterday 02:51 AM |
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 |