|
KiCad PCB EDA Suite
|
When a pin's name and number are both shown outside (name offset 0) with equal text sizes, they are placed on opposite sides of the pin at what should be the same distance. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <sch_pin.h>#include <lib_symbol.h>#include <pin_layout_cache.h>#include <transform.h>#include <boost/test/unit_test.hpp>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (NumberClearanceMatchesNameClearance) | |
When a pin's name and number are both shown outside (name offset 0) with equal text sizes, they are placed on opposite sides of the pin at what should be the same distance.
The number side previously measured its clearance from the font's inflated glyph bbox instead of the nominal text size, pushing the number noticeably further from the pin than the name and shifting pin numbers up across every symbol using a stroke font.
Definition in file test_pin_number_default_style_clearance.cpp.
| BOOST_AUTO_TEST_CASE | ( | NumberClearanceMatchesNameClearance | ) |
Definition at line 40 of file test_pin_number_default_style_clearance.cpp.
References std::abs(), BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), PIN_LAYOUT_CACHE::GetPinNameInfo(), PIN_LAYOUT_CACHE::GetPinNumberInfo(), pin, PIN_RIGHT, PT_BIDI, and schIUScale.