0

I want to display HTML with the Malayalam font in my webview. If I install that font in my mac and load it in any browser, I can see the text in that font. Can I install a font on an iOS device and load HTML with that font in my webview?

2 Answers2

0

You have to include the font as part of your bundle resources and then specify the font name in the Info.plist file under Fonts provided by application property.

Pradeep K
  • 3,671
  • 1
  • 11
  • 15
0

Try to load custom Fonts with a local CSS with the following steps

  1. Add your Font to the App...make sure that the file is targeted properly to the Application
  2. Then add your Font to your App-Info.plist
  3. Run the following code to check which name the font/fontfamily has for the System.

    NSLog(@"Available fonts: %@", [UIFont familyNames]);

  4. Copy that name and use them in your CSS as follows...@font-face is not needed

    body { font-family:"Liberation Serif"; }

Sreeraj VR
  • 1,524
  • 19
  • 35