如何解决TileMill软件中的“文本面部名称无效值,预期为字体类型”错误?

时间:2019-07-10 07:57:43

标签: label tilemill cartocss

我正在尝试向TileMill项目中的特征添加标签,为此,我使用的是与CartoCSS示例中显示的代码完全相同的代码。但是问题在于,它给我一个错误,提示“文本面部名称的值无效,应使用字体”。

我尝试使用不同的字体系列,并且检查了系统中是否还安装了该特定字体。

#area[zoom >= 2]{
  polygon-fill: #2A7945;
  polygon-opacity: 0.5;
  text-name: [NAME];
  text-face-name: 'Open Sans Bold';   (The error lies here)
  text-fill: #036;
  text-size: 20;
  }

这是我正在关注的link

https://carto.com/developers/styling/cartocss/#text-face-name-string

0 个答案:

没有答案