tesseract  5.0.0
tesseract::LigatureTableTest Class Reference
Inheritance diagram for tesseract::LigatureTableTest:

Protected Member Functions

void SetUp () override
 

Static Protected Member Functions

static void SetUpTestCase ()
 

Protected Attributes

LigatureTablelig_table_
 

Detailed Description

Definition at line 32 of file ligature_table_test.cc.

Member Function Documentation

◆ SetUp()

void tesseract::LigatureTableTest::SetUp ( )
inlineoverrideprotected

Definition at line 34 of file ligature_table_test.cc.

34  {
36  if (!font_map) {
37  font_map = pango_cairo_font_map_new_for_font_type(CAIRO_FONT_TYPE_FT);
38  }
39  pango_cairo_font_map_set_default(PANGO_CAIRO_FONT_MAP(font_map));
40  }
static LigatureTable * Get()

◆ SetUpTestCase()

static void tesseract::LigatureTableTest::SetUpTestCase ( )
inlinestaticprotected

Definition at line 42 of file ligature_table_test.cc.

42  {
43  static std::locale system_locale("");
44  std::locale::global(system_locale);
45 
46  FLAGS_fonts_dir = TESTING_DIR;
47  FLAGS_fontconfig_tmpdir = FLAGS_test_tmpdir;
49  PangoFontInfo::SoftInitFontConfig(); // init early
50  }
static void MakeTmpdir()
Definition: include_gunit.h:38

Member Data Documentation

◆ lig_table_

LigatureTable* tesseract::LigatureTableTest::lig_table_
protected

Definition at line 51 of file ligature_table_test.cc.


The documentation for this class was generated from the following file: