Hello Dave,
I just took a look at the implementation of the qooxdoo font and it can only
handle integers as size. So I'm sorry but you can't have percentage values
of the font. But a test in the playground brought me the solution. The
example shows two labels, the first one will get a bigger font than the
default font is with the same font family.

var label1 = new qx.ui.basic.Label("1111");
this.getRoot().add(label1);
var label2 = new qx.ui.basic.Label("2222");
this.getRoot().add(label2, {left: 50});

var manager = qx.theme.manager.Font.getInstance();
var defaultFont = manager.resolve(label1.getFont());
var size = defaultFont.getSize();
var newFont = defaultFont.clone();
newFont.setSize(size + 3);
label1.setFont(newFont);

Regards,
Martin


dmbaggett-2 wrote:
> 
> 
> This is probably a FAQ, but I didn't find it anywhere... When I make a
> label,
> I know I can pass a qx.bom.Font to make the label's font bigger, like so:
> 
>   font : new qx.bom.Font(28, ["Verdana", "sans-serif"]),
> 
> But what if I don't want to change the default font; I just want to change
> the size? And what if I want to specify the size *relative* to the
> default,
> rather than as an absolute number of points?
> 
> Dave
> 
> -- 
> View this message in context:
> http://www.nabble.com/Font%3A-%22one-size-bigger%22--tp24928006p24928006.html
> Sent from the qooxdoo-devel mailing list archive at Nabble.com.
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Font%3A-%22one-size-bigger%22--tp3427693p3428986.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to