Prechádzať zdrojové kódy

Freetype: code cosmetics

Jean-Baptiste Kempf 9 rokov pred
rodič
commit
5b143370ec

+ 5 - 3
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;
 
     /**

+ 5 - 5
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 */
 };
 
 /**