]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2Ftext2pngPlugin
Add brackets
[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.0RC1)
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 {{{
20 <<text2png text="some text">>
21 }}}
22
23 == Arguments ==
24
25 text:
26   some text to display
27 lang:
28   language subdirectory
29 _force:
30   set to 1 to recreate the image
31 fontsize:
32   18. with GD1 it's the pixelsize, with GD2 the pointsize
33 with_shadow:
34   1
35 fontcolor:
36   #000000
37 shadowcolor:
38   #AFAFAF
39 backcolor:
40   #ffffff
41
42 === Configurable Options ===
43
44 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
45
46 == Example ==
47
48 {{{
49 <<text2png text='Hello WikiWorld!'>>
50 }}}
51 would produce:
52 <<text2png text='Hello WikiWorld!'>>
53
54 == See Also ==
55 * [[Help:TeX2PngPlugin]]
56 * [[Help:TexToPngPlugin]]
57
58 <noinclude>
59 ----
60 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
61 </noinclude>