Smartface text font type selection - smartface.io

I have imported from "Font Import Wizard" additional new font but although i select the text new imported types of font it displays default font type.
Some additional setting exist?

It was due to simulator. when you export xcode everything is ok.

Related

How can i add different custom font to different target in iOS

I am trying to add 3 different custom font to 3 different target how can i add that font. one storyboard have 3 labels which has bold, semi-bold, regular font weight with different size. i have added ttf font file in each target info.plist but how can i set font to each lable ???
1.check the font file is added to the projectworkspace
2.click the attributes inspector and you will find text click dropdown and choose attributed and you've to choose the font you added in your project and Finally again change text to plain

Adding custom font error with Xcode 13 with ("Fonts provided by application")

I followed nearly every tutorial and stack overflow questions and still couldn't get my fonts to work.
I downloaded Montserrat font from Google fonts
I added the folder to my project with Copy items checked and targets checked
I added the fonts I want under "Fonts provided by application" and added the names
I still cannot find and use my font after printing the family names out
Any ideas what could go wrong?
Do you check target membership at each font?
If you checked, init font with UIFont(name: "montserrat", size: size)!
You should use "PostScript name" that can be obtained by installing the font on the mac and obtaining information specifically about the font in question in "Font Book"

SpriteKit - font not found

I am developing for macOS and I would like to use a custom TTF font with SKLabelNode in my SpriteKit project.
I did search the web how to do it and every place I can find describe the following steps:
Add the font to your app bundle
Add the "Application fonts resource path" key to Info.plist with
"Fonts" as the value
Add the "Fonts provided by application" key to Info.plist and add name of the font file
Create a Copy build phase with "Resources" as the Destination and
"Fonts" as the Subpath
Drag/Drop the font to the Copy build phase
In Finder right-click on the font file and select the "Get Info" menu option.
From the "Full Name" field, copy the font's name
I have done everything from the list above and I try to set the font inside the didMove() method programatically like so:
titleLabel = self.childNode(withName: "TitleLabel") as! SKLabelNode
titleLabel.fontName = "Lobster Regular"
However, when I run it, I get the error "Lobster Regular" font is not found. I double checked and this is the name of the font. I also tried to use the file name but that also did not worked.
I did also follow the official documentation.
The problem is however, the documentation suggest that after adding the font to the Xcode project and include the keys in info.plist, I should be able to assign the font to labels using interface builder. But in my case, the font does not show up inside interface builder.
If I add the font to Font Book, it works, I can use it both programatically and inside interface builder but I would like to include the font with my app/game instead.
What am I missing? Is there any other properties in Xcode I should check?
Thank you.
It seems in my case the solution was to set the "Application fonts resource path" key to an empty string, just leave it blank the value field to automatically pick up all fonts I have included with the project. Entering a . as value also seems to work and able to set the font programatically this way.

Using a custom font in Xcode

I'm trying to use a custom font (Sassoon Infant) in Xcode. Despite looking at the numerous posts here on this issue, i haven't been able to resolve the problem.
These are the steps i have taken so far.
Added font to resources
Added font to Font Book
Added SassoonInfantCom-Regular.ttf to Fonts Provided by Application
Tried using fontWithName:#"Sassoon Infant Com", the name in Font Book
Also tried just #"Sassoon"
The font name is not showing up in IB either under the dropdown font menu. The above seems to work for most people but i can't get it working. Anyone have any ideas?
Remove the extension .otf / .ttf from the file and the plist.
Also make sure you are editing the correct plist file for the "Fonts provided by application property"! I spent two days trying everything to make some custom fonts work. Then I realised I was editing the APPTest-info.plist (which is in the resources folder of the Tests folder in XCODE) instead of editing the APP-info.plist file!
In my defence, both files are really close to each other in the files navigator in Xcode... ;-)
I just added it into the bundle and did this
myLabel.font = [UIFont fontWithName:#"MyCustomFont" size:19];
MyCustomFont being a .ttf file.
Hope this helps.
Make sure that the font is added to your target. Select the font and check the target membership in the left Xcode sidebar.
Make sure that you got the correct font name. Open the font in "Font Book" and see its name.

Install and use new font in iPhone Interface Builder?

I need to install a new font and use it iPhone.I did the following steps:
Install a Font in Fonts Folder.
Add Font in iPhone project file. test.otf.
Added font name "Fonts provided by application" in Plist file.
I check this font TextEdit. It is working fine, it is not affect in Interface Builder.
If i double click the Label to edit text, font is assigned and displaying with font but it is not displaying in normal mode.
It will not displayed in interface builder. You need to assign that font by code. Something like below.
[UIFont fontWithName:#"Your Font Name" size:20];
Hope this help.