0

我的 Google Maps Flash API infoWindow 中的字母间距有点奇怪。字母间距很紧。例如,双“r”触摸,看起来像“m”。有没有办法调整字距?

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

1 回答 1

0

好的,我有。我在下面添加了 letterpacing 属性:

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
    });
于 2011-06-11T21:36:54.430 回答