[patch] gui, implement getAvailableFontFamilyNames

Andreas Tobler toa@pop.agri.ch
Wed Oct 20 21:55:00 GMT 2004


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 ?

Andreas

Thanks for in depth review!
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: allfonts1.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041020/0cf67610/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gnu_java_awt_peer_gtk_GdkGraphicsEnvironment.c
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041020/0cf67610/attachment.c>


More information about the Java-patches mailing list