Quote:
Originally Posted by sherman
Yeah, the OTF/TTF path outsources linebreaking to a library which implements the Unicode line breaking algorithm (UAX #14).
I'm glad to see it works!
|
Probably out of scope here, and no big deal:
Reading the #14 annex I think that U+00AD (SHY), funky Soft Hyphens, should only be rendered at line break versus U+2010 Hyphens which should always be visible.
Code:
Using username "root".
[root@kindle us]# fbink -t regular=/mnt/us/linkfonts/fonts/Symbola_Hinted.ttf,size=72 -M -m -c "S*O*F*T
> vs
> H‐A‐R‐D" # where "*" are U+00AD "-" are U+2010
[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 'S*O*F*T
vs
H‐A‐R‐D' @ 72pt, honoring the following margins { Top: 0px, Bottom: 0px, Left: 0px, Right: 0px } (formatted: 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, skip refresh: N)
[root@kindle us]# ,/screenshot
-sh: ,/screenshot: not found
[root@kindle us]# ./screenshot
was expecting SOFT vs H-A-R-D
[root@kindle us]#