[mapguide-trac] #573: Improve font matching algorithm

MapGuide Open Source trac_mapguide at osgeo.org
Mon May 19 19:08:26 EDT 2008


#573: Improve font matching algorithm
------------------------------+---------------------------------------------
   Reporter:  waltweltonlair  |       Owner:  waltweltonlair
       Type:  defect          |      Status:  new           
   Priority:  medium          |   Milestone:  2.1           
  Component:  General         |     Version:  2.0.0         
   Severity:  major           |    Keywords:                
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.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/573>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list