Solved

image generation of text in charchter set windows-1256

Posted on 2007-11-14
3
199 Views
Last Modified: 2013-12-16
hi all,
please concern  http://q.softwarelab.net/

it's a sample for image  generation  from text in arabic language for a news site
I've some problems
text characters  in arabic must be connected to each other by some rules it's not like english

(the letter in the start of the word have a certain shape and in the middle of the world have a different shape and in and in the en of the word have a third shape)

that's why i'm saying the text shown in arabic under the title:
here is the text I want to generate as image is the right one

while the text generated as image under the title:
here is the image with the bug in image generation

can you please tell me how to solve this problem? if the problem in the font can you please guide me where to find the appropriate fonts?

best regards
HG




0
Comment
Question by:shang3000
  • 2
3 Comments
 
LVL 14

Expert Comment

by:ygoutham
ID: 20279205
why do a convert??? if you comment the convert line and try again what happens???

//$text= iconv("windows-1256", "UTF-8", $text);

i dunno arabic. but looking at the code i was curious to see the conversion and therefore  the suggestion.  
0
 

Author Comment

by:shang3000
ID: 20279866
here is the result when remove the conversion
http://q.softwarelab.net/test2.php

and the original code at
http://q.softwarelab.net
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 500 total points
ID: 20287146
sorry.  then it seems that i am wrong.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question