Underline icon

A free pencil-style underline icon, drawn by code from 3 lines and 1 arc. Use it as an SVG, a React component, or by name. MIT licensed.

underline

01Use it

Use underline

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 { Underline } from '@matita/icons/react';

<Underline size={24} />

// or by name
import { SketchIcon } from '@matita/icons/react';
<SketchIcon name="underline" />

JavaScript

import { Underline, toSvg } from '@matita/icons';

toSvg(Underline, { 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-underline" data-sketch="" aria-hidden="true"><path d="M7.01 3.73Q6.64 7.61 6.87 11.5" stroke-width="1.6"/><path d="M16.93 10.37C16.9 10.72 16.92 11.79 16.74 12.46C16.56 13.12 16.28 13.85 15.84 14.38C15.4 14.91 14.73 15.35 14.09 15.63C13.45 15.91 12.7 16.03 12 16.04C11.3 16.05 10.5 15.98 9.88 15.69C9.26 15.4 8.73 14.82 8.27 14.29C7.82 13.75 7.36 13.14 7.15 12.49C6.94 11.84 7.04 10.72 7.02 10.37" stroke-width="1.76"/><path d="M16.85 3.58Q17.1 7.46 16.85 11.34" stroke-width="1.616"/><path d="M4.41 20.32Q11.88 20.6 19.34 20.44" stroke-width="1.52"/></svg>

Pencil variant

import '@matita/icons/pencil.css';
import { Underline } from '@matita/icons/react';

<Underline size={32} pencil />

The file is icons/underline.svg in the package (pencil/underline.svg for the pencil variant). Matita 0.2.1.

02How it's drawn

The recipe for underline

Underline is not stored as a drawing. It is a recipe of 3 lines and 1 arc 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
L 7 4 7 11;
A 12 11 5 0 180;
L 17 4 17 11;
L 5 20.5 19 20.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 underline. Seed 0 is the default.

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

True pixel sizes.

Ink
Pencil