Ignore:
Timestamp:
2007/09/06 20:18:34 (17 years ago)
Author:
nanasess
Message:

bugfix

  • 画像が出力されない問題修正
  • 未定義変数の修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/graph/SC_GraphBase.php

    r15598 r15636  
    261261            imagefilledrectangle($this->image, $left - 2, $top - 2, $left + $text_width + 2, $top + $font_size + 2, $this->labelbg_color); 
    262262        } 
    263         //$text = mb_convert_encoding($text, "UTF-8", CHAR_CODE); 
    264         $text = mb_convert_encoding($text, CHAR_CODE); 
     263        /* 
     264         * XXX EUC-JP にしないと Warning がでる. 
     265         *     --enable-gd-jis-conv も関係していそうだが, このオプションを 
     266         *     つけなくても出る. 
     267         * 
     268         *     Warning: imagettftext() [function.imagettftext]: 
     269         *     any2eucjp(): something happen in 
     270         * 
     271         *     http://www.php.net/imagettftext を見ると, UTF-8 にしろと 
     272         *     書いてあるのに何故? 
     273         */ 
     274        $text = mb_convert_encoding($text, "EUC-JP", CHAR_CODE); 
     275        //$text = mb_convert_encoding($text, CHAR_CODE); 
    265276        if($color != NULL) { 
    266277            ImageTTFText($this->image, $font_size, $angle, $left, $top + $font_size, $color, FONT_PATH, $text); 
Note: See TracChangeset for help on using the changeset viewer.