]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2Ftext2pngPlugin
Comment only
[SourceForge/phpwiki.git] / pgsrc / Help%2Ftext2pngPlugin
1 Date: Wed,  4 Mar 2015 14:20:06 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.5.3)
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 [[Help:WikiPlugin|WikiPluginCached]].
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 {| class="bordered"
24 |-
25 ! Argument
26 ! Description
27 ! Default value
28 |-
29 | **text**
30 | some text to display
31 |
32 |-
33 | **lang**
34 | language subdirectory
35 |
36 |-
37 | **force**
38 | set to 1 to recreate the image
39 |
40 |-
41 | **fontsize**
42 |
43 | 18. with GD1 it's the pixelsize, with GD2 the pointsize
44 |-
45 | **with_shadow**
46 |
47 | 1
48 |-
49 | **fontcolor**
50 |
51 | #000000
52 |-
53 | **shadowcolor**
54 |
55 | #AFAFAF
56 |-
57 | **backcolor**
58 |
59 | #ffffff
60 |}
61
62 === Configurable Options ===
63
64 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
65
66 == Example ==
67
68 {{{
69 <<text2png text='Hello WikiWorld!'>>
70 }}}
71
72 == See Also ==
73 * [[Help:TeX2pngPlugin]]
74 * [[Help:TexToPngPlugin]]
75
76 <noinclude>
77 ----
78 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
79 </noinclude>