Adjusting font-size in oxy_editor

Post here questions and problems related to oXygen frameworks/document types.
stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Adjusting font-size in oxy_editor

Post by stdu » Tue Mar 19, 2013 5:20 pm

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

adriana_sbircea
Posts: 1
Joined: Tue Mar 19, 2013 5:39 pm

Re: Adjusting font-size in oxy_editor

Post by adriana_sbircea » Tue Mar 19, 2013 5:56 pm

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
Adriana Sbircea
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

stdu
Posts: 81
Joined: Mon Mar 05, 2012 5:23 pm

Re: Adjusting font-size in oxy_editor

Post by stdu » Tue Mar 19, 2013 7:19 pm

Thx for your reply, Adriana. That works fine!
Greets,
Stefan

Post Reply