fontAntialias(FontAntialias::SUBPIXEL) ->letterSpacing(17) ->textDecoration(TextDecoration::STRIKETHROUGH) ->fontWeight(FontWeight::ULTRABOLD) ->textAlignment(TextAlignment::JUSTIFY) ->stroke() ); } public function testTextLayerStyleIdentifierVariables() { $t = (new Transformation()) ->addVariable('$style', '!Arial_12!') ->overlay(ImageSource::text('hello-world')->textStyle('$style')); self::assertStrEquals( '$style_!Arial_12!/l_text:$style:hello-world/fl_layer_apply', $t->toUrl() ); $t = (new Transformation()) ->addVariable('$style', '!Arial_12!') ->overlay(ImageSource::text('hello-world')->textStyle(new Expression('$style'))); self::assertStrEquals( '$style_!Arial_12!/l_text:$style:hello-world/fl_layer_apply', $t->toUrl() ); } }