• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 18. Fonts > Drawing Text

18.3. Drawing Text

There are five different text-drawing routines provided by SWT. As with all other drawing operations, they are implemented in class GC. The result is always drawn inside a rectangular area whose top left corner is specified by the values passed as the x and y parameters. We will discuss further how the text is aligned in this area in the FontMetrics section.

The first two text-drawing routines do not interpret the string to be drawn in any way. For maximum performance, they simply pass the string along to the raw platform text-drawing routines.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint