/    Sign up×
Community /Pin to ProfileBookmark

How They Structure Different Style Text Generators ?

Happy New Year!

Guys,

Look at this site:
[url]https://cooltext.com/Logos-Ice[/url]

They have text fonts or something. You type your words/phrase and your chosen letter style (their fonts) writes your words or phrase.
How did the site manage to do that ?
For example, look at the Ice Cube style:
[url]https://cooltext.com/Logo-Design-Ice-Cube[/url]

Now, type any phrase and their site types your phrase using that style. How’d they program that ?
I want to build a site like that. This is how I’m gonna built it ….

With a font, let’s say Ice Cube Style, I’m going to write each letter and save it. Like so:

a.jpeg
b.jpeg

and so on right down to:

y.jpeg
z.jpeg

Then, I’m going to give you a text box (in a web form).
You will type your word such as: Get Lost.
And, my script will call the required jpeg files and combine them to form your word. Like so:

g.peg,e.jpeg,t.gpeg and so on. You get the picture. Gonna put each appropriate img files side by side that will make up your chosen word.

Eg.

$a = localhosta.jpeg
$b = localhostb.jpeg

$word = $a = localhosta.jpeg.$b = localhostb.jpeg;

echo “$word”;

Ok, I’m going to do something like that but not quite like that. You do understand what I’m trying to do and how I’m trying to organize things or put the script up. Is this how they usually do it ?

Ok, I’ve shown you a code sample, even though it ain’t that good. Now, how-about a sample from your end ?

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmJan 02.2018 — I'll respond to this post rather than you "duplicate" since this is the more generic one.

Why the jpg files? You want to accept a choice of font, some text and give back that text displayed in that font. Correct? Sounds like a piece of cake. What am I missing.

So your php script gets the POST data and sends back the same screen but this time it fills in a textarea tag with the text and a style that uses the selected font. Or it could just fill in the original text input box.

I must be missing something.
Copy linkTweet thisAlerts:
@NogDogJan 02.2018 — In PHP you can use the GD functions [url=http://php.net/imagettftext]imagettftext()[/url] and [url=http://php.net/imagettftext]imagefttext()[/url] to write text to an image using whatever applicable font definition files that are available on your server. I'm sure there are corresponding functions in the ImageMagick library, as well.
Copy linkTweet thisAlerts:
@site-developerauthorJan 04.2018 — I'll respond to this post rather than you "duplicate" since this is the more generic one.

Why the jpg files? You want to accept a choice of font, some text and give back that text displayed in that font. Correct? Sounds like a piece of cake. What am I missing.

So your php script gets the POST data and sends back the same screen but this time it fills in a textarea tag with the text and a style that uses the selected font. Or it could just fill in the original text input box.

I must be missing something.[/QUOTE]


I think you understood me well here:

"So your php script gets the POST data and sends back the same screen but this time it fills in a textarea tag with the text and a style that uses the selected font. "

SO, let's see a code sample from your end how you would program that in php. After that, I'll build on it and show you guys how creative I can be. Will be fun. Will be adventurous. Let's make 2018 a fun year to start with.
Copy linkTweet thisAlerts:
@site-developerauthorJan 04.2018 — In PHP you can use the GD functions [url=http://php.net/imagettftext]imagettftext()[/url] and [url=http://php.net/imagettftext]imagefttext()[/url] to write text to an image using whatever applicable font definition files that are available on your server. I'm sure there are corresponding functions in the ImageMagick library, as well.[/QUOTE]

If you don;t mind Mr Nog Dog, may I whoof whoof, see atleast one example from your end ? It will give me some head start on year 2018 and cheer me up a little. (I'm already feeling low to think World War 3 would start next yr). ?
Copy linkTweet thisAlerts:
@ginerjmJan 04.2018 — No it doesn't work that way. You give US your example and we help you fix it if needed.

BTW - what I am describing is so very simple it would behoove you to tackle it instead of relying us to do it.
×

Success!

Help @site-developer spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...