[MPlayer-cvslog] r21636 - trunk/libass/ass_font.c

eugeni subversion at mplayerhq.hu
Sat Dec 16 20:35:49 CET 2006


Author: eugeni
Date: Sat Dec 16 20:35:48 2006
New Revision: 21636

Modified:
   trunk/libass/ass_font.c

Log:
Cosmetics: fix indentation.


Modified: trunk/libass/ass_font.c
==============================================================================
--- trunk/libass/ass_font.c	(original)
+++ trunk/libass/ass_font.c	Sat Dec 16 20:35:48 2006
@@ -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;
 		}
 	}
 	



More information about the MPlayer-cvslog mailing list