kicad/include/drawing_sheet
Jeff Young 16f286735d Cache LIB_PIN text extents for performance.
Also fixes a bug where we didn't triangulate at all when the char
count didn't warrant the likely overhead of spinning up a
thread_pool.

And fix another bug where EDA_TEXT::GetRenderCache() wasn't using
the given font.

Also reverts using the cache for drawing-sheet text.  The text
items are created from scratch from the data items each time
they're drawn, so there's never an existing cache to make use of.
Instead, we now check that the item is in the view, using a very
approximate bounding box generator (because even generating a
real bounding box shows up large in profiles).

And, lastly, fixes a bug where EndPos was never considered in
DS_DATA_ITEM::IsInsidePage().

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14822

(cherry picked from commit f35a88ce0b)
2023-06-04 21:11:06 +01:00
..
ds_data_item.h Cache LIB_PIN text extents for performance. 2023-06-04 21:11:06 +01:00
ds_data_model.h Retire DPOINT and DSIZE. 2022-01-20 21:10:04 +00:00
ds_draw_item.h Cache LIB_PIN text extents for performance. 2023-06-04 21:11:06 +01:00
ds_file_versions.h Font support for drawing sheet editor. 2022-02-28 18:05:26 +00:00
ds_painter.h Support SHEET_PATH when printing. 2023-03-14 11:56:33 +00:00
ds_proxy_undo_item.h More worksheet -> drawing sheet cleanup. 2021-05-31 12:26:44 +01:00
ds_proxy_view_item.h Allow text variable resolution through properties in drawing sheet text. 2022-09-20 15:28:05 +01:00