# lock-pencil icon

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

- Category: Security & privacy
- Use it for: change passcode, change pin
- Example: Change a passcode
- Built from: lock + pencil
- Tags: padlock, security, pencil
- Family: lock, lock-check, lock-clock, lock-gear, lock-off, lock-open, lock-open-alert, lock-tag
- Component name: LockPencilIcon
- Added: 2026-11-07
- Since: version 0.6.0
- npm: `import { LockPencilIcon } from '@gentleface/react';` (@gentleface/react 0.6.0)

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

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

The SVG of every style: https://gentleface.com/icons/lock-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="M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-pencil
import type { SVGProps } from 'react';

export function LockPencilIcon(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="M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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="M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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="M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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/lock-pencil.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-pencil. Takes the text color. */
.icon-lock-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='M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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='M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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='M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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#lock-pencil"/></svg>
```

### SwiftUI

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

struct LockPencilIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 9.707, y: 6.293))
        p.addCurve(to: CGPoint(x: 10, y: 7), control1: CGPoint(x: 9.902, y: 6.488), control2: CGPoint(x: 10, y: 6.724))
        p.addLine(to: CGPoint(x: 10, y: 9.5))
        p.addCurve(to: CGPoint(x: 9.856, y: 9.856), control1: CGPoint(x: 10, y: 9.641), control2: CGPoint(x: 9.952, y: 9.759))
        p.addCurve(to: CGPoint(x: 9.5, y: 10), control1: CGPoint(x: 9.759, y: 9.952), control2: CGPoint(x: 9.641, y: 10))
        p.addCurve(to: CGPoint(x: 9.144, y: 9.856), control1: CGPoint(x: 9.359, y: 10), control2: CGPoint(x: 9.241, y: 9.952))
        p.addCurve(to: CGPoint(x: 9, y: 9.5), control1: CGPoint(x: 9.048, y: 9.759), control2: CGPoint(x: 9, y: 9.641))
        p.addLine(to: CGPoint(x: 9, y: 7))
        p.addLine(to: CGPoint(x: 2, y: 7))
        p.addLine(to: CGPoint(x: 2, y: 11))
        p.addLine(to: CGPoint(x: 7.5, y: 11))
        p.addCurve(to: CGPoint(x: 7.856, y: 11.144), control1: CGPoint(x: 7.641, y: 11), control2: CGPoint(x: 7.759, y: 11.048))
        p.addCurve(to: CGPoint(x: 8, y: 11.5), control1: CGPoint(x: 7.952, y: 11.241), control2: CGPoint(x: 8, y: 11.359))
        p.addCurve(to: CGPoint(x: 7.856, y: 11.856), control1: CGPoint(x: 8, y: 11.641), control2: CGPoint(x: 7.952, y: 11.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 12), control1: CGPoint(x: 7.759, y: 11.952), control2: CGPoint(x: 7.641, y: 12))
        p.addLine(to: CGPoint(x: 2, y: 12))
        p.addCurve(to: CGPoint(x: 1.293, y: 11.707), control1: CGPoint(x: 1.724, y: 12), control2: CGPoint(x: 1.488, y: 11.902))
        p.addCurve(to: CGPoint(x: 1, y: 11), control1: CGPoint(x: 1.098, y: 11.512), control2: CGPoint(x: 1, y: 11.276))
        p.addLine(to: CGPoint(x: 1, y: 7))
        p.addCurve(to: CGPoint(x: 1.293, y: 6.293), control1: CGPoint(x: 1, y: 6.724), control2: CGPoint(x: 1.098, y: 6.488))
        p.addCurve(to: CGPoint(x: 2, y: 6), control1: CGPoint(x: 1.488, y: 6.098), control2: CGPoint(x: 1.724, y: 6))
        p.addLine(to: CGPoint(x: 3, y: 6))
        p.addLine(to: CGPoint(x: 3, y: 4.5))
        p.addCurve(to: CGPoint(x: 3.176, y: 3.58), control1: CGPoint(x: 3, y: 4.182), control2: CGPoint(x: 3.059, y: 3.875))
        p.addCurve(to: CGPoint(x: 3.732, y: 2.732), control1: CGPoint(x: 3.303, y: 3.259), control2: CGPoint(x: 3.488, y: 2.976))
        p.addCurve(to: CGPoint(x: 4.58, y: 2.176), control1: CGPoint(x: 3.976, y: 2.488), control2: CGPoint(x: 4.259, y: 2.303))
        p.addCurve(to: CGPoint(x: 5.5, y: 2), control1: CGPoint(x: 4.875, y: 2.059), control2: CGPoint(x: 5.182, y: 2))
        p.addCurve(to: CGPoint(x: 6.42, y: 2.176), control1: CGPoint(x: 5.818, y: 2), control2: CGPoint(x: 6.125, y: 2.059))
        p.addCurve(to: CGPoint(x: 7.268, y: 2.732), control1: CGPoint(x: 6.741, y: 2.303), control2: CGPoint(x: 7.024, y: 2.488))
        p.addCurve(to: CGPoint(x: 7.824, y: 3.58), control1: CGPoint(x: 7.512, y: 2.976), control2: CGPoint(x: 7.697, y: 3.259))
        p.addCurve(to: CGPoint(x: 8, y: 4.5), control1: CGPoint(x: 7.941, y: 3.875), control2: CGPoint(x: 8, y: 4.182))
        p.addLine(to: CGPoint(x: 8, y: 6))
        p.addLine(to: CGPoint(x: 9, y: 6))
        p.addCurve(to: CGPoint(x: 9.707, y: 6.293), control1: CGPoint(x: 9.276, y: 6), control2: CGPoint(x: 9.512, y: 6.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6.895, y: 3.948))
        p.addCurve(to: CGPoint(x: 6.561, y: 3.439), control1: CGPoint(x: 6.818, y: 3.755), control2: CGPoint(x: 6.707, y: 3.586))
        p.addCurve(to: CGPoint(x: 6.052, y: 3.105), control1: CGPoint(x: 6.414, y: 3.293), control2: CGPoint(x: 6.245, y: 3.182))
        p.addCurve(to: CGPoint(x: 5.5, y: 3), control1: CGPoint(x: 5.875, y: 3.035), control2: CGPoint(x: 5.691, y: 3))
        p.addCurve(to: CGPoint(x: 4.948, y: 3.105), control1: CGPoint(x: 5.309, y: 3), control2: CGPoint(x: 5.125, y: 3.035))
        p.addCurve(to: CGPoint(x: 4.439, y: 3.439), control1: CGPoint(x: 4.755, y: 3.182), control2: CGPoint(x: 4.586, y: 3.293))
        p.addCurve(to: CGPoint(x: 4.105, y: 3.948), control1: CGPoint(x: 4.293, y: 3.586), control2: CGPoint(x: 4.182, y: 3.755))
        p.addCurve(to: CGPoint(x: 4, y: 4.5), control1: CGPoint(x: 4.035, y: 4.125), control2: CGPoint(x: 4, y: 4.309))
        p.addLine(to: CGPoint(x: 4, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 6))
        p.addLine(to: CGPoint(x: 7, y: 4.5))
        p.addCurve(to: CGPoint(x: 6.895, y: 3.948), control1: CGPoint(x: 7, y: 4.309), control2: CGPoint(x: 6.965, y: 4.125))
        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))
    }
}

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

### Compose

```kotlin
// Gentleface "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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 LockPencilIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "lock-pencil", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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(LockPencilIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_lock_pencil.xml · Gentleface "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-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="M9.707 6.293C9.902 6.488 10 6.724 10 7L10 9.5C10 9.641 9.952 9.759 9.856 9.856C9.759 9.952 9.641 10 9.5 10C9.359 10 9.241 9.952 9.144 9.856C9.048 9.759 9 9.641 9 9.5L9 7L2 7L2 11L7.5 11C7.641 11 7.759 11.048 7.856 11.144C7.952 11.241 8 11.359 8 11.5C8 11.641 7.952 11.759 7.856 11.856C7.759 11.952 7.641 12 7.5 12L2 12C1.724 12 1.488 11.902 1.293 11.707C1.098 11.512 1 11.276 1 11L1 7C1 6.724 1.098 6.488 1.293 6.293C1.488 6.098 1.724 6 2 6L3 6L3 4.5C3 4.182 3.059 3.875 3.176 3.58C3.303 3.259 3.488 2.976 3.732 2.732C3.976 2.488 4.259 2.303 4.58 2.176C4.875 2.059 5.182 2 5.5 2C5.818 2 6.125 2.059 6.42 2.176C6.741 2.303 7.024 2.488 7.268 2.732C7.512 2.976 7.697 3.259 7.824 3.58C7.941 3.875 8 4.182 8 4.5L8 6L9 6C9.276 6 9.512 6.098 9.707 6.293ZM6.895 3.948C6.818 3.755 6.707 3.586 6.561 3.439C6.414 3.293 6.245 3.182 6.052 3.105C5.875 3.035 5.691 3 5.5 3C5.309 3 5.125 3.035 4.948 3.105C4.755 3.182 4.586 3.293 4.439 3.439C4.293 3.586 4.182 3.755 4.105 3.948C4.035 4.125 4 4.309 4 4.5L4 6L7 6L7 4.5C7 4.309 6.965 4.125 6.895 3.948ZM14 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 "lock-pencil" (line-round), MIT. https://gentleface.com/icons/lock-pencil
import 'package:flutter/widgets.dart';

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(9.707, 6.293)
      ..cubicTo(9.902, 6.488, 10, 6.724, 10, 7)
      ..lineTo(10, 9.5)
      ..cubicTo(10, 9.641, 9.952, 9.759, 9.856, 9.856)
      ..cubicTo(9.759, 9.952, 9.641, 10, 9.5, 10)
      ..cubicTo(9.359, 10, 9.241, 9.952, 9.144, 9.856)
      ..cubicTo(9.048, 9.759, 9, 9.641, 9, 9.5)
      ..lineTo(9, 7)
      ..lineTo(2, 7)
      ..lineTo(2, 11)
      ..lineTo(7.5, 11)
      ..cubicTo(7.641, 11, 7.759, 11.048, 7.856, 11.144)
      ..cubicTo(7.952, 11.241, 8, 11.359, 8, 11.5)
      ..cubicTo(8, 11.641, 7.952, 11.759, 7.856, 11.856)
      ..cubicTo(7.759, 11.952, 7.641, 12, 7.5, 12)
      ..lineTo(2, 12)
      ..cubicTo(1.724, 12, 1.488, 11.902, 1.293, 11.707)
      ..cubicTo(1.098, 11.512, 1, 11.276, 1, 11)
      ..lineTo(1, 7)
      ..cubicTo(1, 6.724, 1.098, 6.488, 1.293, 6.293)
      ..cubicTo(1.488, 6.098, 1.724, 6, 2, 6)
      ..lineTo(3, 6)
      ..lineTo(3, 4.5)
      ..cubicTo(3, 4.182, 3.059, 3.875, 3.176, 3.58)
      ..cubicTo(3.303, 3.259, 3.488, 2.976, 3.732, 2.732)
      ..cubicTo(3.976, 2.488, 4.259, 2.303, 4.58, 2.176)
      ..cubicTo(4.875, 2.059, 5.182, 2, 5.5, 2)
      ..cubicTo(5.818, 2, 6.125, 2.059, 6.42, 2.176)
      ..cubicTo(6.741, 2.303, 7.024, 2.488, 7.268, 2.732)
      ..cubicTo(7.512, 2.976, 7.697, 3.259, 7.824, 3.58)
      ..cubicTo(7.941, 3.875, 8, 4.182, 8, 4.5)
      ..lineTo(8, 6)
      ..lineTo(9, 6)
      ..cubicTo(9.276, 6, 9.512, 6.098, 9.707, 6.293)
      ..close()
      ..moveTo(6.895, 3.948)
      ..cubicTo(6.818, 3.755, 6.707, 3.586, 6.561, 3.439)
      ..cubicTo(6.414, 3.293, 6.245, 3.182, 6.052, 3.105)
      ..cubicTo(5.875, 3.035, 5.691, 3, 5.5, 3)
      ..cubicTo(5.309, 3, 5.125, 3.035, 4.948, 3.105)
      ..cubicTo(4.755, 3.182, 4.586, 3.293, 4.439, 3.439)
      ..cubicTo(4.293, 3.586, 4.182, 3.755, 4.105, 3.948)
      ..cubicTo(4.035, 4.125, 4, 4.309, 4, 4.5)
      ..lineTo(4, 6)
      ..lineTo(7, 6)
      ..lineTo(7, 4.5)
      ..cubicTo(7, 4.309, 6.965, 4.125, 6.895, 3.948)
      ..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(_LockPencilIconPainter old) => old.color != color;
}
```
