[vlc-devel] [WIP] hotkeys: new hotkeys for changing font size

David Fuhrmann david.fuhrmann at gmail.com
Sun Mar 8 15:24:56 CET 2015


> Am 08.03.2015 um 15:17 schrieb Jean-Baptiste Kempf <jb at videolan.org>:
> 
> Le 08/03/2015 13:43, Hannes Domani a écrit :
>>>>  } vlc_action_t;
>>>> 
>>>> diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
>>>> index 77843a3..ff8680d 100644
>>>> --- a/modules/control/hotkeys.c
>>>> +++ b/modules/control/hotkeys.c
>>>> @@ -1095,6 +1095,39 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
>>>>              if( p_vout && vout_OSDEpg( p_vout, input_GetItem( p_input ) ) )
>>>>                  DisplayPosition( p_intf, p_vout, p_input );
>>>>              break;
>>>> +
>>>> +        /* font size */
>>>> +        case ACTIONID_FONT_SIZE_UP:
>>>> +        case ACTIONID_FONT_SIZE_DOWN:
>>>> +            if( p_vout )
>>>> +            {
>>>> +                module_config_t *p_config = config_FindConfig(
>>>> +                        VLC_OBJECT(p_vout), "freetype-rel-fontsize" );
>>> No, this is a bad idea. You should trigger that in the core.
>> I couldn't figure out what you mean with that.
>> Is there a function in core already to change font size?
>> Should I create one?
>> 
>> Maybe if there is something similar somewhere you can point me to it?
> Not all renderers are freetype.
> 
> And the mac interface had a way of doing it, IIRC.

Hi,

Currently, in the mac interface we directly use the "freetype-rel-fontsize“ variable as well.

Best regards,
David


More information about the vlc-devel mailing list