Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
1bff0b7f
Commit
1bff0b7f
authored
Jul 01, 2012
by
Naohiro KORIYAMA
Committed by
Felix Paul Kühne
Jul 01, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed font selector panel on certain setups
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
73b27054
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/gui/macosx/simple_prefs.m
modules/gui/macosx/simple_prefs.m
+3
-4
No files found.
modules/gui/macosx/simple_prefs.m
View file @
1bff0b7f
...
@@ -1212,12 +1212,11 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
...
@@ -1212,12 +1212,11 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
-
(
IBAction
)
showFontPicker
:(
id
)
sender
-
(
IBAction
)
showFontPicker
:(
id
)
sender
{
{
char
*
font
=
config_GetPsz
(
p_intf
,
"freetype-font"
);
char
*
font
=
config_GetPsz
(
p_intf
,
"freetype-font"
);
NSString
*
font
Family
Name
=
font
?
[
NSString
stringWithUTF8String
:
font
]
:
nil
;
NSString
*
fontName
=
font
?
[
NSString
stringWithUTF8String
:
font
]
:
nil
;
free
(
font
);
free
(
font
);
if
(
font
Family
Name
)
if
(
fontName
)
{
{
NSFontDescriptor
*
fd
=
[
NSFontDescriptor
fontDescriptorWithFontAttributes
:
nil
];
NSFont
*
font
=
[
NSFont
fontWithName
:
fontName
size
:
0
.
0
];
NSFont
*
font
=
[
NSFont
fontWithDescriptor
:[
fd
fontDescriptorWithFamily
:
fontFamilyName
]
textTransform
:
nil
];
[[
NSFontManager
sharedFontManager
]
setSelectedFont
:
font
isMultiple
:
NO
];
[[
NSFontManager
sharedFontManager
]
setSelectedFont
:
font
isMultiple
:
NO
];
}
}
[[
NSFontManager
sharedFontManager
]
setTarget
:
self
];
[[
NSFontManager
sharedFontManager
]
setTarget
:
self
];
...
...
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