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.
|