I have found this example: https://github.com/k0sukey/TiIconicFont
On Android it works great, but I can not see the fonts on the iPhone emulator. Does anyone has an idea where the problem can be? I have downloaded the .ttf from the sources and put them in Ressources/fonts/ .
Also I try to put the .ttf in the Ressources/iphone/fonts, but the same result. There are coming empty squares.
Thanks
Nik
Related
I am using Noto Serif Medium font. Everything works as it should, when I launch the app with a fresh start.
The issue happens when I background the app and open anything that has not been rendered yet.
The classic "Unrecognised font family" error appears.
This error happens on iOS emulator and iOS physical devices.
I have checked targets, resources and Info.plist file in Xcode. Everything is there. Still this error happens.
I suspect that there could be an issue with the .ttf file itself, as you're not able to get this font from Google Fonts directly, even though it is a free to use font.
Is there anyone that can provide a lead to a solution?
This one was a dozzie.
Turns out, that it shouldn't have been working in a first place. It was a classical iOS font name issue. I don't know why it was working when the app wasn't backgrounded, but hey atleast the problem is solved.
Just use the PostScript name, not the real name tag in iOS fontbook.
I have used to 'chalet' fonts in react-native app. This font doesn't work in 'iOS build', but it works fine in Android build. I have tried with other fonts , but it's works fine in both the builds iOS and android.
Can you please check this link for Font-family .ttf files.
If you guys found any solution, please help me !!
Usually font name is different for iOS and android,
Please follow below link to know the name of font for iOS,
https://medium.com/react-native-training/adding-custom-fonts-to-react-native-b266b41bff7f
and apply font according to platform name
After updating to new Google+ sdk get an error NSBundle(GPP3PAdditions) gpp_registerFonts]_block_invoke() Unable to load font: Roboto-Regular
If someone got the same?
thanks
Add "GooglePlus.bundle" file to your project from Google iOS Sdk.
Yes it is helpfull thank you very much!!!
Also if anyone using CocoaPods please see here it also will help
GooglePlus with CocoaPods linking error
add ${inherited} to Other Linker Flags
Here is the solution.
Get the fonts from finder and copy files to your project. Then in your Info.plist file make changes like
After this click on build phases make sure you included font files(Roboto..) over there.
For more clarity check it..How to include and use new fonts in iPhone SDK?
I hope it helps someone.
How can I know "Helvetica Neue Lt Std" font is installed in my ipad 7.1 simulator. If it is not installed , how can i install it?
use this code and see console while debug you will get all the font family which is there in your ipad
NSLog(#"%#",[UIFont fontNamesForFamilyName:#"Helvetica LT"]);
if font is not there then you add font name in your plist file like displayed in attached screenshot and add font in your projects resource Directory
You can not install custom front to iOS device or simulator. Please correct me if I am wrong.
But you can use custom fonts in your app.
I have a web page using css and javascript and also this webpages have tiff and gif images. When i loaded this webpage locally in ipad it is not working as i can only see white page and not my images. But when i moved this folder to one of the server and when i tried to load this website remotely. I got this error:
"_CGImagePluginInitGIFmalformed GIF file (1024 x 748)"
But It is working properly. So i was wondering if there is any problem using the tiff and gif images locally?
Is it possible that there's really a error in the GIF?
If you're able to open the GIF in an other application, try to re-save it. It will probably fix the malformation. If it doesn't work try to save it in an other format. (Try OS X's Preview, it's good for these kind of things...)
The problem was with the javascript files which i moved to the copy Bundle Resources from Compile Sources.