# ruler icon

Ruler. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/ruler

- Category: Design
- Use it for: measure, ruler, measurement
- Tags: ruler, measure, measurement, length, size, dimensions, scale
- Family: ruler-vertical
- Component name: RulerIcon
- Added: 2026-10-14

## Alternatives

- `tape-measure`: clothing size guides and measuring on site
- `ruler-dimension-line`: the dimensions of or distance between objects
- `angle`: measure an angle

## 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

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/ruler.svg · PNG https://gentleface.com/png/line-round/16/ruler.png · https://gentleface.com/png/line-round/32/ruler.png · https://gentleface.com/png/line-round/48/ruler.png
- line-soft: https://gentleface.com/svg/line-soft/16/ruler.svg · PNG https://gentleface.com/png/line-soft/16/ruler.png · https://gentleface.com/png/line-soft/32/ruler.png · https://gentleface.com/png/line-soft/48/ruler.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/ruler.svg · PNG https://gentleface.com/png/line-sharp/16/ruler.png · https://gentleface.com/png/line-sharp/32/ruler.png · https://gentleface.com/png/line-sharp/48/ruler.png
- solid-round: https://gentleface.com/svg/solid-round/16/ruler.svg · PNG https://gentleface.com/png/solid-round/16/ruler.png · https://gentleface.com/png/solid-round/32/ruler.png · https://gentleface.com/png/solid-round/48/ruler.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/ruler.svg · PNG https://gentleface.com/png/solid-soft/16/ruler.png · https://gentleface.com/png/solid-soft/32/ruler.png · https://gentleface.com/png/solid-soft/48/ruler.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/ruler.svg · PNG https://gentleface.com/png/solid-sharp/16/ruler.png · https://gentleface.com/png/solid-sharp/32/ruler.png · https://gentleface.com/png/solid-sharp/48/ruler.png

The SVG of every style: https://gentleface.com/icons/ruler.json (`svg`).

## Code (line-round)

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. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```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

```tsx
// 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
<!-- Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler -->
<template>
  <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>
</template>
```

### Svelte

```svelte
<!-- Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler -->
<script>
  let props = $props();
</script>

<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>
```

### HTML img

```html
<!-- Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/ruler.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler. Takes the text color. */
.icon-ruler {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath 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'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#ruler"/></svg>
```

### SwiftUI

```swift
// Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler
import SwiftUI

struct RulerIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.793, y: 4.086))
        p.addCurve(to: CGPoint(x: 13.214, y: 4.706), control1: CGPoint(x: 12.973, y: 4.266), control2: CGPoint(x: 13.113, y: 4.472))
        p.addCurve(to: CGPoint(x: 13.379, y: 5.5), control1: CGPoint(x: 13.324, y: 4.959), control2: CGPoint(x: 13.379, y: 5.224))
        p.addCurve(to: CGPoint(x: 13.214, y: 6.294), control1: CGPoint(x: 13.379, y: 5.776), control2: CGPoint(x: 13.324, y: 6.041))
        p.addCurve(to: CGPoint(x: 12.793, y: 6.914), control1: CGPoint(x: 13.113, y: 6.528), control2: CGPoint(x: 12.973, y: 6.734))
        p.addLine(to: CGPoint(x: 6.914, y: 12.793))
        p.addCurve(to: CGPoint(x: 6.294, y: 13.214), control1: CGPoint(x: 6.734, y: 12.973), control2: CGPoint(x: 6.528, y: 13.113))
        p.addCurve(to: CGPoint(x: 5.5, y: 13.379), control1: CGPoint(x: 6.041, y: 13.324), control2: CGPoint(x: 5.776, y: 13.379))
        p.addCurve(to: CGPoint(x: 4.706, y: 13.214), control1: CGPoint(x: 5.224, y: 13.379), control2: CGPoint(x: 4.959, y: 13.324))
        p.addCurve(to: CGPoint(x: 4.086, y: 12.793), control1: CGPoint(x: 4.472, y: 13.113), control2: CGPoint(x: 4.266, y: 12.973))
        p.addLine(to: CGPoint(x: 2.207, y: 10.914))
        p.addCurve(to: CGPoint(x: 1.786, y: 10.294), control1: CGPoint(x: 2.027, y: 10.734), control2: CGPoint(x: 1.887, y: 10.528))
        p.addCurve(to: CGPoint(x: 1.621, y: 9.5), control1: CGPoint(x: 1.676, y: 10.041), control2: CGPoint(x: 1.621, y: 9.776))
        p.addCurve(to: CGPoint(x: 1.786, y: 8.706), control1: CGPoint(x: 1.621, y: 9.224), control2: CGPoint(x: 1.676, y: 8.959))
        p.addCurve(to: CGPoint(x: 2.207, y: 8.086), control1: CGPoint(x: 1.887, y: 8.472), control2: CGPoint(x: 2.027, y: 8.266))
        p.addLine(to: CGPoint(x: 8.086, y: 2.207))
        p.addCurve(to: CGPoint(x: 8.706, y: 1.786), control1: CGPoint(x: 8.266, y: 2.027), control2: CGPoint(x: 8.472, y: 1.887))
        p.addCurve(to: CGPoint(x: 9.5, y: 1.621), control1: CGPoint(x: 8.959, y: 1.676), control2: CGPoint(x: 9.224, y: 1.621))
        p.addCurve(to: CGPoint(x: 10.294, y: 1.786), control1: CGPoint(x: 9.776, y: 1.621), control2: CGPoint(x: 10.041, y: 1.676))
        p.addCurve(to: CGPoint(x: 10.914, y: 2.207), control1: CGPoint(x: 10.528, y: 1.887), control2: CGPoint(x: 10.734, y: 2.027))
        p.addLine(to: CGPoint(x: 12.793, y: 4.086))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4.793, y: 12.086))
        p.addCurve(to: CGPoint(x: 5.5, y: 12.379), control1: CGPoint(x: 4.988, y: 12.281), control2: CGPoint(x: 5.224, y: 12.379))
        p.addCurve(to: CGPoint(x: 6.207, y: 12.086), control1: CGPoint(x: 5.776, y: 12.379), control2: CGPoint(x: 6.012, y: 12.281))
        p.addLine(to: CGPoint(x: 12.086, y: 6.207))
        p.addCurve(to: CGPoint(x: 12.379, y: 5.5), control1: CGPoint(x: 12.281, y: 6.012), control2: CGPoint(x: 12.379, y: 5.776))
        p.addCurve(to: CGPoint(x: 12.086, y: 4.793), control1: CGPoint(x: 12.379, y: 5.224), control2: CGPoint(x: 12.281, y: 4.988))
        p.addLine(to: CGPoint(x: 10.207, y: 2.914))
        p.addCurve(to: CGPoint(x: 9.5, y: 2.621), control1: CGPoint(x: 10.012, y: 2.719), control2: CGPoint(x: 9.776, y: 2.621))
        p.addCurve(to: CGPoint(x: 8.793, y: 2.914), control1: CGPoint(x: 9.224, y: 2.621), control2: CGPoint(x: 8.988, y: 2.719))
        p.addLine(to: CGPoint(x: 8.207, y: 3.5))
        p.addLine(to: CGPoint(x: 9.854, y: 5.146))
        p.addCurve(to: CGPoint(x: 10, y: 5.5), control1: CGPoint(x: 9.951, y: 5.244), control2: CGPoint(x: 10, y: 5.362))
        p.addCurve(to: CGPoint(x: 9.854, y: 5.854), control1: CGPoint(x: 10, y: 5.638), control2: CGPoint(x: 9.951, y: 5.756))
        p.addCurve(to: CGPoint(x: 9.5, y: 6.003), control1: CGPoint(x: 9.754, y: 5.953), control2: CGPoint(x: 9.636, y: 6.003))
        p.addCurve(to: CGPoint(x: 9.146, y: 5.854), control1: CGPoint(x: 9.364, y: 6.003), control2: CGPoint(x: 9.246, y: 5.953))
        p.addLine(to: CGPoint(x: 7.5, y: 4.207))
        p.addLine(to: CGPoint(x: 6.207, y: 5.5))
        p.addLine(to: CGPoint(x: 7.854, y: 7.146))
        p.addCurve(to: CGPoint(x: 8.003, y: 7.5), control1: CGPoint(x: 7.953, y: 7.246), control2: CGPoint(x: 8.003, y: 7.364))
        p.addCurve(to: CGPoint(x: 7.854, y: 7.854), control1: CGPoint(x: 8.003, y: 7.636), control2: CGPoint(x: 7.953, y: 7.754))
        p.addCurve(to: CGPoint(x: 7.5, y: 8.003), control1: CGPoint(x: 7.754, y: 7.953), control2: CGPoint(x: 7.636, y: 8.003))
        p.addCurve(to: CGPoint(x: 7.146, y: 7.854), control1: CGPoint(x: 7.364, y: 8.003), control2: CGPoint(x: 7.246, y: 7.953))
        p.addLine(to: CGPoint(x: 5.5, y: 6.207))
        p.addLine(to: CGPoint(x: 4.207, y: 7.5))
        p.addLine(to: CGPoint(x: 5.854, y: 9.146))
        p.addCurve(to: CGPoint(x: 6.003, y: 9.5), control1: CGPoint(x: 5.953, y: 9.246), control2: CGPoint(x: 6.003, y: 9.364))
        p.addCurve(to: CGPoint(x: 5.854, y: 9.854), control1: CGPoint(x: 6.003, y: 9.636), control2: CGPoint(x: 5.953, y: 9.754))
        p.addCurve(to: CGPoint(x: 5.5, y: 10), control1: CGPoint(x: 5.756, y: 9.951), control2: CGPoint(x: 5.638, y: 10))
        p.addCurve(to: CGPoint(x: 5.146, y: 9.854), control1: CGPoint(x: 5.362, y: 10), control2: CGPoint(x: 5.244, y: 9.951))
        p.addLine(to: CGPoint(x: 3.5, y: 8.207))
        p.addLine(to: CGPoint(x: 2.914, y: 8.793))
        p.addCurve(to: CGPoint(x: 2.621, y: 9.5), control1: CGPoint(x: 2.719, y: 8.988), control2: CGPoint(x: 2.621, y: 9.224))
        p.addCurve(to: CGPoint(x: 2.914, y: 10.207), control1: CGPoint(x: 2.621, y: 9.776), control2: CGPoint(x: 2.719, y: 10.012))
        p.addLine(to: CGPoint(x: 4.793, y: 12.086))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// RulerIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val RulerIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "ruler", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("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"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(RulerIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_ruler.xml · Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="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"/>
</vector>
```

### Flutter

```dart
// Gentleface "ruler" (line-round), MIT. https://gentleface.com/icons/ruler
import 'package:flutter/widgets.dart';

class RulerIcon extends StatelessWidget {
  const RulerIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _RulerIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _RulerIconPainter extends CustomPainter {
  _RulerIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12.793, 4.086)
      ..cubicTo(12.973, 4.266, 13.113, 4.472, 13.214, 4.706)
      ..cubicTo(13.324, 4.959, 13.379, 5.224, 13.379, 5.5)
      ..cubicTo(13.379, 5.776, 13.324, 6.041, 13.214, 6.294)
      ..cubicTo(13.113, 6.528, 12.973, 6.734, 12.793, 6.914)
      ..lineTo(6.914, 12.793)
      ..cubicTo(6.734, 12.973, 6.528, 13.113, 6.294, 13.214)
      ..cubicTo(6.041, 13.324, 5.776, 13.379, 5.5, 13.379)
      ..cubicTo(5.224, 13.379, 4.959, 13.324, 4.706, 13.214)
      ..cubicTo(4.472, 13.113, 4.266, 12.973, 4.086, 12.793)
      ..lineTo(2.207, 10.914)
      ..cubicTo(2.027, 10.734, 1.887, 10.528, 1.786, 10.294)
      ..cubicTo(1.676, 10.041, 1.621, 9.776, 1.621, 9.5)
      ..cubicTo(1.621, 9.224, 1.676, 8.959, 1.786, 8.706)
      ..cubicTo(1.887, 8.472, 2.027, 8.266, 2.207, 8.086)
      ..lineTo(8.086, 2.207)
      ..cubicTo(8.266, 2.027, 8.472, 1.887, 8.706, 1.786)
      ..cubicTo(8.959, 1.676, 9.224, 1.621, 9.5, 1.621)
      ..cubicTo(9.776, 1.621, 10.041, 1.676, 10.294, 1.786)
      ..cubicTo(10.528, 1.887, 10.734, 2.027, 10.914, 2.207)
      ..lineTo(12.793, 4.086)
      ..close()
      ..moveTo(4.793, 12.086)
      ..cubicTo(4.988, 12.281, 5.224, 12.379, 5.5, 12.379)
      ..cubicTo(5.776, 12.379, 6.012, 12.281, 6.207, 12.086)
      ..lineTo(12.086, 6.207)
      ..cubicTo(12.281, 6.012, 12.379, 5.776, 12.379, 5.5)
      ..cubicTo(12.379, 5.224, 12.281, 4.988, 12.086, 4.793)
      ..lineTo(10.207, 2.914)
      ..cubicTo(10.012, 2.719, 9.776, 2.621, 9.5, 2.621)
      ..cubicTo(9.224, 2.621, 8.988, 2.719, 8.793, 2.914)
      ..lineTo(8.207, 3.5)
      ..lineTo(9.854, 5.146)
      ..cubicTo(9.951, 5.244, 10, 5.362, 10, 5.5)
      ..cubicTo(10, 5.638, 9.951, 5.756, 9.854, 5.854)
      ..cubicTo(9.754, 5.953, 9.636, 6.003, 9.5, 6.003)
      ..cubicTo(9.364, 6.003, 9.246, 5.953, 9.146, 5.854)
      ..lineTo(7.5, 4.207)
      ..lineTo(6.207, 5.5)
      ..lineTo(7.854, 7.146)
      ..cubicTo(7.953, 7.246, 8.003, 7.364, 8.003, 7.5)
      ..cubicTo(8.003, 7.636, 7.953, 7.754, 7.854, 7.854)
      ..cubicTo(7.754, 7.953, 7.636, 8.003, 7.5, 8.003)
      ..cubicTo(7.364, 8.003, 7.246, 7.953, 7.146, 7.854)
      ..lineTo(5.5, 6.207)
      ..lineTo(4.207, 7.5)
      ..lineTo(5.854, 9.146)
      ..cubicTo(5.953, 9.246, 6.003, 9.364, 6.003, 9.5)
      ..cubicTo(6.003, 9.636, 5.953, 9.754, 5.854, 9.854)
      ..cubicTo(5.756, 9.951, 5.638, 10, 5.5, 10)
      ..cubicTo(5.362, 10, 5.244, 9.951, 5.146, 9.854)
      ..lineTo(3.5, 8.207)
      ..lineTo(2.914, 8.793)
      ..cubicTo(2.719, 8.988, 2.621, 9.224, 2.621, 9.5)
      ..cubicTo(2.621, 9.776, 2.719, 10.012, 2.914, 10.207)
      ..lineTo(4.793, 12.086)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_RulerIconPainter old) => old.color != color;
}
```
