Python 2.6 Graphics Cookbook
上QQ阅读APP看书,第一时间看更新

Chapter 3. Handling Text

In this chapter, we will cover:

  • Simple text
  • Text font type, size, and color
  • Placement of text – north, south, east, and west
  • Placement of text – right and left justification
  • Fonts available on your platform

Introduction

Text can be tricky. We need to be able to manipulate font family, size, color, and placement. Placement in turn requires that we specify where text must begin and what areas it should be confined to.

In this chapter, we focus on handling text on a canvas.