Chapter 5 Notes (staqrt on Fitting text to available size)

Title: Dealing with Sizes

Summary

This chapter covers the consequences of different sized pixels and how we treat them.

Oh that screen drivers were built report screen size and to take unchanging units like inches and translate them based on the hardware. This would be a non-issue as we would always specify things in inches. BUT of course we would be discussing the exponential scaling curve that dictates how much you can scale down... (think dpi as a scaling factor). Then the curve might be <<latex($ScaleFactor = B e^{-x}$)>>

Programming Concepts Summary

Concept

Page

Consequences of different sized pixels

87-89

Orientation changes are supported by default, but can be turned off.

95

Font Sizes

97

Programs

WhatSizePage

Page 91.

Concepts:

  1. Demonstrates the different sizes on different screens. Note: THIS PROGRAM DOES NOT USE DUIs! Instead it uses
  2. Demonstrates the event pattern by responding to size changes.

Classes:

No new classes.

MetricalBoxViewPage

Page 96

Concepts:

  1. Demonstrates the differences in platforms when setting the same value for the DUI unit on different platforms using a BoxView.

No new classes.

FonteSizesPage

Page 97

Concepts:

  1. Demonstrates the named font sizes compared to point font sizes.

No new classes.