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

Draw TextLayout along a path

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • 2d
    • Fix Understood
    • x86
    • windows_nt



      Name: gm110360 Date: 05/21/2002


      FULL PRODUCT VERSION :
      java version "1.4.0-internal"
      Java(TM) 2 Runtime Environment, Standard Edition (build
      1.4.0-internal-duggie_19_jan_2002_09_54)
      Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

      generic - feature request



      A DESCRIPTION OF THE PROBLEM :
      If you want to draw internationalized text along a path,
      either you have to do all the layout yourself, or TextLayout
      has to do it. Most people don't know enough about
      internationalization and complex text to do this. Currently
      TextLayout provides only horizontal layout. You can't use
      LineBreakMeasurer to create multiple layouts and rotate the
      graphics before drawing each layout, because
      LineBreakMeasurer creates each new layout as though it was
      at a line break, which is NOT what you want (it
      influences bidi processing of the text).

      This might be the only way to resolve the "drawString with
      rotated Font transform" problem anyway. A definition of how
      TextLayout hit tests and draws carets along a path, and how
      it measures text, and what things like the bounds of the
      layout are, would let it handle text that uses fonts with
      rotated transforms. You might just treat such fonts as
      defining a baseline, and multiple runs mean a curved (in the
      general sense) baseline. More work for TextLayout but it
      could probably optimize for the standard case.

      This bug can be reproduced always.
      (Review ID: 139786)
      ======================================================================

            dougfelt Doug Felt
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: