mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 11:25:10 +00:00
\fn without an argument resets font family to the value from style.
Fixes bugzilla #762. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22287 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c8497d4177
commit
796df56724
@ -791,9 +791,12 @@ static char* parse_tag(char* p, double pwr) {
|
||||
char* start = p;
|
||||
char* family;
|
||||
skip_all('\\');
|
||||
family = malloc(p - start + 1);
|
||||
strncpy(family, start, p - start);
|
||||
family[p - start] = '\0';
|
||||
if (p > start) {
|
||||
family = malloc(p - start + 1);
|
||||
strncpy(family, start, p - start);
|
||||
family[p - start] = '\0';
|
||||
} else
|
||||
family = strdup(render_context.style->FontName);
|
||||
if (render_context.family)
|
||||
free(render_context.family);
|
||||
render_context.family = family;
|
||||
|
Loading…
Reference in New Issue
Block a user