# hard-hat icon

Hard hat. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/hard-hat

- Category: Tools
- Use it for: hard hat, safety helmet
- Tags: hard-hat, safety-helmet, helmet, hardhat, construction, worker, builder, engineer, contractor, safety, site
- Component name: HardHatIcon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { HardHatIcon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

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

The SVG of every style: https://gentleface.com/icons/hard-hat.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="M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z"/></svg>
```

### React

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

export function HardHatIcon(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="M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "hard-hat" (line-round), MIT. https://gentleface.com/icons/hard-hat -->
<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="M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "hard-hat" (line-round), MIT. https://gentleface.com/icons/hard-hat -->
<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="M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "hard-hat" (line-round), MIT. https://gentleface.com/icons/hard-hat. Takes the text color. */
.icon-hard-hat {
  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='M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z'/%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='M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z'/%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='M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct HardHatIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 14.856, y: 10.144))
        p.addCurve(to: CGPoint(x: 15, y: 10.5), control1: CGPoint(x: 14.952, y: 10.241), control2: CGPoint(x: 15, y: 10.359))
        p.addLine(to: CGPoint(x: 15, y: 12.5))
        p.addCurve(to: CGPoint(x: 14.856, y: 12.856), control1: CGPoint(x: 15, y: 12.641), control2: CGPoint(x: 14.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 13), control1: CGPoint(x: 14.759, y: 12.952), control2: CGPoint(x: 14.641, y: 13))
        p.addLine(to: CGPoint(x: 1.5, y: 13))
        p.addCurve(to: CGPoint(x: 1.144, y: 12.856), control1: CGPoint(x: 1.359, y: 13), control2: CGPoint(x: 1.241, y: 12.952))
        p.addCurve(to: CGPoint(x: 1, y: 12.5), control1: CGPoint(x: 1.048, y: 12.759), control2: CGPoint(x: 1, y: 12.641))
        p.addLine(to: CGPoint(x: 1, y: 10.5))
        p.addCurve(to: CGPoint(x: 1.144, y: 10.144), control1: CGPoint(x: 1, y: 10.359), control2: CGPoint(x: 1.048, y: 10.241))
        p.addCurve(to: CGPoint(x: 1.5, y: 10), control1: CGPoint(x: 1.241, y: 10.048), control2: CGPoint(x: 1.359, y: 10))
        p.addLine(to: CGPoint(x: 2, y: 10))
        p.addCurve(to: CGPoint(x: 2.295, y: 8.141), control1: CGPoint(x: 2, y: 9.365), control2: CGPoint(x: 2.098, y: 8.745))
        p.addCurve(to: CGPoint(x: 3.214, y: 6.382), control1: CGPoint(x: 2.503, y: 7.504), control2: CGPoint(x: 2.809, y: 6.917))
        p.addCurve(to: CGPoint(x: 4.656, y: 5.018), control1: CGPoint(x: 3.618, y: 5.847), control2: CGPoint(x: 4.099, y: 5.392))
        p.addCurve(to: CGPoint(x: 6, y: 4.343), control1: CGPoint(x: 5.077, y: 4.735), control2: CGPoint(x: 5.525, y: 4.51))
        p.addLine(to: CGPoint(x: 6, y: 3.5))
        p.addCurve(to: CGPoint(x: 6.105, y: 2.948), control1: CGPoint(x: 6, y: 3.309), control2: CGPoint(x: 6.035, y: 3.125))
        p.addCurve(to: CGPoint(x: 6.439, y: 2.439), control1: CGPoint(x: 6.182, y: 2.755), control2: CGPoint(x: 6.293, y: 2.586))
        p.addCurve(to: CGPoint(x: 6.948, y: 2.105), control1: CGPoint(x: 6.586, y: 2.293), control2: CGPoint(x: 6.755, y: 2.182))
        p.addCurve(to: CGPoint(x: 7.5, y: 2), control1: CGPoint(x: 7.125, y: 2.035), control2: CGPoint(x: 7.309, y: 2))
        p.addLine(to: CGPoint(x: 8.5, y: 2))
        p.addCurve(to: CGPoint(x: 9.052, y: 2.105), control1: CGPoint(x: 8.691, y: 2), control2: CGPoint(x: 8.875, y: 2.035))
        p.addCurve(to: CGPoint(x: 9.561, y: 2.439), control1: CGPoint(x: 9.245, y: 2.182), control2: CGPoint(x: 9.414, y: 2.293))
        p.addCurve(to: CGPoint(x: 9.895, y: 2.948), control1: CGPoint(x: 9.707, y: 2.586), control2: CGPoint(x: 9.818, y: 2.755))
        p.addCurve(to: CGPoint(x: 10, y: 3.5), control1: CGPoint(x: 9.965, y: 3.125), control2: CGPoint(x: 10, y: 3.309))
        p.addLine(to: CGPoint(x: 10, y: 4.343))
        p.addCurve(to: CGPoint(x: 11.344, y: 5.018), control1: CGPoint(x: 10.475, y: 4.51), control2: CGPoint(x: 10.923, y: 4.735))
        p.addCurve(to: CGPoint(x: 12.786, y: 6.382), control1: CGPoint(x: 11.901, y: 5.392), control2: CGPoint(x: 12.382, y: 5.847))
        p.addCurve(to: CGPoint(x: 13.705, y: 8.141), control1: CGPoint(x: 13.191, y: 6.917), control2: CGPoint(x: 13.497, y: 7.504))
        p.addCurve(to: CGPoint(x: 14, y: 10), control1: CGPoint(x: 13.902, y: 8.745), control2: CGPoint(x: 14, y: 9.365))
        p.addLine(to: CGPoint(x: 14.5, y: 10))
        p.addCurve(to: CGPoint(x: 14.856, y: 10.144), control1: CGPoint(x: 14.641, y: 10), control2: CGPoint(x: 14.759, y: 10.048))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.854, y: 3.146))
        p.addCurve(to: CGPoint(x: 8.5, y: 3), control1: CGPoint(x: 8.756, y: 3.049), control2: CGPoint(x: 8.638, y: 3))
        p.addLine(to: CGPoint(x: 7.5, y: 3))
        p.addCurve(to: CGPoint(x: 7.146, y: 3.146), control1: CGPoint(x: 7.362, y: 3), control2: CGPoint(x: 7.244, y: 3.049))
        p.addCurve(to: CGPoint(x: 7, y: 3.5), control1: CGPoint(x: 7.049, y: 3.244), control2: CGPoint(x: 7, y: 3.362))
        p.addLine(to: CGPoint(x: 7, y: 10))
        p.addLine(to: CGPoint(x: 9, y: 10))
        p.addLine(to: CGPoint(x: 9, y: 3.5))
        p.addCurve(to: CGPoint(x: 8.854, y: 3.146), control1: CGPoint(x: 9, y: 3.362), control2: CGPoint(x: 8.951, y: 3.244))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6, y: 5.417))
        p.addCurve(to: CGPoint(x: 5.213, y: 5.849), control1: CGPoint(x: 5.726, y: 5.536), control2: CGPoint(x: 5.464, y: 5.68))
        p.addCurve(to: CGPoint(x: 4.011, y: 6.985), control1: CGPoint(x: 4.749, y: 6.16), control2: CGPoint(x: 4.349, y: 6.539))
        p.addCurve(to: CGPoint(x: 3.246, y: 8.451), control1: CGPoint(x: 3.674, y: 7.431), control2: CGPoint(x: 3.419, y: 7.92))
        p.addCurve(to: CGPoint(x: 3, y: 10), control1: CGPoint(x: 3.082, y: 8.954), control2: CGPoint(x: 3, y: 9.471))
        p.addLine(to: CGPoint(x: 6, y: 10))
        p.addLine(to: CGPoint(x: 6, y: 5.417))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.754, y: 8.451))
        p.addCurve(to: CGPoint(x: 11.989, y: 6.985), control1: CGPoint(x: 12.581, y: 7.92), control2: CGPoint(x: 12.326, y: 7.431))
        p.addCurve(to: CGPoint(x: 10.787, y: 5.849), control1: CGPoint(x: 11.651, y: 6.539), control2: CGPoint(x: 11.251, y: 6.16))
        p.addCurve(to: CGPoint(x: 10, y: 5.417), control1: CGPoint(x: 10.536, y: 5.68), control2: CGPoint(x: 10.274, y: 5.536))
        p.addLine(to: CGPoint(x: 10, y: 10))
        p.addLine(to: CGPoint(x: 13, y: 10))
        p.addCurve(to: CGPoint(x: 12.754, y: 8.451), control1: CGPoint(x: 13, y: 9.471), control2: CGPoint(x: 12.918, y: 8.954))
        p.closeSubpath()
        p.move(to: CGPoint(x: 14, y: 11))
        p.addLine(to: CGPoint(x: 2, y: 11))
        p.addLine(to: CGPoint(x: 2, y: 12))
        p.addLine(to: CGPoint(x: 14, y: 12))
        p.addLine(to: CGPoint(x: 14, y: 11))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "hard-hat" (line-round), MIT. https://gentleface.com/icons/hard-hat
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 HardHatIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "hard-hat", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_hard_hat.xml · Gentleface "hard-hat" (line-round), MIT. https://gentleface.com/icons/hard-hat -->
<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="M14.856 10.144C14.952 10.241 15 10.359 15 10.5L15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L1.5 13C1.359 13 1.241 12.952 1.144 12.856C1.048 12.759 1 12.641 1 12.5L1 10.5C1 10.359 1.048 10.241 1.144 10.144C1.241 10.048 1.359 10 1.5 10L2 10C2 9.365 2.098 8.745 2.295 8.141C2.503 7.504 2.809 6.917 3.214 6.382C3.618 5.847 4.099 5.392 4.656 5.018C5.077 4.735 5.525 4.51 6 4.343L6 3.5C6 3.309 6.035 3.125 6.105 2.948C6.182 2.755 6.293 2.586 6.439 2.439C6.586 2.293 6.755 2.182 6.948 2.105C7.125 2.035 7.309 2 7.5 2L8.5 2C8.691 2 8.875 2.035 9.052 2.105C9.245 2.182 9.414 2.293 9.561 2.439C9.707 2.586 9.818 2.755 9.895 2.948C9.965 3.125 10 3.309 10 3.5L10 4.343C10.475 4.51 10.923 4.735 11.344 5.018C11.901 5.392 12.382 5.847 12.786 6.382C13.191 6.917 13.497 7.504 13.705 8.141C13.902 8.745 14 9.365 14 10L14.5 10C14.641 10 14.759 10.048 14.856 10.144ZM8.854 3.146C8.756 3.049 8.638 3 8.5 3L7.5 3C7.362 3 7.244 3.049 7.146 3.146C7.049 3.244 7 3.362 7 3.5L7 10L9 10L9 3.5C9 3.362 8.951 3.244 8.854 3.146ZM6 5.417C5.726 5.536 5.464 5.68 5.213 5.849C4.749 6.16 4.349 6.539 4.011 6.985C3.674 7.431 3.419 7.92 3.246 8.451C3.082 8.954 3 9.471 3 10L6 10L6 5.417ZM12.754 8.451C12.581 7.92 12.326 7.431 11.989 6.985C11.651 6.539 11.251 6.16 10.787 5.849C10.536 5.68 10.274 5.536 10 5.417L10 10L13 10C13 9.471 12.918 8.954 12.754 8.451ZM14 11L2 11L2 12L14 12L14 11Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(14.856, 10.144)
      ..cubicTo(14.952, 10.241, 15, 10.359, 15, 10.5)
      ..lineTo(15, 12.5)
      ..cubicTo(15, 12.641, 14.952, 12.759, 14.856, 12.856)
      ..cubicTo(14.759, 12.952, 14.641, 13, 14.5, 13)
      ..lineTo(1.5, 13)
      ..cubicTo(1.359, 13, 1.241, 12.952, 1.144, 12.856)
      ..cubicTo(1.048, 12.759, 1, 12.641, 1, 12.5)
      ..lineTo(1, 10.5)
      ..cubicTo(1, 10.359, 1.048, 10.241, 1.144, 10.144)
      ..cubicTo(1.241, 10.048, 1.359, 10, 1.5, 10)
      ..lineTo(2, 10)
      ..cubicTo(2, 9.365, 2.098, 8.745, 2.295, 8.141)
      ..cubicTo(2.503, 7.504, 2.809, 6.917, 3.214, 6.382)
      ..cubicTo(3.618, 5.847, 4.099, 5.392, 4.656, 5.018)
      ..cubicTo(5.077, 4.735, 5.525, 4.51, 6, 4.343)
      ..lineTo(6, 3.5)
      ..cubicTo(6, 3.309, 6.035, 3.125, 6.105, 2.948)
      ..cubicTo(6.182, 2.755, 6.293, 2.586, 6.439, 2.439)
      ..cubicTo(6.586, 2.293, 6.755, 2.182, 6.948, 2.105)
      ..cubicTo(7.125, 2.035, 7.309, 2, 7.5, 2)
      ..lineTo(8.5, 2)
      ..cubicTo(8.691, 2, 8.875, 2.035, 9.052, 2.105)
      ..cubicTo(9.245, 2.182, 9.414, 2.293, 9.561, 2.439)
      ..cubicTo(9.707, 2.586, 9.818, 2.755, 9.895, 2.948)
      ..cubicTo(9.965, 3.125, 10, 3.309, 10, 3.5)
      ..lineTo(10, 4.343)
      ..cubicTo(10.475, 4.51, 10.923, 4.735, 11.344, 5.018)
      ..cubicTo(11.901, 5.392, 12.382, 5.847, 12.786, 6.382)
      ..cubicTo(13.191, 6.917, 13.497, 7.504, 13.705, 8.141)
      ..cubicTo(13.902, 8.745, 14, 9.365, 14, 10)
      ..lineTo(14.5, 10)
      ..cubicTo(14.641, 10, 14.759, 10.048, 14.856, 10.144)
      ..close()
      ..moveTo(8.854, 3.146)
      ..cubicTo(8.756, 3.049, 8.638, 3, 8.5, 3)
      ..lineTo(7.5, 3)
      ..cubicTo(7.362, 3, 7.244, 3.049, 7.146, 3.146)
      ..cubicTo(7.049, 3.244, 7, 3.362, 7, 3.5)
      ..lineTo(7, 10)
      ..lineTo(9, 10)
      ..lineTo(9, 3.5)
      ..cubicTo(9, 3.362, 8.951, 3.244, 8.854, 3.146)
      ..close()
      ..moveTo(6, 5.417)
      ..cubicTo(5.726, 5.536, 5.464, 5.68, 5.213, 5.849)
      ..cubicTo(4.749, 6.16, 4.349, 6.539, 4.011, 6.985)
      ..cubicTo(3.674, 7.431, 3.419, 7.92, 3.246, 8.451)
      ..cubicTo(3.082, 8.954, 3, 9.471, 3, 10)
      ..lineTo(6, 10)
      ..lineTo(6, 5.417)
      ..close()
      ..moveTo(12.754, 8.451)
      ..cubicTo(12.581, 7.92, 12.326, 7.431, 11.989, 6.985)
      ..cubicTo(11.651, 6.539, 11.251, 6.16, 10.787, 5.849)
      ..cubicTo(10.536, 5.68, 10.274, 5.536, 10, 5.417)
      ..lineTo(10, 10)
      ..lineTo(13, 10)
      ..cubicTo(13, 9.471, 12.918, 8.954, 12.754, 8.451)
      ..close()
      ..moveTo(14, 11)
      ..lineTo(2, 11)
      ..lineTo(2, 12)
      ..lineTo(14, 12)
      ..lineTo(14, 11)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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