[#4446] Better support for custom font sizes

No commits have been made.

Please log in

State: more information
Open
Date:
2009-12-16 19:28
Priority: more information
3
Submitted By:
Bennett Landman (bennett)
Assigned To: more information
Nobody (None)
Operating System: 
None
Component: 
None
Summary: more information
Better support for custom font sizes

Detailed description

Retool the font scaling to use the user-defined mipav fonts in gov.nih.mipav.view.MipavUtil

MipavUtil.defaultMenuFont = new Font(fontName, Font.BOLD, size);
MipavUtil.defaultAcceleratorFont = new Font(fontName, Font.PLAIN, size - 3);

MipavUtil.font10 = new Font(fontName, Font.PLAIN, size - 2);
MipavUtil.font12 = new Font(fontName, Font.PLAIN, size);
MipavUtil.font12B = new Font(fontName, Font.BOLD, size);

MipavUtil.font12I = new Font(fontName, Font.ITALIC, size);
MipavUtil.font13B = new Font(fontName, Font.BOLD, size + 1);
MipavUtil.font14 = new Font(fontName, Font.PLAIN, size + 2);
MipavUtil.font14B = new Font(fontName, Font.BOLD, size + 2);
MipavUtil.font16B = new Font(fontName, Font.BOLD, size + 4);
MipavUtil.font18B = new Font(fontName, Font.BOLD, size + 6);

// build one "dummy" menu item to get the correct Y padding with the font
final JMenuItem dummy = ViewMenuBuilder.buildMenuItem("dummy", "dummy", 0, null, "save.gif", true);
MipavUtil.MENU_Y_PADDING = dummy.getPreferredSize().height;

Response

No Responses Have Been Posted

Attached Files:

Name Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item