Convert a letter into a FilledCurve:
curve = First[ First[ImportString[ ExportString[Style["♧", FontFamily -> "Times", FontSize -> 72], "PDF"], "TextMode" -> "Outlines"]]]; g=Graphics[curve] How to write a function that takes a pair (x,y) and returns 1 if point with coordinates (x,y) is inside of the FilledCurve, i.e. is black, and is 0 otherwise? I know a solution which uses Rasterize
rg=Rasterize[g, RasterSize -> 20, ImageSize -> 100] // Binarize PixelValue[rg, {x, y}] however, I am interested in analytical function.
The ultimate goal is to use this function as a testbed for my triangulation algorithm.



SignedRegionDistance[DiscretizeGraphics[g], {x, y}] < 0. $\endgroup$