Using custom font in a UIWebView

After some Try and Error I have found a reliable way to load custom Fonts with a local CSS.

1. Add your Font to the App…make sure that the file is targeted
properly to the Application

enter image description here
enter image description here

2. Then add your Font to yourApp-Info.plist

enter image description here

3. Run NSLog(@"Available fonts: %@", [UIFont familyNames]); To check which name the font/fontfamily has for the System…

enter image description here

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

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

Leave a Comment