mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-20 23:11:41 +00:00
Resolve fonts in library symbols.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/19641
This commit is contained in:
parent
fdb460441f
commit
413fe65bd8
@ -578,6 +578,16 @@ LIB_SYMBOL* SCH_IO_KICAD_SEXPR_PARSER::parseLibSymbol( LIB_SYMBOL_MAP& aSymbolLi
|
||||
symbol->GetDrawItems().sort();
|
||||
m_symbolName.clear();
|
||||
|
||||
const std::vector<wxString>* embeddedFonts =
|
||||
symbol->GetEmbeddedFiles()->UpdateFontFiles();
|
||||
|
||||
symbol->RunOnChildren(
|
||||
[&]( SCH_ITEM* aChild )
|
||||
{
|
||||
if( EDA_TEXT* textItem = dynamic_cast<EDA_TEXT*>( aChild ) )
|
||||
textItem->ResolveFont( embeddedFonts );
|
||||
} );
|
||||
|
||||
return symbol.release();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user