mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 05:37:37 +00:00
Add \t(\b) support.
Contradicts the specification, but supported by all other renderers. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22280 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2287f5662d
commit
11399e2ac8
@ -979,9 +979,10 @@ static char* parse_tag(char* p, double pwr) {
|
||||
render_context.be = 0;
|
||||
} else if (mystrcmp(&p, "b")) {
|
||||
int b;
|
||||
if (mystrtoi(&p, 10, &b))
|
||||
render_context.bold = b;
|
||||
else
|
||||
if (mystrtoi(&p, 10, &b)) {
|
||||
if (pwr >= 1.)
|
||||
render_context.bold = b;
|
||||
} else
|
||||
render_context.bold = - render_context.style->Bold;
|
||||
update_font();
|
||||
} else if (mystrcmp(&p, "i")) {
|
||||
|
Loading…
Reference in New Issue
Block a user