Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 07-30-2019, 01:29 PM   #226
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,627
Karma: 41039173
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3&4₅.₁₂.₁
Click image for larger version

Name:	screenshot_2019_07_30T13_16_54-0401.png
Views:	19
Size:	14.8 KB
ID:	172703

Code:
[root@kindle root]# fbink -c -t regular=/mnt/us/fonts/code2000.ttf,px=300 -m -M "??????"
[FBInk] Detected a Kindle PaperWhite 3 (0G1 -> 0x201 => Muscat on Wario)
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 300 dpi
[FBInk] Variable fb info: 1072x1448, 8bpp @ rotation: 3 (Counter Clockwise, 270°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Vertical fit isn't perfect, shifting rows down by 4 pixels
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 1088 bytes
[FBInk] Pen colors set to #000000 for the foreground and #FFFFFF for the background
Loading font '/mnt/us/fonts/code2000.ttf' for the Regular style
[FBInk] Font '/mnt/us/fonts/code2000.ttf' loaded
Printing string '' @ 0.0pt (or 300px), honoring the following margins { Top: 0px, Bottom: 0px, Left: 0px, Right: 0px } (formatted: N, compute only: N, no truncation: N, overlay: N, no BG: N, no FG: N, inverted: N, flashing: N, centered: Y, H align: 0, halfway: Y, V align: 0, clear screen: Y, waveform: AUTO, dithered: N, nightmode: N, skip refresh: N)
Next line should start @ top=874
Rendered 1 lines out of the 1 expected

[root@kindle root]# screenshot
PoP is offline   Reply With Quote
Old 07-30-2019, 07:42 PM   #227
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,627
Karma: 41039173
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3&4₅.₁₂.₁
42

Hi @NiLuJe. Only suggestions.

Just noticed that in your last post, your karma was increased by 42

Is fbink latest version the "Answer to the Ultimate Question of Life, the Universe, and Everything"?

Everything really? After fixed fonts, vector fonts, graphics, how about an evolution to -d mode for drawing...

... a line from -x1 -y1 to -x2 -y2 of a given -px width in a -C color

... a rectangle having opposite corners -x1 -y1 to -x2 -y2 of a given -px width in a -C color and a -B fill color

... a circle having -x1 -y1 at its center and a -x2 -y2 point on its circumference, of a given -px width in a -C color and a -B fill color

... an ellipse, connected lines, etc?

Naturally the -o -O -T overlay styles would be welcome.

and for good measure, supporting w & h for rescaling, possibly adding a new clipping mode.

Last edited by PoP; 07-30-2019 at 07:45 PM.
PoP is offline   Reply With Quote
Old 07-30-2019, 07:53 PM   #228
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,965
Karma: 14300102
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
@PoP: I'm *really* not a math guy, so, ideally, shape & polygon drawing are best left to dedicated 2D graphics library, baked into a pixmap which you can then feed to fbink_print_raw_data .

f.g., Pillow has basic drawing functionality like that.

Last edited by NiLuJe; 07-30-2019 at 07:59 PM.
NiLuJe is offline   Reply With Quote
Old 07-30-2019, 08:02 PM   #229
PoP
 curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨ ʎʌɹnɔ
PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.PoP ought to be getting tired of karma fortunes by now.
 
PoP's Avatar
 
Posts: 2,627
Karma: 41039173
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₂ PW3&4₅.₁₂.₁
^ Respectfully ACKed.
PoP is offline   Reply With Quote
Old 08-13-2019, 06:01 PM   #230
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 8,965
Karma: 14300102
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, (PW) & PW2; Kobo H2O & Forma
Released v1.18.1!

Minor maintenance release, mostly minor documentation tweaks. Plus a new helper function to more easily deal with memory management of dumps, especially for bindings in languages where getting access to the libc's malloc/free requires a bit of hoop-jumping (looking at you, cFFI ;p).
NiLuJe is offline   Reply With Quote
Reply

Tags
eips, fbink

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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 151 08-13-2019 06:00 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


All times are GMT -4. The time now is 10:27 PM.


MobileRead.com is a privately owned, operated and funded community.