[MPlayer-dev-eng] Font hinting in libass

Evgeniy Stepanov eugeni.stepanov at gmail.com
Wed Apr 25 20:37:16 CEST 2007


On Wednesday 25 April 2007 13:54, Alban Bedel wrote:
> > > > I'm inclined to set FT_LOAD_NO_HINTING by default, because -vo gl, it
> > > > seems, is not that popular, and hinting does much more damage with
> > > > low resolution videos, than its absence does when rendering in screen
> > > > resolution. I could also add "ass-hinting" option with four integer
> > > > values: 0 - no hinting,
> > > > 1 - light autohinting,
> > > > 2 - normal autohinting,
> > > > 3 - native hinting.
> > >
> > > I'd prefer an option, or at least the possibility to set the hinting
> > > from within the VO, so vo_gl and vo_sdl can enable hinting.
> >
> > I don't like binding this to the vo too much, mostly because recent
> > experiments convinced me that in some cases anything but light hinting
> > will simply look unbearably ugly (I think the configuration was OpenSuSE
> > 10.1 with normal hinting set in KDE and console windows were most ugly).
> > Actually, no hinting was only bearably ugly ;-)
>
> Sure it shouldn't be done from within the VO and on some config autohinting
> might not be desirable at all. However VOs could have a control to tell
> that they don't scale the OSD. That would allow an "enable autohinting if
> the OSD is not scaled" mode.

Consider this patch. It adds -ass-hinting option with the 4 hinting types 
mentioned earlier. Also, if one adds 4 (i.e., hinting modes 4 to 7), it will 
apply only if vo is capable of rendering OSD without scaling. For this 
reason, a new VFCAP is added. The default is native hinting for unscaled OSD 
and no hinting otherwise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hinting.patch
Type: text/x-diff
Size: 8925 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070425/e27bf132/attachment.patch>


More information about the MPlayer-dev-eng mailing list