Commit 76cce191 authored by Felix Paul Kühne's avatar Felix Paul Kühne

freetype: LucidaGrande is stored in a different format in Snow Leopard and...

freetype: LucidaGrande is stored in a different format in Snow Leopard and therefore at another location
parent d63c187c
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#endif #endif
#ifdef __APPLE__ #ifdef __APPLE__
#import <Carbon/Carbon.h>
#define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont" #define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont"
#define FC_DEFAULT_FONT "Lucida Grande" #define FC_DEFAULT_FONT "Lucida Grande"
#elif defined( SYS_BEOS ) #elif defined( SYS_BEOS )
...@@ -334,6 +335,19 @@ static int Create( vlc_object_t *p_this ) ...@@ -334,6 +335,19 @@ static int Create( vlc_object_t *p_this )
# ifdef WIN32 # ifdef WIN32
GetWindowsDirectory( psz_fontfamily , PATH_MAX + 1 ); GetWindowsDirectory( psz_fontfamily , PATH_MAX + 1 );
strcat( psz_fontfamily, "\\fonts\\arial.ttf" ); strcat( psz_fontfamily, "\\fonts\\arial.ttf" );
# elif __APPLE__
SInt32 MacVersion;
if (Gestalt(gestaltSystemVersion, &MacVersion) == noErr)
{
if (MacVersion >= 0x1060)
{
strcpy( psz_fontfile, "/System/Library/Fonts/LucidaGrande.ttc" );
}
else
{
strcpy( psz_fontfile, DEFAULT_FONT );
}
}
# else # else
strcpy( psz_fontfamily, DEFAULT_FONT ); strcpy( psz_fontfamily, DEFAULT_FONT );
# endif # endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment