Add deprecation to TextStyle.getCode to prevent warnings