MorphOS Developer
Posts: 1033 from 2004/9/23
Quote:
pegasos-sigi2 wrote:
The "blocks" are not LF/CR. They are UTF-8 Chars with the hexnumber "0xE28093"
They are unprintable by cairo. They are special versions of the char "-".
I must filter them.
I learned this the hard way my self, recently. It is probably (never used it myself) not Cairo having problems.
The problem gets triggered when you try to convert the UTF-8 to lets say ISO-8859-1. This "-" (0xE28093) is not a minus. It is a dash to bind words ("en dash").
There is no proper char available in ISO-8859 table and you would corrupt this information during conversion. The right way would be to render the text as UTF-8 or turn Cairo into UTF rendering, so it takes the char and displays it using the ttf font without the need to use any charset conversion in between.
Geit
[ Edited by geit 15.09.2014 - 20:12 ]