php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16772 printer_create_font does not properly resolve regular fonts nor opentype fonts
Submitted: 2002-04-23 18:10 UTC Modified: 2003-04-25 11:54 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: alfredreibenschuh at gmx dot net Assigned:
Status: Wont fix Package: Unknown/Other Function
PHP Version: 4.2.0 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
19 - 6 = ?
Subscribe to this entry?

 
 [2002-04-23 18:10 UTC] alfredreibenschuh at gmx dot net
OSes: Windows 2000 Professional / SP1 (English and German)
PHP: php 4.2.0 binary zip (non-install) from php.net
Fonts: all windows standard fonts are in opentype format (Arial, Times, etc.)
     used custom fonts are in truetype format

$font = printer_create_font('Arial',20,0,PRINTER_FW_REGULER,false,false,0)
does not give 'Arial' but some unknown serif type
this also happens with any installed opentype font !

given the installed fonts 'PaxSans', 'PaxSans Italic', 'PaxSans Bold' and 'PaxSans Bold Italic' 
$font = printer_create_font('PaxSans',20,0,PRINTER_FW_REGULER,false,false,0)
will resolve to 'PaxSans Italic' rather than 'PaxSans'

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-19 23:18 UTC] iliaa@php.net
Appears to be an abandoned PECL extension.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 03:01:29 2024 UTC