Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
4f197fd7
Commit
4f197fd7
authored
Sep 14, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
freetype: simply snowleopard-hack for default font
parent
df36b003
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
modules/misc/freetype.c
modules/misc/freetype.c
+14
-11
No files found.
modules/misc/freetype.c
View file @
4f197fd7
...
...
@@ -56,6 +56,7 @@
#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"
#elif defined( SYS_BEOS )
#define DEFAULT_FONT "/boot/beos/etc/fonts/ttfonts/Swiss721.ttf"
...
...
@@ -325,8 +326,17 @@ 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
#else
free
(
psz_fontfamily
);
psz_fontfamily
=
(
char
*
)
malloc
(
PATH_MAX
+
1
);
...
...
@@ -337,17 +347,10 @@ static int Create( vlc_object_t *p_this )
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
);
}
}
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment