|
KiCad PCB EDA Suite
|
#include <memory>#include <vector>#include <wx/filename.h>#include <qa_utils/wx_utils/unit_test_utils.h>#include <font/font.h>#include <font/glyph.h>#include <font/outline_font.h>Go to the source code of this file.
Functions | |
| static wxString | getTestFontPath (const wxString &aFileName) |
| static KIFONT::OUTLINE_FONT * | loadTestOutlineFont (const wxString &aFontName, const wxString &aFileName) |
| BOOST_AUTO_TEST_CASE (SymbolFontRendersAsciiGlyphs) | |
| BOOST_AUTO_TEST_CASE (UnicodeFontKeepsUnicodeCharmap) | |
| BOOST_AUTO_TEST_CASE (FailedGlyphLoadReported) | |
| BOOST_AUTO_TEST_CASE (InterlinePreservesFractionalFontHeight) | |
| BOOST_AUTO_TEST_CASE | ( | FailedGlyphLoadReported | ) |
Definition at line 112 of file test_outline_font.cpp.
References BOOST_REQUIRE(), KIFONT::OUTLINE_FONT::GetFace(), KIFONT::OUTLINE_FONT::LoadGlyphContours(), and loadTestOutlineFont().
| BOOST_AUTO_TEST_CASE | ( | InterlinePreservesFractionalFontHeight | ) |
Definition at line 140 of file test_outline_font.cpp.
References BOOST_REQUIRE(), KIFONT::METRICS::Default(), expected, KIFONT::OUTLINE_FONT::GetFace(), KIFONT::METRICS::GetInterline(), KIFONT::OUTLINE_FONT::GetInterline(), and loadTestOutlineFont().
| BOOST_AUTO_TEST_CASE | ( | SymbolFontRendersAsciiGlyphs | ) |
Definition at line 66 of file test_outline_font.cpp.
References ANGLE_0, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KIFONT::OUTLINE_FONT::GetFace(), KIFONT::OUTLINE_FONT::GetTextAsGlyphs(), and loadTestOutlineFont().
| BOOST_AUTO_TEST_CASE | ( | UnicodeFontKeepsUnicodeCharmap | ) |
Definition at line 95 of file test_outline_font.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), KIFONT::OUTLINE_FONT::GetFace(), and loadTestOutlineFont().
|
static |
Definition at line 34 of file test_outline_font.cpp.
References KI_TEST::GetTestDataRootDir(), and getTestFontPath().
Referenced by getTestFontPath(), and loadTestOutlineFont().
|
static |
Definition at line 46 of file test_outline_font.cpp.
References BOOST_REQUIRE(), KIFONT::FONT::GetFont(), getTestFontPath(), and KIFONT::FONT::IsOutline().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and BOOST_AUTO_TEST_CASE().