[vlc-commits] Freetype: code cosmetics

Jean-Baptiste Kempf git at videolan.org
Mon Nov 23 17:12:57 CET 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Nov 23 17:12:47 2015 +0100| [5b143370ec9f3f5a66f559d5864e6c45a639e7b6] | committer: Jean-Baptiste Kempf

Freetype: code cosmetics

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5b143370ec9f3f5a66f559d5864e6c45a639e7b6
---

 modules/text_renderer/freetype/freetype.h       |    8 +++++---
 modules/text_renderer/freetype/platform_fonts.h |   10 +++++-----
 2 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/modules/text_renderer/freetype/freetype.h b/modules/text_renderer/freetype/freetype.h
index f6d80e1..44b2731 100644
--- a/modules/text_renderer/freetype/freetype.h
+++ b/modules/text_renderer/freetype/freetype.h
@@ -75,9 +75,9 @@ typedef uint32_t uni_char_t;
 typedef struct vlc_family_t vlc_family_t;
 struct filter_sys_t
 {
-    FT_Library     p_library;   /* handle to library     */
-    FT_Face        p_face;      /* handle to face object */
-    FT_Stroker     p_stroker;   /* handle to path stroker object */
+    FT_Library     p_library;       /* handle to library     */
+    FT_Face        p_face;          /* handle to face object */
+    FT_Stroker     p_stroker;       /* handle to path stroker object */
 
     text_style_t  *p_default_style;
     text_style_t  *p_forced_style;  /* Renderer overridings */
@@ -112,6 +112,8 @@ struct filter_sys_t
     vlc_dictionary_t  face_map;
 
     int               i_fallback_counter;
+
+    /* Current scaling of the text, default is 100 (%) */
     int               i_scale;
 
     /**
diff --git a/modules/text_renderer/freetype/platform_fonts.h b/modules/text_renderer/freetype/platform_fonts.h
index 204ca39..28a9925 100644
--- a/modules/text_renderer/freetype/platform_fonts.h
+++ b/modules/text_renderer/freetype/platform_fonts.h
@@ -97,16 +97,16 @@
 typedef struct vlc_font_t vlc_font_t;
 struct vlc_font_t
 {
-    vlc_font_t *p_next; /**< next font in the chain */
+    vlc_font_t *p_next;   /**< next font in the chain */
     /**
      * path to the font file on disk, or ":/x" for font attachments, where x
      * is the attachment index within \ref filter_sys_t::pp_font_attachments
      */
     char       *psz_fontfile;
-    int         i_index; /**< index of the font in the font file, starts at 0 */
-    bool        b_bold; /**< if the font is a bold version */
-    bool        b_italic; /**< if the font is an italic version */
-    FT_Face     p_face; /**< the freetype structure for the font */
+    int         i_index;   /**< index of the font in the font file, starts at 0 */
+    bool        b_bold;    /**< if the font is a bold version */
+    bool        b_italic;  /**< if the font is an italic version */
+    FT_Face     p_face;    /**< the freetype structure for the font */
 };
 
 /**



More information about the vlc-commits mailing list