CSS Font size in points doesn't match Node.Font.Size
Stephen F Northover
steve.x.northover at oracle.com
Thu Mar 6 08:53:42 PST 2014
It can and should. See my previous post. If there is no JIRA for this,
then please create one.
On 2014-03-05 6:18 PM, Tom Schindl wrote:
> The question the is why fairly all other toolkits use point in their APIs.
> Some examples:
> * Qt: http://qt-project.org/doc/qt-5/qfont.html#QFont-2
> * Cocoa:
> * Pango:
> * AWT:
> * SWT:
> Why can't JavaFX not at least provide a font-API to create fonts with point?
> On 05.03.14 23:59, David Grieve wrote:
>> Everyone should just accept that there is no such thing as a 'point' in
>> JavaFX. Work in pixels and you will achieve nirvana.
>> On 3/5/14, 5:49 PM, Pedro Duque Vieira wrote:
>>> Here is the definition of point:
>>> As Jeff is saying it should be 1/72 inch.
>>> I think this should be the default. Isn't the introduction of modena
>>> potentially going to break more apps than changing the definition of
>>> Aren't breaking apps making use of a bug that they shouldn't be taking
>>> advantage of in the first place?
>>> That being said, and if changing the default point definition is not
>>> possible, being able to change this through a global settings property so
>>> that node matches CSS, sound like a reasonable workaround.
More information about the openjfx-dev