# Test if a point is inside a Shape

**URL:** <https://openrndr.discourse.group/t/test-if-a-point-is-inside-a-shape/339>\
**Category:** Tutorials\
**Created:** [February 13, 2022, 11:35am UTC](https://openrndr.discourse.group/t/test-if-a-point-is-inside-a-shape/339 "2022-02-13T11:35:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![abe](https://yyz2.discourse-cdn.com/free1/user_avatar/openrndr.discourse.group/abe/32/700_2.png) [@abe](https://openrndr.discourse.group/u/abe)\
**Post date:** [June 18, 2023, 5:11pm UTC](https://openrndr.discourse.group/t/test-if-a-point-is-inside-a-shape/339/3 "2023-06-18T17:11:00Z")

</div>

You are very welcome 🙂

I just posted this (after asking @edwin if it was possible):

> [@Converting font characters to contours](https://openrndr.discourse.group/t/converting-font-characters-to-contours/576):
>
> [FontShape-2023-06-18-19.02.21] It is possible to convert font characters to shapes and contours. I believe it’s not yet documented, but here a quick example: 
> 
> > **imports**
> >
> > import org.openrndr.application import org.openrndr.color.ColorRGBa import org.openrndr.draw.font.loadFace import org.openrndr.extensions.Screenshots import org.openrndr.shape.LineSegment
> 
> fun main() = application { program { val face = loadFace("data/fonts/default.otf") val shape = face.glyphForCharacter('a').s…

I think drawing to a RenderTarget and sampling that is definitely an option. It can be faster too, but depends on the use case. To animate zooming letters or to draw with pen plotters having access to the contour is very nice 🙂

---

_[View the full topic](https://openrndr.discourse.group/t/test-if-a-point-is-inside-a-shape/339)._
