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 @@
#endif
#ifdef __APPLE__
#import <Carbon/Carbon.h>
#define DEFAULT_FONT "/System/Library/Fonts/LucidaGrande.dfont"
#define FC_DEFAULT_FONT "Lucida Grande"
#elif defined( SYS_BEOS )
......@@ -334,6 +335,19 @@ 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)
{
if (MacVersion >= 0x1060)
{
strcpy( psz_fontfile, "/System/Library/Fonts/LucidaGrande.ttc" );
}
else
{
strcpy( psz_fontfile, DEFAULT_FONT );
}
}
# else
strcpy( psz_fontfamily, DEFAULT_FONT );
# 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