[squeak-dev] Arrow glyphs in default font

Casey Ransberger casey.obrien.r at gmail.com
Tue Apr 12 19:12:03 UTC 2011


And this is IMHO just top notch user experience. It's one of the things I really enjoy about Cuis. Something feels really right about the classic glyphs. It's a shame that it doesn't play well with ANSI assignment, but we can totally do the up arrow in Squeak, maybe make it a preference. 

On Apr 12, 2011, at 4:46 AM, Juan Vuletich <juan at jvuletich.org> wrote:

> 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