Italic icon
A free pencil-style italic icon, drawn by code from 3 lines. Use it as an SVG, a React component, or by name. MIT licensed.
01Use it
Use italic
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 { Italic } from '@matita/icons/react';
<Italic size={24} />
// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="italic" />JavaScript
import { Italic, toSvg } from '@matita/icons';
toSvg(Italic, { 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-italic" data-sketch="" aria-hidden="true"><path d="M9.9 4.69Q14.52 4.21 19.15 4.5" stroke-width="1.456"/><path d="M4.68 19.31Q9.56 19.29 14.44 19.41" stroke-width="1.648"/><path d="M14.64 3.91Q11.92 11.87 9.33 19.88" stroke-width="1.408"/></svg>Pencil variant
import '@matita/icons/pencil.css';
import { Italic } from '@matita/icons/react';
<Italic size={32} pencil />The file is icons/italic.svg in the package (pencil/italic.svg for the pencil variant). Matita 0.2.1.
02How it's drawn
The recipe for italic
Italic is not stored as a drawing. It is a recipe of 3 lines 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.
L 10 4.5 19 4.5;
L 5 19.5 14 19.5;
L 14.5 4.5 9.5 19.5
italic as a number: 1625946989
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 italic. Seed 0 is the default.
True pixel sizes.