drpogkqqi536984960 2012-06-19 13:43
浏览 35

使用图像作为文本[关闭]

My boss wants to create his own custom font using Photoshop, paint, or illustrator. He wants each letter to be multicolored or change colors and possibly have shadowing and wants to use this in his web site so that when people enter text it is not the simple black and white text you normally see. I have researched and know that you can create custom fonts with a font creator, but is it possible using code (java script or php) to insert the individual letter/symbol image into the text box or by using event handlers in Dreamweaver or with CSS. If so does anyone have a possible example or a site that you know does this. All help would be much appreciated.

  • 写回答

3条回答 默认 最新

  • doujuxin7392 2012-06-19 13:55
    关注

    You could use @font-face(http://www.font-face.com/) to embed your custom font in the web page, then use some javascript(an algorithm to color every other letter) + CSS3(custom colors) to get the desired effect that your boss is looking for.

    I recommend using @font-face or google web fonts rather than Cufon for performance reasons.

    Good luck!

    评论

报告相同问题?

悬赏问题

  • ¥15 孟德尔随机化结果不一致
  • ¥20 求用stm32f103c6t6在lcd1206上显示Door is open和password:
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法