+2013-04-08 Tom Hacohen
+
+ * Evas font: Fix a bug with cluster size calculation with texts ending
+ with ligatures.
+
2013-04-08 Carsten Haitzler (The Rasterman)
* Evas: Add control API for multiple outputs (non-functional).
* Evas font: If OS/2 table is available and the font is demi-bold, don't do runtime emboldment.
* Evas font: fix font source have wrong current size.
* Evas: Fix over redrawing of Evas_Map when applied on smart object.
+ * Evas font: Fix a bug with cluster size calculation with texts ending
+ with ligatures.
fail_if(1 != evas_textblock_cursor_pos_get(cur));
}
+ /* Make sure coords are correct for ligatures */
+ {
+ evas_object_textblock_text_markup_set(tb, "fi<br/>fii");
+
+ for (i = 0 ; i < 2 ; i++)
+ {
+ evas_textblock_cursor_pen_geometry_get(cur, NULL, NULL, &w, NULL);
+ ck_assert_int_eq(w, 3);
+ evas_textblock_cursor_char_next(cur);
+ }
+
+ evas_textblock_cursor_char_next(cur);
+
+ for (i = 0 ; i < 3 ; i++)
+ {
+ evas_textblock_cursor_pen_geometry_get(cur, NULL, NULL, &w, NULL);
+ ck_assert_int_eq(w, 3);
+ evas_textblock_cursor_char_next(cur);
+ }
+ }
+
END_TB_TEST();
}
END_TEST