Printer icon

Added in v0.2.0

A free pencil-style printer icon, drawn by code from 2 polylines, 1 closed shape, 1 line and 1 dot. Use it as an SVG, a React component, or by name. MIT licensed.

printer

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 string

SVG

<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.71 8.1Q7.39 5.98 7.4 3.84Q11.89 4.18 16.39 3.91Q16.29 6.25 16.31 8.6" stroke-width="1.664"/><path d="M2.42 7.97Q12 7.89 21.59 7.97Q21.47 12.02 21.39 16.06Q12.01 16.03 2.63 16.06Q2.79 12.01 2.42 7.97Q3.16 8.01 3.91 7.97" stroke-width="1.52"/><path d="M6.46 15.71Q6.29 18.03 6.36 20.35Q11.99 20.27 17.62 20.49Q17.54 18.06 17.61 15.64" stroke-width="1.76"/><path d="M8.78 18.6Q12 18.4 15.21 18.31" stroke-width="1.6"/><path d="M18.17 11.41l.01 0" stroke-width="2.48"/></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.7.0.

02How it's drawn

The recipe for printer

Printer is not stored as a drawing. It is a recipe of 2 polylines, 1 closed shape, 1 line and 1 dot 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.

A · Recipe
P 7.5 8 7.5 4 16.5 4 16.5 8;
Z 2.5 8 21.5 8 21.5 16 2.5 16;
P 6.5 16 6.5 20.5 17.5 20.5 17.5 16;
L 9 18.5 15 18.5;
O 18 11.5
B · Plotted
C · Drawn
How it works

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.

seed 0
seed 1
seed 2
seed 3
seed 4

Five seeds of printer. Seed 0 is the default.

wobble 0
wobble 0.25
wobble 0.5
wobble 0.75
wobble 1

printer from exact shapes (wobble 0) to the full hand (wobble 1, the default). The exact version is also a ready-made file: exact/printer.svg.

16 px
20 px
24 px
32 px
48 px
96 px

True pixel sizes.

Ink
Pencil