# heptagon icon

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

- Category: Shapes
- Use it for: heptagon, seven sided, septagon
- Tags: heptagon, septagon, shape, polygon, seven-sided, geometry
- Component name: HeptagonIcon
- Added: 2026-11-12

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

The SVG of every style: https://gentleface.com/icons/heptagon.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="M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z"/></svg>
```

### React

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

export function HeptagonIcon(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="M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "heptagon" (line-round), MIT. https://gentleface.com/icons/heptagon -->
<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="M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "heptagon" (line-round), MIT. https://gentleface.com/icons/heptagon -->
<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="M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "heptagon" (line-round), MIT. https://gentleface.com/icons/heptagon. Takes the text color. */
.icon-heptagon {
  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='M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z'/%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='M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z'/%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='M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct HeptagonIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13.795, y: 9.058))
        p.addCurve(to: CGPoint(x: 13.361, y: 10.109), control1: CGPoint(x: 13.72, y: 9.438), control2: CGPoint(x: 13.576, y: 9.788))
        p.addLine(to: CGPoint(x: 11.471, y: 12.945))
        p.addCurve(to: CGPoint(x: 10.618, y: 13.72), control1: CGPoint(x: 11.251, y: 13.275), control2: CGPoint(x: 10.967, y: 13.533))
        p.addCurve(to: CGPoint(x: 9.5, y: 14), control1: CGPoint(x: 10.268, y: 13.907), control2: CGPoint(x: 9.896, y: 14))
        p.addLine(to: CGPoint(x: 5.5, y: 14))
        p.addCurve(to: CGPoint(x: 4.382, y: 13.72), control1: CGPoint(x: 5.104, y: 14), control2: CGPoint(x: 4.732, y: 13.907))
        p.addCurve(to: CGPoint(x: 3.529, y: 12.945), control1: CGPoint(x: 4.033, y: 13.533), control2: CGPoint(x: 3.749, y: 13.275))
        p.addLine(to: CGPoint(x: 1.639, y: 10.109))
        p.addCurve(to: CGPoint(x: 1.205, y: 9.058), control1: CGPoint(x: 1.424, y: 9.788), control2: CGPoint(x: 1.28, y: 9.438))
        p.addCurve(to: CGPoint(x: 1.206, y: 7.921), control1: CGPoint(x: 1.13, y: 8.679), control2: CGPoint(x: 1.13, y: 8.3))
        p.addLine(to: CGPoint(x: 1.814, y: 4.883))
        p.addCurve(to: CGPoint(x: 2.287, y: 3.837), control1: CGPoint(x: 1.891, y: 4.498), control2: CGPoint(x: 2.048, y: 4.149))
        p.addCurve(to: CGPoint(x: 3.171, y: 3.106), control1: CGPoint(x: 2.525, y: 3.525), control2: CGPoint(x: 2.82, y: 3.281))
        p.addLine(to: CGPoint(x: 6.382, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.236), control1: CGPoint(x: 6.734, y: 1.324), control2: CGPoint(x: 7.107, y: 1.236))
        p.addCurve(to: CGPoint(x: 8.618, y: 1.5), control1: CGPoint(x: 7.893, y: 1.236), control2: CGPoint(x: 8.266, y: 1.324))
        p.addLine(to: CGPoint(x: 11.829, y: 3.106))
        p.addCurve(to: CGPoint(x: 12.713, y: 3.837), control1: CGPoint(x: 12.18, y: 3.281), control2: CGPoint(x: 12.475, y: 3.525))
        p.addCurve(to: CGPoint(x: 13.186, y: 4.883), control1: CGPoint(x: 12.952, y: 4.149), control2: CGPoint(x: 13.109, y: 4.498))
        p.addLine(to: CGPoint(x: 13.794, y: 7.921))
        p.addCurve(to: CGPoint(x: 13.795, y: 9.058), control1: CGPoint(x: 13.87, y: 8.3), control2: CGPoint(x: 13.87, y: 8.679))
        p.closeSubpath()
        p.move(to: CGPoint(x: 3.618, y: 4))
        p.addCurve(to: CGPoint(x: 3.081, y: 4.444), control1: CGPoint(x: 3.405, y: 4.107), control2: CGPoint(x: 3.226, y: 4.255))
        p.addCurve(to: CGPoint(x: 2.794, y: 5.079), control1: CGPoint(x: 2.937, y: 4.633), control2: CGPoint(x: 2.841, y: 4.845))
        p.addLine(to: CGPoint(x: 2.186, y: 8.117))
        p.addCurve(to: CGPoint(x: 2.186, y: 8.864), control1: CGPoint(x: 2.137, y: 8.366), control2: CGPoint(x: 2.136, y: 8.615))
        p.addCurve(to: CGPoint(x: 2.471, y: 9.555), control1: CGPoint(x: 2.235, y: 9.113), control2: CGPoint(x: 2.33, y: 9.343))
        p.addLine(to: CGPoint(x: 4.361, y: 12.391))
        p.addCurve(to: CGPoint(x: 4.854, y: 12.838), control1: CGPoint(x: 4.488, y: 12.581), control2: CGPoint(x: 4.653, y: 12.73))
        p.addCurve(to: CGPoint(x: 5.5, y: 13), control1: CGPoint(x: 5.056, y: 12.946), control2: CGPoint(x: 5.271, y: 13))
        p.addLine(to: CGPoint(x: 9.5, y: 13))
        p.addCurve(to: CGPoint(x: 10.146, y: 12.838), control1: CGPoint(x: 9.729, y: 13), control2: CGPoint(x: 9.944, y: 12.946))
        p.addCurve(to: CGPoint(x: 10.639, y: 12.391), control1: CGPoint(x: 10.347, y: 12.73), control2: CGPoint(x: 10.512, y: 12.581))
        p.addLine(to: CGPoint(x: 12.529, y: 9.555))
        p.addCurve(to: CGPoint(x: 12.814, y: 8.864), control1: CGPoint(x: 12.67, y: 9.343), control2: CGPoint(x: 12.765, y: 9.113))
        p.addCurve(to: CGPoint(x: 12.814, y: 8.117), control1: CGPoint(x: 12.864, y: 8.615), control2: CGPoint(x: 12.863, y: 8.366))
        p.addLine(to: CGPoint(x: 12.206, y: 5.079))
        p.addCurve(to: CGPoint(x: 11.919, y: 4.444), control1: CGPoint(x: 12.159, y: 4.845), control2: CGPoint(x: 12.063, y: 4.633))
        p.addCurve(to: CGPoint(x: 11.382, y: 4), control1: CGPoint(x: 11.774, y: 4.255), control2: CGPoint(x: 11.595, y: 4.107))
        p.addLine(to: CGPoint(x: 8.171, y: 2.394))
        p.addCurve(to: CGPoint(x: 7.5, y: 2.236), control1: CGPoint(x: 7.96, y: 2.289), control2: CGPoint(x: 7.736, y: 2.236))
        p.addCurve(to: CGPoint(x: 6.829, y: 2.394), control1: CGPoint(x: 7.264, y: 2.236), control2: CGPoint(x: 7.04, y: 2.289))
        p.addLine(to: CGPoint(x: 3.618, y: 4))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "heptagon" (line-round), MIT. https://gentleface.com/icons/heptagon
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 HeptagonIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "heptagon", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_heptagon.xml · Gentleface "heptagon" (line-round), MIT. https://gentleface.com/icons/heptagon -->
<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="M13.795 9.058C13.72 9.438 13.576 9.788 13.361 10.109L11.471 12.945C11.251 13.275 10.967 13.533 10.618 13.72C10.268 13.907 9.896 14 9.5 14L5.5 14C5.104 14 4.732 13.907 4.382 13.72C4.033 13.533 3.749 13.275 3.529 12.945L1.639 10.109C1.424 9.788 1.28 9.438 1.205 9.058C1.13 8.679 1.13 8.3 1.206 7.921L1.814 4.883C1.891 4.498 2.048 4.149 2.287 3.837C2.525 3.525 2.82 3.281 3.171 3.106L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L11.829 3.106C12.18 3.281 12.475 3.525 12.713 3.837C12.952 4.149 13.109 4.498 13.186 4.883L13.794 7.921C13.87 8.3 13.87 8.679 13.795 9.058ZM3.618 4C3.405 4.107 3.226 4.255 3.081 4.444C2.937 4.633 2.841 4.845 2.794 5.079L2.186 8.117C2.137 8.366 2.136 8.615 2.186 8.864C2.235 9.113 2.33 9.343 2.471 9.555L4.361 12.391C4.488 12.581 4.653 12.73 4.854 12.838C5.056 12.946 5.271 13 5.5 13L9.5 13C9.729 13 9.944 12.946 10.146 12.838C10.347 12.73 10.512 12.581 10.639 12.391L12.529 9.555C12.67 9.343 12.765 9.113 12.814 8.864C12.864 8.615 12.863 8.366 12.814 8.117L12.206 5.079C12.159 4.845 12.063 4.633 11.919 4.444C11.774 4.255 11.595 4.107 11.382 4L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L3.618 4Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(13.795, 9.058)
      ..cubicTo(13.72, 9.438, 13.576, 9.788, 13.361, 10.109)
      ..lineTo(11.471, 12.945)
      ..cubicTo(11.251, 13.275, 10.967, 13.533, 10.618, 13.72)
      ..cubicTo(10.268, 13.907, 9.896, 14, 9.5, 14)
      ..lineTo(5.5, 14)
      ..cubicTo(5.104, 14, 4.732, 13.907, 4.382, 13.72)
      ..cubicTo(4.033, 13.533, 3.749, 13.275, 3.529, 12.945)
      ..lineTo(1.639, 10.109)
      ..cubicTo(1.424, 9.788, 1.28, 9.438, 1.205, 9.058)
      ..cubicTo(1.13, 8.679, 1.13, 8.3, 1.206, 7.921)
      ..lineTo(1.814, 4.883)
      ..cubicTo(1.891, 4.498, 2.048, 4.149, 2.287, 3.837)
      ..cubicTo(2.525, 3.525, 2.82, 3.281, 3.171, 3.106)
      ..lineTo(6.382, 1.5)
      ..cubicTo(6.734, 1.324, 7.107, 1.236, 7.5, 1.236)
      ..cubicTo(7.893, 1.236, 8.266, 1.324, 8.618, 1.5)
      ..lineTo(11.829, 3.106)
      ..cubicTo(12.18, 3.281, 12.475, 3.525, 12.713, 3.837)
      ..cubicTo(12.952, 4.149, 13.109, 4.498, 13.186, 4.883)
      ..lineTo(13.794, 7.921)
      ..cubicTo(13.87, 8.3, 13.87, 8.679, 13.795, 9.058)
      ..close()
      ..moveTo(3.618, 4)
      ..cubicTo(3.405, 4.107, 3.226, 4.255, 3.081, 4.444)
      ..cubicTo(2.937, 4.633, 2.841, 4.845, 2.794, 5.079)
      ..lineTo(2.186, 8.117)
      ..cubicTo(2.137, 8.366, 2.136, 8.615, 2.186, 8.864)
      ..cubicTo(2.235, 9.113, 2.33, 9.343, 2.471, 9.555)
      ..lineTo(4.361, 12.391)
      ..cubicTo(4.488, 12.581, 4.653, 12.73, 4.854, 12.838)
      ..cubicTo(5.056, 12.946, 5.271, 13, 5.5, 13)
      ..lineTo(9.5, 13)
      ..cubicTo(9.729, 13, 9.944, 12.946, 10.146, 12.838)
      ..cubicTo(10.347, 12.73, 10.512, 12.581, 10.639, 12.391)
      ..lineTo(12.529, 9.555)
      ..cubicTo(12.67, 9.343, 12.765, 9.113, 12.814, 8.864)
      ..cubicTo(12.864, 8.615, 12.863, 8.366, 12.814, 8.117)
      ..lineTo(12.206, 5.079)
      ..cubicTo(12.159, 4.845, 12.063, 4.633, 11.919, 4.444)
      ..cubicTo(11.774, 4.255, 11.595, 4.107, 11.382, 4)
      ..lineTo(8.171, 2.394)
      ..cubicTo(7.96, 2.289, 7.736, 2.236, 7.5, 2.236)
      ..cubicTo(7.264, 2.236, 7.04, 2.289, 6.829, 2.394)
      ..lineTo(3.618, 4)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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