[vdr] [ANNOUNCE] VDR developer version 1.5.4

Klaus Schmidinger Klaus.Schmidinger at cadsoft.de
Sat Jun 23 13:27:33 CEST 2007


On 06/17/07 18:16, Anssi Hannula wrote:
> Klaus Schmidinger wrote:
>> VDR developer version 1.5.4 is now available 
> 
>> - Now using 'fontconfig' to determine which fonts to use (thanks to Anssi Hannula
>>   for code and hints on how to do this).
> 
>> +         char *s = (char *)FcNameUnparse(fontset->fonts[i]);
>> +         if (s) {
>> +            // Strip i18n stuff:
>> +            char *p = strchr(s, ',');
>> +            if (p)
>> +               *p = 0;
> 
> Dropping everything after ',' seems correct, but AFAICS it should be 
> processed separately for the family name and style.
> 
> Currently, AFAICS,
> DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
> becomes
> DejaVu Sans
> while I think it should become
> DejaVu Sans:style=Condensed Oblique

Looks like I don't have any font here that has a comma in its name,
so I hope I got this right.

Can you please verify the attached patch?

Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vdr-1.5.4-fontstripi18n.diff
Type: text/x-patch
Size: 769 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20070623/c814f155/attachment.bin 


More information about the vdr mailing list