Home » Desktop Java » awt » font

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 »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns