# baseball-cap icon

Baseball cap. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/baseball-cap

- Category: Shopping
- Use it for: baseball cap, cap, sports cap
- Tags: baseball-cap, cap, hat, sports-cap, headwear, clothing, fashion, merch, visor, apparel
- Family: baseball, baseball-bat
- Component name: BaseballCapIcon
- Added: 2026-11-07
- Since: version 0.6.0
- npm: `import { BaseballCapIcon } from '@gentleface/react';` (@gentleface/react 0.6.0)
- Changed: 2026-11-09 (20 px drawn, 24 px drawn)

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

The SVG of every style: https://gentleface.com/icons/baseball-cap.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="M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z"/></svg>
```

### React

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

export function BaseballCapIcon(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="M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "baseball-cap" (line-round), MIT. https://gentleface.com/icons/baseball-cap -->
<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="M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "baseball-cap" (line-round), MIT. https://gentleface.com/icons/baseball-cap -->
<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="M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "baseball-cap" (line-round), MIT. https://gentleface.com/icons/baseball-cap. Takes the text color. */
.icon-baseball-cap {
  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='M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z'/%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='M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z'/%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='M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct BaseballCapIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 6.144, y: 4.856))
        p.addCurve(to: CGPoint(x: 6, y: 4.5), control1: CGPoint(x: 6.048, y: 4.759), control2: CGPoint(x: 6, y: 4.641))
        p.addCurve(to: CGPoint(x: 6.144, y: 4.144), control1: CGPoint(x: 6, y: 4.359), control2: CGPoint(x: 6.048, y: 4.241))
        p.addCurve(to: CGPoint(x: 6.5, y: 4), control1: CGPoint(x: 6.241, y: 4.048), control2: CGPoint(x: 6.359, y: 4))
        p.addLine(to: CGPoint(x: 7.5, y: 4))
        p.addCurve(to: CGPoint(x: 7.856, y: 4.144), control1: CGPoint(x: 7.641, y: 4), control2: CGPoint(x: 7.759, y: 4.048))
        p.addCurve(to: CGPoint(x: 8, y: 4.5), control1: CGPoint(x: 7.952, y: 4.241), control2: CGPoint(x: 8, y: 4.359))
        p.addCurve(to: CGPoint(x: 7.856, y: 4.856), control1: CGPoint(x: 8, y: 4.641), control2: CGPoint(x: 7.952, y: 4.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 5), control1: CGPoint(x: 7.759, y: 4.952), control2: CGPoint(x: 7.641, y: 5))
        p.addLine(to: CGPoint(x: 7, y: 5))
        p.addCurve(to: CGPoint(x: 8.849, y: 5.439), control1: CGPoint(x: 7.712, y: 5), control2: CGPoint(x: 8.328, y: 5.146))
        p.addCurve(to: CGPoint(x: 10.123, y: 6.755), control1: CGPoint(x: 9.369, y: 5.731), control2: CGPoint(x: 9.794, y: 6.17))
        p.addCurve(to: CGPoint(x: 10.797, y: 8.788), control1: CGPoint(x: 10.429, y: 7.298), control2: CGPoint(x: 10.653, y: 7.975))
        p.addCurve(to: CGPoint(x: 10.995, y: 11.011), control1: CGPoint(x: 10.911, y: 9.43), control2: CGPoint(x: 10.977, y: 10.171))
        p.addCurve(to: CGPoint(x: 13.269, y: 11.482), control1: CGPoint(x: 11.909, y: 11.051), control2: CGPoint(x: 12.667, y: 11.209))
        p.addCurve(to: CGPoint(x: 14.974, y: 13.342), control1: CGPoint(x: 14.122, y: 11.87), control2: CGPoint(x: 14.69, y: 12.49))
        p.addCurve(to: CGPoint(x: 14.947, y: 13.724), control1: CGPoint(x: 15.018, y: 13.473), control2: CGPoint(x: 15.009, y: 13.6))
        p.addCurve(to: CGPoint(x: 14.658, y: 13.974), control1: CGPoint(x: 14.885, y: 13.847), control2: CGPoint(x: 14.789, y: 13.931))
        p.addCurve(to: CGPoint(x: 14.276, y: 13.947), control1: CGPoint(x: 14.527, y: 14.018), control2: CGPoint(x: 14.4, y: 14.009))
        p.addCurve(to: CGPoint(x: 12.556, y: 13.295), control1: CGPoint(x: 13.739, y: 13.679), control2: CGPoint(x: 13.166, y: 13.461))
        p.addCurve(to: CGPoint(x: 10.5, y: 13), control1: CGPoint(x: 11.835, y: 13.098), control2: CGPoint(x: 11.15, y: 13))
        p.addLine(to: CGPoint(x: 2, y: 13))
        p.addCurve(to: CGPoint(x: 1.293, y: 12.707), control1: CGPoint(x: 1.724, y: 13), control2: CGPoint(x: 1.488, y: 12.902))
        p.addCurve(to: CGPoint(x: 1, y: 12), control1: CGPoint(x: 1.098, y: 12.512), control2: CGPoint(x: 1, y: 12.276))
        p.addLine(to: CGPoint(x: 1, y: 11.5))
        p.addCurve(to: CGPoint(x: 1.393, y: 8.928), control1: CGPoint(x: 1, y: 10.571), control2: CGPoint(x: 1.131, y: 9.714))
        p.addCurve(to: CGPoint(x: 2.563, y: 6.857), control1: CGPoint(x: 1.659, y: 8.129), control2: CGPoint(x: 2.049, y: 7.439))
        p.addCurve(to: CGPoint(x: 4.468, y: 5.485), control1: CGPoint(x: 3.091, y: 6.258), control2: CGPoint(x: 3.726, y: 5.801))
        p.addCurve(to: CGPoint(x: 7, y: 5), control1: CGPoint(x: 5.229, y: 5.162), control2: CGPoint(x: 6.073, y: 5))
        p.addLine(to: CGPoint(x: 6.5, y: 5))
        p.addCurve(to: CGPoint(x: 6.144, y: 4.856), control1: CGPoint(x: 6.359, y: 5), control2: CGPoint(x: 6.241, y: 4.952))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10.5, y: 12))
        p.addCurve(to: CGPoint(x: 10.144, y: 11.856), control1: CGPoint(x: 10.359, y: 12), control2: CGPoint(x: 10.241, y: 11.952))
        p.addCurve(to: CGPoint(x: 10, y: 11.5), control1: CGPoint(x: 10.048, y: 11.759), control2: CGPoint(x: 10, y: 11.641))
        p.addCurve(to: CGPoint(x: 9.252, y: 7.245), control1: CGPoint(x: 10, y: 9.55), control2: CGPoint(x: 9.751, y: 8.132))
        p.addCurve(to: CGPoint(x: 8.357, y: 6.311), control1: CGPoint(x: 9.015, y: 6.824), control2: CGPoint(x: 8.717, y: 6.513))
        p.addCurve(to: CGPoint(x: 8.011, y: 6.156), control1: CGPoint(x: 8.249, y: 6.25), control2: CGPoint(x: 8.134, y: 6.199))
        p.addCurve(to: CGPoint(x: 8.758, y: 8.232), control1: CGPoint(x: 8.358, y: 6.8), control2: CGPoint(x: 8.607, y: 7.492))
        p.addCurve(to: CGPoint(x: 8.957, y: 9.811), control1: CGPoint(x: 8.854, y: 8.7), control2: CGPoint(x: 8.92, y: 9.227))
        p.addCurve(to: CGPoint(x: 8.999, y: 11.461), control1: CGPoint(x: 8.983, y: 10.234), control2: CGPoint(x: 8.997, y: 10.784))
        p.addCurve(to: CGPoint(x: 8.856, y: 11.818), control1: CGPoint(x: 9, y: 11.602), control2: CGPoint(x: 8.952, y: 11.721))
        p.addCurve(to: CGPoint(x: 8.501, y: 11.963), control1: CGPoint(x: 8.76, y: 11.914), control2: CGPoint(x: 8.642, y: 11.963))
        p.addCurve(to: CGPoint(x: 8.145, y: 11.82), control1: CGPoint(x: 8.36, y: 11.964), control2: CGPoint(x: 8.241, y: 11.916))
        p.addCurve(to: CGPoint(x: 7.999, y: 11.465), control1: CGPoint(x: 8.048, y: 11.724), control2: CGPoint(x: 8, y: 11.606))
        p.addCurve(to: CGPoint(x: 7.959, y: 9.872), control1: CGPoint(x: 7.997, y: 10.807), control2: CGPoint(x: 7.984, y: 10.277))
        p.addCurve(to: CGPoint(x: 7.779, y: 8.432), control1: CGPoint(x: 7.925, y: 9.335), control2: CGPoint(x: 7.865, y: 8.855))
        p.addCurve(to: CGPoint(x: 6.748, y: 6.005), control1: CGPoint(x: 7.597, y: 7.544), control2: CGPoint(x: 7.253, y: 6.735))
        p.addCurve(to: CGPoint(x: 4.86, y: 6.405), control1: CGPoint(x: 6.056, y: 6.031), control2: CGPoint(x: 5.427, y: 6.164))
        p.addCurve(to: CGPoint(x: 3.312, y: 7.518), control1: CGPoint(x: 4.256, y: 6.662), control2: CGPoint(x: 3.741, y: 7.033))
        p.addCurve(to: CGPoint(x: 2.342, y: 9.244), control1: CGPoint(x: 2.889, y: 7.999), control2: CGPoint(x: 2.565, y: 8.574))
        p.addCurve(to: CGPoint(x: 2, y: 11.5), control1: CGPoint(x: 2.114, y: 9.927), control2: CGPoint(x: 2, y: 10.679))
        p.addLine(to: CGPoint(x: 2, y: 12))
        p.addLine(to: CGPoint(x: 10.5, y: 12))
        p.closeSubpath()
        p.move(to: CGPoint(x: 10.5, y: 12))
        p.addCurve(to: CGPoint(x: 12.394, y: 12.224), control1: CGPoint(x: 11.108, y: 12), control2: CGPoint(x: 11.74, y: 12.075))
        p.addCurve(to: CGPoint(x: 10.5, y: 12), control1: CGPoint(x: 11.882, y: 12.075), control2: CGPoint(x: 11.25, y: 12))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "baseball-cap" (line-round), MIT. https://gentleface.com/icons/baseball-cap
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 BaseballCapIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "baseball-cap", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_baseball_cap.xml · Gentleface "baseball-cap" (line-round), MIT. https://gentleface.com/icons/baseball-cap -->
<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="M6.144 4.856C6.048 4.759 6 4.641 6 4.5C6 4.359 6.048 4.241 6.144 4.144C6.241 4.048 6.359 4 6.5 4L7.5 4C7.641 4 7.759 4.048 7.856 4.144C7.952 4.241 8 4.359 8 4.5C8 4.641 7.952 4.759 7.856 4.856C7.759 4.952 7.641 5 7.5 5L7 5C7.712 5 8.328 5.146 8.849 5.439C9.369 5.731 9.794 6.17 10.123 6.755C10.429 7.298 10.653 7.975 10.797 8.788C10.911 9.43 10.977 10.171 10.995 11.011C11.909 11.051 12.667 11.209 13.269 11.482C14.122 11.87 14.69 12.49 14.974 13.342C15.018 13.473 15.009 13.6 14.947 13.724C14.885 13.847 14.789 13.931 14.658 13.974C14.527 14.018 14.4 14.009 14.276 13.947C13.739 13.679 13.166 13.461 12.556 13.295C11.835 13.098 11.15 13 10.5 13L2 13C1.724 13 1.488 12.902 1.293 12.707C1.098 12.512 1 12.276 1 12L1 11.5C1 10.571 1.131 9.714 1.393 8.928C1.659 8.129 2.049 7.439 2.563 6.857C3.091 6.258 3.726 5.801 4.468 5.485C5.229 5.162 6.073 5 7 5L6.5 5C6.359 5 6.241 4.952 6.144 4.856ZM10.5 12C10.359 12 10.241 11.952 10.144 11.856C10.048 11.759 10 11.641 10 11.5C10 9.55 9.751 8.132 9.252 7.245C9.015 6.824 8.717 6.513 8.357 6.311C8.249 6.25 8.134 6.199 8.011 6.156C8.358 6.8 8.607 7.492 8.758 8.232C8.854 8.7 8.92 9.227 8.957 9.811C8.983 10.234 8.997 10.784 8.999 11.461C9 11.602 8.952 11.721 8.856 11.818C8.76 11.914 8.642 11.963 8.501 11.963C8.36 11.964 8.241 11.916 8.145 11.82C8.048 11.724 8 11.606 7.999 11.465C7.997 10.807 7.984 10.277 7.959 9.872C7.925 9.335 7.865 8.855 7.779 8.432C7.597 7.544 7.253 6.735 6.748 6.005C6.056 6.031 5.427 6.164 4.86 6.405C4.256 6.662 3.741 7.033 3.312 7.518C2.889 7.999 2.565 8.574 2.342 9.244C2.114 9.927 2 10.679 2 11.5L2 12L10.5 12ZM10.5 12C11.108 12 11.74 12.075 12.394 12.224C11.882 12.075 11.25 12 10.5 12Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(6.144, 4.856)
      ..cubicTo(6.048, 4.759, 6, 4.641, 6, 4.5)
      ..cubicTo(6, 4.359, 6.048, 4.241, 6.144, 4.144)
      ..cubicTo(6.241, 4.048, 6.359, 4, 6.5, 4)
      ..lineTo(7.5, 4)
      ..cubicTo(7.641, 4, 7.759, 4.048, 7.856, 4.144)
      ..cubicTo(7.952, 4.241, 8, 4.359, 8, 4.5)
      ..cubicTo(8, 4.641, 7.952, 4.759, 7.856, 4.856)
      ..cubicTo(7.759, 4.952, 7.641, 5, 7.5, 5)
      ..lineTo(7, 5)
      ..cubicTo(7.712, 5, 8.328, 5.146, 8.849, 5.439)
      ..cubicTo(9.369, 5.731, 9.794, 6.17, 10.123, 6.755)
      ..cubicTo(10.429, 7.298, 10.653, 7.975, 10.797, 8.788)
      ..cubicTo(10.911, 9.43, 10.977, 10.171, 10.995, 11.011)
      ..cubicTo(11.909, 11.051, 12.667, 11.209, 13.269, 11.482)
      ..cubicTo(14.122, 11.87, 14.69, 12.49, 14.974, 13.342)
      ..cubicTo(15.018, 13.473, 15.009, 13.6, 14.947, 13.724)
      ..cubicTo(14.885, 13.847, 14.789, 13.931, 14.658, 13.974)
      ..cubicTo(14.527, 14.018, 14.4, 14.009, 14.276, 13.947)
      ..cubicTo(13.739, 13.679, 13.166, 13.461, 12.556, 13.295)
      ..cubicTo(11.835, 13.098, 11.15, 13, 10.5, 13)
      ..lineTo(2, 13)
      ..cubicTo(1.724, 13, 1.488, 12.902, 1.293, 12.707)
      ..cubicTo(1.098, 12.512, 1, 12.276, 1, 12)
      ..lineTo(1, 11.5)
      ..cubicTo(1, 10.571, 1.131, 9.714, 1.393, 8.928)
      ..cubicTo(1.659, 8.129, 2.049, 7.439, 2.563, 6.857)
      ..cubicTo(3.091, 6.258, 3.726, 5.801, 4.468, 5.485)
      ..cubicTo(5.229, 5.162, 6.073, 5, 7, 5)
      ..lineTo(6.5, 5)
      ..cubicTo(6.359, 5, 6.241, 4.952, 6.144, 4.856)
      ..close()
      ..moveTo(10.5, 12)
      ..cubicTo(10.359, 12, 10.241, 11.952, 10.144, 11.856)
      ..cubicTo(10.048, 11.759, 10, 11.641, 10, 11.5)
      ..cubicTo(10, 9.55, 9.751, 8.132, 9.252, 7.245)
      ..cubicTo(9.015, 6.824, 8.717, 6.513, 8.357, 6.311)
      ..cubicTo(8.249, 6.25, 8.134, 6.199, 8.011, 6.156)
      ..cubicTo(8.358, 6.8, 8.607, 7.492, 8.758, 8.232)
      ..cubicTo(8.854, 8.7, 8.92, 9.227, 8.957, 9.811)
      ..cubicTo(8.983, 10.234, 8.997, 10.784, 8.999, 11.461)
      ..cubicTo(9, 11.602, 8.952, 11.721, 8.856, 11.818)
      ..cubicTo(8.76, 11.914, 8.642, 11.963, 8.501, 11.963)
      ..cubicTo(8.36, 11.964, 8.241, 11.916, 8.145, 11.82)
      ..cubicTo(8.048, 11.724, 8, 11.606, 7.999, 11.465)
      ..cubicTo(7.997, 10.807, 7.984, 10.277, 7.959, 9.872)
      ..cubicTo(7.925, 9.335, 7.865, 8.855, 7.779, 8.432)
      ..cubicTo(7.597, 7.544, 7.253, 6.735, 6.748, 6.005)
      ..cubicTo(6.056, 6.031, 5.427, 6.164, 4.86, 6.405)
      ..cubicTo(4.256, 6.662, 3.741, 7.033, 3.312, 7.518)
      ..cubicTo(2.889, 7.999, 2.565, 8.574, 2.342, 9.244)
      ..cubicTo(2.114, 9.927, 2, 10.679, 2, 11.5)
      ..lineTo(2, 12)
      ..lineTo(10.5, 12)
      ..close()
      ..moveTo(10.5, 12)
      ..cubicTo(11.108, 12, 11.74, 12.075, 12.394, 12.224)
      ..cubicTo(11.882, 12.075, 11.25, 12, 10.5, 12)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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