开发者

php, gd and style

开发者 https://www.devze.com 2023-01-10 21:47 出处:网络
for example i have this html code: <p><strong>Text text.</strong></p> <p><span style=\"font-size: 14pt;\"><span style=\"background-color开发者_运维技巧: #ff0000

for example i have this html code:

<p><strong>Text text.</strong></p>
<p><span style="font-size: 14pt;"><span style="background-color开发者_运维技巧: #ff0000;">Text text...</span></span></p>

Possible write this text with this style on the image (with php GD)?

Thanks


See:

  • imagecolorallocate to set the red background color
  • imagestring to write a string onto an image (there's an argument for font size)
  • imageloadfont to load a bold version of a font

Post another question if you've tried writing it with these functions and have a specific problem

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号