[coretext] Minor

This commit is contained in:
Behdad Esfahbod 2014-08-12 19:10:33 -04:00
parent 08acfe0d3a
commit 3eb6a4dbf2
1 changed files with 5 additions and 4 deletions

View File

@ -693,10 +693,11 @@ retry:
if (unlikely (!attr_string)) if (unlikely (!attr_string))
FAIL ("CFAttributedStringCreateMutable failed"); FAIL ("CFAttributedStringCreateMutable failed");
CFAttributedStringReplaceString (attr_string, CFRangeMake (0, 0), string_ref); CFAttributedStringReplaceString (attr_string, CFRangeMake (0, 0), string_ref);
CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len), if (HB_DIRECTION_IS_VERTICAL (buffer->props.direction))
kCTVerticalFormsAttributeName, {
HB_DIRECTION_IS_VERTICAL (buffer->props.direction) ? CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len),
kCFBooleanTrue : kCFBooleanFalse); kCTVerticalFormsAttributeName, kCFBooleanTrue);
}
CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len), CFAttributedStringSetAttribute (attr_string, CFRangeMake (0, chars_len),
kCTFontAttributeName, font_data->ct_font); kCTFontAttributeName, font_data->ct_font);