pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include "global.h"
#include <math.h>
#include <memory.h>
#include <limits.h>
#include "create.h"
#include "data.h"
#include "draw.h"
#include "misc.h"
#include "move.h"
#include "remove.h"
#include "rtree.h"
#include "strflags.h"
#include "undo.h"
#include "pcb-printf.h"
Go to the source code of this file.
Defines | |
#define | CELL_SIZE ((Coord)MIL_TO_COORD(100)) |
#define | CELL_OFFSET ((Coord)MIL_TO_COORD(10)) |
#define | XYtoSym(x, y) |
Functions | |
static int | FontEdit (int argc, char **argv, Coord Ux, Coord Uy) |
static int | FontSave (int argc, char **argv, Coord Ux, Coord Uy) |
Variables | |
static const char | fontedit_syntax [] = "FontEdit()" |
static const char | fontedit_help [] = "Convert the current font to a PCB for editing." |
static const char | fontsave_syntax [] = "FontSave()" |
static const char | fontsave_help [] = "Convert the current PCB back to a font." |
HID_Action | fontmode_action_list [] |
PCB, interactive printed circuit board design
Copyright (C) 2006 DJ Delorie
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Contact addresses for paper mail and Email: DJ Delorie, 334 North Road, Deerfield NH 03037-1110, USA dj@delorie.com
Definition in file fontmode.c.
#define CELL_OFFSET ((Coord)MIL_TO_COORD(10)) |
Definition at line 66 of file fontmode.c.
#define CELL_SIZE ((Coord)MIL_TO_COORD(100)) |
Definition at line 65 of file fontmode.c.
Referenced by FontEdit(), and FontSave().
((x + CELL_OFFSET) / CELL_SIZE - 1 \ + 16 * ((y + CELL_OFFSET) / CELL_SIZE - 1))
Definition at line 68 of file fontmode.c.
Referenced by FontSave().
Definition at line 87 of file fontmode.c.
References PCBType::Bloat, SettingType::Bloat, BOTTOM_SILK_LAYER, CELL_SIZE, CreateDrawnLineOnLayer(), PCBType::Data, SymbolType::Delta, PCBType::Font, get_unit_struct(), PCBType::Grid, SettingType::grid_unit, hid_action(), hid_actionl(), DataType::Layer, DataType::LayerN, SymbolType::Line, SymbolType::LineN, max_copper_layer, FontType::MaxHeight, PCBType::MaxHeight, PCBType::MaxWidth, maxx, maxy, MIL_TO_COORD, PCBType::minSlk, SettingType::minSlk, PCBType::minWid, SettingType::minWid, miny, MoveLayer(), MoveLayerToGroup(), LayerType::Name, NoFlags, PCB, s, Settings, PCBType::Shrink, SettingType::Shrink, FontType::Symbol, TOP_SILK_LAYER, x, and y.
Definition at line 194 of file fontmode.c.
References CELL_SIZE, CreateNewLineInSymbol(), PCBType::Data, SymbolType::Delta, PCBType::Font, DataType::Layer, LayerType::Line, SymbolType::LineN, PCB, s, SetFontInfo(), FontType::Symbol, SymbolType::Valid, SymbolType::Width, and XYtoSym.
const char fontedit_help[] = "Convert the current font to a PCB for editing." [static] |
Definition at line 73 of file fontmode.c.
const char fontedit_syntax[] = "FontEdit()" [static] |
Definition at line 71 of file fontmode.c.
{ {"FontEdit", 0, FontEdit, fontedit_help, fontedit_syntax}, {"FontSave", 0, FontSave, fontsave_help, fontsave_syntax} }
Definition at line 263 of file fontmode.c.
const char fontsave_help[] = "Convert the current PCB back to a font." [static] |
Definition at line 182 of file fontmode.c.
const char fontsave_syntax[] = "FontSave()" [static] |
Definition at line 180 of file fontmode.c.