Sets the Font to be used in future text.
(Font font)
| 902 | * Sets the Font to be used in future text. |
| 903 | */ |
| 904 | @Override |
| 905 | public void setFont(Font font) { |
| 906 | if(font==null) { |
| 907 | font = Font.decode(null); |
| 908 | } |
| 909 | _font = font; |
| 910 | if(!getAccurateTextMode()) { |
| 911 | append("/"+_font.getPSName()+" findfont "+(_font.getSize())+" scalefont setfont"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | /** |
| 916 | * Gets the font metrics of the current font. |
no test coverage detected