Auto Fit Height icon

Used to scale content to fit. Similar to Arrow Fit. Contains directional variants. The Auto Fit Height icon is part of Microsoft's Fluent UI System Icons, available here in regular and filled styles in 4 sizes from 20 to 32 px. 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

Every size and style

Microsoft draws each size separately so icons stay crisp, rather than scaling one drawing. Pick a style and size to preview it, download it, or copy the code for your platform.

Regular, 24 px

ic_fluent_auto_fit_height_24_regular.svg

Auto Fit Height icon in React

npm install @fluentui/react-icons

import { AutoFitHeight24Regular } from "@fluentui/react-icons";

export function Example() {
  return <AutoFitHeight24Regular aria-label="Auto Fit Height" />;
}

Auto Fit Height icon in SVG

npm install @fluentui/svg-icons

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

<!-- or load it from a CDN -->
<img src="https://cdn.jsdelivr.net/npm/@fluentui/svg-icons@1.1.341/icons/auto_fit_height_24_regular.svg" width="24" height="24" alt="Auto Fit Height">

Auto Fit Height icon in Blazor

Microsoft's Fluent UI Blazor icons package:

dotnet add package Microsoft.FluentUI.AspNetCore.Components.Icons

<FluentIcon Value="@(new Icons.Regular.Size24.AutoFitHeight())" />

Auto Fit Height icon in Flutter

flutter pub add fluentui_system_icons

import 'package:fluentui_system_icons/fluentui_system_icons.dart';

Icon(FluentIcons.auto_fit_height_24_regular)

Auto Fit Height icon in WinUI / WPF

Add FluentSystemIcons-Regular.ttf from Microsoft's repository to your app, then use the glyph:

<!-- WinUI 3 (font in Assets/Fonts) -->
<FontIcon FontFamily="ms-appx:///Assets/Fonts/FluentSystemIcons-Regular.ttf#FluentSystemIcons-Regular" Glyph="&#xE138;" FontSize="24" />

<!-- WPF (font in Fonts/, Build Action: Resource) -->
<TextBlock FontFamily="pack://application:,,,/Fonts/#FluentSystemIcons-Regular" Text="&#xE138;" FontSize="24" />

Auto Fit Height icon in Icon font

<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/microsoft/fluentui-system-icons@9cf8af0f95a555918a60b8147a2f33a6a1248442/fonts/FluentSystemIcons-Regular.css">

<i class="icon-ic_fluent_auto_fit_height_24_regular"></i>

/* or use the code point in your own CSS */
.icon::before {
  font-family: "FluentSystemIcons-Regular";
  content: "\e138";
  font-size: 24px;
}

Auto Fit Height icon in Android

// build.gradle
implementation("com.microsoft.design:fluent-system-icons:1.1.341@aar")

<!-- layout XML -->
<ImageView android:src="@drawable/ic_fluent_auto_fit_height_24_regular" />

// Kotlin
R.drawable.ic_fluent_auto_fit_height_24_regular

Auto Fit Height icon in iOS

# Podfile
pod "FluentIcons", "1.1.341"

import FluentIcons

UIImage(fluent: .autoFitHeight24Regular)

Auto Fit Height icon in Power Apps

Paste into an Image control's Image property. The Copy button copies the full formula with this icon's SVG.

"data:image/svg+xml;utf8, " & EncodeUrl("<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'>…</svg>")

Use the Auto Fit Height 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 { AutoFitHeight24Regular, AutoFitHeight24Filled } from "@fluentui/react-icons";

export function Example() {
  return <AutoFitHeight24Regular aria-label="Auto Fit Height" />;
}

Coding agents can look up this component through the Fluent Icons MCP server.

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_auto_fit_height_24_regular.svg" width="24" height="24" alt="Auto Fit Height">

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="M5.75 3C5.33579 3 5 3.33579 5 3.75C5 4.16421 5.33579 4.5 5.75 4.5H18.25C18.6642 4.5 19 4.16421 19 3.75C19 3.33579 18.6642 3 18.25 3H5.75ZM9.22162 14.2188C9.48789 13.9526 9.90455 13.9284 10.1982 14.1462L10.2823 14.2188L11.502 15.44V12.3691L11.5 12.3437V8.56L10.2803 9.78115L10.1962 9.85377C9.9026 10.0716 9.48594 10.0474 9.21967 9.78115C8.9534 9.51488 8.9292 9.09822 9.14705 8.80461L9.21967 8.72049L11.5871 6.35039C11.7128 6.14201 11.9629 6 12.2509 6C12.503 6 12.726 6.10886 12.862 6.27578L12.9148 6.35073L15.282 8.72049L15.3546 8.80461C15.5482 9.0656 15.5506 9.42381 15.3618 9.6872L15.282 9.78115L15.1979 9.85377C14.9369 10.0474 14.5787 10.0498 14.3153 9.86094L14.2213 9.78115L13 8.56V11.6308L13.002 11.6562V15.44L14.2233 14.2188C14.4895 13.9526 14.9062 13.9284 15.1998 14.1462L15.2839 14.2188C15.5502 14.4851 15.5744 14.9018 15.3565 15.1954L15.2839 15.2795L12.9167 17.6493C12.7911 17.8578 12.541 18 12.2529 18C11.9649 18 11.7147 17.858 11.589 17.6496L9.22162 15.2795C8.92873 14.9866 8.92873 14.5117 9.22162 14.2188ZM5 20.25C5 19.8358 5.33579 19.5 5.75 19.5H18.25C18.6642 19.5 19 19.8358 19 20.25C19 20.6642 18.6642 21 18.25 21H5.75C5.33579 21 5 20.6642 5 20.25Z" fill="currentColor"/></svg>

Details

NameAuto Fit Height
StylesRegular (outlined), Filled
Sizes20 px, 24 px, 28 px, 32 px
Regular (outlined) fileic_fluent_auto_fit_height_24_regular.svg
Filled fileic_fluent_auto_fit_height_24_filled.svg
React (Regular)AutoFitHeight20Regular, AutoFitHeight24Regular, AutoFitHeight28Regular, AutoFitHeight32Regular
React (Filled)AutoFitHeight20Filled, AutoFitHeight24Filled, AutoFitHeight28Filled, AutoFitHeight32Filled
LicenseMIT (© Microsoft Corporation)

Keywords

pointdirectionhorizontalverticalscalefit

Related icons