Morphic-TrueType

TTSampleFontMorph
An example for using TrueType fonts.
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.
addOptionalHandlesTo:box:
areasRemainingToFill:
Pushed up from BorderedMorph, all cases tested for there are
supported by basic Morph.
balloonHelpTextForHandle:
Answer a string providing balloon help for the
given halo handle
canDrawBorder:
Return true if the receiver can be drawn with the given border style.
changed
Report that the area occupied by this morph should be redrawn.
Fixed to include submorphs outside the outerBounds.
computeTransform
createSample
defaultBorderWidth
answer the default border width for the receiver
defaultColor
answer the default color/fill style for the receiver
doesBevels
To return true means that this object can show bevelled borders, and
therefore can accept, eg, #raised or #inset as valid borderColors.
Must be overridden by subclasses that do not support bevelled borders.
drawCharactersOn:
drawOn:
extent:
font
font:
fontWithoutString:
getSmoothingLevel
Menu support
glyphAt:
glyphIndexAt:
initialize
initialize the state of the receiver
newTransformationMorph
nextSmoothingLevel
open
openInWorld
Add this morph to the world.
position:
Change the position of this morph and and all of its
submorphs.
printOn:
Append to the argument, aStream, a sequence of characters that
identifies the receiver.
privateMoveBy:
Private! Use 'position:' instead.
selectGlyph
Modal glyph selector
selectGlyphAndSendTo:
selectGlyphBlock:event:from:
smoothing
smoothing:
transform
veryDeepFixupWith:
If fields were weakly copied, fix them here. If they were in the
tree being copied, fix them up, otherwise point to the originals!!
veryDeepInner:
Copy all of my instance variables. Some need to be not copied at all,
but shared. Warning!! Every instance variable defined in this class
must be handled. We must also implement veryDeepFixupWith:.
See DeepCopier class comment.
TTSampleStringMorph
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.
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.
addOptionalHandlesTo:box:
computeTransform
containsPoint:
^ super containsPoint: aPoint
defaultBorderWidth
answer the default border width for the receiver
defaultColor
answer the default color/fill style for the receiver
drawOn:
edit
Allow the user to change the text in a crude way
font:
howTo
initializeString
initializeToStandAlone
Make me into an example
loadFromURL
Allow the user to change the text in a crude way
loadFromURL:
Fetch the file, unarchive, unzip, and use as my font.
printOn:
Append to the argument, aStream, a sequence of characters that
identifies the receiver.
string
string: