Page 1 of 1

Underline in a Text+ node?

PostPosted: Fri Apr 09, 2021 7:48 pm
by bellerandre
Any way to underline text in a Text+ node in Fusion?

NOT with the "Emphasis" option - this leaves tiny gaps between characters.

Re: Underline in a Text+ node?

PostPosted: Fri Apr 09, 2021 8:51 pm
by Sander de Regt
Yes, you can do this, but it does take a little bit of effort.
You have to activate another 'shading element' (it's in the shading tab) and make a colored 'block' and set it to line and then adjust the size and position in the respective sections.
Just copy/paste the following in your comp area (where the nodes are) and you'll see an example.
It's not as intuitive as it could be, but once you know how, it's pretty quick.

Code: Select all
{
   Tools = ordered() {
      Text1 = TextPlus {
         CtrlWZoom = false,
         Inputs = {
            Width = Input { Value = 1920, },
            Height = Input { Value = 1080, },
            ["Gamut.SLogVersion"] = Input { Value = FuID { "SLog2" }, },
            SelectElement = Input { Value = 1, },
            Select = Input { Value = 1, },
            Enabled2 = Input { Value = 1, },
            Level1 = Input { Value = 0, },
            StyledText = Input { Value = "This line is underlined", },
            Font = Input { Value = "Open Sans", },
            Style = Input { Value = "Bold", },
            VerticalJustificationNew = Input { Value = 3, },
            HorizontalJustificationNew = Input { Value = 3, },
            AdvancedFontControls = Input { Value = 1, },
            ManualFontKerningPlacement = Input {
               Value = StyledText {
                  Array = {
                  },
                  Value = ""
               },
            },
            TabSpacing = Input { Value = 1, },
            ElementShape2 = Input { Value = 2, },
            Level2 = Input { Value = 1, },
            ExtendHorizontal2 = Input { Value = -0.173, },
            Position2 = Input { Value = 1, },
            Offset2 = Input { Value = { 0, -0.013 }, },
            Size2 = Input { Value = 1, },
            SizeY2 = Input { Value = 0.047, },
         },
         ViewInfo = OperatorInfo { Pos = { 55, 16.5 } },
      }
   }
}

Re: Underline in a Text+ node?

PostPosted: Sat Apr 10, 2021 12:22 am
by xunile
That is a great tip.

Re: Underline in a Text+ node?

PostPosted: Sat Apr 10, 2021 12:58 am
by bellerandre
Thanks! Simon Stansfield suggested the same method...must be the standard workaround.

Maybe I'll make a feature request.

Re: Underline in a Text+ node?

PostPosted: Sat Apr 10, 2021 1:53 pm
by Jim Simon
I would love to see all the Font Style options of Text working identically in Text+. This kind of thing has to be made simpler.

Re: Underline in a Text+ node?

PostPosted: Sat Apr 10, 2021 3:41 pm
by Vit Reiter
Jim Simon wrote:I would love to see all the Font Style options of Text working identically in Text+. This kind of thing has to be made simpler.
+1