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
17214ee7
Commit
17214ee7
authored
Dec 15, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Freetype: Split font selection code from freetype.c
parent
be35437f
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
454 additions
and
339 deletions
+454
-339
modules/text_renderer/Modules.am
modules/text_renderer/Modules.am
+1
-1
modules/text_renderer/freetype.c
modules/text_renderer/freetype.c
+1
-338
modules/text_renderer/platform_fonts.c
modules/text_renderer/platform_fonts.c
+397
-0
modules/text_renderer/platform_fonts.h
modules/text_renderer/platform_fonts.h
+55
-0
No files found.
modules/text_renderer/Modules.am
View file @
17214ee7
SOURCES_freetype = freetype.c text_renderer.c text_renderer.h
SOURCES_freetype = freetype.c text_renderer.c text_renderer.h
platform_fonts.c platform_fonts.h
SOURCES_quartztext = quartztext.c
SOURCES_quartztext = quartztext.c
SOURCES_svg = svg.c
SOURCES_svg = svg.c
SOURCES_tdummy = tdummy.c
SOURCES_tdummy = tdummy.c
...
...
modules/text_renderer/freetype.c
View file @
17214ee7
This diff is collapsed.
Click to expand it.
modules/text_renderer/platform_fonts.c
0 → 100644
View file @
17214ee7
This diff is collapsed.
Click to expand it.
modules/text_renderer/platform_fonts.h
0 → 100644
View file @
17214ee7
/*****************************************************************************
* freetype.c : Put text on the video, using freetype2
*****************************************************************************
* Copyright (C) 2002 - 2012 VLC authors and VideoLAN
* $Id$
*
* Authors: Sigmund Augdal Helberg <dnumgis@videolan.org>
* Gildas Bazin <gbazin@videolan.org>
* Bernie Purcell <bitmap@videolan.org>
* Jean-Baptiste Kempf <jb@videolan.org>
* Felix Paul Kühne <fkuehne@videolan.org>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program; if not, write to the Free Software Foundation, Inc.,
* Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
* Preamble
*****************************************************************************/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef HAVE_FONTCONFIG
char
*
FontConfig_Select
(
filter_t
*
p_filter
,
const
char
*
family
,
bool
b_bold
,
bool
b_italic
,
int
i_size
,
int
*
i_idx
);
void
FontConfig_BuildCache
(
filter_t
*
p_filter
);
#endif
#ifdef _WIN32
char
*
Win32_Select
(
filter_t
*
p_filter
,
const
char
*
family
,
bool
b_bold
,
bool
b_italic
,
int
i_size
,
int
*
i_idx
);
#endif
/* _WIN32 */
#ifdef __APPLE__
#if !TARGET_OS_IPHONE
char
*
MacLegacy_Select
(
filter_t
*
p_filter
,
const
char
*
psz_fontname
,
bool
b_bold
,
bool
b_italic
,
int
i_size
,
int
*
i_idx
);
#endif
#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