move labelttf's platform-dependent code from CCImage to CCDevice