Custom Font not showing in Xcode - ios

I have added the font files to my xcode project and have added it to info.plist
Font File
Info.plist
I have also added the membership
Target Membership
I have also added it to my mac font book
Mac Font Book
The custom font is not showing in font list
Font List
I have also tried using attributed text and I have found the font style, the style is used in the example but not on the app.
Attributed Text not showing in app

Related

Custom Font saying (none installed) in an ios application

i am new to swift and iOS and i am facing an issue with custom fonts provided by the application.
i have added an font to the application but now when i go to assign it to any label or any text it doesn't allow to use custom font option by saying (none installed)
enter image description here
Add fonts to your project.
Then select target membership to yes.
Go to info.plist add key "Fonts provided by application".
4.select font from custom and apply it.
for more info please check this link https://developer.apple.com/documentation/uikit/text_display_and_fonts/adding_a_custom_font_to_your_app

Setting up my downloaded font to bold

I have a label displaying a title in a view, I'm trying to setup my font to bold, I've downloaded and installed this font, it isn't a default font like some fonts that are included in xCode I've tried with some methods but isn't work just work with the default fonts so I want to know if there's a method that I could work with to make this possible, the font that I downloaded and installed is "Gotham Rounded
Thanks
Make sure that your TTF file is added as an embedded resource in your project and its entry is also added in .plist file under supported fonts key Fonts provided by application.
Also your TTF should have the bold interface as well to support bold font display.

Why does Xcode have fonts that do not show up in UIViews in xib or storyboard?

Trying to style my UILabel, in Attributes Inspector I set the font of my attributed text to Apple Chancery. In the preview window it shows correctly, but in the UIView itself the font is not applying. And when I try running the device just in case, the font still does not show. If I change the font to something else, this "something else" shows. So is there a known problem with iPhone simulators and devices not showing certain fonts that are in fact available in Xcode? I am using Xcode-6
Xcode displays fonts found in the Mac, not on the actual iOS device. Before selecting a font, you should make sure it is available on iOS devices.
Sites such as http://iosfonts.com/ or even trial and error can help.
Apple Chancery is only present in Mac OS X, but you can load ttf programmatically (see Google for the ttf) :
(I don't know if you are allowed to use this font via ttf, see the font license)
Copy the ttf to your Xcode project
Link your UILabel to your source code
Then, set custom font :
[myLabel setFont: [UIFont fontWithName:#"Apple Chancery" size:15]];

Adding Custom Font to Font List in XIB

How can I add a custom font (by custom i mean, the font that dont exist in xcode) in font selector which comes through XIB?
I have added the font to the bundle and added it to the plist. I can use the font programmatically but I want to use it through XIB.
Xcode uses the fonts installed on the computer. Add the font to your ~/Library/Fonts folder or double click the font and install it using Font Book.
The font selector in Xcode also allows you to type directly into it. I imagine you can type whatever font you want here and it will work at run time if the font is found, but to use it during development I'm pretty sure you need to have it installed.
If you're looking for a WYSIWYG preview of a custom font in Interface Builder, this isn't possible (even in Xcode 5).
Like you mentioned, you may continue to set the font programmatically.

Custom font from Google Fonts doesn't work in iOS app

I'm trying to install a custom font (Open Sans from Google Fonts) and I did everything as some tutorials say and no success. I followed these steps and I can't use the custom font:
http://www.practicalentrepreneur.com/how-to-use-a-custom-font-in-xcode-4-5-ios-6-0/
I imported the .tff file to my project
Associated the file with my target
Added the reference in the plist file
Also added the font in the Font Book app
Clean, build and run
When I try to list the available fonts with this command:
NSLog(#"fontFamilies: %#", [UIFont familyNames]);
I don't get my imported font family printed.
I already tried some tips from these questions but nothing works:
xcode custom ttf font not working
Added custom font not working in Xcode
OpenSans font not working in iOS simulator
Custom font in a storyboard?
Thanks!
In the plist file you should insert the font with the name provided in the Font Book app.
In my case, the name of the font in the app is Chalet Comprime Cologne Sixty, but when i call it in code i have to call it like this
label.font = [UIFont fontWithName:#"ChaletComprime-CologneSixty" size:24.0];
So...try looking at the name of your font in the Font Book app.

Resources