Skip to content

Commit

Permalink
Merge pull request #532 from akira-cn/master
Browse files Browse the repository at this point in the history
no default font Arial on android
  • Loading branch information
dingpinglv committed Jul 2, 2014
2 parents f94e605 + 1e14078 commit f43a7e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frameworks/js-bindings/bindings/script/jsb_create_apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ cc.LabelTTF.prototype._ctor = function(text, fontName, fontSize, dimensions, hAl
this.initWithStringAndTextDefinition(text, fontName);
}
else {
fontName = fontName || "Arial";
fontName = fontName || "";
fontSize = fontSize || 16;
dimensions = dimensions || cc.size(0,0);
hAlignment = hAlignment === undefined ? cc.TEXT_ALIGNMENT_LEFT : hAlignment;
Expand Down Expand Up @@ -927,7 +927,7 @@ cc.LabelTTF.create = function (text, fontName, fontSize, dimensions, hAlignment,
label = cc.LabelTTF.createWithFontDefinition(text, fontName);
}
else {
fontName = fontName || "Arial";
fontName = fontName || "";
fontSize = fontSize || 16;
dimensions = dimensions || cc.size(0, 0);
hAlignment = hAlignment == undefined ? cc.TEXT_ALIGNMENT_CENTER : hAlignment;
Expand Down

0 comments on commit f43a7e6

Please sign in to comment.