# HG changeset patch # User eugeni # Date 1166297748 0 # Node ID ef93ebaef50490a5be00745a6996e23021c00bfb # Parent b4b51eb2904f5becddddea86e06d753b425a1f56 Cosmetics: fix indentation. diff -r b4b51eb2904f -r ef93ebaef504 libass/ass_font.c --- a/libass/ass_font.c Sat Dec 16 19:34:00 2006 +0000 +++ b/libass/ass_font.c Sat Dec 16 19:35:48 2006 +0000 @@ -85,11 +85,11 @@ return 0; } } else { - error = FT_New_Face(ftlibrary, path, index, &face); - if (error) { - mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningFont, path, index); - return 0; - } + error = FT_New_Face(ftlibrary, path, index, &face); + if (error) { + mp_msg(MSGT_ASS, MSGL_WARN, MSGTR_LIBASS_ErrorOpeningFont, path, index); + return 0; + } } charmap_magic(face); @@ -177,17 +177,17 @@ { int i; for (i = 0; i < font->n_faces; ++i) { - FT_Face face = font->faces[i]; - if (FT_Get_Char_Index(face, ch)) { - int v, v2; - v = face->size->metrics.ascender; - v2 = FT_MulFix(face->bbox.yMax, face->size->metrics.y_scale); - *asc = (v > v2 * 0.9) ? v : v2; + FT_Face face = font->faces[i]; + if (FT_Get_Char_Index(face, ch)) { + int v, v2; + v = face->size->metrics.ascender; + v2 = FT_MulFix(face->bbox.yMax, face->size->metrics.y_scale); + *asc = (v > v2 * 0.9) ? v : v2; - v = - face->size->metrics.descender; - v2 = - FT_MulFix(face->bbox.yMin, face->size->metrics.y_scale); - *desc = (v > v2 * 0.9) ? v : v2; - return; + v = - face->size->metrics.descender; + v2 = - FT_MulFix(face->bbox.yMin, face->size->metrics.y_scale); + *desc = (v > v2 * 0.9) ? v : v2; + return; } }