Jeff Young
d0023add81
Code clarity.
4 years ago
Marek Roszko
88c7322a0d
EDA_TEXT Get/SetTextSize should use VECTOR2I
4 years ago
Jeff Young
47e002a33d
Add font to status bar for text objects.
4 years ago
Jeff Young
85680886f8
Adjust outline font SCH_TEXT positioning so it better matches SCH_FIELD text.
4 years ago
Jeff Young
e8a543f1ea
Colors for text in PL_Editor and Eeschema.
Fixes https://gitlab.com/kicad/code/kicad/issues/1952
4 years ago
Wayne Stambaugh
7da7864f5e
Fix some Coverity issues.
4 years ago
Wayne Stambaugh
7b2d9dfc0c
Fix some Coverity uninitialized scalar variable issues.
4 years ago
Jeff Young
4f62960334
Update message panel from PCB point editor and SCH drawing tools.
Fixes https://gitlab.com/kicad/code/kicad/issues/11186
4 years ago
Jeff Young
e03b06927d
Fix rotation problems for knockout fp text, and implement 3D rendering.
Fixes https://gitlab.com/kicad/code/kicad/issues/11086
4 years ago
jean-pierre charras
e7f379c31d
Pcbnew, Knockout texts: fix issues seen with rotated texts.
Fixes #11085
https://gitlab.com/kicad/code/kicad/issues/11085
4 years ago
Jeff Young
40fd8860fe
Plotting (and some bug fixes) for knockout text.
4 years ago
Jeff Young
293021c58c
ADDED: knockout pcb and fp text.
Fixes https://gitlab.com/kicad/code/kicad/issues/7055
4 years ago
qu1ck
b06c2585d9
Change GetEffectiveTextShape() to return outline
instead of triangulated polygon
4 years ago
Seth Hillbrand
a7ea868282
Avoid overflow in textbox
Count() returns unsigned values. Since, we subtract 1 from this value,
if the count is 0, we will underflow the unsigned value, creating an
extremely large value that we multiply by the interline spacing.
(cherry picked from commit d29d981784 )
4 years ago
Jeff Young
47315864c4
EEschema features need to process ~ for empty string; not EDA_TEXT.
Fixes https://gitlab.com/kicad/code/kicad/issues/10918
4 years ago
Jeff Young
3b5474f190
Don't punt on TrueType char thickness; analyze it.
Fixes https://gitlab.com/kicad/code/kicad/issues/10740
4 years ago
Jeff Young
5ce559176d
Overhaul the font metrics calcs for overbar, italics and bboxes.
4 years ago
jean-pierre charras
07e1278c05
fix incorrect calculation EDA_TEXT::GetTextBox() for empty texts.
It generates KiROUND alert.
4 years ago
Jeff Young
7dadc9d2f0
Fix text bounding boxes.
4 years ago
Jeff Young
0634cf261a
Don't try to move bounding box caches.
4 years ago
Jeff Young
5739505aa3
TextBoxes for PCBNew.
4 years ago
Jeff Young
8c246a761d
Move EDA_ANGLE from int to double.
4 years ago
Jeff Young
e61144d45a
Finish with EDA_ANGLE.
4 years ago
Jeff Young
73a2984963
Fixes for rotated footprint text.
4 years ago
Jeff Young
236feeb592
Cleanup GRText APIs, 3D Viewer <-> board APIs, and Plotter APIs.
Also fixes a bug where outline fonts weren't being handled for footprint
text in 3D Viewer, and a copy/paste error in stroke font handling for
both PCB and footprint text in 3D Viewer.
Fixes https://gitlab.com/kicad/code/kicad/issues/10319
4 years ago
Jeff Young
7d032f9c2f
Outline font rendering for Cairo, plotter, printer and 3D viewer.
Fixes https://gitlab.com/kicad/code/kicad/issues/10319
4 years ago
Jeff Young
76368af7b9
Font cleanup and bug fixes.
4 years ago
Jeff Young
04c76f10e9
Performance enhancements for fonts.
4 years ago
Jeff Young
438c63f587
Fix outline font boundingbox issues.
4 years ago
Jeff Young
aef2a3fca4
Default font for eeschema.
4 years ago
Jeff Young
eb58d7e44c
Text glyph caches and bug fixes.
1) Unify metrics between stroke and outline fonts
2) Unify handling of rotation and mirroring
3) Bug fixes in collision handling
4) Use of VECTOR2I (instead of VECTOR2D) for world-coordinates
5) Generate outline font overbar with rounded ends and fix rotation
bugs
6) Generate wxEVT_CHOICE events from FONT_CHOICE::SetFontSelection
7) Change text-item PNS SOLIDs to use compound shapes
4 years ago
Jeff Young
72340fcee2
Implement router and DRC collisions for outline fonts.
4 years ago
Ola Rinta-Koski
72b69e8d7f
File format changes for fonts.
4 years ago
Jeff Young
89c0f8e297
Move to new font engine.
4 years ago
Marek Roszko
c4c56de708
Neurotically update position wxPoint usages
4 years ago
Marek Roszko
347e03363a
Convert wxPoint/wxSize starting from EDA_RECT usages
4 years ago
Jeff Young
ccb94fd1a7
APIs for passing KIFONT::FONT pointers around.
Also some clean-up and bug fixes.
4 years ago
Jeff Young
dd6cd7d184
Pull some more improvements in from rockola/kicad-strokefont.
This one is primarily about pushing TEXT_ATTRIBUTES in to the GAL
API, but it also includes adding EDA_ANGLE signatures to some trig
routines to ease integration.
4 years ago
Jeff Young
86cb57f4a7
Cherry-pick TEXT_ATTRIBUTES and EDA_ANGLE from rockola/kicad-strokefont
4 years ago
Jeff Young
7ccf658379
Fix stupid coding error.
(Don't use epsilon on non-coordinate values, and in particular,
definitely not on polygon vertex count.)
4 years ago
Jeff Young
dede3f5709
Implement an EPSILON for library/schematic/board checking.
This is mainly to not get caught out when format changes result in
different values being stored vs. calculated (such as for arcs).
4 years ago
Jeff Young
40b4052ad4
Improve text hittesting in schematics.
Text has a fairly big bounding box to account for descenders, overbars,
etc., but it makes it feel too sloppy for hittesting. This change
allows selection disambiguation to look at the actual strokes of the
text when deciding what's "closest".
Fixes https://gitlab.com/kicad/code/kicad/issues/9506
4 years ago
Wayne Stambaugh
1f7fd436a2
Move board object polygon code into the object source files.
Having the board object polygon code all defined in a separate file made
finding the polygon code for an object difficult to find.
4 years ago
Jeff Young
b52529521e
Replace individual LIB_* shapes with LIB_SHAPE (based on EDA_SHAPE).
Also moves to more capable FILL_T model that can be shared.
4 years ago
Jeff Young
a41944020d
Push most of PCB_SHAPE impl down in to EDA_SHAPE.
5 years ago
Jeff Young
cef5792e78
Formatting.
4 years ago
Jeff Young
6aaf4413b3
Fix kicad_string.h / string.cpp mismatch.
They don't define a KiCad string class, so the header file name was
somewhat misleading. But the fact that they didn't match definitely
made coding more difficult.
4 years ago
Wayne Stambaugh
89b1fdabe9
Pass COLOR4D object by reference instead of on the stack.
4 years ago
Wayne Stambaugh
bcd6bddfd4
Start expunging NULL.
Given that KiCad is a C++ project, we should really be using nullptr
instead of NULL.
4 years ago
Jeff Young
fb4343bc8f
Expand text bounding boxes a bit for diacriticals, descenders, etc.
Fixes https://gitlab.com/kicad/code/kicad/issues/8551
5 years ago