https://github.com/verot/class.upload.p ... upload.php
โค้ด: เลือกทั้งหมด
$handle->image_text = "люблю";
$handle->image_text_background = '#000000';
$handle->image_text_padding = 10;
$handle->image_text_size = 20;
$handle->image_text_angle = 20;
$handle->image_text_font = "./foo.ttf";
ลองมาใช้งานจริงที่ phpbb ปรากฏว่า อักษรบนภาพไม่เปลี่ยนตาม font ของที่เราเรียก
โค้ด: เลือกทั้งหมด
$font_path = $this->root_path . '/images/facebook/angsa.ttf';
โค้ด: เลือกทั้งหมด
$font_path = generate_board_url() . '/images/facebook/angsa.ttf'; #"http://localhost/phpBB3/images/facebook/angsa.ttf"
โค้ด: เลือกทั้งหมด
$font_path = $this->root_path . '/images/facebook/foo.gdf';