Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

open sans regular font not working as expected in iOS 7

Tags:

ios

fonts

I'm new to iOS programming .. trying to use fonts in my application. While doing so I'm stuck at one step. I have downloaded Google's Open-Sans family fonts. Except the Open-Sans Regular, all fonts are working fine.. This is driving me crazy now ..

I have followed all the steps which are required to add a font into the project's directory.

like image 619
Rajesh Avatar asked Dec 01 '22 18:12

Rajesh


1 Answers

It's either:

  1. Not included in the target (click on OpenSans-Regular.ttf and check if target membership includes your app)
  2. Not included in Info.plist under Fonts provided by application
  3. Font name misspelled (for regular use [UIFont fontWithName:"OpenSans" size:size];, without "-Regular" par or spaces between open and sans)
like image 183
paxx Avatar answered Dec 04 '22 10:12

paxx