Opened 10 years ago

Closed 10 years ago

Last modified 10 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


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 Changed 10 years ago by waltweltonlair

Status: newassigned

comment:2 Changed 10 years ago by waltweltonlair

Fixed in trunk with submission

comment:3 Changed 10 years ago by waltweltonlair

Resolution: fixed
Status: assignedclosed

Fixed in branch with submission

comment:4 Changed 10 years ago by zspitzer

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.