ios - CCLabelTTF universal device issue -


i have cclabelttf on ccnodecolor scroll across screen. problem looks perfect on ipad mini,iphone 4,5,6 , wrong on iphone6+,ipad air, ipad retina. i've changed contentsizetype , nothing changed. current font size 15.0f, if lower 5.0f work correctly(but small). odd if change font 25.0f wont work on device. don't know contentsize before hand because based on length of nsstring. can done in spritebuilder? using spritebuilder other aspect of app. using lastest cocos2d version. below images , code:

self.tickerone = [ccnodecolor nodewithcolor:[cccolor redcolor]]; self.tickertwo = [ccnodecolor nodewithcolor:[cccolor redcolor]];  self.datasourcearray = [self.datasource setdatasourcearray];  nsstring *stocktickerstring = [self.datasourcearray componentsjoinedbystring:@" |  "];  self.tickerone.positiontype = ccpositiontypenormalized; self.tickerone.anchorpoint = ccp(0.5f,0.0f); self.tickerone.name = @"tickerone";  cclabelttf *tickerlabel = [cclabelttf labelwithstring:stocktickerstring fontname:@"arialmt" fontsize:**15.0f**]; tickerlabel.positiontype = ccpositiontypenormalized; tickerlabel.anchorpoint = ccp(0.5f,0.5f); tickerlabel.position = ccp(0.5f,0.5f); tickerlabel.name = @"tickerlabel1";   self.contentsizetype = ccsizetypepoints; self.contentsize = cgsizemake(tickerlabel.contentsize.width*1.5,tickerlabel.contentsize.height*2); self.tickerone.contentsize = self.contentsize;  [self addchild:self.tickerone]; [self.tickerone addchild:tickerlabel z:10]; 

this noticed in debugging area. i'm totally lost stuff

opengl error gl_invalid_value detected @ __28-[cctexture setantialiased:]_block_invoke 428 opengl error gl_invalid_value detected @ -[ccgraphicsbufferglunsynchronized commit] 179 

image: ipad retina label font size 15.0f enter image description here

image: iphone 6 label font size 15.0f enter image description here

image: iphone 6 label font size 25.0f enter image description here


Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -