t1lib support on windows

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Hope

    t1lib support on windows

    I don't normally do PHP development work on Windows but I need to port
    an image creation tool to Windows. So I have loaded the php_gd2.dll
    module for image creation support but it doesn't include the t1lib
    functions and the code relies on the imagepsbbox(), imagepstext() and
    imagepsloadfont () functions.

    The result from gd_info() is:

    array(11) {
    ["GD Version"]=> string(27) "bundled (2.0.28 compatible)"
    ["FreeType Support"]=> bool(true)
    ["FreeType Linkage"]=> string(13) "with freetype"
    ["T1Lib Support"]=> bool(false)
    ["GIF Read Support"]=> bool(true)
    ["GIF Create Support"]=> bool(true)
    ["JPG Support"]=> bool(true)
    ["PNG Support"]=> bool(true)
    ["WBMP Support"]=> bool(true)
    ["XBM Support"]=> bool(true)
    ["JIS-mapped Japanese Font Support"]=> bool(false)
    }

    Anyone have any idea where I can get a php_gd2.dll which includes the
    t1lib? I can always recode the functions to use TTF fonts instead but
    only want to do that as a last resort.

    --
    Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
  • Chris Hope

    #2
    Re: t1lib support on windows

    Chris Hope wrote:
    [color=blue]
    > I don't normally do PHP development work on Windows but I need to port
    > an image creation tool to Windows. So I have loaded the php_gd2.dll
    > module for image creation support but it doesn't include the t1lib
    > functions and the code relies on the imagepsbbox(), imagepstext() and
    > imagepsloadfont () functions.[/color]

    [snip]
    [color=blue]
    > Anyone have any idea where I can get a php_gd2.dll which includes the
    > t1lib? I can always recode the functions to use TTF fonts instead but
    > only want to do that as a last resort.[/color]

    So what I did in the end was compile a PHP binary using Cygwin,
    compiling in the modules I needed and it worked fine.

    I did initially try compiling the PHP GD module myself with Visual C++
    but couldn't get it to work and couldn't find any help searching Google
    and Google Groups.

    --
    Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: t1lib support on windows

      Chris Hope wrote:[color=blue]
      > Chris Hope wrote:
      >[color=green]
      > > I don't normally do PHP development work on Windows but I need to[/color][/color]
      port[color=blue][color=green]
      > > an image creation tool to Windows. So I have loaded the php_gd2.dll
      > > module for image creation support but it doesn't include the t1lib
      > > functions and the code relies on the imagepsbbox(), imagepstext()[/color][/color]
      and[color=blue][color=green]
      > > imagepsloadfont () functions.[/color]
      >
      > [snip]
      >[color=green]
      > > Anyone have any idea where I can get a php_gd2.dll which includes[/color][/color]
      the[color=blue][color=green]
      > > t1lib? I can always recode the functions to use TTF fonts instead[/color][/color]
      but[color=blue][color=green]
      > > only want to do that as a last resort.[/color]
      >
      > So what I did in the end was compile a PHP binary using Cygwin,
      > compiling in the modules I needed and it worked fine.[/color]

      This is really a good solution. Glad to see, you've found the way.
      Sometimes ago, I also wanted to use those functions, but having found
      no way, decided not to use those functions.
      [color=blue]
      > I did initially try compiling the PHP GD module myself with Visual[/color]
      C++[color=blue]
      > but couldn't get it to work and couldn't find any help searching[/color]
      Google[color=blue]
      > and Google Groups.[/color]

      I think, this has to be brought to PHP developers' notice. Will do
      that sometimes later.

      --
      <?php echo 'Just another PHP saint'; ?>
      Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

      Comment

      • R. Rajesh Jeba Anbiah

        #4
        Re: t1lib support on windows

        Chris Hope wrote:
        <snip>[color=blue]
        > Anyone have any idea where I can get a php_gd2.dll which includes the
        > t1lib? I can always recode the functions to use TTF fonts instead but
        > only want to do that as a last resort.[/color]

        Update:

        Just the support has been added <http://bugs.php.net/32809> I should
        have reported it earlier.

        --
        <?php echo 'Just another PHP saint'; ?>
        Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

        Comment

        Working...