on 11-26-2007 9:38 AM
hi,
how we can access all the fonts and according to that font how we set style.
thanks and regards
trilochan
Hello Trilochan,
regarding the first part of your question: The set of all available fonts can be retrieved via
Font[] fonts = java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts();
Regarding the second part: I am not sure I understand what you mean. Can you please explain?
Regards,
Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Get all the fonts in a ArrayList and use from the ArrayList by their index value.
Regards
Nithya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.