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
13e35edc
Commit
13e35edc
authored
Sep 29, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartztext: add basic font-fallback mechanism instead of crashing (close #9369)
parent
5a43b773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/text_renderer/quartztext.c
modules/text_renderer/quartztext.c
+5
-2
No files found.
modules/text_renderer/quartztext.c
View file @
13e35edc
...
@@ -534,8 +534,11 @@ static void setFontAttibutes(char *psz_fontname, int i_font_size, uint32_t i_fon
...
@@ -534,8 +534,11 @@ static void setFontAttibutes(char *psz_fontname, int i_font_size, uint32_t i_fon
CFStringRef
p_cfString
;
CFStringRef
p_cfString
;
CTFontRef
p_font
;
CTFontRef
p_font
;
// Handle font name and size
// fallback on default
p_cfString
=
CFStringCreateWithCString
(
NULL
,
if
(
!
psz_fontname
)
psz_fontname
=
(
char
*
)
DEFAULT_FONT
;
p_cfString
=
CFStringCreateWithCString
(
kCFAllocatorDefault
,
psz_fontname
,
psz_fontname
,
kCFStringEncodingUTF8
);
kCFStringEncodingUTF8
);
p_font
=
CTFontCreateWithName
(
p_cfString
,
p_font
=
CTFontCreateWithName
(
p_cfString
,
...
...
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