Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8231014

Add first line text indent support for javafx.scene.text.TextFlow

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx14
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:

      Description

      A DESCRIPTION OF THE PROBLEM :
      A common feature in multi-line, wrapping text entry fields is the ability to indent the first line of text. This feature is commonly used for writers of prose where, instead of using multiple new lines to delineate paragraphs, a text indent is used on the first line of the text. This layout is also the standard in printed prose such as books.

      HTML CSS has support for this feature via the "text-indent" property. JTextPane in Java Swing supported it via StyleConstants.setFirstLineIndent().

      Please add a new JavaFX css property for TextFlow: "-fx-text-indent" (or similar) that allows the user to set the first line indent in the flow.


        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: