JDK-8101618 : Canvas: Text Impl
  • Type: Sub-task
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-05-08
  • Updated: 2015-06-16
  • Resolved: 2012-05-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Fixed
Description
Canvas Text implementation requires some work
- Implement maxWidth
- Alignment does not work with transformed text
- Incorrect default font
- Transformation has no affect on text
- Transformation does not affect text bounds


Comments
verified in b13
21-06-2012

Screenshot of toys canvastest.CanvasTextAlign with provided patch. Showing text transformation, maxWidth, and alignment.
11-06-2012

Pushed fix into Canvas Repo rt changeset: 979:3958e43a6d82 rt-closed changeset: 16087:9875706a11b6
11-05-2012

Implemented maxWidth scale now graphicsContext.fillText(text, x, y, maxWidth); will scale text along x so that it does not exceed maxWidth.
11-05-2012

The default font chosen is the FX Font.getDefault() not the HTML Canvas spec, which uses 10px sans-serif as default. Since we want FX experience over HTML Canvas (See Jasper)
08-05-2012