jnerotrix Posted December 3, 2008 Share Posted December 3, 2008 I made a font called: "cripttick.ttf" I need to make a Generator so When you type in Letters In "Criptick" It Changes It to "Times New Roman" and the other Way around Here is the html code i have written for it i just need it to be coded in php <center> <h1> Cripttick Encoder/Decoder </h1> <br><br> <form Action="(This Page)" method=post"> <table border="1"> <tr> <td align="center"><input type="submit" Value="Encode"></td> </tr> <tr> <td> !Type Text You Want to Encode!<br> <textarea name="encode" rows="5" cols="25"></textarea> ==> <textarea name="encoded" rows="5" cols="25"></textarea> </td> </tr> </table> </form> <br><br> <form Action="(This Page)" method=post"> <table border="1"> <tr> <td align="center"><input type="submit" Value="Decode"></td> </tr> <tr> <td> !Type Coded Text Here!<br> <textarea name="decode" rows="5" cols="25"></textarea> ==> <textarea name="decoded" rows="5" cols="25"></textarea></td> </tr> </table> </form> Where it says (This page) i dont know what to put there i want it to do the code on this page Thanks Jnerotrix Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/ Share on other sites More sharing options...
.josh Posted December 3, 2008 Share Posted December 3, 2008 use action = '' to post to the same page. Do value='$_POST['formelementnamehere']' in the target form element. Use html to set the font. Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704505 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 I dont know the html code to use a custom font in a text area Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704509 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 Does any1 know this code Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704518 Share on other sites More sharing options...
haku Posted December 3, 2008 Share Posted December 3, 2008 You can set fonts with CSS, but the user will only be able to see the font if it is pre-installed on their machine. Since it's a font you made yourself, it won't be installed on their machine, which means you can't do it. Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704520 Share on other sites More sharing options...
genericnumber1 Posted December 3, 2008 Share Posted December 3, 2008 You can, however, display text in the font if you do it in an image. There's just no way to input in a certain font, as haku said, because it requires the user to have the font installed. Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704522 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 Whats the CSS code to Do This For a TextArea <textarea name="encode" rows="5" cols="25" style="font-family:criptick.ttp"></textarea> ??? Is that how you do it Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704526 Share on other sites More sharing options...
genericnumber1 Posted December 3, 2008 Share Posted December 3, 2008 Like he said, it's not possible to use your font outside of you displaying it in an image. Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704528 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 that doesnt matter this is only going to be available to specific members anyways so thats fine but is that how u do the css code? Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704530 Share on other sites More sharing options...
MatthewJ Posted December 3, 2008 Share Posted December 3, 2008 You could just test it to see if it worked... but yes, that looks like it should be okay. Again, this will only work on machines with the font installed (Google "web safe fonts" for more info). You don't need the extension on the font though... just the name Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704532 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 yea i know specific members who will be using this will have it I will try it now Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704533 Share on other sites More sharing options...
jnerotrix Posted December 3, 2008 Author Share Posted December 3, 2008 ok that css code didnt work hmmm Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704535 Share on other sites More sharing options...
MatthewJ Posted December 3, 2008 Share Posted December 3, 2008 Do you have the font "installed"? <textarea name="encode" rows="5" cols="25" style="font-family:Tahoma"></textarea> That works for me to change the font to Tahoma So I would think <textarea name="encode" rows="5" cols="25" style="font-family:criptick"></textarea> Quote Link to comment https://forums.phpfreaks.com/topic/135261-font-changer/#findComment-704538 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.