Imager - Re: Imager and UNICODE characters

Posted on Wed Oct 25 16:05:11 2006 by llhca in response to 3282 (See the whole thread of 6)
Re: Imager and UNICODE characters

Thank for your quickly answer.

Now it's clear.

I tested the version stemming from SVN.

I added it to the version 5.8.7-5 of PERL, under CYGWIN version: 1.5.21-2.

Buid with GCC version: 3.4.4-1.

OS: Windows 2000 professional SP4

Generate bmp picture with Asian or Arabic UNICODE characters, into a text string, works fine.

However, the BBOX module return an erroneous value with the methods "descent" and "ascent".

see details into the folowing line:

Initial version: file name : oldversion.bmp Has Win32 fonts Text: Hello Box ! pour le 'fun' Size of text: 36 bbox->start_offset (or neg_with, or left_bearing: 3 bbox->pos_width (or end_offset): 361 bbox->global_descent: 8 bbox->global_ascent: 33 bbox->descent: -7 <=============== bbox->ascent: 26 <=============== bbox->advance_width: 361 bbox->total_width: 358 bbox->font_height: 25 bbox->text_height: 33 <=============== bbox->right_bearing: 2 bbox->display_width: 356 image->getwidth: 362 image->getheight: 39 ---------------------------------------------- new version: file name : newversion.bmp Has Win32 fonts Text: Hello Box ! pour le 'fun' Size of text: 36 bbox=>start_offset (or neg_with, or left_bearing: 3 bbox=>pos_width (or end_offset): 361 bbox=>global_descent: 8 bbox=>global_ascent: 33 bbox->descent: 8 <=============== bbox->ascent: 33 <=============== bbox=>advance_width: 361 bbox->total_width: 358 bbox=>font_height: 25 bbox->text_height: 25 <=============== bbox->right_bearing: 2 bbox->display_width: 356 image->getwidth: 362 image->getheight: 31

llca

P.S.:

I apologize for the delai of the answer but I am boeotian "Rooki" with those processus

;-)

Direct Responses: 3350 | Write a response