private function parse_font_weight($font) { if (!$font) { return $this->text_weight[0]; } else { return $this->text_weight[$font]; } }