|
Problem:
I noticed your comment on the bottom of Creating and Deriving Fonts regarding bug 4155852. This bug has been closed with no action taken. Is it true that you can't apply a style to fonts such as Arial?
The problem is that font-to-style matching is not working properly for physical fonts (such as Arial or Palatino). You can only apply styles to logical fonts at this point (such as Dialog or SansSerif). As a workaround until the bug is fixed, you could do the following:
Font f = new Font("Palatino Bold", Font.PLAIN, 12);
instead of:
Font f = new Font("Palatino", Font.BOLD, 12);
But. how to solve it ? |
|