Force fontconfig pangocairo backend for ligature_table_test

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2020-12-23 12:59:18 +01:00
parent 4ce4e5ef66
commit 0d1e540267

View File

@ -32,12 +32,18 @@ const char kEngLigatureText[] = "fidelity effigy ſteep";
// ligature. The test Verdana font does not support the "ffi" or "ſt" ligature.
const char kRenderableEngLigatureText[] = "fidelity effigy ſteep";
static PangoFontMap* font_map;
class LigatureTableTest : public ::testing::Test {
protected:
void SetUp() override {
static std::locale system_locale("");
std::locale::global(system_locale);
lig_table_ = LigatureTable::Get();
if (!font_map) {
font_map = pango_cairo_font_map_new_for_font_type(CAIRO_FONT_TYPE_FT);
}
pango_cairo_font_map_set_default(PANGO_CAIRO_FONT_MAP(font_map));
}
static void SetUpTestCase() {