KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_pin_number_default_style_clearance.cpp File Reference

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)
 

Detailed Description

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.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()