Fix pns_debug_tool build due to font metrics change

This commit is contained in:
Marek Roszko 2023-08-06 16:51:29 -04:00
parent 74ce1de3f4
commit 97fbbceae7
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ void LABEL_MANAGER::Add( VECTOR2I target, wxString msg, COLOR4D color )
KIFONT::FONT* strokeFont = KIFONT::FONT::GetFont( wxEmptyString );
UTF8 text( msg );
VECTOR2I textDims = strokeFont->StringBoundaryLimits( text, VECTOR2D( m_textSize, m_textSize ),
m_textSize/8, false, false );
m_textSize / 8, false, false,
KIFONT::METRICS::Default() );
lbl.m_bbox.SetOrigin( lbl.m_target - textDims - VECTOR2I( m_textSize, m_textSize ) );
lbl.m_bbox.SetSize( textDims );