]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2Ftext2pngPlugin
Harmonize documentation
[SourceForge/phpwiki.git] / pgsrc / Help%2Ftext2pngPlugin
1 Date: Wed, 28 May 2008 19:08:19 +0200
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2Ftext2pngPlugin;
5   flags="";
6   markup=2;
7   charset=iso-8859-1
8 Content-Transfer-Encoding: binary
9
10 Convert text into a png image using GD without using [WikiPluginCached|Help:WikiPlugin].
11 The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead,
12 which are not timestamp checked at all. Delete the .png file(s) if you change anything.
13
14 This is a really simple and stupid plugin, which might need some work.
15
16 !!! Usage
17 <verbatim>
18   <?plugin text2png text="some text" ?>
19 </verbatim>
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
41 ! Configurable Options
42
43 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
44
45 !!! Example
46
47 <verbatim>
48 <?plugin text2png text='Hello WikiWorld!' ?>
49 </verbatim>
50 would produce:
51 <?plugin text2png text='Hello WikiWorld!' ?>
52
53 !!! See Also
54
55 Help:TeX2PngPlugin, Help:TexToPngPlugin
56
57 ----
58 [PhpWikiDocumentation] [WikiPlugin|Help:WikiPlugin]