Page 1 of 1

Adjusting font-size in oxy_editor

Posted: Tue Mar 19, 2013 5:20 pm
by stdu
Hi,

is there a possibility to adjust the font-size of the text displayed in a "oxygen formfield" in the author mode? Inserting the CSS property "font-size" affects only oxy_label, but not the text or attribut displayed (and editable) via oxy_editor or oxy_textfield. It would be nice, if there were a possibility to customize this :)

Also the font-size in oxy_editor don't scale up or down, when pressing [Strg] + [Num +] or [Num -].

Greets,
Stefan

Re: Adjusting font-size in oxy_editor

Posted: Tue Mar 19, 2013 5:56 pm
by adriana_sbircea
Hello Stefan,

By default, a form control uses the font for GUI setting in <oXygen/> (Preferences/Fonts page). To achieve the desired behavior you can use the "fontInherit" property, like this:

Code: Select all

oxy_textfield( 
edit, "@attribute",
fontInherit, true);
}
The "fontInherit" property is supported by all the built-in form controls and it will force the control to use the font from its parent element (the element on which it is added). By using this property, the form control will also react to scaling requests.

Best Regards,
Adriana

Re: Adjusting font-size in oxy_editor

Posted: Tue Mar 19, 2013 7:19 pm
by stdu
Thx for your reply, Adriana. That works fine!
Greets,
Stefan