Home » Desktop Java » awt » font


List all available font families

With this tutorial we are going to see how to list all available font families in your environment using Java. A font family refers to a set of font faces with a related typographic design. For example, the font faces in the Lucida Sans Typewriter family are Lucida Sans Typewriter Bold, and Lucida Sans Typewriter Regular etc. This example lists ...

Read More »

Draw mixed style text example

In this tutorial you are going to see how can you draw a line of text that each word has a different style In order to draw mixed style text in Java, all you have to do is: Set the desired font if different from default font using the Font class Use AttributedString to create String that you can work ...

Read More »