I imported the Lato fonts from Google fonts. This is how I imported the fonts. This is how the preview looks in Xcode. What is happening?
Related
I am using xcode 10.1, recently I have updated mac os from 10.13.6 to 10.14.2 and after that the installed fonts are not available from storyboard; When I change the type to attributed text, installed fonts is showing in font box but in plain text only the system fonts are showing;
Is any way to fix this issue?
Install the fonts on your system first by double clicking it, or opening your FontBook app (double clicking should open the FontBook app)
Add font(s) to application bundle
Restart Xcode
:) hope this helps
I'm trying to use Ionicons with Android and NativeScript. I've included the ionicon.ttf file and my set font-family: "Ionicons". It's working on iOS, but not Android.
Android registers font names differently than iOS. For Ionicons, the font name is ionicons.ttf, so the correct CSS is font-family: "Ionicons", ionicons.
I just download and installed the SF fonts. I see them in Sketch and the Font Book but not Xcode (Interface Builder). I've restarted Xcode but the SF or San Francisco fonts still do not show up in the text tool.
Does anyone know if something special is required to get them working in Xcode?
OS X 10.11.1
Xcode 7.1.1
All you have to do is to add your (.ttf) file to resources. You can drag and drop it and then a dialogue box will appear after that check the checkbox for your application and you should be set. Then add the font to Targets >> Build Phase >> Copy Bundle Resources and thats it.
My Xcode fonts went missing.
When i try to edit anything via storyboard i can't choose any other font than system. The custom fonts section is not available, it shows "custom (none installed).
I tried restart, build clean but still nothing.
Other text editors like word can access my fonts properly but for now Xcode somehow isn't. What might be the problem and how to fix it?
I just tried to edit some older phone application and it allows me to use custom fonts, but when i'm editing my new apple watch then this problem appears?
Or does apple take out custom fonts capability on new Xcode build, and we cant use any custom font anymore in apple watch apps?
I am creating a Cocoa app, and when I import #2x images into my project, no image shows up in the app at all. I am using a non-Retina MacBook Pro.
If I have an image, such as image.png, it shows up correctly.
When I import image#2x.png into the project, no image shows when the app is run (even the normal image).
When I change image#2x.png to image#2xx.png (or some other name), the image shows up again. However, now I can't show the image on a Retina device.
Am I not handling Retina images correctly?
You need to include the image.png AND the image#2x.png in your project. Also make sure that when you load the files you do not include the .png extension.