Gh0sT
Joined: 06 Jun 2006 Posts: 5
|
Posted: Tue Sep 05, 2006 5:35 am Post subject: [Solved] Clipping freetype text |
|
|
Hi everyone,
I'd like to clip off a part of a text blitted with the freetype2 lib.
IE.
| Code: | mytext = "This is a long line of text which need to be clipped";
text_to_screen(mytext, x, y); |
I'd like it to display only the first part of the text, so:
"This is a long li"
Any ideas or suggestions are highly appreciated.
Thanks in advance,
Gh0sT
Edit:
Just got solved!
For anyone interested:
| Code: | char mytext[10];
strncpy(mytext,"This is a long line of text which need to be clipped",10);
|
|
|