axmol/cocos2dx
Darragh Coy df3c449b4f Fix for loading custom fonts on iOS when referenced from a CocosBuilder CCB file
Fix up how fonts are loaded in Cocos2dx for iOS to work transparently with custom font filenames/paths such as 'MyCustomFont.ttf' or 'fonts/MyCustomFont.ttf'. Referring to fonts by these paths would be OK on Android but can't be used on iOS since fonts must be referred to by family name on iOS; we must use 'MyCustomFont' when referring to that particular font in both examples on iOS. Hence add the code to strip out the folder path and extension on iOS so that the font path 'MyCustomFont.ttf' and 'fonts/MyCustomFont.ttf' can be used transparently across all platforms. This is required especially in the case where we have custom fonts being referenced from CCB files, since CCB files store the font names with the .ttf extension included.
2013-03-04 15:32:24 -08:00
..
actions issue #1686: invoke sceneOrder() in CCTransitionScene::initWithDuration() 2013-03-01 15:30:40 +08:00
base_nodes issue #1686:use correct values to initialize CCNodeRGBA member variables 2013-03-01 16:14:10 +08:00
cocoa issue #1687: Moving the global function( ccFileUtils_dictionaryWithContentsOfFileThreadSafe, ccFileUtils_arrayWithContentsOfFileThreadSafe) to the CCFileUtils class. 2013-02-01 18:48:44 +08:00
draw_nodes issue #1686: sync to CCLayer 2013-02-27 09:38:30 +08:00
effects issue #1686: sync to CCLayer 2013-02-27 09:38:30 +08:00
include Add new port: Native Client 2013-03-02 12:15:24 -08:00
kazmath Add new port: Native Client 2013-03-02 12:15:24 -08:00
keypad_dispatcher Minor English Spelling Corrections. A few grammar corrections. 2012-09-17 00:02:24 -07:00
label_nodes issue #1686:fixed a logical error in CCLabelBMFont 2013-03-01 18:15:20 +08:00
layers_scenes_transitions_nodes issue #1686: invoke sceneOrder() in CCTransitionScene::initWithDuration() 2013-03-01 15:30:40 +08:00
menu_nodes issue #1686:synchronize CCMenu.cpp 2013-02-28 10:15:09 +08:00
misc_nodes issue #1686:synchronized RenderTexture 2013-02-28 16:35:42 +08:00
particle_nodes fixed #1686:finish updating 2013-02-28 11:55:36 +08:00
platform Fix for loading custom fonts on iOS when referenced from a CocosBuilder CCB file 2013-03-04 15:32:24 -08:00
proj.blackberry issue #1712: Updating project setting for blackberry. 2013-02-17 16:26:08 +08:00
proj.ios fix compile error when run xcode on case-sensive file system. 2013-03-02 18:15:05 +08:00
proj.linux fixed #1753: Adding ccUTF8.h/.cpp for MAC, LINUX and MARMALADE port. 2013-02-28 09:44:37 +08:00
proj.mac issue #1686:fix some compiling error 2013-03-01 09:51:42 +08:00
proj.marmalade fixed #1753: Adding ccUTF8.h/.cpp for MAC, LINUX and MARMALADE port. 2013-02-28 09:44:37 +08:00
proj.nacl Add new port: Native Client 2013-03-02 12:15:24 -08:00
proj.win32 issue #1753: Win32 works ok. 2013-02-27 15:45:23 +08:00
script_support add CCLuaObjcBridge 2013-02-02 02:05:52 +08:00
shaders issue #1686: sync to CCLayer 2013-02-27 09:38:30 +08:00
sprite_nodes issue #1686:synchronize CCSprite.cpp 2013-02-27 15:30:49 +08:00
support Add new port: Native Client 2013-03-02 12:15:24 -08:00
text_input_node fixed #1649: Changed return type to const reference for member variable access. 2013-01-14 15:51:53 +08:00
textures issue #1686:synchronize CCTextureCache.cpp 2013-02-27 11:35:38 +08:00
tilemap_parallax_nodes fixed #1686:finish updating 2013-02-28 11:55:36 +08:00
touch_dispatcher fixed #1593:remove all deprecated methods expect CCBAnimationManager 2012-12-06 18:51:33 +08:00
Android.mk fixed #1753: Android works ok now. 2013-02-27 16:57:36 +08:00
CCCamera.cpp issue #1555:build ok on android 2012-11-16 14:23:14 +08:00
CCCamera.h update copyright to 2012, update cocos2d version to 2.0.3 2012-09-24 21:22:20 +08:00
CCConfiguration.cpp Merge with gles20. 2012-06-11 10:43:07 -07:00
CCConfiguration.h add groups to all classes for doxygen 2012-06-20 18:09:11 +08:00
CCDirector.cpp issue #1686:fix some compiling error 2013-03-01 09:51:42 +08:00
CCDirector.h fixed #1686:finish updating 2013-02-28 11:55:36 +08:00
CCScheduler.cpp fix a compilation error for android. 2013-01-03 19:56:34 +08:00
CCScheduler.h issue #1555:update to v2.1 beta3 2012-11-14 18:05:15 +08:00
ccFPSImages.c.REMOVED.git-id issue #1686: sync to CCLayer 2013-02-27 09:38:30 +08:00
ccFPSImages.h issue #1686: sync to CCLayer 2013-02-27 09:38:30 +08:00
cocos2d.cpp issue #1686:synchronize cocos2d.cpp 2013-02-26 16:55:23 +08:00