rdkcentral / Lightning-SDK

SDK for Lightning framework
Apache License 2.0
130 stars 69 forks source link

Feature/multiplefontsupport #204

Closed sandeep-vedam closed 3 years ago

sandeep-vedam commented 3 years ago

Following are the changes in this PR :

  1. Added Multiple font support.
  2. User need to add fonts in getFont method of application as below
    • for a font that has single src : { family: 'Great Vibes', url: Utils.asset('fonts/GreatVibes-Regular.otf') },
    • for a font has that has multiple sources : family: 'ChunkFive', urls: [Utils.asset('fonts/ChunkFivePrint.otf'), Utils.asset('fonts/Pacifico.ttf')],
  3. This fix is backward compatible.