Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Font Heights as Double/Float rather than Integer(How to specify font height with decimals)
Font Heights as Double/Float rather than Integer [message #1697054] Mon, 01 June 2015 08:59
John Gymer is currently offline John GymerFriend
Messages: 279
Registered: November 2012
Location: UK
Senior Member
In HTML/CSS, it is possible to specify font heights with decimal points, which is useful when converting from Pixels to Points. For example, 8px is essentially 10.6pt (think I've got it the right way around!).

However, RAP only supports Integer font heights (SWT restriction with Font#setHeight method). It would be very useful to be able to specify height with decimal precision to support automatic conversion of pt-to-px values.

The reality is that 8pt is not identical to 10px or 11px, so text takes up different physical dimensions. Using a tight UI design that used 8pt cannot therefore be automatically placed in RAP without undersizing or oversizing.

Is this possible? Perhaps there is another way to do it?

Thanks, John


---
Just because you can doesn't mean you should
Previous Topic:How to change padding around views/editors title text
Next Topic:BrowserFunctions and evaluate from different Browser(s)
Goto Forum:
  


Current Time: Sat Apr 27 02:52:48 GMT 2024

Powered by FUDForum. Page generated in 0.03294 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top