Font not showing in Xcode Attribute Inspector - ios

I'm using Xcode ver 13.2.1 and
Hi, I have downloaded Poppins font from fonts.google.com and the problem is it's not showing in the font family dropdown(refer to the attached picture). I have declared it in my Info.plist, Project Target and still the problem occurs

This is expected behavior. The storyboard editor knows nothing of any custom fonts you may have installed for the app.

Related

Custom font none installed - Xcode 11 beta

After installing the new beta xCode. The custom font set in an existing project does not work. When opening the storyboard file, it says as shown in image below
After clocking ok, I'm not able to choose custom font from the attribute inspector.
It was working fine with xcode 10.2. This issue occurs only on Xcode 11 beta
I had the same issue after I switched system language, and it was fixed by restarting the system and then restarting Xcode.
I've also had this issue.
I had to change the text style to attributed, pick the font, then change back to plain.
2022 Update!
You don't need to restart your system. Just perform these simple steps to solve this issue.
Open Spotlight (Cmd + space) and type Font Book
Drag-Drop your font into the Font Book.
Restart Xcode and it'll work fine.

Xcode won't show my textfield placeholder text in storyboard

When I assign my textfield's placeholder value in the attributes inspector, it won't show in the storyboard, however, when I run a simulator of the application is is there. Is there a setting I'm missing? I just want to be able to see the placeholder text in the editor. Below is a screenshot of xcode and one of the simulator
I am having the same issue, fortunately I run a MacBook with Xcode 9.1(9B55) and an iMac with Xcode 9.2(9C40b)
On my MacBook all placeholders show up but on iMac they don't.
So the issue is with xCode 9.2 running High Sierra.

custom font shows on storyboard, but not on simulator, device

first time using SO to ask a question after lurking for so long.
I have added a custom font for some UITextFields and UITextViews in the Storyboard....
screenshot of storyboard
...but the fonts are not showing on the Simulator, nor the actual device (iPad 2, iPad Mini3).
screenshot of simulator
Please advise on how you got through this, or any additional information that you may need. Thanks! Running XCode 7.3.1 on El Capitan 10.11.6.
The iOS Application in development is set for running on iOS 9.3 and above.
You should add custom fonts to your application folder (TTF/OpenType) and then, modify the application-info.plist file. Add the key "Fonts provided by application" to a new row
It supports TTF and OpenType fonts both. One caveat is that it loads and parses all fonts in the startup of your app, so it will slow down the initial load time.
You also have to add the fonts to the "Copy Bundle Resources" in the Build phases.
Check that your font file's (exp. Chewy.ttf) target is set to the app target.
Steps:
select the font file
Check target membership in File inspector
Add your custom font into your project. i.e. Dragged the font file(ocrb.TTF) into XCode project.
check below link you solve your issue : Custom Font issue
Try adding you font name into your info.plist with full path.
i.e.: fonts/Arial.ttf

Xcode custom font not showing in app

I have downloaded Open Sans font and added all the .tff files into my Xcode project, and have checked the checkbox in "Target Membership" pane for each file. I have added the UIAppFonts key and values in Info.plist, and I am sure that the values are typo-free. Plus, the .tff files are added to "Copy Bundle Resources", and the custom font is showing up in Interface Builder. And then I changed the font of all the labels to Open Sans in the Interface Builder (no code).
But when I run the app in the simulator, all the labels and buttons are showing the system font in ultra small sizes, like this:
One thing to note is that I am using Xcode 7 beta 5, and the app's Base SDK is iOS 9.
But why is there this problem? Is it a bug? Thanks!
Check That fonts inside the proyect are part of the target.
Select fonts, verify the property Target Membership for your app is checked at the right in File Inspector.
That solved the problem for me:
Blip, here's a photo of what I did in an empty "Single View" project. And, I could see the font on sim and IB editor. Anything look different for your project? Maybe recreate the basics in a new project, just to double check? All of my notes on the image were associated with my original thoughts...just use them for reference as you double check things.
I recently encountered this problem too. But it only happened for one font-style of a font-family, the others worked fine.
I could only solve it by using this font in a button, then the font was also available for other controls such as labels or the large title.

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]];

Resources