View Single Post
Old 12-09-2018, 04:34 PM   #179
sherman
Guru
sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.sherman ought to be getting tired of karma fortunes by now.
 
Posts: 876
Karma: 2676800
Join Date: Aug 2008
Location: Taranaki - NZ
Device: Kobo Aura H2O, Kobo Forma
Yeah, I didn't want to open up the can of worms that is sophisticated layout. Text layout is HARD, especially especially once one starts dealing with characters that may or may not be printed depending on the situation.

The main reason for choosing libunibreak was because I wanted better line breaking than what was currently in FBInk at the time, but I didn't want to deal with figuring out all the rules myself, especially since I'm a native english speaker, and don't know the rules for other languages.

If I wanted to do 'proper' text layout for an application, I would probably just use Pango and call it a day. Unfortunately, Pango requires fontconfig, which makes it much harder to get working on a barebones linux like the Kobos. Harfbuzz would also work (it's lower level, so requires more work than Pango), but the Harfbuzz documentation is.... anemic.

Last edited by sherman; 12-09-2018 at 04:37 PM.
sherman is offline   Reply With Quote