How to load google fonts into chrome packaged apps without download?

前端 未结 3 1603
野的像风
野的像风 2021-01-03 03:36

How is one supposed to load google fonts, Do I really have to download and package every font I use with my app? I\'m trying to avoid packaging the fonts since they are so m

3条回答
  •  孤城傲影
    2021-01-03 04:34

    You should be able to just modify your manifest's content security policy to allow from the google font site like so:

    "content_security_policy": "script-src 'self' http://fonts.googleapis.com; object-src 'self'"
    

    See the similar question here: Google Chrome Extensions with Typekit Fonts

提交回复
热议问题