首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 简单的文本片段与Django自定义字体

简单的文本片段与Django自定义字体

  • 资源大小:5.41 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: python django image Font

资 源 简 介

Rendertext is a Django app for using custom fonts on a web page for headings and the like without the use of Photoshop or Flash. It does so by dynamically creating images out of text snippets. Both PNG and GIF output is currently supported. Usage is simple. Rendertext provides the template filter rendertext which can be used like this: {{ myvar|rendertext:"grunge" }} to show myvar rendered with the font "grunge". You can easily configure size, color and rotations. For instance, {{ myvar|rendertext:"grunge,16,#ff0000,45" }} would show the text in size 16 with color red rotated 45 degrees counter-clockwise. Behind the scenes, django-rendertext checks if the image already has been rendered. If not, the font is loaded, a new image is generated and saved to disk. Then an tag is retur

文 件 列 表

rendertext
templatetags
README.txt
__init__.py
NEWS.txt
TODO
VIP VIP
0.226099s