mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-04 01:39:16 +08:00
Force fontconfig pangocairo backend for ligature_table_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
4ce4e5ef66
commit
0d1e540267
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user