View Single Post
Old 12-09-2018, 04:06 PM   #177
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: 3,018
Karma: 50506927
Join Date: Dec 2010
Location: ♁ ᴺ₄₅°₃₀' ᵂ₇₃°₃₇' ±₆₀"
Device: K3₃.₄.₃ PW3&4₅.₁₃.₃
Quote:
Originally Posted by sherman View Post
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
Click image for larger version

Name:	SOFTvsHARD.png
Views:	245
Size:	6.3 KB
ID:	168254 was expecting SOFT vs H-A-R-D
[root@kindle us]#

Last edited by PoP; 12-09-2018 at 04:10 PM.
PoP is online now   Reply With Quote