Page 1 of 1

Problem rendering text in windows

Posted: 2006-06-20T23:53:05-07:00
by rperez
Hi,
I am running ImageMagick 6.2.8-0.
in magick/nt_feature.c in NTLoadTypeLists() there is an insertion of the fonts to the splay tree as read from windows registry.
the problem is that before the insertion:

status=AddValueToSplayTree(type_list,ConstantString(type_info->name),
type_info);

there is first an update of the family:

CopyMagickString(buffer,value_name,family_extent-value_name +1);
type_info->family=ConstantString(buffer);

this cause Arial to be inserted to the tree as family="Arial"
and Arial Bold as family="Arial " (it takes the <space> after the Arial as well).

when rendering a text with, for example, Arial Bold, there is only one node in the tree with family "Arial" (the rest are with "Arial<space>") and there is no exact match (found Arial but not Arial Bold).

I sent a question in the developers forum yesterday and this was the problem.

Ronen.

Posted: 2006-06-21T10:19:20-07:00
by magick
Thanks for the bug report. We're investigating now and will have a patch in the next point release.