Text orientation

Product: PowerShell Universal
Version: 2.8.3

Is there a way to rotate text orientation in a New-UDTypography? I would like the text to be retated 270 degrees as showing in image below:


Applying a style works for me, like so:

New-UDDashboard -Title 'PowerShell Universal' -Content {      
    New-UDTypography -Id "Text1" -Text "This is an example" -Style @{
        "writing-mode" = "vertical-rl"
        "text-orientation" = "sideways"
    }
}

Awesome @JLogan3o13. Iā€™m still working on rotating it so that it is reading as shown in the image, but this certainly gives me an excellent start and helps me to start messing with the style a bit. Thanks!

I would check here if you would like to view other style possibilities:

CSS text-orientation Property (w3docs.com)

I use these docs whenever I have to do something with styles.

1 Like

Perfect, thanks! I finally came across the style properties that allows you to rotate the text:

"transform" = "rotate(180deg)"

Final code:

New-UDTypography -Text "Sessions" -Variant h4 -Style @{
   "writing-mode" = "vertical-rl"
   "text-orientation" = "sideways"
   "transform" = "rotate(180deg)"
}
2 Likes