O'Reilly logo

iText in Action: Creating and Manipulating PDF by Bruno Lowagie

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Using fonts

This chapter covers

  • How to write from top to bottom

  • How to write from right to left

  • How to deal with diacritics and ligatures

  • How to automate font selection

In the previous chapter, you learned how to get a font object of type Font or BaseFont. You’ve worked with these objects in the most common situations: using paragraphs of text written from left to right in horizontal lines. In this chapter, we’ll look at some other writing directions. I’ll have to find extra Asian movie titles to demonstrate how you can write a text in vertical columns; and I need Hebrew and Arabic titles to explain how to change the run direction so that text is written from right to left. This will allow you to implement the first part of Laura’s “message ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required