chanchelkumar Posted April 27, 2009 Share Posted April 27, 2009 Hi all, I am working with some text styles.. ie i want to create some text with some particular styles.. like curved, slanted, squeezed.. etc,, How we can make the type of text using php .. I want this type. i got it from net.. i tried my level best to make it like this... any one just guide me to how i will get this type of text.. Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/ Share on other sites More sharing options...
mikesta707 Posted April 27, 2009 Share Posted April 27, 2009 If i understand you correctly, you want to look into CSS Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820081 Share on other sites More sharing options...
chanchelkumar Posted April 27, 2009 Author Share Posted April 27, 2009 thanks mikesta707 But How i can make a text style like this using CSS... It will great full if you give me one like that.. Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820086 Share on other sites More sharing options...
chronister Posted April 27, 2009 Share Posted April 27, 2009 CSS won't do that kind of thing. What your looking for is the GD library. It is a set of functions that allow you to manipulate graphics. You can specify a particular font and then manipulate it from there. http://us2.php.net/gd Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820106 Share on other sites More sharing options...
chanchelkumar Posted April 27, 2009 Author Share Posted April 27, 2009 thanks chronister what you said is correct. Let me try GD .. Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820116 Share on other sites More sharing options...
FezEvils Posted April 27, 2009 Share Posted April 27, 2009 using css also can, but for image processing better use gd, another alternative http://dreadbob.blogspot.com/2008/05/css-text-wrapper-for-html-text-any.html Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820137 Share on other sites More sharing options...
chronister Posted April 27, 2009 Share Posted April 27, 2009 CSS cannot manipulate the text to create something like the PHPFREAKS image in the post. You can use it to apply font sizes and you *might* get a similar effect, but for things like curves, skewed, and perspective type effects, you will have to use GD Library / imagemagik or something similar. CSS alone is very basic in it's text processing. And you cannot use weird or unique fonts. (I know it is possible to specify fonts that are not installed on a users system, but my research has told me that it is tricky, not well supported and generally a pain in the ass). Nate Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-820636 Share on other sites More sharing options...
chanchelkumar Posted April 29, 2009 Author Share Posted April 29, 2009 I tried it with CSS .. No way .. it will not happen and i want it for a word.. not for a paragraph... Please anyone help me.. Quote Link to comment https://forums.phpfreaks.com/topic/155789-add-some-styles-to-fonts/#findComment-821657 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.