Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Turn any character into a graphics object
ResourceFunction["CharacterCurves"][ch] turns a text character ch into a graphics object of the character's shape. | |
ResourceFunction["CharacterCurves"][ch,format] turns a text character ch into either a graphics object, a curve primitive or a list of segments based on the value of format. |
"Graphics" | returns a graphics object in the shape of ch |
"Curves" | returns the curve(s) that make up ch's shape |
"Segments" | returns a list of lists of Line and BezierCurve objects, complete with proper end points |
Get a graphics object of the shape of the letter "j":
In[1]:= |
Out[1]= |
Get a graphics object from a character code:
In[2]:= |
Out[2]= |
Get a graphics object for a styled character:
In[3]:= |
Out[3]= |
Get a filled curve instead of a joined curve:
In[4]:= |
Out[5]= |
Get the curves themselves instead of the graphics object:
In[6]:= |
Out[6]= |
Get the lines and Bézier curves with the end points restored:
In[7]:= |
Out[7]= |
Display the axes and grid to analyze the shape of a character:
In[8]:= |
Out[8]= |
Include a character's shape with other graphics primitives:
In[9]:= |
Out[10]= |
Change a character's shape:
In[11]:= |
Out[12]= |
Extract curve information from a character's shape:
In[13]:= |
This work is licensed under a Creative Commons Attribution 4.0 International License