Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
63e987ed
Commit
63e987ed
authored
Apr 05, 2013
by
Lorenzo Marcantonio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed the default generation of phantom text by the postscript plot driver.
It crashes Adobe's own implementation of postscript!
parent
752e4a4a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
plot_common.h
include/plot_common.h
+10
-3
pcb_plot_params.cpp
pcbnew/pcb_plot_params.cpp
+1
-1
No files found.
include/plot_common.h
View file @
63e987ed
...
...
@@ -37,6 +37,7 @@ enum PlotFormat {
* 2) only use native postscript fonts
* 3) use the internal vector font and add 'phantom' text to aid
* searching
* 4) keep the default for the plot driver
*
* This is recognized by the DXF driver too, where NATIVE emits
* TEXT entities instead of stroking the text
...
...
@@ -44,7 +45,8 @@ enum PlotFormat {
enum
PlotTextMode
{
PLOTTEXTMODE_STROKE
,
PLOTTEXTMODE_NATIVE
,
PLOTTEXTMODE_PHANTOM
PLOTTEXTMODE_PHANTOM
,
PLOTTEXTMODE_DEFAULT
};
...
...
@@ -439,7 +441,8 @@ public:
*/
virtual
void
SetTextMode
(
PlotTextMode
mode
)
{
m_textMode
=
mode
;
if
(
mode
!=
PLOTTEXTMODE_DEFAULT
)
m_textMode
=
mode
;
}
virtual
void
SetDefaultLineWidth
(
int
width
);
...
...
@@ -514,6 +517,9 @@ class PS_PLOTTER : public PSLIKE_PLOTTER
public
:
PS_PLOTTER
()
{
// The phantom plot in postscript is an hack and reportedly
// crashes Adobe's own postscript interpreter!
m_textMode
=
PLOTTEXTMODE_STROKE
;
}
static
wxString
GetDefaultFileExtension
()
...
...
@@ -838,7 +844,8 @@ public:
*/
virtual
void
SetTextMode
(
PlotTextMode
mode
)
{
textAsLines
=
(
mode
!=
PLOTTEXTMODE_NATIVE
);
if
(
mode
!=
PLOTTEXTMODE_DEFAULT
)
textAsLines
=
(
mode
!=
PLOTTEXTMODE_NATIVE
);
}
virtual
bool
StartPlot
();
...
...
pcbnew/pcb_plot_params.cpp
View file @
63e987ed
...
...
@@ -111,7 +111,7 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
m_color
=
BLACK
;
m_referenceColor
=
BLACK
;
m_valueColor
=
BLACK
;
m_textMode
=
PLOTTEXTMODE_PHANTOM
;
m_textMode
=
PLOTTEXTMODE_DEFAULT
;
// This parameter controls if the NPTH pads will be plotted or not
// it is are "local" parameters
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment