[sword-svn] r134 - trunk/app/src/org/crosswire/flashcards

Apache apache at www.crosswire.org
Fri Nov 9 11:49:36 MST 2007


Author: 
Date: 2007-11-09 11:49:35 -0700 (Fri, 09 Nov 2007)
New Revision: 134

Modified:
   trunk/app/src/org/crosswire/flashcards/ComplexLesson.java
Log:
changed positioning slightly to support SIL fonts better


Modified: trunk/app/src/org/crosswire/flashcards/ComplexLesson.java
===================================================================
--- trunk/app/src/org/crosswire/flashcards/ComplexLesson.java	2007-11-09 10:46:00 UTC (rev 133)
+++ trunk/app/src/org/crosswire/flashcards/ComplexLesson.java	2007-11-09 18:49:35 UTC (rev 134)
@@ -248,11 +248,11 @@
                    // We need more intelligent font handling here.  Maybe in load(), when we
                    // grab the font name, we could also look in the lesson for the font file
                    // itself, otherwise look for it app-wide (whatever that means)
-                    g2d.setFont((font != null) ? font : g2d.getFont().deriveFont(Font.BOLD, (int)(height*.75)));
+                    g2d.setFont((font != null) ? font : g2d.getFont().deriveFont(Font.BOLD, (int)(height*.74)));
 //System.out.println("### Using Font: " + g2d.getFont().getName());
 
                     Rectangle2D rect = g2d.getFont().getStringBounds(f.getFront(), g2d.getFontRenderContext());
-                    g2d.drawString(f.getFront(), 4, (int)(height*.70));
+                    g2d.drawString(f.getFront(), 4, (int)(height*.72));
                     bufferedImage = bufferedImage.getSubimage(0, 0, (int)(rect.getWidth()+8), 40);
 
                     // Graphics context no longer needed so dispose it




More information about the sword-cvs mailing list