简体   繁体   中英

Font face usage in mobile native application

@font-face {
  font-family: "Frodo Simplified Italic";
  src: url("../resources/FrodoSimplified_It.ttf");
}

A HTML5 application that loads in an iframe of a webview uses the above CSS statement. The fonts specified in the statement are made available in the application. I mean the ttf file is stored under the resources of the application. For example, in iOS it would be stored in the Resources folder of the application XCode project.

Now, will the src attribute request the server to fetch the fonts ttf file, even if it was made available to the app locally or will it use the local fonts?

I need the PhoneGap application to use the local ttf files on iOS and Android platforms.

Look at here . The guy loads a remote html and uses local images and scripts.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM