gentleface

Gentleface › Design › ruler

ruler icon

Ruler: measure, ruler, measurement, scale bar. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Animated ruler-measure · line-round

A short cursor runs up inside the ruler and back. Each tick reaches down to meet it as it passes and springs back after.

Download SVG

Native SVG animation, with no CSS or script. It loops by itself. Inline it to take the text color: in an <img> it draws black. To play it once on hover or click, run 0.2 s to 2.5 s. Examples and helper.

Code line-round

SVG
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.793 4.086C12.973 4.266 13.113 4.472 13.214 4.706C13.324 4.959 13.379 5.224 13.379 5.5C13.379 5.776 13.324 6.041 13.214 6.294C13.113 6.528 12.973 6.734 12.793 6.914L6.914 12.793C6.734 12.973 6.528 13.113 6.294 13.214C6.041 13.324 5.776 13.379 5.5 13.379C5.224 13.379 4.959 13.324 4.706 13.214C4.472 13.113 4.266 12.973 4.086 12.793L2.207 10.914C2.027 10.734 1.887 10.528 1.786 10.294C1.676 10.041 1.621 9.776 1.621 9.5C1.621 9.224 1.676 8.959 1.786 8.706C1.887 8.472 2.027 8.266 2.207 8.086L8.086 2.207C8.266 2.027 8.472 1.887 8.706 1.786C8.959 1.676 9.224 1.621 9.5 1.621C9.776 1.621 10.041 1.676 10.294 1.786C10.528 1.887 10.734 2.027 10.914 2.207L12.793 4.086ZM4.793 12.086C4.988 12.281 5.224 12.379 5.5 12.379C5.776 12.379 6.012 12.281 6.207 12.086L12.086 6.207C12.281 6.012 12.379 5.776 12.379 5.5C12.379 5.224 12.281 4.988 12.086 4.793L10.207 2.914C10.012 2.719 9.776 2.621 9.5 2.621C9.224 2.621 8.988 2.719 8.793 2.914L8.207 3.5L9.854 5.146C9.951 5.244 10 5.362 10 5.5C10 5.638 9.951 5.756 9.854 5.854C9.754 5.953 9.636 6.003 9.5 6.003C9.364 6.003 9.246 5.953 9.146 5.854L7.5 4.207L6.207 5.5L7.854 7.146C7.953 7.246 8.003 7.364 8.003 7.5C8.003 7.636 7.953 7.754 7.854 7.854C7.754 7.953 7.636 8.003 7.5 8.003C7.364 8.003 7.246 7.953 7.146 7.854L5.5 6.207L4.207 7.5L5.854 9.146C5.953 9.246 6.003 9.364 6.003 9.5C6.003 9.636 5.953 9.754 5.854 9.854C5.756 9.951 5.638 10 5.5 10C5.362 10 5.244 9.951 5.146 9.854L3.5 8.207L2.914 8.793C2.719 8.988 2.621 9.224 2.621 9.5C2.621 9.776 2.719 10.012 2.914 10.207L4.793 12.086Z"/></svg>
React
// Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler
import type { SVGProps } from 'react';

export function RulerIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12.793 4.086C12.973 4.266 13.113 4.472 13.214 4.706C13.324 4.959 13.379 5.224 13.379 5.5C13.379 5.776 13.324 6.041 13.214 6.294C13.113 6.528 12.973 6.734 12.793 6.914L6.914 12.793C6.734 12.973 6.528 13.113 6.294 13.214C6.041 13.324 5.776 13.379 5.5 13.379C5.224 13.379 4.959 13.324 4.706 13.214C4.472 13.113 4.266 12.973 4.086 12.793L2.207 10.914C2.027 10.734 1.887 10.528 1.786 10.294C1.676 10.041 1.621 9.776 1.621 9.5C1.621 9.224 1.676 8.959 1.786 8.706C1.887 8.472 2.027 8.266 2.207 8.086L8.086 2.207C8.266 2.027 8.472 1.887 8.706 1.786C8.959 1.676 9.224 1.621 9.5 1.621C9.776 1.621 10.041 1.676 10.294 1.786C10.528 1.887 10.734 2.027 10.914 2.207L12.793 4.086ZM4.793 12.086C4.988 12.281 5.224 12.379 5.5 12.379C5.776 12.379 6.012 12.281 6.207 12.086L12.086 6.207C12.281 6.012 12.379 5.776 12.379 5.5C12.379 5.224 12.281 4.988 12.086 4.793L10.207 2.914C10.012 2.719 9.776 2.621 9.5 2.621C9.224 2.621 8.988 2.719 8.793 2.914L8.207 3.5L9.854 5.146C9.951 5.244 10 5.362 10 5.5C10 5.638 9.951 5.756 9.854 5.854C9.754 5.953 9.636 6.003 9.5 6.003C9.364 6.003 9.246 5.953 9.146 5.854L7.5 4.207L6.207 5.5L7.854 7.146C7.953 7.246 8.003 7.364 8.003 7.5C8.003 7.636 7.953 7.754 7.854 7.854C7.754 7.953 7.636 8.003 7.5 8.003C7.364 8.003 7.246 7.953 7.146 7.854L5.5 6.207L4.207 7.5L5.854 9.146C5.953 9.246 6.003 9.364 6.003 9.5C6.003 9.636 5.953 9.754 5.854 9.854C5.756 9.951 5.638 10 5.5 10C5.362 10 5.244 9.951 5.146 9.854L3.5 8.207L2.914 8.793C2.719 8.988 2.621 9.224 2.621 9.5C2.621 9.776 2.719 10.012 2.914 10.207L4.793 12.086Z" />
    </svg>
  );
}
Vue
Vue: see /icons/ruler.md
Svelte
Svelte: see /icons/ruler.md
HTML img
HTML img: see /icons/ruler.md
CSS
CSS: see /icons/ruler.md
Data URL
Data URL: see /icons/ruler.md
Sprite
Sprite: see /icons/ruler.md
SwiftUI
SwiftUI: see /icons/ruler.md
Compose
Compose: see /icons/ruler.md
Android XML
Android XML: see /icons/ruler.md
Flutter
Flutter: see /icons/ruler.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. More in how to use.

With npm: import { RulerIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
measure, ruler, measurement, scale bar, map scale
Alternatives
Also fits
  • tape measure: measure in a design or a document (ruler owns measure)
Not for
  • crop and rotate (use crop-rotate): Material's straighten is a ruler, but ruler owns measure
Tags
ruler, measure, measurement, length, size, dimensions, scale
Category
Design
Component name
RulerIcon
History
  • added
  • released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

Family 3

More design icons

For agents

Metadata: /icons/ruler.json · Markdown: /icons/ruler.md · SVG: https://gentleface.com/svg/{style}/16/ruler.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/ruler.png