From fc9de44a03a97f6e93bd98d804596cb1f9f4b5fd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 30 Jun 2016 09:46:52 -0700 Subject: [PATCH] Comments --- src/hb-coretext.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 98592af84..db6d2aa14 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -155,15 +155,15 @@ create_ct_font (CGFontRef cg_font, CGFloat font_size) CFRelease (last_resort_font_desc); if (new_ct_font) { - // The CTFontCreateCopyWithAttributes call fails to stay on the same font - // when reconfiguring the cascade list and may switch to a different font - // when there are fonts that go by the same name, since the descriptor is - // just name and size. - - // Avoid reconfiguring the cascade lists if the new font is outside the - // system locations that we cannot access from the sandboxed renderer - // process in Blink. This can be detected by the new file URL location - // that the newly found font points to. + /* The CTFontCreateCopyWithAttributes call fails to stay on the same font + * when reconfiguring the cascade list and may switch to a different font + * when there are fonts that go by the same name, since the descriptor is + * just name and size. + * + * Avoid reconfiguring the cascade lists if the new font is outside the + * system locations that we cannot access from the sandboxed renderer + * process in Blink. This can be detected by the new file URL location + * that the newly found font points to. */ CFURLRef new_url = (CFURLRef)CTFontCopyAttribute(new_ct_font, kCTFontURLAttribute); if (CFEqual(original_url, new_url)) { CFRelease (ct_font);