different text styles

Discussion in 'PHP' started by kichus, May 6, 2009.

  1. #1
    Hi All,

    How to create text styles like curved, slanted etc? based on user input in PHP

    Thanks
     
    kichus, May 6, 2009 IP
  2. austin-G

    austin-G Peon

    Messages:
    435
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to output the correct HTML/CSS to do so. What exactly do you mean by 'curved' or 'slanted'?
     
    austin-G, May 6, 2009 IP
  3. zac439

    zac439 Notable Member

    Messages:
    3,074
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    260
    #3
    He probably means creating text as an image based on user input.

    If that's the case, you need to use the GD library to use a font already 'curved' or 'slanted' to your liking. You see this type of thing a lot in CAPTCHA applications.
     
    zac439, May 6, 2009 IP
  4. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi guys, I tried using GD library.. it works but not the effect i want. I am looking for something similar to the word art function in word doc
     
    kichus, May 8, 2009 IP
  5. zac439

    zac439 Notable Member

    Messages:
    3,074
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    260
    #5
    GD library can do anything you need it to. I'm not sure what you mean by "word art" function.

    I'd recommend looking more into the GD library tutorials to get a better grasp of what it can really do.
     
    zac439, May 8, 2009 IP
  6. kichus

    kichus Peon

    Messages:
    188
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    see how evil empire is written on your avatar...some thing like that, i want to curve the text into vertical arcs, circular arcs etc.. i am able to do that using gd libraray.. but not working perfect.. some words/letters are okay.. ..
     
    kichus, May 9, 2009 IP
  7. zac439

    zac439 Notable Member

    Messages:
    3,074
    Likes Received:
    214
    Best Answers:
    0
    Trophy Points:
    260
    #7
    You could do that by making a line algorithm in GD.
    You just have to continue working on it until you get it right.

    No one said it would be easy :)
     
    zac439, May 11, 2009 IP
  8. somanweb

    somanweb Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Hi,

    if you want different style of words design.

    You have to use appropriate font , when create image with text.

    Soman.
     
    somanweb, May 11, 2009 IP