# pencil icon

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

- Category: Actions
- Use it for: edit, write, modify, edit mode
- Tags: edit, pen, write
- Family: pencil-gear, pencil-line, pencil-off, pencil-sparkle, pencil-square, pencil-squiggle
- Component name: PencilIcon
- Added: 2026-10-13
- Changed: 2026-10-15 (20 px drawn, 24 px drawn)

## Alternatives

- `pencil-line`: rename
- `pencil-square`: compose something new
- `file-pencil`: edit a document where the target must be named
- `signature`: sign a document

## Don't confuse with

- `pen-tool`: the vector pen tool in design apps, not edit

## Also fits

- rename: edit the content, not the name
- edit file: the bare edit when the UI already names the file

## Not for

- line color (use `line-color`): pencil means edit; the pencil Google uses for border color is not ours
- pen tool (use `pen-tool`): pencil means edit
- draw (use `pencil-squiggle`): pencil alone means edit
- stylus (use `stylus`): the pencil means edit

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

The SVG of every style: https://gentleface.com/icons/pencil.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="M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z"/></svg>
```

### React

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

export function PencilIcon(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="M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "pencil" (line-round), MIT. https://gentleface.com/icons/pencil -->
<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="M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "pencil" (line-round), MIT. https://gentleface.com/icons/pencil -->
<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="M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "pencil" (line-round), MIT. https://gentleface.com/icons/pencil. Takes the text color. */
.icon-pencil {
  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='M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z'/%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='M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z'/%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='M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct PencilIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 10.146, y: 3.146))
        p.addCurve(to: CGPoint(x: 10.74, y: 2.743), control1: CGPoint(x: 10.319, y: 2.974), control2: CGPoint(x: 10.516, y: 2.84))
        p.addCurve(to: CGPoint(x: 11.5, y: 2.586), control1: CGPoint(x: 10.982, y: 2.638), control2: CGPoint(x: 11.236, y: 2.586))
        p.addCurve(to: CGPoint(x: 12.26, y: 2.743), control1: CGPoint(x: 11.764, y: 2.586), control2: CGPoint(x: 12.018, y: 2.638))
        p.addCurve(to: CGPoint(x: 12.854, y: 3.146), control1: CGPoint(x: 12.484, y: 2.84), control2: CGPoint(x: 12.681, y: 2.974))
        p.addCurve(to: CGPoint(x: 13.257, y: 3.74), control1: CGPoint(x: 13.026, y: 3.319), control2: CGPoint(x: 13.16, y: 3.516))
        p.addCurve(to: CGPoint(x: 13.414, y: 4.5), control1: CGPoint(x: 13.362, y: 3.982), control2: CGPoint(x: 13.414, y: 4.236))
        p.addCurve(to: CGPoint(x: 13.257, y: 5.26), control1: CGPoint(x: 13.414, y: 4.764), control2: CGPoint(x: 13.362, y: 5.018))
        p.addCurve(to: CGPoint(x: 12.854, y: 5.854), control1: CGPoint(x: 13.16, y: 5.484), control2: CGPoint(x: 13.026, y: 5.681))
        p.addLine(to: CGPoint(x: 7.561, y: 11.146))
        p.addCurve(to: CGPoint(x: 5.829, y: 12.394), control1: CGPoint(x: 7.051, y: 11.656), control2: CGPoint(x: 6.474, y: 12.072))
        p.addLine(to: CGPoint(x: 2.724, y: 13.947))
        p.addCurve(to: CGPoint(x: 2.341, y: 13.977), control1: CGPoint(x: 2.598, y: 14.01), control2: CGPoint(x: 2.47, y: 14.02))
        p.addCurve(to: CGPoint(x: 2.053, y: 13.724), control1: CGPoint(x: 2.212, y: 13.934), control2: CGPoint(x: 2.116, y: 13.85))
        p.addCurve(to: CGPoint(x: 2.053, y: 13.276), control1: CGPoint(x: 1.978, y: 13.575), control2: CGPoint(x: 1.978, y: 13.425))
        p.addLine(to: CGPoint(x: 3.606, y: 10.171))
        p.addCurve(to: CGPoint(x: 4.854, y: 8.439), control1: CGPoint(x: 3.928, y: 9.526), control2: CGPoint(x: 4.344, y: 8.949))
        p.addLine(to: CGPoint(x: 10.146, y: 3.146))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.146, y: 5.146))
        p.addCurve(to: CGPoint(x: 12.414, y: 4.5), control1: CGPoint(x: 12.325, y: 4.968), control2: CGPoint(x: 12.414, y: 4.752))
        p.addCurve(to: CGPoint(x: 12.146, y: 3.854), control1: CGPoint(x: 12.414, y: 4.248), control2: CGPoint(x: 12.325, y: 4.032))
        p.addCurve(to: CGPoint(x: 11.5, y: 3.586), control1: CGPoint(x: 11.968, y: 3.675), control2: CGPoint(x: 11.752, y: 3.586))
        p.addCurve(to: CGPoint(x: 10.854, y: 3.854), control1: CGPoint(x: 11.248, y: 3.586), control2: CGPoint(x: 11.032, y: 3.675))
        p.addLine(to: CGPoint(x: 5.561, y: 9.146))
        p.addCurve(to: CGPoint(x: 5.223, y: 9.515), control1: CGPoint(x: 5.442, y: 9.265), control2: CGPoint(x: 5.329, y: 9.388))
        p.addLine(to: CGPoint(x: 6.485, y: 10.777))
        p.addCurve(to: CGPoint(x: 6.854, y: 10.439), control1: CGPoint(x: 6.612, y: 10.671), control2: CGPoint(x: 6.735, y: 10.558))
        p.addLine(to: CGPoint(x: 12.146, y: 5.146))
        p.closeSubpath()
        p.move(to: CGPoint(x: 5.382, y: 11.5))
        p.addCurve(to: CGPoint(x: 5.65, y: 11.357), control1: CGPoint(x: 5.473, y: 11.455), control2: CGPoint(x: 5.562, y: 11.407))
        p.addLine(to: CGPoint(x: 4.643, y: 10.35))
        p.addCurve(to: CGPoint(x: 4.5, y: 10.618), control1: CGPoint(x: 4.593, y: 10.438), control2: CGPoint(x: 4.545, y: 10.527))
        p.addLine(to: CGPoint(x: 3.618, y: 12.382))
        p.addLine(to: CGPoint(x: 5.382, y: 11.5))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "pencil" (line-round), MIT. https://gentleface.com/icons/pencil
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 PencilIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "pencil", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_pencil.xml · Gentleface "pencil" (line-round), MIT. https://gentleface.com/icons/pencil -->
<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="M10.146 3.146C10.319 2.974 10.516 2.84 10.74 2.743C10.982 2.638 11.236 2.586 11.5 2.586C11.764 2.586 12.018 2.638 12.26 2.743C12.484 2.84 12.681 2.974 12.854 3.146C13.026 3.319 13.16 3.516 13.257 3.74C13.362 3.982 13.414 4.236 13.414 4.5C13.414 4.764 13.362 5.018 13.257 5.26C13.16 5.484 13.026 5.681 12.854 5.854L7.561 11.146C7.051 11.656 6.474 12.072 5.829 12.394L2.724 13.947C2.598 14.01 2.47 14.02 2.341 13.977C2.212 13.934 2.116 13.85 2.053 13.724C1.978 13.575 1.978 13.425 2.053 13.276L3.606 10.171C3.928 9.526 4.344 8.949 4.854 8.439L10.146 3.146ZM12.146 5.146C12.325 4.968 12.414 4.752 12.414 4.5C12.414 4.248 12.325 4.032 12.146 3.854C11.968 3.675 11.752 3.586 11.5 3.586C11.248 3.586 11.032 3.675 10.854 3.854L5.561 9.146C5.442 9.265 5.329 9.388 5.223 9.515L6.485 10.777C6.612 10.671 6.735 10.558 6.854 10.439L12.146 5.146ZM5.382 11.5C5.473 11.455 5.562 11.407 5.65 11.357L4.643 10.35C4.593 10.438 4.545 10.527 4.5 10.618L3.618 12.382L5.382 11.5Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(10.146, 3.146)
      ..cubicTo(10.319, 2.974, 10.516, 2.84, 10.74, 2.743)
      ..cubicTo(10.982, 2.638, 11.236, 2.586, 11.5, 2.586)
      ..cubicTo(11.764, 2.586, 12.018, 2.638, 12.26, 2.743)
      ..cubicTo(12.484, 2.84, 12.681, 2.974, 12.854, 3.146)
      ..cubicTo(13.026, 3.319, 13.16, 3.516, 13.257, 3.74)
      ..cubicTo(13.362, 3.982, 13.414, 4.236, 13.414, 4.5)
      ..cubicTo(13.414, 4.764, 13.362, 5.018, 13.257, 5.26)
      ..cubicTo(13.16, 5.484, 13.026, 5.681, 12.854, 5.854)
      ..lineTo(7.561, 11.146)
      ..cubicTo(7.051, 11.656, 6.474, 12.072, 5.829, 12.394)
      ..lineTo(2.724, 13.947)
      ..cubicTo(2.598, 14.01, 2.47, 14.02, 2.341, 13.977)
      ..cubicTo(2.212, 13.934, 2.116, 13.85, 2.053, 13.724)
      ..cubicTo(1.978, 13.575, 1.978, 13.425, 2.053, 13.276)
      ..lineTo(3.606, 10.171)
      ..cubicTo(3.928, 9.526, 4.344, 8.949, 4.854, 8.439)
      ..lineTo(10.146, 3.146)
      ..close()
      ..moveTo(12.146, 5.146)
      ..cubicTo(12.325, 4.968, 12.414, 4.752, 12.414, 4.5)
      ..cubicTo(12.414, 4.248, 12.325, 4.032, 12.146, 3.854)
      ..cubicTo(11.968, 3.675, 11.752, 3.586, 11.5, 3.586)
      ..cubicTo(11.248, 3.586, 11.032, 3.675, 10.854, 3.854)
      ..lineTo(5.561, 9.146)
      ..cubicTo(5.442, 9.265, 5.329, 9.388, 5.223, 9.515)
      ..lineTo(6.485, 10.777)
      ..cubicTo(6.612, 10.671, 6.735, 10.558, 6.854, 10.439)
      ..lineTo(12.146, 5.146)
      ..close()
      ..moveTo(5.382, 11.5)
      ..cubicTo(5.473, 11.455, 5.562, 11.407, 5.65, 11.357)
      ..lineTo(4.643, 10.35)
      ..cubicTo(4.593, 10.438, 4.545, 10.527, 4.5, 10.618)
      ..lineTo(3.618, 12.382)
      ..lineTo(5.382, 11.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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