#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 , 17 years ago
Status: | new → assigned |
---|
comment:2 by , 17 years ago
comment:3 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed in branch with submission https://trac.osgeo.org/mapguide/changeset/3181.
comment:4 by , 16 years ago
I just compiled this from source (2.0.x branch) on linux and it resolved a similiar font issue.
Fixed in trunk with submission https://trac.osgeo.org/mapguide/changeset/3178.