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