Squeak Class Documentation category index | class index  
 
TTSampleStringMorph
  category: Balloon-TrueType Support
  superclass: TTSampleFontMorph
  subclasses:

I allow the display of a string in a TrueType font as a stand-alone morph.

Morph's color changes the inside of the characters.
Morph's borderColor changes the outline.

Many free fonts are stored at www.FontGuy.com.
Use a normal web browser (not our Scamper) and go there.
Choose 'categories' and browse to a font you like.
Hold the mouse down on the example text in that font.
When the menu comes up, choose "Copy this link location".
Come back into Squeak, choose "load font from web..."
from my menu, and paste in the url.

instance methods
  accessing
  addOptionalHandlesTo:box:
font:
string
string:

  drawing
  drawOn:

  geometry
  containsPoint:

  initialize
  initialize
initializeString
initializeToStandAlone

  menus
  addCustomMenuItems:hand:
edit
howTo
loadFromURL
loadFromURL:

  private
  computeTransform

class methods
  parts bin
  descriptionForPartsBin

instance methods
  accessing top  
 

addOptionalHandlesTo:box:


 

font:


 

string


 

string:


  drawing top  
 

drawOn:


  geometry top  
 

containsPoint:

^ super containsPoint: aPoint


  initialize top  
 

initialize


 

initializeString


 

initializeToStandAlone

Make me into an example


  menus top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

edit

Allow the user to change the text in a crude way


 

howTo


 

loadFromURL

Allow the user to change the text in a crude way


 

loadFromURL:

Fetch the file, unarchive, unzip, and use as my font.


  private top  
 

computeTransform


class methods
  parts bin top  
 

descriptionForPartsBin

If the receiver is a member of a class that would like to be represented in a parts bin, answer the name by which it should be known, and a documentation string to be provided, for example, as balloon help. When the 'nativitySelector' is sent to the 'globalReceiver', it is expected that some kind of Morph will result. The parameters used in the implementation below are for documentation purposes only!