tesseract v5.3.3.20231005
tesseract::PangoFontInfoTest Class Reference
Inheritance diagram for tesseract::PangoFontInfoTest:
testing::Test

Protected Member Functions

void SetUp () override
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void SetUp ()
 
virtual void TearDown ()
 

Static Protected Member Functions

static void SetUpTestCase ()
 

Protected Attributes

PangoFontInfo font_info_
 

Additional Inherited Members

- Public Member Functions inherited from testing::Test
virtual ~Test ()
 
- Static Public Member Functions inherited from testing::Test
static void SetUpTestSuite ()
 
static void TearDownTestSuite ()
 
static void TearDownTestCase ()
 
static void SetUpTestCase ()
 
static bool HasFatalFailure ()
 
static bool HasNonfatalFailure ()
 
static bool IsSkipped ()
 
static bool HasFailure ()
 
static void RecordProperty (const std::string &key, const std::string &value)
 
static void RecordProperty (const std::string &key, int value)
 

Detailed Description

Definition at line 54 of file pango_font_info_test.cc.

Member Function Documentation

◆ SetUp()

void tesseract::PangoFontInfoTest::SetUp ( )
inlineoverrideprotectedvirtual

Reimplemented from testing::Test.

Definition at line 56 of file pango_font_info_test.cc.

56 {
57 if (!font_map) {
58 font_map = pango_cairo_font_map_new_for_font_type(CAIRO_FONT_TYPE_FT);
59 }
60 pango_cairo_font_map_set_default(PANGO_CAIRO_FONT_MAP(font_map));
61 }

◆ SetUpTestCase()

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

Definition at line 65 of file pango_font_info_test.cc.

65 {
66 static std::locale system_locale("");
67 std::locale::global(system_locale);
68
69 FLAGS_fonts_dir = TESTING_DIR;
70 FLAGS_fontconfig_tmpdir = FLAGS_test_tmpdir;
73 }
static void MakeTmpdir()
Definition: include_gunit.h:38

Member Data Documentation

◆ font_info_

PangoFontInfo tesseract::PangoFontInfoTest::font_info_
protected

Definition at line 75 of file pango_font_info_test.cc.


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