Projects > cpp > Issues > Bug #3023

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

CCLabelTTF setFontName overwrites the default font

Bug #3023 [Closed]
kfikani 2013-10-21 21:05 . Updated over 10 years ago

Hey, I’m having an issue with CCLabelTTF where once I create it with a font name different than the default one “Marker Felt.ttf”, all my text (including the labels using “Marker Felt” as font and the new created labels) starts using the new font. As if the setFontName overwrites the default one.

WenHai 2014-10-01 06:14

@kfikani You should replace 'setFontName' with 'setFontNameObj'. 'setFontName' is a static methond,which is using for set the default font name of 'MenuItemFont'.

WenHai 2014-10-01 06:28
  • Description updated (diff)
  • Status changed from New to Rejected
walzer@cocos2d-x.org 2014-10-08 02:54

Redmine issue system is closed, we are using github issue system instead.

This issue was moved to https://github.com/cocos2d/cocos2d-x/issues/8236

Atom PDF

Status:Closed
Start date:2013-10-21
Priority:Low
Due date:
Assignee:-
% Done:

0%

Category:android, ios
Target version:-