fix font weight and test api