I use UIWebView to display search test in Myanmar font like this
NSString *googleText = @"မြန်မာဘာသာ";
NSString *googleLink = [NSString stringWithFormat:@"http://www.google.com/search?hl=my&lr=lang_my&q=%@",
[[googleText stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding] stringByReplacingOccurrencesOfString:@"+" withString:@"%2B"
]
];
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:googleLink]]];
This is the result
Is there any way that we can inject custom font into UIWebView when load content from a server?
I'm not load html files in my bundle, so I can't use custom font in CSS like this question or this one
Please help! Thanks!