# drawText() always draw in the middle

**URL:** <https://forum.babylonjs.com/t/drawtext-always-draw-in-the-middle/11276>\
**Category:** Questions\
**Tags:** documentation, gui\
**Created:** [May 30, 2020, 6:12am UTC](https://forum.babylonjs.com/t/drawtext-always-draw-in-the-middle/11276 "2020-05-30T06:12:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlvinStefanus](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/alvinstefanus/32/7475_2.png) [@AlvinStefanus](https://forum.babylonjs.com/u/AlvinStefanus)\
**Post date:** [May 30, 2020, 6:12am UTC](https://forum.babylonjs.com/t/drawtext-always-draw-in-the-middle/11276/1 "2020-05-30T06:12:32Z")

</div>

So the idea is I want to draw multiple line into dynamic texture. Even if I set the `y = 0` when drawing the text, it is still being drawn in the middle (vertically).

```
//inside for loop
var top = 0;
tex.drawText(textArr[i], 0, top, drawFont, style.fontColor, "transparent", true, true);

```

Each line of text will be drawn in the middle. The are overlapping each other.

How can I set the y coordinate for each drawing?

---

<div class="post-metadata">

**Author:** ![JohnK](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/johnk/32/26764_2.png) [@JohnK](https://forum.babylonjs.com/u/JohnK)\
**Post date:** [May 30, 2020, 8:47am UTC](https://forum.babylonjs.com/t/drawtext-always-draw-in-the-middle/11276/2 "2020-05-30T08:47:24Z")

</div>

Here is an example PG [https://www.babylonjs-playground.com/#5ZCGRM#344](https://www.babylonjs-playground.com/#5ZCGRM#344) that does multiple lines.

Note use null not “transparent” to write on top of an existing dynamic texture canvas.
