![]() |
#46 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
ESC
EDIT: wish I had known gbdfed earlier.
EDIT²: but wait, the M and the W are really erring on the atomic triangle these are 7x7 and should be 8x8. And now that the lower case is over ![]() ...What about interpreting Terminal ESC sequences ...BTW, for which terminal? ANSI? ![]() Last edited by PoP; 08-20-2018 at 06:34 AM. Reason: mispelled ANSI |
![]() |
![]() |
![]() |
#47 |
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
|
Yeaaaaah, probably not
![]() For kicks, an experiment w/ a 24x24 small caps (i.e., 6x6 triangles) |
![]() |
![]() |
Advert | |
|
![]() |
#48 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
The 16x16 small caps give more airy and clearer lower cases.
It is somewhat less evident with the 24x24 mid caps, but their additional weight fit the style better. Perhaps decenter vertically the mid caps in another experiment shifting them down 4 pixels to the base line? In the end, both look good to me. ![]() Last edited by PoP; 08-20-2018 at 07:22 AM. Reason: not great at spelling |
![]() |
![]() |
![]() |
#49 |
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: Yep, I definitely like the idea of moving them to the lower edge of the bbox!
It's aligned with the first 8x blocks of a caps, feels pretty good! Last edited by NiLuJe; 08-20-2018 at 12:06 PM. |
![]() |
![]() |
![]() |
#50 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
1, 2, 3, sold.
^
metoo. |
![]() |
![]() |
Advert | |
|
![]() |
#51 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Why oh, why can't I ♫
While we probably won't go soon « Somewhere over the rainbow » with ESC sequences, any way to render the fonts a bit more sexy with 16 shades of grey?
Maybe a new flag like -% 0 to -% 100 (white to black percentage) to apply a color map mask to the frame buffer pixels? Spoiler:
|
![]() |
![]() |
![]() |
#52 |
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.4.1
![]() With a few fixes to the X/Y offset features that got in a bit too early in the rushed 1.4.0 release ![]() Also stdin handling on the CLI tool, and as we've discussed earlier, lowercase glyphs in the block font ![]() |
![]() |
![]() |
![]() |
#53 |
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: Yeah, that's definitely more in the realm of possibility ^^.
|
![]() |
![]() |
![]() |
#54 |
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: Done
![]() Code:
./fbink -S2 -F block "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz Hello, Block\!" -c -S4 -f -C GRAY7 -B GRAY5 [FBInk] Variable fb info: 1080x1440, 32bpp @ rotation: 1 (Clockwise, 90°) [FBInk] Fontsize set to 128x128 (BLOCK base glyph size: 32x32) [FBInk] Line length: 8 cols, Page size: 11 rows [FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6684672 bytes & line length: 4352 bytes [FBInk] Kernel's HZ value appears to be 100 [FBInk] Pen colors set to #777777 for the foreground and #555555 for the background Printing string 'AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz Hello, Block!' @ column 0 + 0px, row 0 + 0px (inverted: false, flashing: true, centered: false, left padded: false, clear screen: true, font: 7, font scaling: x4) |
![]() |
![]() |
![]() |
#55 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
╔═══╗─────╔╗─╔╗
║╔═╗║─────║║─║║ ║║─╚╬══╦══╣║─║║ ║║─╔╣╔╗║╔╗║║─╚╝ ║╚═╝║╚╝║╚╝║╚╗╔╗ ╚═══╩══╩══╩═╝╚╝ Frankly, I thought you wouldn't resist, and I knew that you could BLAM it that quickly! ![]() |
![]() |
![]() |
![]() |
#56 |
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.5.0
![]() As mentioned earlier, adds support for custom pen colors (both fg & bg), and we can now draw progress bars, as can be seen in MRPI! |
![]() |
![]() |
![]() |
#57 |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Thought it would be fun and
to create a proportional font only from the 11 Box Drawing characters. So here is one! With double line characters with kerning: Code:
./box 0 0 4 "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" -c Code:
./box 0 0 4 "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" -c -k Code:
./box 0 0 4 "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" -c --k -d Code:
./box 0 0 4 "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz" -c -k -d Caveat²: Some characters need to be refined, maybe kerning rules too, you are welcome to improve. [EDIT 2018-10-03] Get it from this version posted further in the thread Last edited by PoP; 10-03-2018 at 03:06 PM. Reason: point to a newer version posted later in the thread |
![]() |
![]() |
![]() |
#58 |
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 could use a cheat-sheet of which number gets replaced by which pipe, but it's crazy enough that I like it
![]() EDIT: I *think* busybox ash supports the slice substring operation (${var:}), which might allow you to fake an array (i.e., BLAH="ABCD"; IDX="1"; echo ${BLAH:$IDX:1} => B), and a such fake LUTs for the replacements, which might be a tad faster than calling sed like crazy, since the substring operation should be builtin (... and hopefully faster than sed) ![]() Last edited by NiLuJe; 09-02-2018 at 09:10 PM. |
![]() |
![]() |
![]() |
#59 | |
curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
|
Quote:
(Note to myself: code in C next time). I tried ${var:} initially, it was giving me syntax errors (unless it was some other poorly coded shell expansions). In fact my first version looked much simpler. I thought « let me use a shell script, it will be an easy POC) » only to find out that UTF-8 multibytes were totally messing column alignments in string manipulations ![]() ![]() ╔═╦═╗ 12324 ║─║─║ 56565 ╠═╬═╣ 72829 ║─║─║ 56565 ╚═╩═╝ a2b2c |
|
![]() |
![]() |
![]() |
#60 |
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
|
Yeah, I think it's supported on FW 5.x, but it might not be on 3.x...
![]() |
![]() |
![]() |
![]() |
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 |