Bug 16736 - Can't set font size in constructor
Summary: Can't set font size in constructor
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: awt (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: pre-0.18
Assignee: djee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-27 00:27 UTC by djee
Modified: 2005-10-16 01:53 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2004-07-27 01:27:08


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description djee 2004-02-24 14:37:15 UTC
Currently, we hard code the font size to 12 in GtkFontPeer
constructor.    When you do something like the following:

  Font font = new Font("Helvetica", Font.BOLD, 25);

the font size gets ignored.  GtkFontPeer's constructor should be fixed
to accept font sizes.
Comment 1 djee 2004-02-25 12:39:04 UTC
Fixed in java-gui-branch.  Please verify with the Font.BaseLine Acunia
test.
Comment 2 djee 2004-02-25 12:39:29 UTC
Oops closed bug by mistake.  Reopening.
Comment 3 djee 2004-02-25 12:40:08 UTC
Marking as MODIFIED (fix waiting for verification).
Comment 4 Thomas Fitzsimmons 2004-05-18 17:16:48 UTC
Verified; fixed on java-gui-branch.
Comment 5 Thomas Fitzsimmons 2004-07-27 01:27:25 UTC
Fixed.