# code-pencil icon

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

- Category: Development
- Use it for: edit code, edit snippet, edit source
- Example: Edit snippet in a code block toolbar
- Built from: code + pencil
- Tags: code, html, xml, markup, brackets, angle-brackets, developer, programming, source, pencil
- Family: code, binary, braces, brackets, code-alert, code-block, code-eye, code-off, code-play, code-search, code-sparkle, parentheses
- Component name: CodePencilIcon
- Added: 2026-10-15

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

The SVG of every style: https://gentleface.com/icons/code-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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z"/></svg>
```

### React

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

export function CodePencilIcon(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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-pencil. Takes the text color. */
.icon-code-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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z'/%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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z'/%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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct CodePencilIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 5.947, y: 12.724))
        p.addCurve(to: CGPoint(x: 5.658, y: 12.974), control1: CGPoint(x: 5.885, y: 12.847), control2: CGPoint(x: 5.789, y: 12.931))
        p.addCurve(to: CGPoint(x: 5.276, y: 12.947), control1: CGPoint(x: 5.527, y: 13.018), control2: CGPoint(x: 5.4, y: 13.009))
        p.addCurve(to: CGPoint(x: 5.023, y: 12.659), control1: CGPoint(x: 5.15, y: 12.884), control2: CGPoint(x: 5.066, y: 12.788))
        p.addCurve(to: CGPoint(x: 5.053, y: 12.276), control1: CGPoint(x: 4.98, y: 12.53), control2: CGPoint(x: 4.99, y: 12.402))
        p.addLine(to: CGPoint(x: 10.053, y: 2.276))
        p.addCurve(to: CGPoint(x: 10.341, y: 2.023), control1: CGPoint(x: 10.116, y: 2.15), control2: CGPoint(x: 10.212, y: 2.066))
        p.addCurve(to: CGPoint(x: 10.724, y: 2.053), control1: CGPoint(x: 10.47, y: 1.98), control2: CGPoint(x: 10.598, y: 1.99))
        p.addCurve(to: CGPoint(x: 10.977, y: 2.341), control1: CGPoint(x: 10.85, y: 2.116), control2: CGPoint(x: 10.934, y: 2.212))
        p.addCurve(to: CGPoint(x: 10.947, y: 2.724), control1: CGPoint(x: 11.02, y: 2.47), control2: CGPoint(x: 11.01, y: 2.598))
        p.addLine(to: CGPoint(x: 5.947, y: 12.724))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.207, y: 7.5))
        p.addLine(to: CGPoint(x: 4.854, y: 10.146))
        p.addCurve(to: CGPoint(x: 5.003, y: 10.5), control1: CGPoint(x: 4.953, y: 10.246), control2: CGPoint(x: 5.003, y: 10.364))
        p.addCurve(to: CGPoint(x: 4.854, y: 10.854), control1: CGPoint(x: 5.003, y: 10.636), control2: CGPoint(x: 4.953, y: 10.754))
        p.addCurve(to: CGPoint(x: 4.5, y: 11), control1: CGPoint(x: 4.756, y: 10.951), control2: CGPoint(x: 4.638, y: 11))
        p.addCurve(to: CGPoint(x: 4.146, y: 10.854), control1: CGPoint(x: 4.362, y: 11), control2: CGPoint(x: 4.244, y: 10.951))
        p.addLine(to: CGPoint(x: 1.146, y: 7.854))
        p.addCurve(to: CGPoint(x: 1, y: 7.5), control1: CGPoint(x: 1.049, y: 7.756), control2: CGPoint(x: 1, y: 7.638))
        p.addCurve(to: CGPoint(x: 1.146, y: 7.146), control1: CGPoint(x: 1, y: 7.362), control2: CGPoint(x: 1.049, y: 7.244))
        p.addLine(to: CGPoint(x: 4.146, y: 4.146))
        p.addCurve(to: CGPoint(x: 4.5, y: 3.997), control1: CGPoint(x: 4.246, y: 4.047), control2: CGPoint(x: 4.364, y: 3.997))
        p.addCurve(to: CGPoint(x: 4.854, y: 4.146), control1: CGPoint(x: 4.636, y: 3.997), control2: CGPoint(x: 4.754, y: 4.047))
        p.addCurve(to: CGPoint(x: 5.003, y: 4.5), control1: CGPoint(x: 4.953, y: 4.246), control2: CGPoint(x: 5.003, y: 4.364))
        p.addCurve(to: CGPoint(x: 4.854, y: 4.854), control1: CGPoint(x: 5.003, y: 4.636), control2: CGPoint(x: 4.953, y: 4.754))
        p.addLine(to: CGPoint(x: 2.207, y: 7.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 11, y: 4.5))
        p.addCurve(to: CGPoint(x: 11.146, y: 4.146), control1: CGPoint(x: 11, y: 4.362), control2: CGPoint(x: 11.049, y: 4.244))
        p.addCurve(to: CGPoint(x: 11.5, y: 3.997), control1: CGPoint(x: 11.246, y: 4.047), control2: CGPoint(x: 11.364, y: 3.997))
        p.addCurve(to: CGPoint(x: 11.854, y: 4.146), control1: CGPoint(x: 11.636, y: 3.997), control2: CGPoint(x: 11.754, y: 4.047))
        p.addLine(to: CGPoint(x: 13.724, y: 6.017))
        p.addCurve(to: CGPoint(x: 13.871, y: 6.371), control1: CGPoint(x: 13.822, y: 6.115), control2: CGPoint(x: 13.871, y: 6.233))
        p.addCurve(to: CGPoint(x: 13.724, y: 6.724), control1: CGPoint(x: 13.871, y: 6.509), control2: CGPoint(x: 13.822, y: 6.627))
        p.addCurve(to: CGPoint(x: 13.231, y: 6.854), control1: CGPoint(x: 13.551, y: 6.746), control2: CGPoint(x: 13.386, y: 6.79))
        p.addCurve(to: CGPoint(x: 13.017, y: 6.724), control1: CGPoint(x: 13.152, y: 6.831), control2: CGPoint(x: 13.081, y: 6.788))
        p.addLine(to: CGPoint(x: 11.146, y: 4.854))
        p.addCurve(to: CGPoint(x: 11, y: 4.5), control1: CGPoint(x: 11.049, y: 4.756), control2: CGPoint(x: 11, y: 4.638))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14, y: 7.707))
        p.addCurve(to: CGPoint(x: 14.707, y: 8), control1: CGPoint(x: 14.276, y: 7.707), control2: CGPoint(x: 14.512, y: 7.805))
        p.addLine(to: CGPoint(x: 15, y: 8.293))
        p.addCurve(to: CGPoint(x: 15.293, y: 9), control1: CGPoint(x: 15.195, y: 8.488), control2: CGPoint(x: 15.293, y: 8.724))
        p.addCurve(to: CGPoint(x: 15, y: 9.707), control1: CGPoint(x: 15.293, y: 9.276), control2: CGPoint(x: 15.195, y: 9.512))
        p.addLine(to: CGPoint(x: 12.061, y: 12.646))
        p.addCurve(to: CGPoint(x: 10.4, y: 13.943), control1: CGPoint(x: 11.56, y: 13.147), control2: CGPoint(x: 11.007, y: 13.579))
        p.addLine(to: CGPoint(x: 8.757, y: 14.929))
        p.addCurve(to: CGPoint(x: 8.378, y: 14.988), control1: CGPoint(x: 8.636, y: 15.001), control2: CGPoint(x: 8.51, y: 15.021))
        p.addCurve(to: CGPoint(x: 8.071, y: 14.757), control1: CGPoint(x: 8.246, y: 14.955), control2: CGPoint(x: 8.144, y: 14.878))
        p.addCurve(to: CGPoint(x: 7.999, y: 14.5), control1: CGPoint(x: 8.023, y: 14.677), control2: CGPoint(x: 7.999, y: 14.592))
        p.addCurve(to: CGPoint(x: 8.071, y: 14.243), control1: CGPoint(x: 7.999, y: 14.408), control2: CGPoint(x: 8.023, y: 14.323))
        p.addLine(to: CGPoint(x: 9.057, y: 12.6))
        p.addCurve(to: CGPoint(x: 10.354, y: 10.939), control1: CGPoint(x: 9.421, y: 11.993), control2: CGPoint(x: 9.853, y: 11.44))
        p.addLine(to: CGPoint(x: 13.293, y: 8))
        p.addCurve(to: CGPoint(x: 14, y: 7.707), control1: CGPoint(x: 13.488, y: 7.805), control2: CGPoint(x: 13.724, y: 7.707))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-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 CodePencilIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "code-pencil", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_code_pencil.xml · Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(5.947, 12.724)
      ..cubicTo(5.885, 12.847, 5.789, 12.931, 5.658, 12.974)
      ..cubicTo(5.527, 13.018, 5.4, 13.009, 5.276, 12.947)
      ..cubicTo(5.15, 12.884, 5.066, 12.788, 5.023, 12.659)
      ..cubicTo(4.98, 12.53, 4.99, 12.402, 5.053, 12.276)
      ..lineTo(10.053, 2.276)
      ..cubicTo(10.116, 2.15, 10.212, 2.066, 10.341, 2.023)
      ..cubicTo(10.47, 1.98, 10.598, 1.99, 10.724, 2.053)
      ..cubicTo(10.85, 2.116, 10.934, 2.212, 10.977, 2.341)
      ..cubicTo(11.02, 2.47, 11.01, 2.598, 10.947, 2.724)
      ..lineTo(5.947, 12.724)
      ..close()
      ..moveTo(2.207, 7.5)
      ..lineTo(4.854, 10.146)
      ..cubicTo(4.953, 10.246, 5.003, 10.364, 5.003, 10.5)
      ..cubicTo(5.003, 10.636, 4.953, 10.754, 4.854, 10.854)
      ..cubicTo(4.756, 10.951, 4.638, 11, 4.5, 11)
      ..cubicTo(4.362, 11, 4.244, 10.951, 4.146, 10.854)
      ..lineTo(1.146, 7.854)
      ..cubicTo(1.049, 7.756, 1, 7.638, 1, 7.5)
      ..cubicTo(1, 7.362, 1.049, 7.244, 1.146, 7.146)
      ..lineTo(4.146, 4.146)
      ..cubicTo(4.246, 4.047, 4.364, 3.997, 4.5, 3.997)
      ..cubicTo(4.636, 3.997, 4.754, 4.047, 4.854, 4.146)
      ..cubicTo(4.953, 4.246, 5.003, 4.364, 5.003, 4.5)
      ..cubicTo(5.003, 4.636, 4.953, 4.754, 4.854, 4.854)
      ..lineTo(2.207, 7.5)
      ..close()
      ..moveTo(11, 4.5)
      ..cubicTo(11, 4.362, 11.049, 4.244, 11.146, 4.146)
      ..cubicTo(11.246, 4.047, 11.364, 3.997, 11.5, 3.997)
      ..cubicTo(11.636, 3.997, 11.754, 4.047, 11.854, 4.146)
      ..lineTo(13.724, 6.017)
      ..cubicTo(13.822, 6.115, 13.871, 6.233, 13.871, 6.371)
      ..cubicTo(13.871, 6.509, 13.822, 6.627, 13.724, 6.724)
      ..cubicTo(13.551, 6.746, 13.386, 6.79, 13.231, 6.854)
      ..cubicTo(13.152, 6.831, 13.081, 6.788, 13.017, 6.724)
      ..lineTo(11.146, 4.854)
      ..cubicTo(11.049, 4.756, 11, 4.638, 11, 4.5)
      ..close()
      ..moveTo(14, 7.707)
      ..cubicTo(14.276, 7.707, 14.512, 7.805, 14.707, 8)
      ..lineTo(15, 8.293)
      ..cubicTo(15.195, 8.488, 15.293, 8.724, 15.293, 9)
      ..cubicTo(15.293, 9.276, 15.195, 9.512, 15, 9.707)
      ..lineTo(12.061, 12.646)
      ..cubicTo(11.56, 13.147, 11.007, 13.579, 10.4, 13.943)
      ..lineTo(8.757, 14.929)
      ..cubicTo(8.636, 15.001, 8.51, 15.021, 8.378, 14.988)
      ..cubicTo(8.246, 14.955, 8.144, 14.878, 8.071, 14.757)
      ..cubicTo(8.023, 14.677, 7.999, 14.592, 7.999, 14.5)
      ..cubicTo(7.999, 14.408, 8.023, 14.323, 8.071, 14.243)
      ..lineTo(9.057, 12.6)
      ..cubicTo(9.421, 11.993, 9.853, 11.44, 10.354, 10.939)
      ..lineTo(13.293, 8)
      ..cubicTo(13.488, 7.805, 13.724, 7.707, 14, 7.707)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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