changeset 21620:ef93ebaef504

Cosmetics: fix indentation.
author eugeni
date Sat, 16 Dec 2006 19:35:48 +0000
parents b4b51eb2904f
children 28ade900407d
files libass/ass_font.c
diffstat 1 files changed, 15 insertions(+), 15 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}
 	}