![]() ![]() If you don’t want to download this typeface and use it just for one time then this font also has a font generator that helps you to create your designs online without any payment. It has the perfect display texture style that can be utilized for headings, headlines, book titles, banners, posters, invitation cards, etc. So, you can use this font as a replacement for those typefaces. ![]() It has also some alternative text styles.īut in our research, gotham medium font and Raleway Font have the most similar personalities with this font. This font style is perfect to create business cards, posters, articles, presentations, website body text and headings, invitation cards, etc. Label.After that font style has become so famous and started to get demand by many designers and companies. That’s why going to use the little code we use before to find the system’s font name : NSString *family, *font Īs you can see, font name is : Gaban Step 5 : Use your new font ! UILabel *label = initWithFrame:CGRectMake(0, 100, .width, 150)] In fact, the font name may not be what you expect. This step is important, because many people just copy/paste the name of their fonts. In "Supporting Files" folder, open ist file.īy right clicking on the view, add a new row called "Fonts provided by application". Step 3 : Include your font in your application plist Find your font, select it and click on "add" button : If your font isn’t there, add it manually by clicking the "+" button. Go to your project -> Targets -> Build Phases -> Copy bundle Resources Step 1 : Include your font to your projectĬreate a "fonts" folder in "Supporting Files" folder and drag’n’drop your font (ttf or otf) to your folder :īe sure to find your font in your ressource! ![]() In this example, I am using the font “Gaban font” : How to add your own font Using interface builder You can affect it to your UILabel, UITextview, etc : UILabel *customLabel = initWithFrame: CGRectMake(0, 0, 320, 44)] NSString *family, *font įor (family in [UIFont Family: family) For each font family, it'll list all the font names known by the system. To get font’s real name, you can use the following code. Let’s see how to use Apple supported fonts, but also how to add your own custom font. ![]() Like colors or images, typography is also an important part of design and can really improve your app. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |