File: Hardcode-path-to-usrsharefontstruetypettf-dejavuDejaVuSans.ttf-in-captcha.php.patch

package info (click to toggle)
php-imagick 3.2.0~rc1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,516 kB
  • ctags: 1,105
  • sloc: ansic: 14,099; xml: 110; php: 83; sh: 10; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 570 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Hardcode path to /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf in examples/captcha.php
Forwarded: not-needed
Author: Thomas Goirand <zigo@debian.org>

--- a/imagick-3.2.0RC1/examples/captcha.php
+++ b/imagick-3.2.0RC1/examples/captcha.php
@@ -17,7 +17,7 @@
 $ImagickDraw = new ImagickDraw();
 
 /* Set font and font size. You can also specify /path/to/font.ttf */
-$ImagickDraw->setFont( 'Helvetica Regular' );
+$ImagickDraw->setFont( '/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf' );
 $ImagickDraw->setFontSize( 20 );
 
 /* Create the text */