7
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:
Jeff Young 2025-01-16 15:41:25 +00:00
parent fdb460441f
commit 413fe65bd8

View File

@ -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();
}