Printer icon
A free pencil-style printer icon, drawn by code from 3 polylines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use printer
One package, four ways in. The icon inherits currentColor and is decorative unless you give it a title. Install it with npm i @matita/icons.
React
import { Printer } from '@matita/icons/react';
<Printer size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="printer" />JavaScript
import { Printer, toSvg } from '@matita/icons';
toSvg(Printer, { size: 24 }); // SVG stringSVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" overflow="visible" class="sketch-icon sketch-icon-printer" data-sketch="" aria-hidden="true"><path d="M7.21 9.1Q6.83 6.23 6.9 3.34Q11.89 3.71 16.89 3.41Q16.77 6.5 16.81 9.6" stroke-width="1.664"/><path d="M7.51 16.97Q5.8 17.03 4.09 16.97Q3.92 13.02 3.89 9.06Q12.01 8.85 20.13 9.06Q20.32 13.02 20.02 16.97Q18.28 17.11 16.53 17.02" stroke-width="1.728"/><path d="M6.97 13.52Q7.19 16.91 7.15 20.31Q12.15 20.37 17.16 20.62Q17.32 17.07 16.93 13.54" stroke-width="1.712"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Printer } from '@matita/icons/react';
<Printer size={32} pencil />The file is icons/printer.svg in the package (pencil/printer.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for printer
Printer is not stored as a drawing. It is a recipe of 3 polylines on a 24 by 24 grid, and a small program draws it like a pencil would. The wobble comes from the name, so it always comes out the same.
P 7 9 7 3.5 17 3.5 17 9;
P 7 17 4 17 4 9 20 9 20 17 17 17;
P 7 14 7 20.5 17 20.5 17 14
printer as a number: 651651071
Shapes: L line, P polyline, Z closed shape, R rectangle, C circle, E ellipse, A arc, Q curve, O dot. Separate shapes with ;. Edits stay on this page.
03Takes, sizes, pencil
Same icon, every way
Pass a seed for another take of the same recipe. The wobble is capped, so it still reads at 16 px.
Five seeds of printer. Seed 0 is the default.
True pixel sizes.