# type-swap icon

Type swap. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/type-swap

- Category: Text & formatting
- Use it for: convert to text, handwriting to text
- Example: Convert handwriting or a shape to text
- Built from: type + swap
- Tags: text, type, font, typography, typeface, letter, t, swap
- Family: type, bold, case-lower, case-sensitive, case-sensitive-arrow-down, case-sensitive-off, case-sensitive-plus, case-sensitive-swap, case-title, case-upper, footnote, heading, heading-1, heading-2, heading-3, italic, letter-spacing, line-height, overline, pilcrow, spell-check, spell-check-alert, spell-check-gear, spell-check-plus, strikethrough, subscript, superscript, text-color, text-footnote, text-initial, text-rotate, text-size, text-size-decrease, text-size-increase, text-size-sparkle, type-plus, type-x, underline
- Component name: TypeSwapIcon
- Added: 2026-11-06
- Since: version 0.4.0
- npm: `import { TypeSwapIcon } 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/type-swap.svg · PNG https://gentleface.com/png/line-round/16/type-swap.png · https://gentleface.com/png/line-round/32/type-swap.png · https://gentleface.com/png/line-round/48/type-swap.png
- line-soft: https://gentleface.com/svg/line-soft/16/type-swap.svg · PNG https://gentleface.com/png/line-soft/16/type-swap.png · https://gentleface.com/png/line-soft/32/type-swap.png · https://gentleface.com/png/line-soft/48/type-swap.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/type-swap.svg · PNG https://gentleface.com/png/line-sharp/16/type-swap.png · https://gentleface.com/png/line-sharp/32/type-swap.png · https://gentleface.com/png/line-sharp/48/type-swap.png
- solid-round: https://gentleface.com/svg/solid-round/16/type-swap.svg · PNG https://gentleface.com/png/solid-round/16/type-swap.png · https://gentleface.com/png/solid-round/32/type-swap.png · https://gentleface.com/png/solid-round/48/type-swap.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/type-swap.svg · PNG https://gentleface.com/png/solid-soft/16/type-swap.png · https://gentleface.com/png/solid-soft/32/type-swap.png · https://gentleface.com/png/solid-soft/48/type-swap.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/type-swap.svg · PNG https://gentleface.com/png/solid-sharp/16/type-swap.png · https://gentleface.com/png/solid-sharp/32/type-swap.png · https://gentleface.com/png/solid-sharp/48/type-swap.png

The SVG of every style: https://gentleface.com/icons/type-swap.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="M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z"/></svg>
```

### React

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

export function TypeSwapIcon(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="M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "type-swap" (line-round), MIT. https://gentleface.com/icons/type-swap -->
<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="M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "type-swap" (line-round), MIT. https://gentleface.com/icons/type-swap -->
<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="M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "type-swap" (line-round), MIT. https://gentleface.com/icons/type-swap. Takes the text color. */
.icon-type-swap {
  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='M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z'/%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='M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z'/%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='M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct TypeSwapIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 2.144, y: 2.144))
        p.addCurve(to: CGPoint(x: 2.5, y: 2), control1: CGPoint(x: 2.241, y: 2.048), control2: CGPoint(x: 2.359, y: 2))
        p.addLine(to: CGPoint(x: 12.5, y: 2))
        p.addCurve(to: CGPoint(x: 12.856, y: 2.144), control1: CGPoint(x: 12.641, y: 2), control2: CGPoint(x: 12.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 13, y: 2.5), control1: CGPoint(x: 12.952, y: 2.241), control2: CGPoint(x: 13, y: 2.359))
        p.addLine(to: CGPoint(x: 13, y: 4.5))
        p.addCurve(to: CGPoint(x: 12.856, y: 4.856), control1: CGPoint(x: 13, y: 4.641), control2: CGPoint(x: 12.952, y: 4.759))
        p.addCurve(to: CGPoint(x: 12.5, y: 5), control1: CGPoint(x: 12.759, y: 4.952), control2: CGPoint(x: 12.641, y: 5))
        p.addCurve(to: CGPoint(x: 12.144, y: 4.856), control1: CGPoint(x: 12.359, y: 5), control2: CGPoint(x: 12.241, y: 4.952))
        p.addCurve(to: CGPoint(x: 12, y: 4.5), control1: CGPoint(x: 12.048, y: 4.759), control2: CGPoint(x: 12, y: 4.641))
        p.addLine(to: CGPoint(x: 12, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 6.5))
        p.addCurve(to: CGPoint(x: 7.856, y: 6.856), control1: CGPoint(x: 8, y: 6.641), control2: CGPoint(x: 7.952, y: 6.759))
        p.addCurve(to: CGPoint(x: 7.5, y: 7), control1: CGPoint(x: 7.759, y: 6.952), control2: CGPoint(x: 7.641, y: 7))
        p.addCurve(to: CGPoint(x: 7.144, y: 6.856), control1: CGPoint(x: 7.359, y: 7), control2: CGPoint(x: 7.241, y: 6.952))
        p.addCurve(to: CGPoint(x: 7, y: 6.5), control1: CGPoint(x: 7.048, y: 6.759), control2: CGPoint(x: 7, y: 6.641))
        p.addLine(to: CGPoint(x: 7, y: 3))
        p.addLine(to: CGPoint(x: 3, y: 3))
        p.addLine(to: CGPoint(x: 3, y: 4.5))
        p.addCurve(to: CGPoint(x: 2.856, y: 4.856), control1: CGPoint(x: 3, y: 4.641), control2: CGPoint(x: 2.952, y: 4.759))
        p.addCurve(to: CGPoint(x: 2.5, y: 5), control1: CGPoint(x: 2.759, y: 4.952), control2: CGPoint(x: 2.641, y: 5))
        p.addCurve(to: CGPoint(x: 2.144, y: 4.856), control1: CGPoint(x: 2.359, y: 5), control2: CGPoint(x: 2.241, y: 4.952))
        p.addCurve(to: CGPoint(x: 2, y: 4.5), control1: CGPoint(x: 2.048, y: 4.759), control2: CGPoint(x: 2, y: 4.641))
        p.addLine(to: CGPoint(x: 2, y: 2.5))
        p.addCurve(to: CGPoint(x: 2.144, y: 2.144), control1: CGPoint(x: 2, y: 2.359), control2: CGPoint(x: 2.048, y: 2.241))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.156, y: 7.316))
        p.addCurve(to: CGPoint(x: 14.682, y: 8.318), control1: CGPoint(x: 13.734, y: 7.545), control2: CGPoint(x: 14.243, y: 7.879))
        p.addCurve(to: CGPoint(x: 15.684, y: 9.844), control1: CGPoint(x: 15.121, y: 8.757), control2: CGPoint(x: 15.455, y: 9.266))
        p.addCurve(to: CGPoint(x: 16, y: 11.5), control1: CGPoint(x: 15.895, y: 10.376), control2: CGPoint(x: 16, y: 10.928))
        p.addCurve(to: CGPoint(x: 15.684, y: 13.156), control1: CGPoint(x: 16, y: 12.072), control2: CGPoint(x: 15.895, y: 12.624))
        p.addCurve(to: CGPoint(x: 14.682, y: 14.682), control1: CGPoint(x: 15.455, y: 13.734), control2: CGPoint(x: 15.121, y: 14.243))
        p.addCurve(to: CGPoint(x: 13.156, y: 15.684), control1: CGPoint(x: 14.243, y: 15.121), control2: CGPoint(x: 13.734, y: 15.455))
        p.addCurve(to: CGPoint(x: 11.5, y: 16), control1: CGPoint(x: 12.624, y: 15.895), control2: CGPoint(x: 12.072, y: 16))
        p.addCurve(to: CGPoint(x: 9.844, y: 15.684), control1: CGPoint(x: 10.928, y: 16), control2: CGPoint(x: 10.376, y: 15.895))
        p.addCurve(to: CGPoint(x: 8.318, y: 14.682), control1: CGPoint(x: 9.266, y: 15.455), control2: CGPoint(x: 8.757, y: 15.121))
        p.addCurve(to: CGPoint(x: 7.316, y: 13.156), control1: CGPoint(x: 7.879, y: 14.243), control2: CGPoint(x: 7.545, y: 13.734))
        p.addCurve(to: CGPoint(x: 7, y: 11.5), control1: CGPoint(x: 7.105, y: 12.624), control2: CGPoint(x: 7, y: 12.072))
        p.addCurve(to: CGPoint(x: 7.316, y: 9.844), control1: CGPoint(x: 7, y: 10.928), control2: CGPoint(x: 7.105, y: 10.376))
        p.addCurve(to: CGPoint(x: 8.318, y: 8.318), control1: CGPoint(x: 7.545, y: 9.266), control2: CGPoint(x: 7.879, y: 8.757))
        p.addCurve(to: CGPoint(x: 9.844, y: 7.316), control1: CGPoint(x: 8.757, y: 7.879), control2: CGPoint(x: 9.266, y: 7.545))
        p.addCurve(to: CGPoint(x: 11.5, y: 7), control1: CGPoint(x: 10.376, y: 7.105), control2: CGPoint(x: 10.928, y: 7))
        p.addCurve(to: CGPoint(x: 13.156, y: 7.316), control1: CGPoint(x: 12.072, y: 7), control2: CGPoint(x: 12.624, y: 7.105))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9, y: 10.5))
        p.addCurve(to: CGPoint(x: 9.5, y: 11), control1: CGPoint(x: 9, y: 10.776), control2: CGPoint(x: 9.224, y: 11))
        p.addLine(to: CGPoint(x: 13.5, y: 11))
        p.addCurve(to: CGPoint(x: 14, y: 10.5), control1: CGPoint(x: 13.776, y: 11), control2: CGPoint(x: 14, y: 10.776))
        p.addCurve(to: CGPoint(x: 13.854, y: 10.146), control1: CGPoint(x: 14, y: 10.367), control2: CGPoint(x: 13.947, y: 10.24))
        p.addLine(to: CGPoint(x: 11.854, y: 8.146))
        p.addCurve(to: CGPoint(x: 11.146, y: 8.146), control1: CGPoint(x: 11.658, y: 7.951), control2: CGPoint(x: 11.342, y: 7.951))
        p.addCurve(to: CGPoint(x: 11.146, y: 8.854), control1: CGPoint(x: 10.951, y: 8.342), control2: CGPoint(x: 10.951, y: 8.658))
        p.addLine(to: CGPoint(x: 12.293, y: 10))
        p.addLine(to: CGPoint(x: 9.5, y: 10))
        p.addCurve(to: CGPoint(x: 9, y: 10.5), control1: CGPoint(x: 9.224, y: 10), control2: CGPoint(x: 9, y: 10.224))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.5, y: 13))
        p.addCurve(to: CGPoint(x: 14, y: 12.5), control1: CGPoint(x: 13.776, y: 13), control2: CGPoint(x: 14, y: 12.776))
        p.addCurve(to: CGPoint(x: 13.5, y: 12), control1: CGPoint(x: 14, y: 12.224), control2: CGPoint(x: 13.776, y: 12))
        p.addLine(to: CGPoint(x: 9.5, y: 12))
        p.addCurve(to: CGPoint(x: 9, y: 12.5), control1: CGPoint(x: 9.224, y: 12), control2: CGPoint(x: 9, y: 12.224))
        p.addCurve(to: CGPoint(x: 9.146, y: 12.854), control1: CGPoint(x: 9, y: 12.633), control2: CGPoint(x: 9.053, y: 12.76))
        p.addLine(to: CGPoint(x: 11.146, y: 14.854))
        p.addCurve(to: CGPoint(x: 11.854, y: 14.854), control1: CGPoint(x: 11.342, y: 15.049), control2: CGPoint(x: 11.658, y: 15.049))
        p.addCurve(to: CGPoint(x: 11.854, y: 14.146), control1: CGPoint(x: 12.049, y: 14.658), control2: CGPoint(x: 12.049, y: 14.342))
        p.addLine(to: CGPoint(x: 10.707, y: 13))
        p.addLine(to: CGPoint(x: 13.5, y: 13))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "type-swap" (line-round), MIT. https://gentleface.com/icons/type-swap
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 TypeSwapIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "type-swap", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_type_swap.xml · Gentleface "type-swap" (line-round), MIT. https://gentleface.com/icons/type-swap -->
<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="M2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5L13 4.5C13 4.641 12.952 4.759 12.856 4.856C12.759 4.952 12.641 5 12.5 5C12.359 5 12.241 4.952 12.144 4.856C12.048 4.759 12 4.641 12 4.5L12 3L8 3L8 6.5C8 6.641 7.952 6.759 7.856 6.856C7.759 6.952 7.641 7 7.5 7C7.359 7 7.241 6.952 7.144 6.856C7.048 6.759 7 6.641 7 6.5L7 3L3 3L3 4.5C3 4.641 2.952 4.759 2.856 4.856C2.759 4.952 2.641 5 2.5 5C2.359 5 2.241 4.952 2.144 4.856C2.048 4.759 2 4.641 2 4.5L2 2.5C2 2.359 2.048 2.241 2.144 2.144ZM13.156 7.316C13.734 7.545 14.243 7.879 14.682 8.318C15.121 8.757 15.455 9.266 15.684 9.844C15.895 10.376 16 10.928 16 11.5C16 12.072 15.895 12.624 15.684 13.156C15.455 13.734 15.121 14.243 14.682 14.682C14.243 15.121 13.734 15.455 13.156 15.684C12.624 15.895 12.072 16 11.5 16C10.928 16 10.376 15.895 9.844 15.684C9.266 15.455 8.757 15.121 8.318 14.682C7.879 14.243 7.545 13.734 7.316 13.156C7.105 12.624 7 12.072 7 11.5C7 10.928 7.105 10.376 7.316 9.844C7.545 9.266 7.879 8.757 8.318 8.318C8.757 7.879 9.266 7.545 9.844 7.316C10.376 7.105 10.928 7 11.5 7C12.072 7 12.624 7.105 13.156 7.316ZM9 10.5C9 10.776 9.224 11 9.5 11L13.5 11C13.776 11 14 10.776 14 10.5C14 10.367 13.947 10.24 13.854 10.146L11.854 8.146C11.658 7.951 11.342 7.951 11.146 8.146C10.951 8.342 10.951 8.658 11.146 8.854L12.293 10L9.5 10C9.224 10 9 10.224 9 10.5ZM13.5 13C13.776 13 14 12.776 14 12.5C14 12.224 13.776 12 13.5 12L9.5 12C9.224 12 9 12.224 9 12.5C9 12.633 9.053 12.76 9.146 12.854L11.146 14.854C11.342 15.049 11.658 15.049 11.854 14.854C12.049 14.658 12.049 14.342 11.854 14.146L10.707 13L13.5 13Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(2.144, 2.144)
      ..cubicTo(2.241, 2.048, 2.359, 2, 2.5, 2)
      ..lineTo(12.5, 2)
      ..cubicTo(12.641, 2, 12.759, 2.048, 12.856, 2.144)
      ..cubicTo(12.952, 2.241, 13, 2.359, 13, 2.5)
      ..lineTo(13, 4.5)
      ..cubicTo(13, 4.641, 12.952, 4.759, 12.856, 4.856)
      ..cubicTo(12.759, 4.952, 12.641, 5, 12.5, 5)
      ..cubicTo(12.359, 5, 12.241, 4.952, 12.144, 4.856)
      ..cubicTo(12.048, 4.759, 12, 4.641, 12, 4.5)
      ..lineTo(12, 3)
      ..lineTo(8, 3)
      ..lineTo(8, 6.5)
      ..cubicTo(8, 6.641, 7.952, 6.759, 7.856, 6.856)
      ..cubicTo(7.759, 6.952, 7.641, 7, 7.5, 7)
      ..cubicTo(7.359, 7, 7.241, 6.952, 7.144, 6.856)
      ..cubicTo(7.048, 6.759, 7, 6.641, 7, 6.5)
      ..lineTo(7, 3)
      ..lineTo(3, 3)
      ..lineTo(3, 4.5)
      ..cubicTo(3, 4.641, 2.952, 4.759, 2.856, 4.856)
      ..cubicTo(2.759, 4.952, 2.641, 5, 2.5, 5)
      ..cubicTo(2.359, 5, 2.241, 4.952, 2.144, 4.856)
      ..cubicTo(2.048, 4.759, 2, 4.641, 2, 4.5)
      ..lineTo(2, 2.5)
      ..cubicTo(2, 2.359, 2.048, 2.241, 2.144, 2.144)
      ..close()
      ..moveTo(13.156, 7.316)
      ..cubicTo(13.734, 7.545, 14.243, 7.879, 14.682, 8.318)
      ..cubicTo(15.121, 8.757, 15.455, 9.266, 15.684, 9.844)
      ..cubicTo(15.895, 10.376, 16, 10.928, 16, 11.5)
      ..cubicTo(16, 12.072, 15.895, 12.624, 15.684, 13.156)
      ..cubicTo(15.455, 13.734, 15.121, 14.243, 14.682, 14.682)
      ..cubicTo(14.243, 15.121, 13.734, 15.455, 13.156, 15.684)
      ..cubicTo(12.624, 15.895, 12.072, 16, 11.5, 16)
      ..cubicTo(10.928, 16, 10.376, 15.895, 9.844, 15.684)
      ..cubicTo(9.266, 15.455, 8.757, 15.121, 8.318, 14.682)
      ..cubicTo(7.879, 14.243, 7.545, 13.734, 7.316, 13.156)
      ..cubicTo(7.105, 12.624, 7, 12.072, 7, 11.5)
      ..cubicTo(7, 10.928, 7.105, 10.376, 7.316, 9.844)
      ..cubicTo(7.545, 9.266, 7.879, 8.757, 8.318, 8.318)
      ..cubicTo(8.757, 7.879, 9.266, 7.545, 9.844, 7.316)
      ..cubicTo(10.376, 7.105, 10.928, 7, 11.5, 7)
      ..cubicTo(12.072, 7, 12.624, 7.105, 13.156, 7.316)
      ..close()
      ..moveTo(9, 10.5)
      ..cubicTo(9, 10.776, 9.224, 11, 9.5, 11)
      ..lineTo(13.5, 11)
      ..cubicTo(13.776, 11, 14, 10.776, 14, 10.5)
      ..cubicTo(14, 10.367, 13.947, 10.24, 13.854, 10.146)
      ..lineTo(11.854, 8.146)
      ..cubicTo(11.658, 7.951, 11.342, 7.951, 11.146, 8.146)
      ..cubicTo(10.951, 8.342, 10.951, 8.658, 11.146, 8.854)
      ..lineTo(12.293, 10)
      ..lineTo(9.5, 10)
      ..cubicTo(9.224, 10, 9, 10.224, 9, 10.5)
      ..close()
      ..moveTo(13.5, 13)
      ..cubicTo(13.776, 13, 14, 12.776, 14, 12.5)
      ..cubicTo(14, 12.224, 13.776, 12, 13.5, 12)
      ..lineTo(9.5, 12)
      ..cubicTo(9.224, 12, 9, 12.224, 9, 12.5)
      ..cubicTo(9, 12.633, 9.053, 12.76, 9.146, 12.854)
      ..lineTo(11.146, 14.854)
      ..cubicTo(11.342, 15.049, 11.658, 15.049, 11.854, 14.854)
      ..cubicTo(12.049, 14.658, 12.049, 14.342, 11.854, 14.146)
      ..lineTo(10.707, 13)
      ..lineTo(13.5, 13)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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