From 2e556d0abcaa6cd9d68b4e45202d741baf5323fc Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 3 Apr 2025 10:55:01 +0100 Subject: [PATCH] Plot tables in footprints. --- pcbnew/plot_brditems_plotter.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pcbnew/plot_brditems_plotter.cpp b/pcbnew/plot_brditems_plotter.cpp index e75786a969..2bfd75a654 100644 --- a/pcbnew/plot_brditems_plotter.cpp +++ b/pcbnew/plot_brditems_plotter.cpp @@ -648,6 +648,21 @@ void BRDITEMS_PLOTTER::PlotFootprintGraphicItems( const FOOTPRINT* aFootprint ) break; } + case PCB_TABLE_T: + { + const PCB_TABLE* table = static_cast( item ); + + m_plotter->SetTextMode( PLOT_TEXT_MODE::STROKE ); + + for( const PCB_TABLECELL* cell : table->GetCells() ) + PlotText( cell, cell->GetLayer(), cell->IsKnockout(), cell->GetFontMetrics() ); + + PlotTableBorders( table ); + + m_plotter->SetTextMode( GetTextMode() ); + break; + } + case PCB_DIM_ALIGNED_T: case PCB_DIM_CENTER_T: case PCB_DIM_RADIAL_T: