fix using px as textsize bug