Change font for the LABEL object on the MViewPane

User d26f9da0bf

04-11-2004 21:18:04

I can change the size, bold, italic style of the font for LABEL object on the MViewPane. How can we change the font to "TIMES NEW ROME" or "COURRIER"?


The SanSerif is not good for alignment.

ChemAxon 7c2d26e5cf

05-11-2004 19:04:34

Code:



UserSettings settings = viewPane.getUserSettings();


Font f = new Font("Courier", Font.PLAIN, 12);


settings.setAtomFont(f);








Links:


http://www.chemaxon.com/marvin/doc/api/chemaxon/marvin/beans/MarvinPane.html#getUserSettings()


http://www.chemaxon.com/marvin/doc/api/chemaxon/marvin/common/UserSettings.html#setAtomFont(java.awt.Font)