Diff: Help/text2pngPlugin

Differences between current version and predecessor to the previous major change of Help/text2pngPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 4 Last edited on October 14, 2015 11:47 am by PhilHollenback
Older page: version 3 Last edited on February 23, 2012 2:51 pm by PhilHollenback Revert
@@ -1,5 +1,5 @@
-Convert text into a png image using GD without using [WikiPluginCached| Help:WikiPlugin]. 
+Convert text into a png image using GD without using [[ Help:WikiPlugin|WikiPluginCached] ]. 
 The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead, 
 which are not timestamp checked at all. Delete the .png file(s) if you change anything. 
  
 This is a really simple and stupid plugin, which might need some work. 
@@ -11,24 +11,46 @@
 }}} 
  
 == Arguments == 
  
-text:  
- some text to display  
-lang:  
- language subdirectory  
-_ force:  
- set to 1 to recreate the image  
-fontsize:  
- 18. with GD1 it's the pixelsize, with GD2 the pointsize  
-with_shadow:  
- 1  
-fontcolor:  
- #000000  
-shadowcolor:  
- #AFAFAF  
-backcolor:  
- #ffffff 
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| ** text**  
+| some text to display  
+|  
+|-  
+| ** lang**  
+| language subdirectory  
+|  
+|-  
+| ** force**  
+| set to 1 to recreate the image  
+|  
+|-  
+| ** fontsize**  
+|  
+| 18. with GD1 it's the pixelsize, with GD2 the pointsize  
+|-  
+| ** with_shadow**  
+|  
+| 1  
+|-  
+| ** fontcolor**  
+|  
+| #000000  
+|-  
+| ** shadowcolor**  
+|  
+| #AFAFAF  
+|-  
+| ** backcolor**  
+|  
+| #ffffff  
+|}  
  
 === Configurable Options === 
  
 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug. 
@@ -37,15 +59,13 @@
  
 {{{ 
 <<text2png text='Hello WikiWorld!'>> 
 }}} 
-would produce:  
-<<text2png text='Hello WikiWorld!'>>  
  
 == See Also == 
-* [[Help:TeX2PngPlugin ]] 
+* [[Help:TeX2pngPlugin ]] 
 * [[Help:TexToPngPlugin]] 
  
 <noinclude> 
 ---- 
 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] 
 </noinclude> 

current version

Convert text into a png image using GD without using WikiPluginCached. The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead, which are not timestamp checked at all. Delete the .png file(s) if you change anything.

This is a really simple and stupid plugin, which might need some work.

Usage

<<text2png text="some text">>

Arguments

Argument

Description

Default value

text

some text to display

lang

language subdirectory

force

set to 1 to recreate the image

fontsize

18. with GD1 it's the pixelsize, with GD2 the pointsize

with_shadow

1

fontcolor

#000000

shadowcolor

#AFAFAF

backcolor

#ffffff

Configurable Options

See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.

Example

<<text2png text='Hello WikiWorld!'>>

See Also



Our Founder
ToolboxClick to hide/show