diff libass/ass_mp.c @ 28860:7fcc0bf5b27a

Treat -font/-subfont as Fontconfig pattern in libass. Patch by Adrian Stutz (adrian sttz ch).
author eugeni
date Sun, 08 Mar 2009 16:13:21 +0000
parents 9e739bdb049c
children 0f1b5b68af32
line wrap: on
line diff
--- a/libass/ass_mp.c	Sun Mar 08 15:56:20 2009 +0000
+++ b/libass/ass_mp.c	Sun Mar 08 16:13:21 2009 +0000
@@ -94,6 +94,7 @@
 		style = track->styles + sid;
 		style->Name = strdup("Default");
 		style->FontName = (font_fontconfig >= 0 && sub_font_name) ? strdup(sub_font_name) : (font_fontconfig >= 0 && font_name) ? strdup(font_name) : strdup("Sans");
+		style->treat_fontname_as_pattern = 1;
 
 		fs = track->PlayResY * text_font_scale_factor / 100.;
 		// approximate autoscale coefficients