Ruler icon

Used to represent measurements. The Ruler 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 Ruler 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 { Ruler24Regular, Ruler24Filled } from "@fluentui/react-icons";

export function Example() {
  return <Ruler24Regular aria-label="Ruler" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_ruler_24_regular.svg" width="24" height="24" alt="Ruler">

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="M9.25 2C8.00736 2 7 3.00736 7 4.25V19.75C7 20.9926 8.00736 22 9.25 22H14.75C15.9926 22 17 20.9926 17 19.75V4.25C17 3.00736 15.9926 2 14.75 2H9.25ZM8.5 19H10.25C10.6642 19 11 18.6642 11 18.25C11 17.8358 10.6642 17.5 10.25 17.5H8.5V16H12.25C12.6642 16 13 15.6642 13 15.25C13 14.8358 12.6642 14.5 12.25 14.5H8.5V12.75H10.25C10.6642 12.75 11 12.4142 11 12C11 11.5858 10.6642 11.25 10.25 11.25H8.5V9.5H12.25C12.6642 9.5 13 9.16421 13 8.75C13 8.33579 12.6642 8 12.25 8H8.5V6.5H10.25C10.6642 6.5 11 6.16421 11 5.75C11 5.33579 10.6642 5 10.25 5H8.5V4.25C8.5 3.83579 8.83579 3.5 9.25 3.5H14.75C15.1642 3.5 15.5 3.83579 15.5 4.25V19.75C15.5 20.1642 15.1642 20.5 14.75 20.5H9.25C8.83579 20.5 8.5 20.1642 8.5 19.75V19Z" 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/ruler_24_regular.svg";

Details

NameRuler
StylesRegular (outlined), Filled
Size24 × 24 px (scalable SVG)
Regular (outlined) fileic_fluent_ruler_24_regular.svg
Filled fileic_fluent_ruler_24_filled.svg
React componentsRuler24Regular, Ruler24Filled
LicenseMIT (© Microsoft Corporation)

Keywords

measuremeasurementlengthwidthsizescale

Related icons