cvs: pecl /ps/examples text.php

From: Date: Thu, 04 Mar 2004 07:25:22 +0000
Subject: cvs: pecl /ps/examples text.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-1002@lists.php.net to get a copy of this message
steinm Thu Mar 4 02:25:22 2004 EDT Modified files: /pecl/ps/examples text.php Log: - fixed typo http://cvs.php.net/diff.php/pecl/ps/examples/text.php?r1=1.1&r2=1.2&ty=u Index: pecl/ps/examples/text.php diff -u pecl/ps/examples/text.php:1.1 pecl/ps/examples/text.php:1.2 --- pecl/ps/examples/text.php:1.1 Sat Nov 15 09:45:53 2003 +++ pecl/ps/examples/text.php Thu Mar 4 02:25:22 2004 @@ -72,7 +72,7 @@ ps_set_parameter($ps, "hyphenation", "true"); ps_set_parameter($ps, "hyphendict", "/usr/lib/scribus/dicts/hyph_en.dic"); ps_set_value($ps, "hyphenminchars", 2); -$text = "You wonder if hyphenation is supported? Yes, of course and it uses the hyphenation files from scribus. Scribus provides hyphenation dictionaries for 14 languages. Another nice feature is Protution. This means that certain characters reach over the left or right margin. This is very useful for hyphens or punctuation to make straight looking margin like the one in the first column (it is very exaggerated)."; +$text = "You wonder if hyphenation is supported? Yes, of course and it uses the hyphenation files from scribus. Scribus provides hyphenation dictionaries for 14 languages. Another nice feature is Protution. This means that certain characters reach over the left or right margin. This is very useful for hyphens or punctuation to make straight looking margins like the one in the first column (it is very exaggerated)."; ps_set_parameter($ps, "RightMarginKerning", "hyphen=1000"); $len = ps_show_boxed($ps, $text, 100, 90, 100, 200, "justify"); $len = ps_show_boxed($ps, substr($text, strlen($text)-$len), 235, 90, 100, 200, "right");

« previous php.pecl.cvs (#1002) next »