GD::Persian - Persian UTF-8 support for GD module
The GD lib dosn't support Persian and Arabic chars propebly. It shows characters unsticky and reverse the sentence. This package get Persian UTF-8 charecter and replace it with proper characters that is readable in GD
# create a new image
my $gd = new GD::Image(800,200);
my $black = $gd->colorAllocate(0,0,0);
my $white = $gd->colorAllocate(255,255,255);
my $font_path = "/Library/Fonts/Tahoma.ttf";
$gd->stringFT($white,$font_path ,40 ,0 ,20 ,90 ,
GD::Persian::Convert("Ù‡ÙˆØ§ Ø¨Ø³ Ù†Ø§Ø¬ÙˆØ§Ù† Ù…Ø±Ø¯Ø§Ù†Ù‡ Ø³Ø±Ø¯ Ø§Ø³Øª "),
charmap => 'Unicode',
Convert Persian UTF-8 characters to proper characters for using in images that is created by GD lib
Milad Rastian <email@example.com>
Copyright (C) 2011 by Milad Rastian <firstname.lastname@example.org>
All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
Non-ASCII character seen before =encoding in 'GD::Persian::Convert("Ù‡ÙˆØ§'. Assuming CP1252
To install GD::Persian, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.