Commits

Lenard Lindstrom  committed bb542af

Clean up white space in _freetype module source

  • Participants
  • Parent commits d55c9fb

Comments (0)

Files changed (5)

File src/_freetype.c

         (setter)_ftface_setstrength,
         DOC_FACESTRENGTH,
         0
-    }, 
+    },
     {
         "underline_adjustment",
         (getter)_ftface_getunderlineadjustment,
 #ifndef HAVE_PYGAME_SDL_VIDEO
 
     PyErr_SetString(PyExc_RuntimeError,
-		    "SDL support is missing. Cannot render on surfaces");
+                    "SDL support is missing. Cannot render on surfaces");
     return 0;
 
 #else
 #ifndef HAVE_PYGAME_SDL_VIDEO
 
     PyErr_SetString(PyExc_RuntimeError,
-		    "SDL support is missing. Cannot render on surfaces");
+                    "SDL support is missing. Cannot render on surfaces");
     return 0;
 
 #else

File src/freetype/ft_layout.c

 
 FaceText *
 _PGFT_LoadFaceText(FreeTypeInstance *ft, PgFaceObject *faceobj,
-                  const FaceRenderMode *mode, PGFT_String *text)
+                   const FaceRenderMode *mode, PGFT_String *text)
 {
     Py_ssize_t  string_length = PGFT_String_GET_LENGTH(text);
 
         }
 
         prev_glyph_index = glyph->glyph_index;
-	metrics = vertical ? &glyph->v_metrics : &glyph->h_metrics;
-	if (metrics->bearing_rotated.y > top) {
+        metrics = vertical ? &glyph->v_metrics : &glyph->h_metrics;
+        if (metrics->bearing_rotated.y > top) {
             top = metrics->bearing_rotated.y;
         }
         if (pen.x + metrics->bearing_rotated.x < min_x) {

File src/freetype/ft_render.c

 }
 
 int
-_PGFT_BuildRenderMode(FreeTypeInstance *ft, 
-                      PgFaceObject *faceobj, FaceRenderMode *mode, 
+_PGFT_BuildRenderMode(FreeTypeInstance *ft,
+                      PgFaceObject *faceobj, FaceRenderMode *mode,
                       int pt_size, int style, int rotation)
 {
     int angle;
 
     case 'i':  /* integer */
         break;
-    case 'u':  /* unsigned integer */ 
+    case 'u':  /* unsigned integer */
         break;
     case 'S':  /* fixed length character field */
         break;

File src/freetype/ft_render_cb.c

                                 (off_y * bitmap->pitch);                \
         const FT_Byte *_src;                                            \
                                                                         \
-	_DECLARE_full_color##_bpp(surface, color)			\
+        _DECLARE_full_color##_bpp(surface, color)                       \
         /*                                                              \
         const FT_UInt32 full_color =                                    \
             SDL_MapRGBA(surface->format, (FT_Byte)color->r,             \
                     (FT_Byte)color->g, (FT_Byte)color->b, 255);         \
-	*/                                                              \
+        */                                                              \
                                                                         \
         FT_UInt32 bgR, bgG, bgB, bgA;                                   \
         int j, i;                                                       \

File src/freetype/ft_wrap.c

 
 long
 _PGFT_Face_GetHeightSized(FreeTypeInstance *ft, PgFaceObject *faceobj,
-			 FT_UInt16 ptsize)
+                          FT_UInt16 ptsize)
 {
     FT_Face face = _PGFT_GetFaceSized(ft, faceobj, ptsize);
 
 
 long
 _PGFT_Face_GetAscenderSized(FreeTypeInstance *ft, PgFaceObject *faceobj,
-			   FT_UInt16 ptsize)
+                           FT_UInt16 ptsize)
 {
     FT_Face face = _PGFT_GetFaceSized(ft, faceobj, ptsize);
 
 
 long
 _PGFT_Face_GetDescenderSized(FreeTypeInstance *ft, PgFaceObject *faceobj,
-			    FT_UInt16 ptsize)
+                             FT_UInt16 ptsize)
 {
     FT_Face face = _PGFT_GetFaceSized(ft, faceobj, ptsize);
 
 
 long
 _PGFT_Face_GetGlyphHeightSized(FreeTypeInstance *ft, PgFaceObject *faceobj,
-			      FT_UInt16 ptsize)
+                               FT_UInt16 ptsize)
 {
     /*
      * Based on the SDL_ttf height calculation.
 }
 
 FT_Face
-_PGFT_GetFace(FreeTypeInstance *ft,
-    PgFaceObject *faceobj)
+_PGFT_GetFace(FreeTypeInstance *ft, PgFaceObject *faceobj)
 {
     FT_Error error;
     FT_Face face;
 #ifdef HAVE_PYGAME_SDL_RWOPS
 static unsigned long
 RWops_read(FT_Stream stream, unsigned long offset,
-    unsigned char *buffer, unsigned long count)
+           unsigned char *buffer, unsigned long count)
 {
     SDL_RWops *src;
 
 }
 
 int
-_PGFT_TryLoadFont_RWops(FreeTypeInstance *ft,
-        PgFaceObject *faceobj, SDL_RWops *src, int face_index)
+_PGFT_TryLoadFont_RWops(FreeTypeInstance *ft, PgFaceObject *faceobj,
+                        SDL_RWops *src, int face_index)
 {
     FT_Stream stream;
     int position;