This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [patch] gui, implement getAvailableFontFamilyNames
- From: Thomas Fitzsimmons <fitzsim at redhat dot com>
- To: Andreas Tobler <toa at pop dot agri dot ch>
- Cc: Java Patches <java-patches at gcc dot gnu dot org>
- Date: Wed, 20 Oct 2004 17:58:28 -0400
- Subject: Re: [patch] gui, implement getAvailableFontFamilyNames
- References: <4176CABA.8070100@pop.agri.ch> <4176DECF.1070709@pop.agri.ch>
On Wed, 2004-10-20 at 17:55, Andreas Tobler wrote:
> Andreas Tobler wrote:
>
> > Hi all,
> >
> > I have to go a step back.
> > Implementing getAllFonts is a bit more complicated than it seemed on the
> > first view. We have to return an array of _all_ fonts available on the
> > system. That means all combinations with plain, bold, italic ....
> >
> > My underlying gtk uses different names for the styles (faces) so I have
> > first to study on how to map them.
> >
> > I decided to bring up only the getAvailableFontFamilyNames for the
> > moment. It should be enough for the curious to play with different fonts :)
> >
> > If you have the resources (time and interest), I'd welcome some feedback).
> >
> > Andreas
> >
> > 2004-10-20 Andreas Tobler <a.tobler@schweiz.ch>
> >
> > * jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c:
> > New File.
> > (nativeGetNumFontsFamilies) New function.
> > (nativeGetFontFamilies) Likewise.
> > * gnu/java/awt/peer/gtk/GdkGraphicsEnvironment.java
> > (getAvailableFontFamilyNames): Implement.
> > * Makefile.am (gtk_c_source_files): Add GdkGraphicsEnvironment.c.
> > * Makefile.in: Regenerate.
>
> Ok, reviewed by fitzsim.
>
> ok for gui ?
>
Yes, look great. Please commit.
Tom