iphone - How to make a UIWebView show its text with a custom font? -


it looks if font in uiwebview default kind of "times new roman". guess have figure out font apple uses [uifont systemfontofsize:15] ... or there intelligent way it?

how inserting text in uiwebview? assuming setting html can change font either full css, inline css or deprecated font tags.

<html>     <head>         <style>         body { font-family: 'times new roman'; font-size: 15px; }         </style>     </head>     <body>         here text     </body> </html> 

of course tweak style , size appropriately.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -