Re: [code] [textadept] Styles and font sizes

From: Mitchell <m.att.foicica.com>
Date: Thu, 9 Oct 2014 09:00:18 -0400 (Eastern Daylight Time)

Hi Richard,

On Thu, 9 Oct 2014, Richard Philips wrote:

> Hi Mitchell,
>
>
> It is possible to define new styles:
>
> local style_small = 'size:6'
>
>
> It is a pity that the actual size is a number.
>
> It would be really helpful if one could write:
>
> local style_small = 'size:smaller'
>
> very much like the CSS syntax.
>
> Is something like that possible in Textadept?

No, this is not possible. Textadept requires actual numbers for font
sizes.

> It would be sufficient if one could query the style properties.

You can. In my instance:

buffer.property['style.default'] --> font:%(font),size:%(fontsize)...
buffer.property['fontsize'] --> 11

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Thu 09 Oct 2014 - 09:00:18 EDT

This archive was generated by hypermail 2.2.0 : Fri 10 Oct 2014 - 06:28:16 EDT