Text Density icon

Used to select text density in UI scenarios. The Text Density icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.

Regular (outlined)

SVG

Filled

SVG

Use the Text Density icon in React

Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.

npm install @fluentui/react-icons

import { TextDensity24Regular, TextDensity24Filled } from "@fluentui/react-icons";

export function Example() {
  return <TextDensity24Regular aria-label="Text Density" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_text_density_24_regular.svg" width="24" height="24" alt="Text Density">

Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.25 2C12.6642 2 13 2.33579 13 2.75V21.25C13 21.6642 12.6642 22 12.25 22C11.8358 22 11.5 21.6642 11.5 21.25V2.75C11.5 2.33579 11.8358 2 12.25 2ZM10 5H2.75C2.33579 5 2 5.33579 2 5.75C2 6.16421 2.33579 6.5 2.75 6.5H10V5ZM10 9H2.75C2.33579 9 2 9.33579 2 9.75C2 10.1642 2.33579 10.5 2.75 10.5H10V9ZM10 13H2.75C2.33579 13 2 13.3358 2 13.75C2 14.1642 2.33579 14.5 2.75 14.5H10V13ZM10 17H2.75C2.33579 17 2 17.3358 2 17.75C2 18.1642 2.33579 18.5 2.75 18.5H10V17ZM19.75 18H14.5V16.5H19.75C20.1642 16.5 20.5 16.1642 20.5 15.75C20.5 15.3358 20.1642 15 19.75 15H14.5V13.5H19.75C20.9926 13.5 22 14.5074 22 15.75C22 16.9926 20.9926 18 19.75 18ZM19.75 10.5H14.5V9H19.75C20.1642 9 20.5 8.66421 20.5 8.25C20.5 7.83579 20.1642 7.5 19.75 7.5H14.5V6H19.75C20.9926 6 22 7.00736 22 8.25C22 9.49264 20.9926 10.5 19.75 10.5Z" fill="currentColor"/></svg>

Use it from the SVG package

Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:

npm install @fluentui/svg-icons

import icon from "@fluentui/svg-icons/icons/text_density_24_regular.svg";

Details

NameText Density
StylesRegular (outlined), Filled
Size24 × 24 px (scalable SVG)
Regular (outlined) fileic_fluent_text_density_24_regular.svg
Filled fileic_fluent_text_density_24_filled.svg
React componentsTextDensity24Regular, TextDensity24Filled
LicenseMIT (© Microsoft Corporation)

Keywords

typetexttypographyeditcreatecomfycozy

Related icons