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
>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
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.
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
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
>
"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
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
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]>
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
> -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
>
; <[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
>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
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
> FontMetrics fm = context.getFontMetrics(font);
> > >
> > > - Original Message -
> > > From: "Rainer Klute" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Cc: "Rainer Klute" <[EMAIL PROTECTED]>
>
*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
> 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
>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
> >
> >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
>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
19 matches
Mail list logo