# pencil-square icon

Pencil square. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/pencil-square

- Category: Actions
- Use it for: compose, write new, new draft
- Tags: pencil, square, compose, write, new, edit, note
- Family: pencil, pencil-gear, pencil-line, pencil-off, pencil-sparkle, pencil-squiggle
- Component name: PencilSquareIcon
- Added: 2026-10-15

## Alternatives

- `message-plus`: a new chat message or comment
- `mail-plus`: a new email

## Also fits

- edit: compose something new
- write: compose a new message, post or document
- mail draft: compose a new message (pencil-square owns compose)
- new email: compose in the pencil convention (pencil-square owns compose)
- new message: compose in the pencil convention (pencil-square owns compose)

## 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/pencil-square.svg · PNG https://gentleface.com/png/line-round/16/pencil-square.png · https://gentleface.com/png/line-round/32/pencil-square.png · https://gentleface.com/png/line-round/48/pencil-square.png
- line-soft: https://gentleface.com/svg/line-soft/16/pencil-square.svg · PNG https://gentleface.com/png/line-soft/16/pencil-square.png · https://gentleface.com/png/line-soft/32/pencil-square.png · https://gentleface.com/png/line-soft/48/pencil-square.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/pencil-square.svg · PNG https://gentleface.com/png/line-sharp/16/pencil-square.png · https://gentleface.com/png/line-sharp/32/pencil-square.png · https://gentleface.com/png/line-sharp/48/pencil-square.png
- solid-round: https://gentleface.com/svg/solid-round/16/pencil-square.svg · PNG https://gentleface.com/png/solid-round/16/pencil-square.png · https://gentleface.com/png/solid-round/32/pencil-square.png · https://gentleface.com/png/solid-round/48/pencil-square.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/pencil-square.svg · PNG https://gentleface.com/png/solid-soft/16/pencil-square.png · https://gentleface.com/png/solid-soft/32/pencil-square.png · https://gentleface.com/png/solid-soft/48/pencil-square.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/pencil-square.svg · PNG https://gentleface.com/png/solid-sharp/16/pencil-square.png · https://gentleface.com/png/solid-sharp/32/pencil-square.png · https://gentleface.com/png/solid-sharp/48/pencil-square.png

The SVG of every style: https://gentleface.com/icons/pencil-square.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="M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z"/></svg>
```

### React

```tsx
// Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square
import type { SVGProps } from 'react';

export function PencilSquareIcon(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="M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square -->
<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="M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square -->
<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="M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square. 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/pencil-square.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square. Takes the text color. */
.icon-pencil-square {
  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='M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z'/%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='M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z'/%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='M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square
     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#pencil-square"/></svg>
```

### SwiftUI

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

struct PencilSquareIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 3.293, y: 3.293))
        p.addCurve(to: CGPoint(x: 3, y: 4), control1: CGPoint(x: 3.098, y: 3.488), control2: CGPoint(x: 3, y: 3.724))
        p.addLine(to: CGPoint(x: 3, y: 12))
        p.addCurve(to: CGPoint(x: 3.293, y: 12.707), control1: CGPoint(x: 3, y: 12.276), control2: CGPoint(x: 3.098, y: 12.512))
        p.addCurve(to: CGPoint(x: 4, y: 13), control1: CGPoint(x: 3.488, y: 12.902), control2: CGPoint(x: 3.724, y: 13))
        p.addLine(to: CGPoint(x: 12, y: 13))
        p.addCurve(to: CGPoint(x: 12.707, y: 12.707), control1: CGPoint(x: 12.276, y: 13), control2: CGPoint(x: 12.512, y: 12.902))
        p.addCurve(to: CGPoint(x: 13, y: 12), control1: CGPoint(x: 12.902, y: 12.512), control2: CGPoint(x: 13, y: 12.276))
        p.addLine(to: CGPoint(x: 13, y: 7.5))
        p.addCurve(to: CGPoint(x: 13.144, y: 7.144), control1: CGPoint(x: 13, y: 7.359), control2: CGPoint(x: 13.048, y: 7.241))
        p.addCurve(to: CGPoint(x: 13.5, y: 7), control1: CGPoint(x: 13.241, y: 7.048), control2: CGPoint(x: 13.359, y: 7))
        p.addCurve(to: CGPoint(x: 13.856, y: 7.144), control1: CGPoint(x: 13.641, y: 7), control2: CGPoint(x: 13.759, y: 7.048))
        p.addCurve(to: CGPoint(x: 14, y: 7.5), control1: CGPoint(x: 13.952, y: 7.241), control2: CGPoint(x: 14, y: 7.359))
        p.addLine(to: CGPoint(x: 14, y: 12))
        p.addCurve(to: CGPoint(x: 13.86, y: 12.736), control1: CGPoint(x: 14, y: 12.254), control2: CGPoint(x: 13.953, y: 12.5))
        p.addCurve(to: CGPoint(x: 13.414, y: 13.414), control1: CGPoint(x: 13.758, y: 12.993), control2: CGPoint(x: 13.609, y: 13.219))
        p.addCurve(to: CGPoint(x: 12.736, y: 13.86), control1: CGPoint(x: 13.219, y: 13.609), control2: CGPoint(x: 12.993, y: 13.758))
        p.addCurve(to: CGPoint(x: 12, y: 14), control1: CGPoint(x: 12.5, y: 13.953), control2: CGPoint(x: 12.254, y: 14))
        p.addLine(to: CGPoint(x: 4, y: 14))
        p.addCurve(to: CGPoint(x: 3.264, y: 13.86), control1: CGPoint(x: 3.746, y: 14), control2: CGPoint(x: 3.5, y: 13.953))
        p.addCurve(to: CGPoint(x: 2.586, y: 13.414), control1: CGPoint(x: 3.007, y: 13.758), control2: CGPoint(x: 2.781, y: 13.609))
        p.addCurve(to: CGPoint(x: 2.14, y: 12.736), control1: CGPoint(x: 2.391, y: 13.219), control2: CGPoint(x: 2.242, y: 12.993))
        p.addCurve(to: CGPoint(x: 2, y: 12), control1: CGPoint(x: 2.047, y: 12.5), control2: CGPoint(x: 2, y: 12.254))
        p.addLine(to: CGPoint(x: 2, y: 4))
        p.addCurve(to: CGPoint(x: 2.14, y: 3.264), control1: CGPoint(x: 2, y: 3.746), control2: CGPoint(x: 2.047, y: 3.5))
        p.addCurve(to: CGPoint(x: 2.586, y: 2.586), control1: CGPoint(x: 2.242, y: 3.007), control2: CGPoint(x: 2.391, y: 2.781))
        p.addCurve(to: CGPoint(x: 3.264, y: 2.14), control1: CGPoint(x: 2.781, y: 2.391), control2: CGPoint(x: 3.007, y: 2.242))
        p.addCurve(to: CGPoint(x: 4, y: 2), control1: CGPoint(x: 3.5, y: 2.047), control2: CGPoint(x: 3.746, y: 2))
        p.addLine(to: CGPoint(x: 8.5, y: 2))
        p.addCurve(to: CGPoint(x: 8.856, y: 2.144), control1: CGPoint(x: 8.641, y: 2), control2: CGPoint(x: 8.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 9, y: 2.5), control1: CGPoint(x: 8.952, y: 2.241), control2: CGPoint(x: 9, y: 2.359))
        p.addCurve(to: CGPoint(x: 8.856, y: 2.856), control1: CGPoint(x: 9, y: 2.641), control2: CGPoint(x: 8.952, y: 2.759))
        p.addCurve(to: CGPoint(x: 8.5, y: 3), control1: CGPoint(x: 8.759, y: 2.952), control2: CGPoint(x: 8.641, y: 3))
        p.addLine(to: CGPoint(x: 4, y: 3))
        p.addCurve(to: CGPoint(x: 3.293, y: 3.293), control1: CGPoint(x: 3.724, y: 3), control2: CGPoint(x: 3.488, y: 3.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10.793, y: 2.5))
        p.addCurve(to: CGPoint(x: 11.5, y: 2.207), control1: CGPoint(x: 10.988, y: 2.305), control2: CGPoint(x: 11.224, y: 2.207))
        p.addCurve(to: CGPoint(x: 12.207, y: 2.5), control1: CGPoint(x: 11.776, y: 2.207), control2: CGPoint(x: 12.012, y: 2.305))
        p.addLine(to: CGPoint(x: 13.5, y: 3.793))
        p.addCurve(to: CGPoint(x: 13.793, y: 4.5), control1: CGPoint(x: 13.695, y: 3.988), control2: CGPoint(x: 13.793, y: 4.224))
        p.addCurve(to: CGPoint(x: 13.5, y: 5.207), control1: CGPoint(x: 13.793, y: 4.776), control2: CGPoint(x: 13.695, y: 5.012))
        p.addLine(to: CGPoint(x: 10.561, y: 8.146))
        p.addCurve(to: CGPoint(x: 8.829, y: 9.394), control1: CGPoint(x: 10.051, y: 8.656), control2: CGPoint(x: 9.474, y: 9.072))
        p.addLine(to: CGPoint(x: 5.724, y: 10.947))
        p.addCurve(to: CGPoint(x: 5.342, y: 10.974), control1: CGPoint(x: 5.6, y: 11.009), control2: CGPoint(x: 5.473, y: 11.018))
        p.addCurve(to: CGPoint(x: 5.053, y: 10.724), control1: CGPoint(x: 5.211, y: 10.931), control2: CGPoint(x: 5.115, y: 10.847))
        p.addCurve(to: CGPoint(x: 5.053, y: 10.276), control1: CGPoint(x: 4.978, y: 10.575), control2: CGPoint(x: 4.978, y: 10.425))
        p.addLine(to: CGPoint(x: 6.606, y: 7.171))
        p.addCurve(to: CGPoint(x: 7.854, y: 5.439), control1: CGPoint(x: 6.928, y: 6.526), control2: CGPoint(x: 7.344, y: 5.949))
        p.addLine(to: CGPoint(x: 10.793, y: 2.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.793, y: 4.5))
        p.addLine(to: CGPoint(x: 11.5, y: 3.207))
        p.addLine(to: CGPoint(x: 8.561, y: 6.146))
        p.addCurve(to: CGPoint(x: 8.223, y: 6.515), control1: CGPoint(x: 8.442, y: 6.265), control2: CGPoint(x: 8.329, y: 6.388))
        p.addLine(to: CGPoint(x: 9.485, y: 7.777))
        p.addCurve(to: CGPoint(x: 9.854, y: 7.439), control1: CGPoint(x: 9.612, y: 7.671), control2: CGPoint(x: 9.735, y: 7.558))
        p.addLine(to: CGPoint(x: 12.793, y: 4.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.65, y: 8.357))
        p.addLine(to: CGPoint(x: 7.643, y: 7.35))
        p.addCurve(to: CGPoint(x: 7.5, y: 7.618), control1: CGPoint(x: 7.593, y: 7.438), control2: CGPoint(x: 7.545, y: 7.527))
        p.addLine(to: CGPoint(x: 6.618, y: 9.382))
        p.addLine(to: CGPoint(x: 8.382, y: 8.5))
        p.addCurve(to: CGPoint(x: 8.65, y: 8.357), control1: CGPoint(x: 8.473, y: 8.455), control2: CGPoint(x: 8.562, y: 8.407))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square
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 PencilSquareIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "pencil-square", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_pencil_square.xml · Gentleface "pencil-square" (line-round), MIT. https://gentleface.com/icons/pencil-square -->
<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="M3.293 3.293C3.098 3.488 3 3.724 3 4L3 12C3 12.276 3.098 12.512 3.293 12.707C3.488 12.902 3.724 13 4 13L12 13C12.276 13 12.512 12.902 12.707 12.707C12.902 12.512 13 12.276 13 12L13 7.5C13 7.359 13.048 7.241 13.144 7.144C13.241 7.048 13.359 7 13.5 7C13.641 7 13.759 7.048 13.856 7.144C13.952 7.241 14 7.359 14 7.5L14 12C14 12.254 13.953 12.5 13.86 12.736C13.758 12.993 13.609 13.219 13.414 13.414C13.219 13.609 12.993 13.758 12.736 13.86C12.5 13.953 12.254 14 12 14L4 14C3.746 14 3.5 13.953 3.264 13.86C3.007 13.758 2.781 13.609 2.586 13.414C2.391 13.219 2.242 12.993 2.14 12.736C2.047 12.5 2 12.254 2 12L2 4C2 3.746 2.047 3.5 2.14 3.264C2.242 3.007 2.391 2.781 2.586 2.586C2.781 2.391 3.007 2.242 3.264 2.14C3.5 2.047 3.746 2 4 2L8.5 2C8.641 2 8.759 2.048 8.856 2.144C8.952 2.241 9 2.359 9 2.5C9 2.641 8.952 2.759 8.856 2.856C8.759 2.952 8.641 3 8.5 3L4 3C3.724 3 3.488 3.098 3.293 3.293ZM10.793 2.5C10.988 2.305 11.224 2.207 11.5 2.207C11.776 2.207 12.012 2.305 12.207 2.5L13.5 3.793C13.695 3.988 13.793 4.224 13.793 4.5C13.793 4.776 13.695 5.012 13.5 5.207L10.561 8.146C10.051 8.656 9.474 9.072 8.829 9.394L5.724 10.947C5.6 11.009 5.473 11.018 5.342 10.974C5.211 10.931 5.115 10.847 5.053 10.724C4.978 10.575 4.978 10.425 5.053 10.276L6.606 7.171C6.928 6.526 7.344 5.949 7.854 5.439L10.793 2.5ZM12.793 4.5L11.5 3.207L8.561 6.146C8.442 6.265 8.329 6.388 8.223 6.515L9.485 7.777C9.612 7.671 9.735 7.558 9.854 7.439L12.793 4.5ZM8.65 8.357L7.643 7.35C7.593 7.438 7.545 7.527 7.5 7.618L6.618 9.382L8.382 8.5C8.473 8.455 8.562 8.407 8.65 8.357Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(3.293, 3.293)
      ..cubicTo(3.098, 3.488, 3, 3.724, 3, 4)
      ..lineTo(3, 12)
      ..cubicTo(3, 12.276, 3.098, 12.512, 3.293, 12.707)
      ..cubicTo(3.488, 12.902, 3.724, 13, 4, 13)
      ..lineTo(12, 13)
      ..cubicTo(12.276, 13, 12.512, 12.902, 12.707, 12.707)
      ..cubicTo(12.902, 12.512, 13, 12.276, 13, 12)
      ..lineTo(13, 7.5)
      ..cubicTo(13, 7.359, 13.048, 7.241, 13.144, 7.144)
      ..cubicTo(13.241, 7.048, 13.359, 7, 13.5, 7)
      ..cubicTo(13.641, 7, 13.759, 7.048, 13.856, 7.144)
      ..cubicTo(13.952, 7.241, 14, 7.359, 14, 7.5)
      ..lineTo(14, 12)
      ..cubicTo(14, 12.254, 13.953, 12.5, 13.86, 12.736)
      ..cubicTo(13.758, 12.993, 13.609, 13.219, 13.414, 13.414)
      ..cubicTo(13.219, 13.609, 12.993, 13.758, 12.736, 13.86)
      ..cubicTo(12.5, 13.953, 12.254, 14, 12, 14)
      ..lineTo(4, 14)
      ..cubicTo(3.746, 14, 3.5, 13.953, 3.264, 13.86)
      ..cubicTo(3.007, 13.758, 2.781, 13.609, 2.586, 13.414)
      ..cubicTo(2.391, 13.219, 2.242, 12.993, 2.14, 12.736)
      ..cubicTo(2.047, 12.5, 2, 12.254, 2, 12)
      ..lineTo(2, 4)
      ..cubicTo(2, 3.746, 2.047, 3.5, 2.14, 3.264)
      ..cubicTo(2.242, 3.007, 2.391, 2.781, 2.586, 2.586)
      ..cubicTo(2.781, 2.391, 3.007, 2.242, 3.264, 2.14)
      ..cubicTo(3.5, 2.047, 3.746, 2, 4, 2)
      ..lineTo(8.5, 2)
      ..cubicTo(8.641, 2, 8.759, 2.048, 8.856, 2.144)
      ..cubicTo(8.952, 2.241, 9, 2.359, 9, 2.5)
      ..cubicTo(9, 2.641, 8.952, 2.759, 8.856, 2.856)
      ..cubicTo(8.759, 2.952, 8.641, 3, 8.5, 3)
      ..lineTo(4, 3)
      ..cubicTo(3.724, 3, 3.488, 3.098, 3.293, 3.293)
      ..close()
      ..moveTo(10.793, 2.5)
      ..cubicTo(10.988, 2.305, 11.224, 2.207, 11.5, 2.207)
      ..cubicTo(11.776, 2.207, 12.012, 2.305, 12.207, 2.5)
      ..lineTo(13.5, 3.793)
      ..cubicTo(13.695, 3.988, 13.793, 4.224, 13.793, 4.5)
      ..cubicTo(13.793, 4.776, 13.695, 5.012, 13.5, 5.207)
      ..lineTo(10.561, 8.146)
      ..cubicTo(10.051, 8.656, 9.474, 9.072, 8.829, 9.394)
      ..lineTo(5.724, 10.947)
      ..cubicTo(5.6, 11.009, 5.473, 11.018, 5.342, 10.974)
      ..cubicTo(5.211, 10.931, 5.115, 10.847, 5.053, 10.724)
      ..cubicTo(4.978, 10.575, 4.978, 10.425, 5.053, 10.276)
      ..lineTo(6.606, 7.171)
      ..cubicTo(6.928, 6.526, 7.344, 5.949, 7.854, 5.439)
      ..lineTo(10.793, 2.5)
      ..close()
      ..moveTo(12.793, 4.5)
      ..lineTo(11.5, 3.207)
      ..lineTo(8.561, 6.146)
      ..cubicTo(8.442, 6.265, 8.329, 6.388, 8.223, 6.515)
      ..lineTo(9.485, 7.777)
      ..cubicTo(9.612, 7.671, 9.735, 7.558, 9.854, 7.439)
      ..lineTo(12.793, 4.5)
      ..close()
      ..moveTo(8.65, 8.357)
      ..lineTo(7.643, 7.35)
      ..cubicTo(7.593, 7.438, 7.545, 7.527, 7.5, 7.618)
      ..lineTo(6.618, 9.382)
      ..lineTo(8.382, 8.5)
      ..cubicTo(8.473, 8.455, 8.562, 8.407, 8.65, 8.357)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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