Re: FontMetrics from HSSFFont?

2002-03-07 Thread acoliver
I think you have to construct an AWT font class. But I want a clean room impl. for POI. You'll have to construct an AWT Font using the info in HSSFFont. >On Thu, 7 Mar 2002 15:24:29 -0500 "D. Alvarado" <[EMAIL PROTECTED]> wrote. >This is sort of along the lines of a question I asked earlier abo

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Rainer Klute
>I think you have to construct an AWT font class. But I want a clean room >impl. for POI. You'll have to construct an AWT Font using the info in >HSSFFont. What do you mean by "clean room"? AWT is standard Java. Best regards Rainer Klute RAINER KLUTE IT-CONSULTI

RE: FontMetrics from HSSFFont?

2002-03-07 Thread Hatzenbeler, Tim
Title: RE: FontMetrics from HSSFFont? I run a JVM on an AS/400  it's an IBM midrange computer, and it does not have a graphical interface.. So to use AWT classes, they created this RAWT class that you link over the AWT classes that make tcp/ip calls to a PC, to handle font metrics.

RE: FontMetrics from HSSFFont?

2002-03-07 Thread Danny Angus
eler, Tim [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 07, 2002 9:56 PM To: '[EMAIL PROTECTED]' Subject: RE: FontMetrics from HSSFFont? I run a JVM on an AS/400 it's an IBM midrange computer, and it does not have a graphical interface.. So to use AWT classes, they created this

RE: FontMetrics from HSSFFont?

2002-03-07 Thread Andrew C. Oliver
ically JDBC changes) but > only runs fully under 1.4. :-( > > theres some details on the sun site, but I don't have any links. > > d. > > > -Original Message- > From: Hatzenbeler, Tim [mailto:[EMAIL PROTECTED]] > Sent: Thursday, March 07, 2002 9:56 PM >

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Rainer Klute
"D. Alvarado" <[EMAIL PROTECTED]> wrote: >... But now it gets tricky. There is no method in Font that returns a FontMetrics >object. You need your Graphics instance. It has a getFontMetrics(Font) method. >I suppose now I'm venturing into pure Java territory, and perhaps outside the scope >of

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Said Ackley
lt;[EMAIL PROTECTED]> Cc: "Rainer Klute" <[EMAIL PROTECTED]> Sent: Thursday, March 07, 2002 4:23 PM Subject: Re: FontMetrics from HSSFFont? "D. Alvarado" <[EMAIL PROTECTED]> wrote: >... But now it gets tricky. There is no method in Font that returns a FontMe

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Andrew C. Oliver
ltStyleContext(); > Font font = new Font(...); > FontMetrics fm = context.getFontMetrics(font); > > - Original Message - > From: "Rainer Klute" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "Rainer Klute" <[EMAIL PROTECTED]>

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Andrew C. Oliver
On Thu, 2002-03-07 at 16:23, Rainer Klute wrote: > "D. Alvarado" <[EMAIL PROTECTED]> wrote: > >... But now it gets tricky. There is no method in Font that returns a FontMetrics > >object. > > You need your Graphics instance. It has a getFontMetrics(Font) method. > > > >I suppose now I'm ventu

RE: FontMetrics from HSSFFont?

2002-03-07 Thread Danny Angus
> -Original Message- > From: Andrew C. Oliver [mailto:[EMAIL PROTECTED]] > Sent: Friday, March 08, 2002 12:14 AM > To: POI Development > Subject: RE: FontMetrics from HSSFFont? > > > The question is: Using this, can you get a reliable measure on what the >

RE: FontMetrics from HSSFFont?

2002-03-07 Thread Danny Angus
; <[EMAIL PROTECTED]> > > To: <[EMAIL PROTECTED]> > > Cc: "Rainer Klute" <[EMAIL PROTECTED]> > > Sent: Thursday, March 07, 2002 4:23 PM > > Subject: Re: FontMetrics from HSSFFont? > > > > > > "D. Alvarado" <[EMAIL PROTECTE

Re: FontMetrics from HSSFFont?

2002-03-07 Thread Nicola Ken Barozzi
>On Thu, 2002-03-07 at 20:46, Said Ackley wrote: > > This is one way to get a FontMetrics object w/o a Graphics object > > > > StyleContext context = StyleContext.getDefaultStyleContext(); > > Font font = new Font(...); > > FontMetrics fm = context.getFontMetrics(font); > > From: "Andrew C. Oliv

Re: FontMetrics from HSSFFont?

2002-03-08 Thread Glen Stampoutlzis
Looks good! - Original Message - From: "Nicola Ken Barozzi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 08, 2002 6:44 PM Subject: Re: FontMetrics from HSSFFont? > >On Thu, 2002-03-07 at 20:46, Said Ackley wrote: > > > This is on

RE: FontMetrics from HSSFFont?

2002-03-08 Thread Andrew C. Oliver
> FontMetrics fm = context.getFontMetrics(font); > > > > > > - Original Message - > > > From: "Rainer Klute" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Cc: "Rainer Klute" <[EMAIL PROTECTED]> >

Re: FontMetrics from HSSFFont?

2002-03-08 Thread Andrew C. Oliver
*clapping* YES! Thats a great start. We definitely need Arial and Tahoma but thats a great start! On Fri, 2002-03-08 at 02:44, Nicola Ken Barozzi wrote: > >On Thu, 2002-03-07 at 20:46, Said Ackley wrote: > > > This is one way to get a FontMetrics object w/o a Graphics object > > > > > > Style

Re: Re: FontMetrics from HSSFFont?

2002-03-07 Thread D. Alvarado
> I think you have to construct an AWT font class. But I want a clean room > impl. for POI. You'll have to construct an AWT Font using the info in > HSSFFont. > I don't think it's too much of a stretch to create a java.awt.Font class using the class's constructor: Font(String name, int sty

Re: Re: Re: FontMetrics from HSSFFont?

2002-03-07 Thread acoliver
>On Thu, 7 Mar 2002 16:11:35 -0500 "D. Alvarado" <[EMAIL PROTECTED]> wrote. >> I think you have to construct an AWT font class. But I want a clean room >> impl. for POI. You'll have to construct an AWT Font using the info in >> HSSFFont. >> > >I don't think it's too much of a stretch to create

Re: Re: Re: FontMetrics from HSSFFont?

2002-03-07 Thread Glen Stampoutlzis
> > > >I don't think it's too much of a stretch to create a java.awt.Font class > using the class's > >constructor: > > > >Font(String name, int style, int size), > > > >and it's straightforward to extract the necessary HSSFFont parameters to > pass into the Font > >constructor. But now it gets t

RE: Re: Re: FontMetrics from HSSFFont?

2002-03-07 Thread Danny Angus
>please donate a FontMetrics that just takes a > font name > > and knows about a standard set (basic unix and windows fonts without > > depending on awt or swing). Otherwise, eventually I'll get around to it > but > > not yet. > > > > -Andy > > Sounds like what we need is a separate program that