Problem rendering text in windows

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
rperez

Problem rendering text in windows

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Thanks for the bug report. We're investigating now and will have a patch in the next point release.
Post Reply