Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#573 closed defect (fixed)

Improve font matching algorithm

Reported by: waltweltonlair Owned by: waltweltonlair
Priority: medium Milestone: 2.1
Component: General Version: 2.0.0
Severity: major Keywords:
Cc: External ID: 1078042

Description

The FontManager::FindFont method needs to be improved to better distinguish between fonts of the same family.

I discovered the problem after installing XP SP3 which made a small update to the Arial Black font. Now when I specify Arial for my labeling font the FontManager picks Arial Black as the matching font.

The problem has always existed. Both Arial Regular and Arial Black generate the same matching score with the FontManager, but Arial Regular was always earlier in the font list so it won. But after SP3 Arial Black now comes earlier in the list so it wins.

Change History (4)

comment:1 by waltweltonlair, 16 years ago

Status: newassigned

comment:2 by waltweltonlair, 16 years ago

Fixed in trunk with submission https://trac.osgeo.org/mapguide/changeset/3178.

comment:3 by waltweltonlair, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed in branch with submission https://trac.osgeo.org/mapguide/changeset/3181.

comment:4 by zspitzer, 16 years ago

I just compiled this from source (2.0.x branch) on linux and it resolved a similiar font issue.

Note: See TracTickets for help on using tickets.