KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_target3001_fonts.cpp File Reference
#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)
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

◆ lastCentreFromStem()

static double lastCentreFromStem ( const wxString & aText,
const VECTOR2I & aSize )
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().