Question: Not able to login Ubuntu from GUI but console is fine. Then I tried

```
systemctl start lightdm

```

It shows

```
Unit lightdm.service not found.

```

After reinstalling lightdm, got same result: lightdm.service not found

Ubuntu I'm using should be the newest version which I downloaded yesterday.(Oct30/2018)

Not sure what's going wrong, any suggestions?

Answer: 
if i were you i would try to achieve the same effect with only css using rotation for the container, inverting the text rotation with the same amount, then using a pseudo element (:after) with absolute positioning to achieve the non rectangular shape effect.

run the snippet for an example that you can adjust to fit your needs.

```css
.container {
  transform:rotate(3deg);
  display:inline-block;
  position:relative;
  top:50px;
  padding:20px 30px 20px 20px;
  background-color:blue;
}
.container:after {
  content:'';
  display:block;
  background:white;
  width:20px;
  height:110%;
  position:absolute;
  top:0;
  right:-10px;
  transform:rotate(10deg);
}
.title {
  color:#fff;
  display:inline-block;
  font-size:18pt;
  text-transform:uppercase;
  font-family:arial;
  transform:rotate(-3deg)
}
```

```html
<div class="container"><span class="title">Welcome to </span></div>
```
Since the first and second version you gave differ so much, I am not that sure what it is you want to achieve. I'm going mostly with the first one.

The main trick is with the way you use the [`viewBox`](https://www.w3.org/TR/SVG11/coords.html#ViewBoxAttribute) attribute (and its accompaining [`preserveAspectRatio`](https://www.w3.org/TR/SVG11/coords.html#PreserveAspectRatioAttribute)). Think of the `viewBox` as a rectangle that is fit into the area you define with `width` and `height`. (here, spelled out in CSS.) The `preserveAspectRatio` describes the fitting rule: choose the largest possible size for the rectangle that fits inside the element, and move it to the left and vertically to the middle.

Everything inside the `<svg>` now will remain fixed in position and proportion to that rectangle. If you raise the height of the element, the size of the text will grow; and if you lower its width, eventually it will shrink, but always together with the polygon.

I've positioned the text with `text-anchor: middle`, which is the equivalent of `text-align: center` for SVG. Using a font size of 0.4 as you did is not a good idea; browsers are prone to handle values below 1 incorrect.

Finally, if you are using this in place of a `<h1>` tag, you should either surround it with that to retain accessability, or set appropriate ARIA attributes as shown:

```css
.title {
  height: 60px;
  width: 100%;
  display: block; /* not needed if surrounded by <h1> */
}

.title polygon {
  fill: blue;
}

.title text {
    font-family: Arial;
    font-size: 24px;
    fill: #FFF;
    text-anchor: middle;
}
```

```html
<svg class="title" viewBox="0 0 250 60" preserveAspectRatio="xMinYMid meet"
     aria-role="heading" aria-level="1">
    <polygon points="2.5,0 250,9 240,54 0 45" />
    <text x="125" y="36">WELCOME TO</text>
</svg>
```