[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: Text classes
From:       Jeff Hain <jeffhain () rocketmail ! com>
Date:       2017-11-26 20:38:55
Message-ID: 1347202845.4791682.1511728735414 () mail ! yahoo ! com
[Download RAW message or body]


>LineBreakMeasurers and HitTesting and everything. 
>
>In JavaFX these things are not directly available to the dev and
>anyway, to the extent that they are, they cannot be used to write a
>rich text editor..

+1

Reminds me of this:
http://mail.openjdk.java.net/pipermail/openjfx-dev/2015-April/017043.html

Currently working with a lot of UI libraries, I observe that JavaFX is
the only one without an API for font metrics.

It's also the only one that silently uses an undefined fallback font
when the glyph is missing in the specified font, which doesn't allow for
the user to figure out what his fonts are capable of and to choose other
known and more appropriate fonts of his own for the glyphless code points.
It would be great to have a mode where only the specified font is used.

It's also missing an equivalent of java.awt.Font.canDisplay(codePoint)
(as a lot of the other libraries I'm working with).

It would be nice also to make Canvas.snapshot(...) faster (possibly by
allowing for rendering in the JavaFX application thread?).
For now it's so slow that I always take a complete snapshot (which is
not much slower than for a single pixel), and keep track of which pixels
are drawn, to avoid calling it before reading non-dirty pixels.

-Jeff

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic