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


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

Re: Text orientation

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!aioe.org!.POSTED!not-for-mail
From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Text orientation
Date Sun, 24 Aug 2014 22:33:23 -0700
Organization Canadian Mind Products
Lines 22
Message-ID <egilv9ttimdl60ksprdf0aodeve2usgj05@4ax.com> (permalink)
References <lte0mj$jc$2@dont-email.me>
Reply-To Roedy Green <see_website@mindprod.com.invalid>
NNTP-Posting-Host K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
User-Agent ForteAgent/7.20.32.1218
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com comp.lang.java.programmer:29847

Show key headers only | 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