Ticket #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
Note: See
TracTickets for help on using
tickets.
