axmol/cocos2dx/platform
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
..
android Removed some unused codes. 2013-02-22 11:58:52 +08:00
blackberry Removed some unused codes. 2013-02-22 11:58:52 +08:00
ios Fix for loading custom fonts on iOS when referenced from a CocosBuilder CCB file 2013-03-04 15:32:24 -08:00
linux fixed #1712: Adding default dpi for marmalade and mac since i don't know how to get DPI for these platforms. 2013-02-17 17:13:06 +08:00
mac Flush log messages. 2013-02-28 16:17:49 +01:00
marmalade fixed #1712: Adding default dpi for marmalade and mac since i don't know how to get DPI for these platforms. 2013-02-17 17:13:06 +08:00
nacl Add new port: Native Client 2013-03-02 12:15:24 -08:00
third_party fixed #1760: Redefinition of cpufeatures module. 2013-03-04 10:08:02 +08:00
win32 fixed #1712: Adding default dpi for marmalade and mac since i don't know how to get DPI for these platforms. 2013-02-17 17:13:06 +08:00
CCAccelerometerDelegate.h Added "executeAccelerometerEvent" for CCScriptEngineProtocol class. Exported Accelerometer event to JS. 2012-11-06 14:18:13 +08:00
CCApplicationProtocol.h Add new port: Native Client 2013-03-02 12:15:24 -08:00
CCCommon.h Adding Portuguese and Arabic language support 2013-02-11 15:29:56 +00:00
CCDevice.h fixed #1712: Adding default dpi for marmalade and mac since i don't know how to get DPI for these platforms. 2013-02-17 17:13:06 +08:00
CCEGLViewProtocol.cpp fixed #1520: Added comments for using multiresolution in HelloCpp. 2012-10-23 10:50:47 +08:00
CCEGLViewProtocol.h fixed #1520: Updated some comments. 2012-10-23 14:01:48 +08:00
CCFileUtils.cpp Use CCLOG instead of CCMessageBox to report file system errors 2013-02-21 17:05:17 -08:00
CCFileUtils.h issue #1702:fix a typo error 2013-02-06 18:04:40 +08:00
CCImage.h fix some issues 2012-12-29 13:58:02 +08:00
CCImageCommonWebp.cpp Add new port: Native Client 2013-03-02 12:15:24 -08:00
CCImageCommon_cpp.h Add new port: Native Client 2013-03-02 12:15:24 -08:00
CCPlatformConfig.h Add new port: Native Client 2013-03-02 12:15:24 -08:00
CCPlatformMacros.h fixed #1649: Changed return type to const reference for member variable access. 2013-01-14 15:51:53 +08:00
CCSAXParser.cpp issue #1703:include tinyxml2 files in android/iOS project 2013-02-06 11:15:54 +08:00
CCSAXParser.h add groups to all classes for doxygen 2012-06-20 18:09:11 +08:00
CCThread.cpp Fixes CCThread.cpp so it is not included for Mac builds. 2012-09-15 00:37:12 -07:00
CCThread.h add groups to all classes for doxygen 2012-06-20 18:09:11 +08:00
platform.cpp issue #1176: Changed linebreak symbol to UNIX format ('\n'),replaced 'tab' 2012-04-19 14:35:52 +08:00
platform.h Add new port: Native Client 2013-03-02 12:15:24 -08:00