473,751 Members | 5,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

font script.

hi all.

first time poster so please forgive and maybe direct me to correct
group if this is wrong place. tia.

i'm after constructing a PHP script to fit within my nuke modules to
do this..

I would like users to enter my cross stitch site and be able to type
in text and have it formatted into a cross stitch font.

I know from other sites that it can be achieved using a perl script
but not sure how it's done as i have no perl knowledge whatsoever.

here is an example from a fellow cross stitch site..
http://www.celticxstitch.ie/cgi-celt...t/stitches.cgi

any ideas where i should start?

thanx for any help.

Sarah.
Jul 17 '05 #1
3 2480
Uzytkownik "sarah" <ow***@brontela nd.com> napisal w wiadomosci
news:a3******** *************** **@posting.goog le.com...
hi all.

first time poster so please forgive and maybe direct me to correct
group if this is wrong place. tia.
You're at the right place :)
i'm after constructing a PHP script to fit within my nuke modules to
do this..

I would like users to enter my cross stitch site and be able to type
in text and have it formatted into a cross stitch font.

I know from other sites that it can be achieved using a perl script
but not sure how it's done as i have no perl knowledge whatsoever.


Looks like it's a matter of stitching a few images together. The easiest way
is to keep each letter of the alphabet in a separate image, then generate
img tags base on what the user type in:

$letters = preg_split('//', $input, -1, PREG_SPLIT_NO_E MPTY);
echo "<nobr>";
foreach($letter s as $letter) {
echo "<img src=\"img/letters/$letter.gif\">" ;
}
echo "</nobr>";

If you want a single image, you can use the GD function to joint the images
together.
Jul 17 '05 #2
thankyou Chung for your help, but i have to say that this looks a
little too advanced for my skills at the present time :(

I understand from this that i will need to create a simple form, and
have images in the specified folder that i have made, but apart from
the "echo" command i don't really understand much more of your code.

It probably looks easy to some of you but i haven't acquired enough
skills yet to implement this.

I shall continue to "hang around " in this group and go back to the
PHP manual and learn. :)

thanx again.. Sarah.

Looks like it's a matter of stitching a few images together. The easiest way
is to keep each letter of the alphabet in a separate image, then generate
img tags base on what the user type in:

$letters = preg_split('//', $input, -1, PREG_SPLIT_NO_E MPTY);
echo "<nobr>";
foreach($letter s as $letter) {
echo "<img src=\"img/letters/$letter.gif\">" ;
}
echo "</nobr>";

If you want a single image, you can use the GD function to joint the images
together.

Jul 17 '05 #3
I noticed that Message-ID:
<a3************ *************@p osting.google.c om> from sarah contained
the following:
I understand from this that i will need to create a simple form, and
have images in the specified folder that i have made, but apart from
the "echo" command i don't really understand much more of your code.

It probably looks easy to some of you but i haven't acquired enough
skills yet to implement this.


The script pretty much works as is.

I have six images of the numbers 1 to 6 named 1.jpg, 2.jpg and so on
Obviously for an alphabet you need many more.

http://www.ckdog.co.uk/js/number%20images.php

Here is the code.

<HTML>
<HEAD>
<TITLE>number images</TITLE> <META HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=iso-8859-1">
</HEAD>

<BODY BGCOLOR="#FFFFF F" TEXT="#000000">
<FORM NAME="form1" METHOD="post" ACTION="">enter numbers between 1 and 6
<BR>e.g
123432<BR> <INPUT TYPE="text" NAME="inputbox" ><INPUT TYPE="submit"
NAME="Submit" VALUE="Submit"> </FORM>
<?php
$input=$_POST["inputbox"];
$letters = preg_split('//', $input, -1, PREG_SPLIT_NO_E MPTY);
echo "<nobr>";
foreach($letter s as $letter) {
echo "<img src=\"$letter.j pg\">";
}
echo "</nobr>";
?>
</BODY>
</HTML>
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1777
by: StaZ | last post by:
Hello I have a ASP script that generates a jpg/gif image using the Overpower.ImageLib component. I do all my tests on my own intranet server before uploading it to the webhost Actually i try to use the font "CasacedScript" to generates page titles.
4
16720
by: Csaba Gabor | last post by:
What I'd like to do is to be able to set the font of a textarea element to the same font that another element is using (say, for example, an <INPUT type=text ...> element, but if that's a no go, then a generic element's font will do OK, too. What's the correct way to do this, please (so that it will also work for IE 6)? The motivation for this is that I have some text on the screen and I want to insert a textarea element between the...
3
2537
by: Matej Cepl | last post by:
I know about element.style.fontSize, but it seems to work here (with Mozilla Firefox 1.0.6) just only when the fontSize was set via CSS. Can I get somewhere current size of the font in the actual element. Explanation: PeopleSoft uses very small font (9pt), which on Mozilla looks pretty small. Unfortunately, it is set somewhere in their Javascript, so apparently it fools even "Minimal font size" in Mozilla's settings. Therefore, I would...
0
3049
by: Chenghui Li | last post by:
We have a problem with the Windows XP theme: We have a IDE which allows other developers to develop visual programs for their customers. Our IDE allow them to set font for window captions easyly (through a dialog). It works fine fo W98, 2000, NT, and XP is the theme is Classic. But on XP if the theme is "Windows XP", the we have a problem: if the developer set the caption font to be say, "Script" (and all non-default font), then the...
4
3496
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a snippet from my .css file: *************************** body { margin:0; padding:0;
3
9613
by: Hymer | last post by:
Hello, I used CSS to specify a line of type in Times New Roman, Italic. I notice that the font seems to not be dithered on the webpage. That is, the font looks a little ragged around the edges. Is there a way to make a script font look as good as my non-script font? Thanks,
16
1880
by: carlbernardi | last post by:
Hi, I was wondering if there is way use a font that is somehow kept in the code instead of having to load it? I am working on a single script that so far can produce images and html but I have not been able to figure out a way that it can also produce a font. Thanks Carl
2
3629
by: kheitmann | last post by:
OK, so I have a blog. I downloaded the "theme" from somewhere and have edited a few areas to suit my needs. There are different font themes within the page theme. Long story short, my "Text Posts" are supposed to be in the font: Georgia, but they are showing up in "Times New Roman"...blah! I can't find anything wrong in the code, but who am I trying to fool? I know nothing about this stuff. The code is below. The parts that I *think*...
1
3392
by: neovantage | last post by:
Hey all, I am using a PHP script which creates headings at run time in a sense at page execution. I am stuck a with a very little problem which i am sure i will have the solution from experts. The problem is when it creates transparent PNG format image then and it pixel ate the image. e.g. If i am using a gradient in background then it vary in color range. Now when i used that php script it generates image successfully but it pixel ate...
0
9009
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8844
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9349
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6819
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4721
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4899
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2230
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.