iOS download font error when have weak network such as flight-mode -


from ios6 can dynamic download font apple. downloaded example code downloadfont demo. , found weird.

firstly, using wifi network, downloaded font in list , show correct font word successfully.

secondly, shut down network flight-mode. return project.

thirdly, selected 1 font such "dfwawasc-w5", found log in console of xcode that

2014-03-10 17:14:36.840 downloadfont[2946:1807] still couldn't match <ctfontdescriptor:    0x16547750>{attributes = <cfbasichash 0x165588e0 [0x3a073ae0]>{type = mutable dict, count = 1, entries => 1 : <cfstring 0x3a0efd24 [0x3a073ae0]>{contents = "nsfontnameattribute"} = <cfstring 0x9bfbc [0x3a073ae0]>{contents = "dfwawasc-w5"} } >} 

and text didn't use "dfwawasc-w5" font system font. select other font had downloaded before such "stlibian-sc-regular", show correct font. after reselect font "dfwawasc-w5" didn't show correctly, got correct font "dfwawasc-w5".

i don't know why. did got same weird situation? thanks!

the downloading of font(ctfontdescriptormatchfontdescriptorswithprogresshandler) seems work when wifi internet connection available.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -