mirror of https://github.com/mpv-player/mpv
Make -embeddedfonts enabled by default with FontConfig >= 2.4.2.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21648 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
29a164309f
commit
896c9c1384
|
@ -1913,10 +1913,14 @@ Dumps the subtitle substream from VOB streams.
|
||||||
Also see the \-dump*sub and \-vobsubout* options.
|
Also see the \-dump*sub and \-vobsubout* options.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B \-embeddedfonts (FreeType only)
|
.B \-(no)embeddedfonts (FreeType only)
|
||||||
Enables extraction of Matroska embedded fonts.
|
Enables extraction of Matroska embedded fonts (default: disabled).
|
||||||
These fonts can be used for SSA/ASS subtitle
|
These fonts can be used for SSA/ASS subtitle
|
||||||
rendering (\-ass option).
|
rendering (\-ass option). Font files are created in ~/.mplayer/fonts directory.
|
||||||
|
.br
|
||||||
|
.I NOTE:
|
||||||
|
With FontConfig 2.4.2 or newer, embedded fonts are opened directly from memory,
|
||||||
|
and this option is enabled by default.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
.B \-ffactor <number>
|
.B \-ffactor <number>
|
||||||
|
|
|
@ -29,6 +29,10 @@
|
||||||
#include "ass_mp.h"
|
#include "ass_mp.h"
|
||||||
#include "ass_library.h"
|
#include "ass_library.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_FONTCONFIG
|
||||||
|
#include <fontconfig/fontconfig.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
// libass-related command line options
|
// libass-related command line options
|
||||||
ass_library_t* ass_library;
|
ass_library_t* ass_library;
|
||||||
int ass_enabled = 0;
|
int ass_enabled = 0;
|
||||||
|
@ -36,7 +40,11 @@ float ass_font_scale = 1.;
|
||||||
float ass_line_spacing = 0.;
|
float ass_line_spacing = 0.;
|
||||||
int ass_top_margin = 0;
|
int ass_top_margin = 0;
|
||||||
int ass_bottom_margin = 0;
|
int ass_bottom_margin = 0;
|
||||||
|
#if defined(FC_VERSION) && (FC_VERSION >= 20402)
|
||||||
|
int extract_embedded_fonts = 1;
|
||||||
|
#else
|
||||||
int extract_embedded_fonts = 0;
|
int extract_embedded_fonts = 0;
|
||||||
|
#endif
|
||||||
char **ass_force_style_list = NULL;
|
char **ass_force_style_list = NULL;
|
||||||
int ass_use_margins = 0;
|
int ass_use_margins = 0;
|
||||||
char* ass_color = NULL;
|
char* ass_color = NULL;
|
||||||
|
|
Loading…
Reference in New Issue