[patch] gui, implement getAvailableFontFamilyNames
Thomas Fitzsimmons
fitzsim@redhat.com
Wed Oct 20 21:58:00 GMT 2004
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
More information about the Java-patches
mailing list