]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2Ftext2pngPlugin
Use UTF-8 so that display is correct on sf.net
[SourceForge/phpwiki.git] / pgsrc / Help%2Ftext2pngPlugin
1 Date: Thu, 26 Mar 2009 11:34:32 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2Ftext2pngPlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=UTF-8
9 Content-Transfer-Encoding: binary
10
11 Convert text into a png image using GD without using [WikiPluginCached|Help:WikiPlugin].
12 The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead, 
13 which are not timestamp checked at all. Delete the .png file(s) if you change anything.
14
15 This is a really simple and stupid plugin, which might need some work.
16
17 == Usage
18 {{{
19 <<text2png text="some text">>
20 }}}
21
22 == Arguments
23
24 text:
25   some text to display
26 lang:
27   language subdirectory
28 _force:
29   set to 1 to recreate the image
30 fontsize:
31   18. with GD1 it's the pixelsize, with GD2 the pointsize
32 with_shadow:
33   1
34 fontcolor:
35   #000000
36 shadowcolor:
37   #AFAFAF
38 backcolor:
39   #ffffff
40
41 === Configurable Options
42
43 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
44
45 == Example
46
47 {{{
48 <<text2png text='Hello WikiWorld!'>>
49 }}}
50 would produce:
51 <<text2png text='Hello WikiWorld!'>>
52
53 == See Also
54 * [Help:TeX2PngPlugin]
55 * [Help:TexToPngPlugin]
56
57 <noinclude>
58 ----
59 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
60 </noinclude>