Drawing inside a shape

maybe mask() command?

see Reference / Processing.org

For complex work with the outline of letters

see How to 'deform' a text generated with theGeomerative library?