]> git.sesse.net Git - vlc/commitdiff
freetype: use a sane default font on OS X, so we don't have to add ugly hacks to...
authorFelix Paul Kühne <fkuehne@videolan.org>
Tue, 15 Sep 2009 22:14:48 +0000 (00:14 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Tue, 15 Sep 2009 22:14:48 +0000 (00:14 +0200)
Arial Black is available on all Mac OS X installations current VLC releases can run on and is the default for the 'Quartztext' renderer anyway.

modules/misc/freetype.c

index 82d988784fd4966706531e0ad22149a014cd8628..9ec0e9022d56ad3607f6df07c407153503dd0d43 100644 (file)
 #endif
 
 #ifdef __APPLE__
-#import <Carbon/Carbon.h>
-#define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont"
-#define DEFAULT_FONT_SNOWLEOPARD "/System/Library/Fonts/LucidaGrande.ttc"
-#define FC_DEFAULT_FONT "Lucida Grande"
+#define DEFAULT_FONT "/Library/Fonts/Arial Black.ttf"
+#define FC_DEFAULT_FONT "Arial Black"
 #elif defined( SYS_BEOS )
 #define DEFAULT_FONT "/boot/beos/etc/fonts/ttfonts/Swiss721.ttf"
 #define FC_DEFAULT_FONT "Swiss"
@@ -326,14 +324,6 @@ static int Create( vlc_object_t *p_this )
     if( !psz_fontfamily || !*psz_fontfamily )
     {
 #ifdef HAVE_FONTCONFIG
-#ifdef __APPLE__
-        SInt32 MacVersion;
-        free( psz_fontfamily);
-        if (Gestalt(gestaltSystemVersion, &MacVersion) == noErr && MacVersion >= 0x1060)
-            psz_fontfamily=strdup( DEFAULT_FONT_SNOWLEOPARD );
-        else
-            psz_fontfamily=strdup( DEFAULT_FONT );
-#else
         free( psz_fontfamily);
         psz_fontfamily=strdup( DEFAULT_FONT );
 #endif
@@ -345,12 +335,6 @@ static int Create( vlc_object_t *p_this )
 # ifdef WIN32
         GetWindowsDirectory( psz_fontfamily , PATH_MAX + 1 );
         strcat( psz_fontfamily, "\\fonts\\arial.ttf" );
-# elif __APPLE__
-        SInt32 MacVersion;
-        if (Gestalt(gestaltSystemVersion, &MacVersion) == noErr && MacVersion >= 0x1060)
-            strcpy( psz_fontfile, DEFAULT_FONT_SNOWLEOPARD );
-        else
-            strcpy( psz_fontfile, DEFAULT_FONT );
 # else
         strcpy( psz_fontfamily, DEFAULT_FONT );
 # endif