Screen Fonts in Swing  
Author Message
viator





PostPosted: 2003-10-30 1:04:00 Top

java-programmer, Screen Fonts in Swing Hello everybody;

Is there a way to access screen fonts (Fixedsys, Courier, Terminal ...)
on a windows machine using java swing. I tried the following. . .

GriphicsEnvironment.getAvailableFontFamilyNames()

but it does not return screen font names. I also tried

Font fn=new Font("Courier",Font.PLAIN,10)

But it returns 'Courier New' font instead of 'Courier'.
 
Harald Hein





PostPosted: 2003-10-30 14:13:00 Top

java-programmer >> Screen Fonts in Swing "viator" wrote:

> GriphicsEnvironment.getAvailableFontFamilyNames()
>
> but it does not return screen font names. I also tried
>
> Font fn=new Font("Courier",Font.PLAIN,10)
>
> But it returns 'Courier New' font instead of 'Courier'.

Java does not know about bitmap fonts.