Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 101

jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
04/17/13 05:14 PM (11 years ago)

Change fonts in menu with image

Can I change the font on menu with image? If so could someone assist a non coder.. Using ISO Thanks
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/17/13 07:12 PM (11 years ago)
In WB_cell_menulist.m, find the code that starts with: //set title Change this: [titleLabel setFont:[UIFont boldSystemFontOfSize:titleFontSize]]; To this: [buttonLabel setFont:[UIFont fontWithName:@"American Typewriter" size:titleFontSize]]; This will set the font American Typewriter. You can use any of the iOS system fonts here.
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/17/13 11:18 PM (11 years ago)
Thanks mgoblue Is that standard with any plugin . Say if I want to keep the same font throughout the whole app?
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/18/13 07:22 AM (11 years ago)
Yes, pretty much wherever there is a reference to the UIFont you can change it. Also, I noticed a type above. Should be: Change this: [titleLabel setFont:[UIFont boldSystemFontOfSize:titleFontSize]]; To this: [titleLabel setFont:[UIFont fontWithName:@"American Typewriter" size:titleFontSize]];
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/18/13 08:42 AM (11 years ago)
Thanks worked like a charm
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/18/13 08:51 AM (11 years ago)
How about the title bar? I also went through and Searched the RD Rss feed and couldnt find it but thats ok.
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/18/13 08:56 AM (11 years ago)
Same for the title bar. Anywhere there is a UIFont reference. Here's a list of available fonts in iOS: https://jc-evans.com/blog/2012/07/12/ios-fonts-for-developers/
 
jvalley
Aspiring developer
Profile
Posts: 456
Reg: Feb 16, 2013
Green Bay,Wi
9,360
like
04/18/13 10:22 AM (11 years ago)
ok so I found this under label in the BTviewutilities.m loadingLabel.font = [UIFont systemFontOfSize:16]; Tried this but got a error loadingLabel.font = [UIFont fontWithName:@"Chalkduster" systemFontOfSize:16]; Again this is for the title bar
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
04/18/13 10:35 AM (11 years ago)
size:16 not systemFontOfSize:16
 
lady_di
Aspiring developer
Profile
Posts: 31
Reg: Feb 06, 2013
Geelong, VIC
310
like
10/01/13 03:36 PM (10 years ago)
Hi, I have also tried to change the font however I haven't had any luck as I now have errors coming up. Thinking I may have messed with the coding??? Can you please guide me on this one. This is what I have entered //set title [buttonLabel setFont:[UIFont fontWithName:Oratorstdsize:titleFontSize]]; [titleLabel setOpaque:FALSE]; if(isSelected){ [titleLabel setTextColor:titleFontColorSelected]; }else{ [titleLabel setTextColor:titleFontColor];
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.