/[classpath]/classpath/gnu/java/awt/peer/ClasspathFontPeer.java
ViewVC logotype

Diff of /classpath/gnu/java/awt/peer/ClasspathFontPeer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by mkoch, Fri Oct 8 21:41:41 2004 UTC revision 1.6 by mkoch, Fri Oct 22 09:49:02 2004 UTC
# Line 218  public abstract class ClasspathFontPeer Line 218  public abstract class ClasspathFontPeer
218      AffineTransform trans = this.transform;      AffineTransform trans = this.transform;
219      float size = this.size;      float size = this.size;
220      int style = this.style;      int style = this.style;
221        
222      if (attribs.containsKey (TextAttribute.FAMILY))      if (attribs.containsKey (TextAttribute.FAMILY))
223        family = (String) attribs.get (TextAttribute.FAMILY);        family = (String) attribs.get (TextAttribute.FAMILY);
224    
# Line 243  public abstract class ClasspathFontPeer Line 243  public abstract class ClasspathFontPeer
243        {        {
244          Float sz = (Float) attribs.get (TextAttribute.SIZE);          Float sz = (Float) attribs.get (TextAttribute.SIZE);
245          size = sz.floatValue ();          size = sz.floatValue ();
246    
247            // Pango doesn't accept 0 as a font size.
248            if (size < 1)
249              size = 1;
250        }        }
251        else
252          size = 12;
253    
254      if (attribs.containsKey (TextAttribute.TRANSFORM))      if (attribs.containsKey (TextAttribute.TRANSFORM))
255        {        {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26