I am working on creating 3D text from font glyphs. While TextGeometry can be used for this purpose, I prefer to manually draw the text because I need to apply an offset on the font splines.
Currently, I have the splines with their respective points and I am able to draw the letters.
Given the points: previousPoint
, currentPoint
, and nextPoint
, I am struggling to compute the bisector between the previous and next points. Any suggestions on how to achieve this?
Alternatively, is there a different approach to moving spline points away from their initial positions to create the desired offset?
Your insights are greatly appreciated!
EDIT:
While your responses helped me determine the correct values for most font splines, I am facing an issue specifically with the 'o' and '0'. The method used seems to be drawing a strange tangent at the bottom of these letters. Here is the unexpected result: image link
If anyone has any ideas on how to troubleshoot this, please share!
EDIT 2:
I am excited to announce that I have completed my project. The final product includes an .stl exporter feature. Check out the finalized offset here: final offset image
Thank you all for your valuable contributions!