I'm working on an iPhone application that use UIWebView which load xhtml files the html file could include css file that use custom fonts, but it's look like that the web view doesn't support custom fonts since it doesn't render the custom font in the css file
example: xhtml file:
<head>
<link href="../Styles/p1.css" rel="stylesheet" type="text/css" />
</head>
<body>
<p class="line1">تجريب</p>
</body>
</html>
css file:
@font-face {
font-family: "AHRAM";
font-style: normal;
font-weight: bold;
src:url("../Fonts/andlso.ttf");
}
p.line1 {
font-family: "AHRAM";
}
any suggestion? thnx in advance :)
andlso.ttf
) that your app downloads as part of a zipped "book", then I don't think that'll work—I think you'll have to bundle the font into your compiled app, and then use @TomSwift's advice below to put the font into use. (In other words, your app has to have all the custom fonts it intends to use built into the app at compile time.) – Scott Forbes