freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 92ff2ef6: Whitespace.


From: Werner Lemberg
Subject: [freetype2-demos] master 92ff2ef6: Whitespace.
Date: Thu, 12 Dec 2024 22:49:38 -0500 (EST)

branch: master
commit 92ff2ef6a7bfb2a3d164b4d21b66f768f650689f
Author: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov (Алексей Подтележников) <apodtele@gmail.com>

    Whitespace.
---
 graph/grobjs.c                                    | 4 ++--
 src/ftcommon.c                                    | 2 +-
 src/ftdump.c                                      | 4 ++--
 src/ftgrid.c                                      | 2 +-
 src/ftinspect/engine/engine.cpp                   | 8 ++++----
 src/ftinspect/engine/mmgx.cpp                     | 2 +-
 src/ftinspect/glyphcomponents/glyphcontinuous.cpp | 2 +-
 src/ftinspect/panels/settingpanelmmgx.cpp         | 2 +-
 src/ftmemchk.c                                    | 2 +-
 src/ftstring.c                                    | 4 ++--
 src/testname.c                                    | 8 ++++----
 11 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/graph/grobjs.c b/graph/grobjs.c
index 65a49af9..31fcc329 100644
--- a/graph/grobjs.c
+++ b/graph/grobjs.c
@@ -171,11 +171,11 @@
 
 
     /* check mode */
-    if (check_mode(pixel_mode,num_grays))
+    if ( check_mode( pixel_mode, num_grays ) )
       goto Fail;
 
     /* check dimensions */
-    if (width < 0 || height < 0)
+    if ( width < 0 || height < 0 )
     {
       grError = gr_err_bad_argument;
       goto Fail;
diff --git a/src/ftcommon.c b/src/ftcommon.c
index 9baa09a8..c100e21b 100644
--- a/src/ftcommon.c
+++ b/src/ftcommon.c
@@ -1855,7 +1855,7 @@
 
     /* calculate the extent */
     if ( sc->extent )
-      for( n = first; n < first + last || pen.x > 0; n++ )  /* chk progress */
+      for ( n = first; n < first + last || pen.x > 0; n++ )  /* chk progress */
       {
         m = n % handle->string_length;  /* recycling */
         if ( pen.x + handle->string[m].hadvance.x > sc->extent )
diff --git a/src/ftdump.c b/src/ftdump.c
index 3cbec3f7..c0a4dfaf 100644
--- a/src/ftdump.c
+++ b/src/ftdump.c
@@ -521,7 +521,7 @@
     FT_UInt  gid = 0, max_gid = FT_UINT_MAX;
     FT_UInt  cid = 0, rng_from = 0, rng_to = 0;
     char     is_first_rng = 1;
-    
+
 
     if ( face->num_glyphs < 1 )
       return;
@@ -736,7 +736,7 @@
     /* CharMaps */
     printf( "charmaps (%d)\n", face->num_charmaps );
 
-    for( i = 0; i < face->num_charmaps; i++ )
+    for ( i = 0; i < face->num_charmaps; i++ )
     {
       FT_CharMap   cmap = face->charmaps[i];
       FT_Long      format  = FT_Get_CMap_Format( cmap );
diff --git a/src/ftgrid.c b/src/ftgrid.c
index d529bcc2..9481b256 100644
--- a/src/ftgrid.c
+++ b/src/ftgrid.c
@@ -1083,7 +1083,7 @@
     frc  = ( frc  & 3 ) | 4;
 
     if ( -8 < exp && exp <= 8 )
-      status.scale = ldexpf( 0.125f * frc , exp );
+      status.scale = ldexpf( 0.125f * frc, exp );
   }
 
 
diff --git a/src/ftinspect/engine/engine.cpp b/src/ftinspect/engine/engine.cpp
index 791335e4..1c67dbc2 100644
--- a/src/ftinspect/engine/engine.cpp
+++ b/src/ftinspect/engine/engine.cpp
@@ -292,8 +292,8 @@ Engine::currentFontTricky()
 
 FTC_FaceID getFTCIdWithHighestBitSet(FTC_FaceID id)
 {
-  Q_ASSERT_X(sizeof(FTC_FaceID) >= sizeof(uintptr_t), 
-      "getFTCIdWithHighestBitSet", 
+  Q_ASSERT_X(sizeof(FTC_FaceID) >= sizeof(uintptr_t),
+      "getFTCIdWithHighestBitSet",
       "FTC_FaceID must be longer than uintptr_t");
   return reinterpret_cast<FTC_FaceID>(
       reinterpret_cast<uintptr_t>(id)
@@ -304,8 +304,8 @@ FTC_FaceID getFTCIdWithHighestBitSet(FTC_FaceID id)
 
 FTC_FaceID getFTCIdWithHighestBitClear(FTC_FaceID id)
 {
-  Q_ASSERT_X(sizeof(FTC_FaceID) >= sizeof(uintptr_t), 
-      "getFTCIdWithHighestBitClear", 
+  Q_ASSERT_X(sizeof(FTC_FaceID) >= sizeof(uintptr_t),
+      "getFTCIdWithHighestBitClear",
       "FTC_FaceID must be longer than uintptr_t");
   return reinterpret_cast<FTC_FaceID>(
       reinterpret_cast<uintptr_t>(id) & INTPTR_MAX
diff --git a/src/ftinspect/engine/mmgx.cpp b/src/ftinspect/engine/mmgx.cpp
index a9b1692c..13d3d7f5 100644
--- a/src/ftinspect/engine/mmgx.cpp
+++ b/src/ftinspect/engine/mmgx.cpp
@@ -10,7 +10,7 @@
 
 
 MMGXState
-MMGXAxisInfo::get(Engine* engine, 
+MMGXAxisInfo::get(Engine* engine,
                   unsigned namedInstanceIndex,
                   std::vector<MMGXAxisInfo>& infos)
 {
diff --git a/src/ftinspect/glyphcomponents/glyphcontinuous.cpp 
b/src/ftinspect/glyphcomponents/glyphcontinuous.cpp
index 326da2f5..545ad79f 100644
--- a/src/ftinspect/glyphcomponents/glyphcontinuous.cpp
+++ b/src/ftinspect/glyphcomponents/glyphcontinuous.cpp
@@ -207,7 +207,7 @@ GlyphContinuous::mouseMoveEvent(QMouseEvent* event)
     positionDelta_ = prevPositionDelta_ + delta;
     positionDelta_.setX(0); // Don't move horizontally.
     // The string renderer will handle the horizontal delta. See below.
-    
+
     // Note the double use of `scale_`: one for undoing `delta /= scale_`,
     // the other one for effectively dividing the width by the scaling
     // factor.
diff --git a/src/ftinspect/panels/settingpanelmmgx.cpp 
b/src/ftinspect/panels/settingpanelmmgx.cpp
index 6ad0852e..f93e76c5 100644
--- a/src/ftinspect/panels/settingpanelmmgx.cpp
+++ b/src/ftinspect/panels/settingpanelmmgx.cpp
@@ -192,7 +192,7 @@ SettingPanelMMGX::resetDefaultClicked()
 {
   for (auto w : itemWidgets_)
     w->resetDefault();
-  
+
   retrieveValues();
   emit mmgxCoordsChanged();
 }
diff --git a/src/ftmemchk.c b/src/ftmemchk.c
index 6aee9a62..cf3d1a3c 100644
--- a/src/ftmemchk.c
+++ b/src/ftmemchk.c
@@ -311,7 +311,7 @@ int  main( int argc, char** argv )
           if (error)
           {
             if ( Fail < 10 )
-              printf( "glyph %4u: 0x%04x\n" , id, error );
+              printf( "glyph %4u: 0x%04x\n", id, error );
             Fail++;
           }
         }
diff --git a/src/ftstring.c b/src/ftstring.c
index a4f81073..a0bec948 100644
--- a/src/ftstring.c
+++ b/src/ftstring.c
@@ -167,11 +167,11 @@
     limit = outline->points + outline->n_points;
 
     if ( reflect & 1 )
-      for( vec = outline->points; vec < limit; vec++ )
+      for ( vec = outline->points; vec < limit; vec++ )
         vec->x = -vec->x;
 
     if ( reflect & 2 )
-      for( vec = outline->points; vec < limit; vec++ )
+      for ( vec = outline->points; vec < limit; vec++ )
         vec->y = -vec->y;
   }
 
diff --git a/src/testname.c b/src/testname.c
index 35216e5a..54bd4bf6 100644
--- a/src/testname.c
+++ b/src/testname.c
@@ -24,13 +24,13 @@
       exit( 1 );
     if ( FT_Init_FreeType( &font_library ) )
       exit( 1 );
-    if ( FT_New_Face( font_library, argv[1], 0 , &font_face ) )
+    if ( FT_New_Face( font_library, argv[1], 0, &font_face ) )
       exit( 1 );
-    if ( FT_Set_Char_Size( font_face , 0 , 768 , 300 , 300 ) )
+    if ( FT_Set_Char_Size( font_face, 0, 768, 300, 300 ) )
       exit( 1 );
 
     num_chars = (int)font_face->num_glyphs;
-    FT_Set_Transform( font_face , NULL , NULL );
+    FT_Set_Transform( font_face, NULL, NULL );
 
     for ( glyph_ind = 0 ; glyph_ind < num_chars; glyph_ind++ )
     {
@@ -52,7 +52,7 @@
               glyph_metrics.horiBearingX / 64,
               glyph_metrics.horiBearingY / 64,
               glyph_metrics.horiAdvance / 64,
-              bitmap.width , bitmap.rows );
+              bitmap.width, bitmap.rows );
     }
 
     return 0;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]