# ImageDraw Font leaving gap at top of inky WHAT screen

**URL:** <https://forums.pimoroni.com/t/imagedraw-font-leaving-gap-at-top-of-inky-what-screen/24355>\
**Category:** Support\
**Created:** [March 6, 2024, 5:41pm UTC](https://forums.pimoroni.com/t/imagedraw-font-leaving-gap-at-top-of-inky-what-screen/24355 "2024-03-06T17:41:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![evolmonster](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/evolmonster/32/10473_2.png) [@evolmonster](https://forums.pimoroni.com/u/evolmonster)\
**Post date:** [March 6, 2024, 5:41pm UTC](https://forums.pimoroni.com/t/imagedraw-font-leaving-gap-at-top-of-inky-what-screen/24355/1 "2024-03-06T17:41:47Z")

</div>

Hi all

I am creating a weather station on my inky WHAT screen, and I have an issue with the placement of the font image on screen.  
I am using an open source font called weathericons-webfont that has images for each type of weather. So clouds, sun etc.  
My code looks like this :

```auto
from PIL import Image, ImageFont, ImageDraw

    weather_icons_font = ImageFont.truetype("./fonts/weathericons-regular-webfont.ttf",46,)
    img = Image.new("P", inky_display.resolution)
    canvas = ImageDraw.Draw(img)

    canvas.text((5,0, "\uf042", inky_display.BLACK, font=weather_icons_font )

```

This will draw one of the icons on the inky screen just fine. The issue I have is that I set the X,Y to 5,0. That means the font should draw with 0 spacing towards the top of the screen. But what I am seeing is a gap between the top of the screen and the cloud image.  
I am assuming there is some unseen whitespace around the font?  
Anyone know how I can resolve this? I would like to have the font image as close to the top of the display as possible.

Thanks!

---

<div class="post-metadata">

**Author:** ![evolmonster](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/evolmonster/32/10473_2.png) [@evolmonster](https://forums.pimoroni.com/u/evolmonster)\
**Post date:** [March 6, 2024, 5:53pm UTC](https://forums.pimoroni.com/t/imagedraw-font-leaving-gap-at-top-of-inky-what-screen/24355/2 "2024-03-06T17:53:00Z")

</div>

Ok. Just figured it out. It looks like if I set the X,Y to a negative number, it will draw it correctly.

`canvas.text((5,-10, "\uf042", inky_display.BLACK, font=weather_icons_font )`
