KiCad PCB EDA Suite
PS_plotter.cpp File Reference

KiCad: specialized plotter for PS files format. More...

#include <convert_basic_shapes_to_polygon.h>
#include <macros.h>
#include <math/util.h>
#include <trigo.h>
#include <plotters/plotters_pslike.h>

Go to the source code of this file.

Functions

static int getFillId (FILL_T aFill)
 
VECTOR2D mapCoords (const VECTOR2D &aSource)
 

Variables

const double hv_widths [256]
 Character widths for Helvetica. More...
 
const double hvb_widths [256]
 Character widths for Helvetica-Bold. More...
 
const double hvo_widths [256]
 Character widths for Helvetica-Oblique. More...
 
const double hvbo_widths [256]
 Character widths for Helvetica-BoldOblique. More...
 

Detailed Description

KiCad: specialized plotter for PS files format.

Definition in file PS_plotter.cpp.

Function Documentation

◆ getFillId()

static int getFillId ( FILL_T  aFill)
static

Definition at line 50 of file PS_plotter.cpp.

51{
52 if( aFill == FILL_T::NO_FILL )
53 return 0;
54
55 if( aFill == FILL_T::FILLED_SHAPE )
56 return 1;
57
58 return 2;
59}
@ FILLED_SHAPE

References FILLED_SHAPE, and NO_FILL.

Referenced by PS_PLOTTER::Arc(), PS_PLOTTER::Circle(), PS_PLOTTER::PlotPoly(), and PS_PLOTTER::Rect().

◆ mapCoords()

Variable Documentation

◆ hv_widths

const double hv_widths

Character widths for Helvetica.

Definition at line 971 of file PS_plotter.cpp.

Referenced by PSLIKE_PLOTTER::postscriptOverlinePositions(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().

◆ hvb_widths

const double hvb_widths

Character widths for Helvetica-Bold.

Definition at line 1010 of file PS_plotter.cpp.

Referenced by PSLIKE_PLOTTER::postscriptOverlinePositions(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().

◆ hvbo_widths

const double hvbo_widths

Character widths for Helvetica-BoldOblique.

Definition at line 1088 of file PS_plotter.cpp.

Referenced by PSLIKE_PLOTTER::postscriptOverlinePositions(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().

◆ hvo_widths

const double hvo_widths

Character widths for Helvetica-Oblique.

Definition at line 1049 of file PS_plotter.cpp.

Referenced by PSLIKE_PLOTTER::postscriptOverlinePositions(), and PSLIKE_PLOTTER::returnPostscriptTextWidth().