Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29847

Re: Text orientation

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Text orientation
Date 2014-08-24 22:33 -0700
Organization Canadian Mind Products
Message-ID <egilv9ttimdl60ksprdf0aodeve2usgj05@4ax.com> (permalink)
References <lte0mj$jc$2@dont-email.me>

Show all headers | View raw


On Mon, 25 Aug 2014 00:40:51 +0000 (UTC), Martin Gregorie
<martin@address-in-sig.invalid> wrote, quoted or indirectly quoted
someone who said :

>
>I can't find any hint that this may be possible with AWT/Swing, but did I 
>miss something? Alternatively, is it possible with JavaFX?

If you are willing to have the letters sideways, you can do it with
Affine Transform.  

Otherwise you will need FontMetrics and place each letter centered,
and fixed vertical spacing.

You paint each letter at centre line - width/2.

see http://mindprod.com/jgloss/fontmatrics.html

-- 
Roedy Green Canadian Mind Products http://mindprod.com
Errors using inadequate data are much less than those using no data at all. 
~ Charles Babbage (born: 1791-12-26 died: 1871-10-18 at age: 79)

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 00:40 +0000
  Re: Text orientation Knute Johnson <eternal@knutejohnson.com> - 2014-08-24 20:29 -0700
    Re: Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 11:56 +0000
  Re: Text orientation Roedy Green <see_website@mindprod.com.invalid> - 2014-08-24 22:33 -0700
  Re: Text orientation Jeff Higgins <jeff@invalid.invalid> - 2014-08-25 04:02 -0400
    Re: Text orientation Jeff Higgins <jeff@invalid.invalid> - 2014-08-25 04:44 -0400
      Re: Text orientation Martin Gregorie <martin@address-in-sig.invalid> - 2014-08-25 12:11 +0000

csiph-web