Quote:
Originally Posted by NiLuJe
@PoP: Go forth, and break stuff! ;p.
|
Trying.
Quote:
Originally Posted by NiLuJe
@PoP: Use precombined characters, we don't do any shaping/normalization, so any funky multi-code character will probably not do what you want, and will instead print those multiple codepoints separately...
|

Funky Diacritical combining marks can't break it:
Code:
[root@kindle us]# fbink -t regular=/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf,size=58 -o -M -m -c "curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨʎʌɹnɔ" #curly\u1DC2\u0353\u032B\u0319\u1DCA\u0325\u032E\u033E\u036F\u0364\u036D\u036C\u0366\u0368\u028E\u028C\u0279n\u0254
[FBInk] Enabled Legacy einkfb Kindle quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 167 dpi
[FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°)
[FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8)
[FBInk] Line length: 37 cols, Page size: 50 rows
[FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes
[FBInk] Pen colors set to #000000 -> #FFFFFF for the foreground and #FFFFFF -> #000000 for the background
Loading font '/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf' for the Regular style
[FBInk] Font '/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf' loaded
Printing string 'curly᷂͓̫̙᷊̥̮̾ͯͤͭͬͦͨʎʌɹnɔ' @ 58pt, honoring the following margins { Top: 0px, Bottom: 0px, Left: 0px, Right: 0px } (formatted: N, overlay: Y, no BG: N, no FG: N, inverted: N, flashing: N, centered: Y, H align: 0, halfway: Y, V align: 0, clear screen: Y)
[root@kindle us]# ./screenshot
Ok, they don't stack up (like it shows if you quote this post) but I didn't expect them to work at all.
And
[root@kindle us]# fbink -t regular=/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf,size=58 -o -M -m -c "É vs É" # E\u0301 vs \u00C9
[FBInk] Enabled Legacy einkfb Kindle quirks
[FBInk] Clock tick frequency appears to be 100 Hz
[FBInk] Screen density set to 167 dpi
[FBInk] Variable fb info: 600x800, 4bpp @ rotation: 0 (Upright, 0°)
[FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8)
[FBInk] Line length: 37 cols, Page size: 50 rows
[FBInk] Fixed fb info: ID is "eink_fb", length of fb mem: 483328 bytes & line length: 300 bytes
[FBInk] Pen colors set to #000000 -> #FFFFFF for the foreground and #FFFFFF -> #000000 for the background
Loading font '/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf' for the Regular style
[FBInk] Font '/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf' loaded
Printing string 'É vs É' @ 58pt, honoring the following margins { Top: 0px, Bottom: 0px, Left: 0px, Right: 0px } (formatted: N, overlay: Y, no BG: N, no FG: N, inverted: N, flashing: N, centered: Y, H align: 0, halfway: Y, V align: 0, clear screen: Y)
[root@kindle us]# ./screenshot
isn't bad either.