[squeak-dev] Arrow glyphs in default font

Bert Freudenberg bert at freudenbergs.de
Tue Apr 12 11:04:43 UTC 2011


I just discovered that someone sneaked arrow glyphs into our fonts at unused positions. Cool.

arrows := true.
(TextStyle fontArrayForStyle: 'Bitmap DejaVu Sans') do: [:f |
	{f}, f derivativeFonts do: [:font |
		font characterToGlyphMap
			at: $^ asInteger+1 put: (arrows ifTrue: [130] ifFalse: [128]);
			at: $_ asInteger+1 put: (arrows ifTrue: [131] ifFalse: [129])]].

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-11.png
Type: image/png
Size: 18926 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20110412/5494343f/PastedGraphic-11.png
-------------- next part --------------


Try browsing the system after this:

	Preferences enable: #syntaxHighlightingAsYouTypeLeftArrowAssignment.

Looks really nice (though the debugger breaks).

- Bert -



More information about the Squeak-dev mailing list