[vlc-devel] commit: Use good default value for font weigh/slan (subtitle rendering). ( Laurent Aimar )
git version control
git at videolan.org
Tue Jul 15 22:33:51 CEST 2008
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Jul 15 22:35:17 2008 +0200| [e5ca2360f83b1f0da0ee56758e54e61cbbdc3e69]
Use good default value for font weigh/slan (subtitle rendering).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5ca2360f83b1f0da0ee56758e54e61cbbdc3e69
---
modules/misc/freetype.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/misc/freetype.c b/modules/misc/freetype.c
index 421c3e9..aba6fdd 100644
--- a/modules/misc/freetype.c
+++ b/modules/misc/freetype.c
@@ -2762,8 +2762,8 @@ static char* FontConfig_Select( FcConfig* priv, const char* family,
FcPatternAddString( pat, FC_FAMILY, (const FcChar8*)family );
FcPatternAddBool( pat, FC_OUTLINE, FcTrue );
- FcPatternAddInteger( pat, FC_SLANT, b_italic ? 1000 : 0 );
- FcPatternAddInteger( pat, FC_WEIGHT, b_bold ? 1000 : 0 );
+ FcPatternAddInteger( pat, FC_SLANT, b_italic ? FC_SLANT_ITALIC : FC_SLANT_ROMAN );
+ FcPatternAddInteger( pat, FC_WEIGHT, b_bold ? FC_WEIGHT_EXTRABOLD : FC_WEIGHT_NORMAL );
FcDefaultSubstitute( pat );
More information about the vlc-devel
mailing list