mirror of
https://github.com/mapnik/mapnik.git
synced 2026-02-01 17:36:36 +00:00
add berber+arabic shaping test
This commit is contained in:
parent
5e709997f2
commit
43d940fe35
@ -33,7 +33,9 @@ void test_shaping( mapnik::font_set const& fontset, mapnik::face_manager& fm,
|
||||
if (debug)
|
||||
{
|
||||
if (index++ > 0) std::cerr << ",";
|
||||
std::cerr << "{" << g.glyph_index << ", " << g.char_index << "}";
|
||||
std::cerr << "{" << g.glyph_index << ", " << g.char_index
|
||||
//<< ", " << g.face->family_name() << ":" << g.face->style_name()
|
||||
<< "}";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -90,5 +92,12 @@ TEST_CASE("shaping")
|
||||
test_shaping(fontset, fm, expected, "abc (abc)");
|
||||
}
|
||||
|
||||
{
|
||||
// "ⵃⴰⵢ ⵚⵉⵏⴰⵄⵉ الحي الصناعي"
|
||||
std::vector<std::tuple<unsigned, unsigned>> expected =
|
||||
{{0, 0},{0, 1},{0, 2},{3, 3},{0, 4},{0, 5},{0, 6},{0, 7},{0, 8},{0, 9},{3, 10},{509, 22},{481, 21},{438, 20},{503, 19},{470, 18},{496, 17},{43, 16},{3, 15},{509, 14},{454, 13},{496, 12},{43, 11}};
|
||||
test_shaping(fontset, fm, expected, "ⵃⴰⵢ ⵚⵉⵏⴰⵄⵉ الحي الصناعي");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user