0

我正在尝试让自定义字体在 Nativescript 中工作,并将它们放在根目录下的 src/fonts 文件夹中。我已经查看了关于 SO 的其他问题,但没有解决,css 在下面,它是仅用于操作栏标题的显示字体,未在其他任何地方使用。

  @font-face {
  font-family: 'Trade Winds';
  font-style: normal;
  font-weight: 400;
  src: local('Trade Winds'), local('TradeWinds'),
       url('src/fonts/trade-winds-v8-latin-regular.ttf') format('ttf'), /* Safari, Android, IOS*/
}
.action-label {
font-family: 'Trade Winds', 'trade-winds';
font-size: 28px;
font-weight: bold;
color:blue;
}

have also tried variations of the path but not working. Only testing in Android at the moment. Thanks
4

0 回答 0