|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <algorithm>#include <cmath>#include <limits>#include <memory>#include <vector>#include <base_units.h>#include <eda_text.h>#include <font/font.h>#include <font/glyph_types.h>#include <io/target3001/target3001_fonts.h>#include <io/target3001/target3001_parser.h>Go to the source code of this file.
Functions | |
| static double | lastCentreFromStem (const wxString &aText, const VECTOR2I &aSize) |
| Centre of the last glyph of aText at aSize, measured from the stem of H. | |
| BOOST_AUTO_TEST_CASE (DinGlyphsFollowVendorAdvance) | |
| BOOST_AUTO_TEST_CASE | ( | DinGlyphsFollowVendorAdvance | ) |
Definition at line 74 of file test_target3001_fonts.cpp.
References std::abs(), BOOST_AUTO_TEST_CASE(), TARGET3001::TEXT::font, fonts, TARGET3001::TEXT::height, lastCentreFromStem(), pcbIUScale, text, TARGET3001::ELEMENT::text, TARGET3001::TEXT::weight, and TARGET3001::TEXT::width.
|
static |
Centre of the last glyph of aText at aSize, measured from the stem of H.
Definition at line 37 of file test_target3001_fonts.cpp.
References ANGLE_0, KIFONT::FONT::GetFont(), KIFONT::FONT::GetTextAsGlyphs(), and result.
Referenced by BOOST_AUTO_TEST_CASE().