Display Telugu Text using local HTML file and web view IOS7 - ios

Hi i want to view Telugu font in my iPhone i have used the local HTML file to display the Telugu font so i have copied the some Telugu font using Google translator but its not showing. But i have seen some solutions for the Tamil font in this link in same is there any way to display Telugu font in the local HTML.
Its showing like this.
Thanks...

Before display any custom font that is not supported in iPhone, you need to add this font to ios.
You need to add your Font to yourApp-Info.plist. This answer will help you to do so.

You have to add custom fonts in your project before you use them.
This includes following steps:
Include your fonts in your XCode project
Make sure that they’re included in the target
Double check that your fonts are included as Resources in your bundle
Include your iOS custom fonts in your application plist
Find the name of the font
Use UIFont and specify the name of the font
Moreover refer to this answers on stackoverflow
iOS-Custom Font setting with Fonts specs

Related

How to allow all arabic characters to be shown on UITextVIew?

if i have this arabic text: "لِلَّهِ" it looks very weird only Apple devices.
but if i paste the same exact text for example in a google chrome textfield it shows this (which is correct):
What can i do so my UITextView allows all characters regardless of which language/word it is?
You can always download any font you like and just import it into your app. To do that upload .ttf files to project > register fonts in Info.plist file ("Fonts provided by application")
I always use googleFonts to find suitable font for me
I had to change the font to an arabic font style you can download on the web.

Importing a custom font in Xcode

I am trying to incorporate a custom font in my app. I am using Nova Solid created by Billy Argel.
I imported the font and set it in info.plist. When I set a label to the Nova Solid font it shows up on storyboard as the correct font:
But when I run the app, the font displays as the default font:
Every other font I import works fine, not sure if it's something with these specific fonts by Argel or something I'm doing. I will appreciate some insight/help.
This is my info.plist
There's a chance that the font file isn't added as a target, try inspecting the file and making sure it is a target otherwise the font file won't be distributed with the app.
This is a common issue when the font works in IB but doesn't work in the simulator/on a device.

Custom Icon Font in Swift

I would like to use an custom icon font for my application, so ill added the font "simple-line-icons.ttf" into my info.plist - and now i can choose it from interface builder.
When ill set the text from a label to the unicode text, like:
dateIconLabel.text = "\u{e01c}"
It shows me an icon, but not the icon from the icon set as expected.
Its an colored icon, and i dont use any colered icon sets here.
The font is definitive correct, and the unicode should work too (copied from the original css file).
Something strange is, that when ill print out all fonts for my application, the icon font is not there (but its in my list in IB).
print(UIFont.familyNames())
Any help would be greatly appreciated.
Make sure that the icon font is added to the correct target. When I added the font to my app it was not added to any target. So the icon font was not installed in the app and the system was using a default font.
You could still select the font in IB because you probably installed the font on your mac.
Add the font to the info.plist
use:UIAppFonts (Raw Value) or "Fonts Provided by application" as the key,
and the font name example Icon-Font.ttf
Validate that the font file name and font name correspond by opening ttf in font book

Custom Font Issue in iOS

In my app, I used custom fonts. It works fine for UILabels, etc...
But the Title is cut from top for Button.
"See the S"
What is happening and how can I resolve this??
try setting button.contentEdgeInsets property to align the title within the button, if it is an issue of misligned baseline of the font you can do this
button.titleLabel.baselineAdjustment = UIBaselineAdjustmentAlignCenters
a few steps:
Include your fonts in your XCode project
Make sure that they’re included in the target
Double check that your fonts are included as Resources in your bundle
Include your iOS custom fonts in your application plist
Find the name of the font
Use UIFont and specify the name of the font
detail for this:
http://codewithchris.com/common-mistakes-with-adding-custom-fonts-to-your-ios-app/
thanks!
In my case it was the font file that was corrupted.
Try to open the ttf file in your mac, select the 'S' and see if the frame that appears cuts off the letter.
My solution was to change the ttf file.

Where Can I Find Sprite Kit Available fonts?

I am experimenting with the new iOS 7 SpriteKit.
This line of code is taken from apple class reference and can be found in their sample project as well.
SKLabelNode *label = [SKLabelNode labelNodeWithFontNamed:#"Chalkduster"];
In this line the Chalkduster font is used.
I understand it's a bitmap font but how do I know what other font name I can use to replace Chalkduster?
You can also view the available fonts within Xcode itself by going to your storyboard file. You create a label there, go to the label's Attributes Inspector (the slider icon in the Utilities bar), select Font -> Custom, then scroll through the Family section to view the font list.
And here is how you would use a custom font of your own. Make sure you go through steps 1-5, then you should be able to use your custom font using [SKLabelNode labelNodeWithFontNamed:#"Font Name Here"].
Here is a list of iOS 7 installed fonts
I found that there is a very useful website showing all the available fonts on iOS. It’s iosfonts.com. The website shows how given font looks like, its name and its code name as well as the iOS version when specific font was added.
You can also log all the font names that are available as described here:
How to log names of all available fonts in iOS project.

Resources