[util] Simplify more

This commit is contained in:
Behdad Esfahbod 2011-09-08 16:50:24 -04:00
parent 4f4b114a55
commit 516857eb51
1 changed files with 3 additions and 6 deletions

View File

@ -64,12 +64,9 @@ extern struct shape_options_t
}
void setup_buffer (hb_buffer_t *buffer) {
if (direction)
hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1));
if (script)
hb_buffer_set_script (buffer, hb_script_from_string (script, -1));
if (language)
hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
hb_buffer_set_direction (buffer, hb_direction_from_string (direction, -1));
hb_buffer_set_script (buffer, hb_script_from_string (script, -1));
hb_buffer_set_language (buffer, hb_language_from_string (language, -1));
}
bool shape (hb_font_t *font, hb_buffer_t *buffer) {