UDTypography and italics

avatar
Product: PowerShell Universal
Version: 4.0.2


Is it possible to get UDTypography to be italics? I have tried

-Style @{ fontstyle = ‘italic’ }

but that hasn’t worked for me.

avatar

Recommended Answer

It looks like the style props are case sensitive. Try this.

    New-UDTypography -Text 'Test' -Style @{
        fontStyle = 'italic'
    } 


Adam Driscoll
PowerShell Expert and Developer at Devolutions

All Comments (2)

avatar

It looks like the style props are case sensitive. Try this.

    New-UDTypography -Text 'Test' -Style @{
        fontStyle = 'italic'
    } 


Adam Driscoll
PowerShell Expert and Developer at Devolutions

avatar

Thanks, that did it.