# New-HTMLFontIcon

Creates an HTML font icon with specified parameters. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

Creates an HTML font icon with specified parameters.

## Syntax

```
New-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconColor <String>]
[-IconSize <Int32>]
[-IconSolid <String>]
[-Name <String>]
[<CommonParameters>]
```

[#](#method-new-htmlfonticon-switchparameter-switchparameter-switchparameter-string-int32-string-string)

Parameter set: `FontAwesomeSolid`

```
New-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-Bordered]
[-BorderedCircle]
[-FixedWidth]
[-FlipHorizontal]
[-FlipVertical]
[-IconColor <String>]
[-IconMaterial <String>]
[-IconSize <Int32>]
[-ListIcons]
[-Name <String>]
[-PullLeft]
[-PullRight]
[-Rotate <90|180|270>]
[-Spinning]
[-SpinningReverse]
[<CommonParameters>]
```

[#](#member-377d221a16536f03442b0653)

Parameter set: `FontMaterial`

```
New-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconColor <String>]
[-IconRegular <String>]
[-IconSize <Int32>]
[-Name <String>]
[<CommonParameters>]
```

[#](#method-new-htmlfonticon-switchparameter-switchparameter-switchparameter-string-string-int32-string)

Parameter set: `FontAwesomeRegular`

```
New-HTMLFontIcon
[-AsCSS]
[-AsHashTable]
[-FixedWidth]
[-IconBrands <String>]
[-IconColor <String>]
[-IconSize <Int32>]
[-Name <String>]
[<CommonParameters>]
```

[#](#method-new-htmlfonticon-switchparameter-switchparameter-switchparameter-string-string-int32-string-2)

Parameter set: `FontAwesomeBrands`

## Description

This function generates an HTML font icon based on the provided parameters such as icon size, color, and specific icon set (e.g., FontAwesomeBrands, FontAwesomeRegular, FontAwesomeSolid, FontMaterial).

## Examples

### Example 1

```powershell
New-HTMLFontIcon -IconSize 24 -IconColor "red" -IconBrands "fa-github"
Generates an HTML font icon with a size of 24, red color, and the GitHub icon from the FontAwesomeBrands set.
```

### Example 2

```powershell
New-HTMLFontIcon -IconSize 32 -IconColor "blue" -IconRegular "fa-envelope"
Generates an HTML font icon with a size of 32, blue color, and the envelope icon from the FontAwesomeRegular set.
```

## Parameters

**-AsCSS SwitchParameter optional**

**-AsHashTable SwitchParameter optional**

**-FixedWidth SwitchParameter optional**

**-IconColor String optional**

Specifies the color of the icon.

**-IconSize Int32 optional**

Specifies the size of the icon.

**-IconSolid String optionalsets: FontAwesomeSolid**

Specifies the icon from the FontAwesomeSolid set.

**-Name String optional**

**-Bordered SwitchParameter optionalsets: FontMaterial**

**-BorderedCircle SwitchParameter optionalsets: FontMaterial**

**-FlipHorizontal SwitchParameter optionalsets: FontMaterial**

**-FlipVertical SwitchParameter optionalsets: FontMaterial**

**-IconMaterial String optionalsets: FontMaterial**

FontsMaterialIcon

**-ListIcons SwitchParameter optionalsets: FontMaterial**

for using within UL/LI http://zavoloklom.github.io/material-design-iconic-font/examples.html

**-PullLeft SwitchParameter optionalsets: FontMaterial**

**-PullRight SwitchParameter optionalsets: FontMaterial**

**-Rotate String optionalsets: FontMaterial**

[parameter(ParameterSetName = "FontMaterial")][switch] $Wobble, [parameter(ParameterSetName = "FontMaterial")][switch] $FadeInLeft, [parameter(ParameterSetName = "FontMaterial")][switch] $Pulse,

Possible values: `90`, `180`, `270`

**-Spinning SwitchParameter optionalsets: FontMaterial**

**-SpinningReverse SwitchParameter optionalsets: FontMaterial**

**-IconRegular String optionalsets: FontAwesomeRegular**

Specifies the icon from the FontAwesomeRegular set.

**-IconBrands String optionalsets: FontAwesomeBrands**

Specifies the icon from the FontAwesomeBrands set.

## Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see [about_CommonParameters](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:BAAE4ADA766645DF223640C4E62EBDEC7008D2D397BD800E05DB9F502A30FE57 -->
