| How to convert TrueType text to curve, surface or solid shape? |
 |
| Cauchy Ding |
2012/07/16 12:29 |
Hi,
In Rhino, there provids a TextObject. By this function, you can convert text to curve, surface or solid shape. Does anyone have clue about this it?
A thread is related with it, but no more information further.
http://www.opencascade.org/org/forum/thread_1210/?forum=3
Thanks in advance.
Ding |
 |
| |
 | | Cauchy Ding |
2012/07/26 03:31 |
I have solved it by modifying a sample named glyph in Windows platform. It uses a system API
GetGlyphOutline.
|
 |
| |
 | | Stephane Routelous |
2012/07/26 03:58 |
| if you want to be Win32 independent, you can use FreeType ( www.freetype.org ) |
 |
| |
 | | Cauchy Ding |
2012/07/26 06:59 |
Hi Stephane,
Thanks. |
 |
| |
 | | Arjan Schouten |
2012/07/30 16:21 |
Hello Cauchy,
Would you like to share your code? I am about to do the same and don't want to reinvent the wheel if possible.
Kind regards,
Arjan
|
 |
| |
 | | jelle |
2012/07/30 17:26 |
| interesting thread; OCC links to Freetype, right, I wonder if there's not a call in OCC itself to get the outlines? |
 |
| |
 | | Cauchy Ding |
2012/08/03 11:55 |
Hi Arjan,
Attachment is the sourcecode from website. He uses GDI to render the outline of text. You'd better read it firstly. My code is basically from this code.
Ding |
|
You have to be logged in to download the attached file
|
 |
| |
 | | Cauchy Ding |
2012/08/03 12:07 |
Hi Arjan,
Attachment is my APIs. It can't be compiled in your system because there are some my project dependent APIs.
The basic idea is to make line/bezier curves, using those curves to construct wire, using thouse wires to make a plane face.
Ding |
|
You have to be logged in to download the attached file
|
 |
| |