# Draw TTF font at partial pixel coordinates

**URL:** <https://discourse.libsdl.org/t/draw-ttf-font-at-partial-pixel-coordinates/28061>\
**Category:** SDL Development\
**Created:** [August 25, 2020, 12:55am UTC](https://discourse.libsdl.org/t/draw-ttf-font-at-partial-pixel-coordinates/28061 "2020-08-25T00:55:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rtrussell](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/rtrussell/32/4768_2.png) [@rtrussell](https://discourse.libsdl.org/u/rtrussell)\
**Post date:** [August 25, 2020, 9:31am UTC](https://discourse.libsdl.org/t/draw-ttf-font-at-partial-pixel-coordinates/28061/2 "2020-08-25T09:31:29Z")

</div>

> [@Devsman](#):
>
> Is there a way that I can have the font text draw at partial pixel coordinates (say 300.5, 200.5 as opposed to 300, 200)

Using `SDL_RenderCopyF()` or `SDL_RenderCopyExF()`, which take float coordinates, to render your textures should achieve that, so long as you specify a suitable blend mode and scaling quality.

The floating-point rendering functions have been available since [SDL 2.0.10](https://discourse.libsdl.org/t/sdl-2-0-10-released/26429) but are seemingly still not mentioned in the main [SDL 2.0 documentation](https://wiki.libsdl.org/SDL_RenderCopy). I have expressed my annoyance at this before!

---

_[View the full topic](https://discourse.libsdl.org/t/draw-ttf-font-at-partial-pixel-coordinates/28061)._
