mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02: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();
|
symbol->GetDrawItems().sort();
|
||||||
m_symbolName.clear();
|
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();
|
return symbol.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user