[squeak-dev] Arrow glyphs in default font

Juan Vuletich juan at jvuletich.org
Tue Apr 12 11:46:38 UTC 2011


Bert Freudenberg wrote:
> I just discovered that someone sneaked arrow glyphs into our fonts at unused positions. Cool.
>   

Yeah, that would be me, when I built this fonts. I wanted to please the 
majority, but wouldn't give up the left arrow assignment I like! There 
is also a duplicate of the caret and underscore glyphs. So in Cuis you 
can do 'StrikeFont useUnderscore' and 'StrikeFont useLeftArrow' (caret 
and up arrow also updated) as many times as you want without losing glyphs.

In Cuis you can also do: 'StrikeFont makeLfVisible', 'StrikeFont 
makeLfInvisible', 'StrikeFont makeTabVisible', 'StrikeFont 
makeTabInvisible' and 'StrikeFont makeControlCharsVisible'.

Cheers,
Juan Vuletich

> 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])]].
>
>   
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
>
>
>
> Try browsing the system after this:
>
> 	Preferences enable: #syntaxHighlightingAsYouTypeLeftArrowAssignment.
>
> Looks really nice (though the debugger breaks).
>
> - Bert 

It doesn't break in Cuis...

Cheers,
Juan Vuletich



More information about the Squeak-dev mailing list