[MPlayer-dev-eng] [PATCH] Fontconfig -font support for font_face selection

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Jan 6 17:45:30 CET 2009


On Saturday 06 December 2008 02:03:52 Adrian Stutz wrote:
> Hello,
>
> When using Fontconfig and passing a pattern using -font, it's possible to
> select a font as well as a style. If the font styles are in one file
> however, the style selection gets lost because MPlayer only passes the
> filename to FreeType and selects the first face in the file.
>
> This patch gets the face index from Fontconfig and passes it along to
> Freetype to ensure the correct style is chosen.
>
> To reproduce, try to select a suitcase font style, like Palatino:
> mplayer -fontconfig -font "Palatino"
> mplayer -fontconfig -font "Palatino:Bold"
> mplayer -fontconfig -font "Palatino:style=Italic"
> all three display Palatino Bold Italic instead of Regular, Bold and Italic.
> With the patch, the correct style is selected.

Thanks, applied.



More information about the MPlayer-dev-eng mailing list