forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Solved] Clipping freetype text

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Gh0sT



Joined: 06 Jun 2006
Posts: 5

PostPosted: Tue Sep 05, 2006 5:35 am    Post subject: [Solved] Clipping freetype text Reply with quote

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);
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group