File: 0001-Hardcode-path-to-usrsharefontstruetypettf-dejavuDeja.patch

package info (click to toggle)
php-imagick 3.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,288 kB
  • sloc: ansic: 17,876; php: 1,440; xml: 444; pascal: 80; sh: 19; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Debian PHP PECL Maintainers <pkg-php-pecl@lists.alioth.debian.org>
Date: Tue, 8 Dec 2015 16:29:48 +0100
Subject: 
 Hardcode-path-to-usrsharefontstruetypettf-dejavuDejaVuSans.ttf-in-captcha.php

---
 imagick-3.8.0/examples/captcha.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/imagick-3.8.0/examples/captcha.php b/imagick-3.8.0/examples/captcha.php
index a9176a3..a76c1cb 100644
--- a/imagick-3.8.0/examples/captcha.php
+++ b/imagick-3.8.0/examples/captcha.php
@@ -17,7 +17,7 @@ $bg->setColor( 'white' );
 $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 */