2011-06-11 66 views
0

我的Google Maps Flash API中的字母間距infoWindow有點奇怪。這些字母間隔很緊密。例如,雙「r」觸摸並且看起來像「m」。有沒有辦法調整字母間距?谷歌地圖Flash API:InfoWindow Letterspacing

var infoWindowSettings:InfoWindowOptions = new InfoWindowOptions(); 
infoWindowSettings.content = theName; 
infoWindowSettings.hasShadow = true; 
infoWindowSettings.hasCloseButton = true; 
infoWindowSettings.width = 200; 
map.openInfoWindow(map.getCenter(), infoWindowSettings); 

回答

0

好的,我有。我在下面添加了letterspacing屬性:

var contentFormat:TextFormat = new TextFormat("Arial", 13); 
    contentFormat.letterSpacing = 1; 


var infoWindowSettings:InfoWindowOptions = new InfoWindowOptions({ 
    strokeStyle: { 
    color: 0x000000 
    }, 
    fillStyle: { 
     color: 0xFFFFFF, 
     alpha: 0.8 
    }, 
    contentFormat: contentFormat, 
     width: 280, 
     hasCloseButton: true, 
     hasTail: true, 
     hasShadow: true 
    });