Help with PrStef with Fonts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Help with PrStef with Fonts

stepharo
Hi

I'm trying to understand why PrStef does not use the fonts I defined for
shooting the videos

StandardFonts codeFont:
      (LogicalFont familyName: 'Source Code Pro' pointSize: 15).
     StandardFonts defaultFont:
      (LogicalFont familyName: 'Source Code Sans' pointSize: 13).
     StandardFonts listFont:
      (LogicalFont familyName: 'Source Code Sans' pointSize: 18).
     StandardFonts menuFont:
      (LogicalFont familyName: 'Source Code Sans' pointSize: 18).
     StandardFonts buttonFont:
      (LogicalFont familyName: 'Source Code Sans' pointSize: 12).

I tried to avoid to convert a text into a string...

may be

showLesson: aLesson withTitle: aString
     self window setLabel: aString.
     self sourceTextModel setText: aLesson lesson.
     self isOpenInWindow ifFalse: [ self open ]


but I do not know :(

Stef

Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

Nicolai Hess-3-2


2016-02-24 12:18 GMT+01:00 stepharo <[hidden email]>:
Hi

I'm trying to understand why PrStef does not use the fonts I defined for shooting the videos

StandardFonts codeFont:
     (LogicalFont familyName: 'Source Code Pro' pointSize: 15).
    StandardFonts defaultFont:
     (LogicalFont familyName: 'Source Code Sans' pointSize: 13).
    StandardFonts listFont:
     (LogicalFont familyName: 'Source Code Sans' pointSize: 18).
    StandardFonts menuFont:
     (LogicalFont familyName: 'Source Code Sans' pointSize: 18).
    StandardFonts buttonFont:
     (LogicalFont familyName: 'Source Code Sans' pointSize: 12).

I tried to avoid to convert a text into a string...

may be

showLesson: aLesson withTitle: aString
    self window setLabel: aString.
    self sourceTextModel setText: aLesson lesson.
    self isOpenInWindow ifFalse: [ self open ]


but I do not know :(

Stef


Maybe both,
beForSmalltalkCode and beForSmalltalkScripting in
RubScrolledTextMorph should use
self textArea font: StandardFonts codeFont

At the moment, only beForSmalltalkCode sets this font.

Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

stepharo


may be

showLesson: aLesson withTitle: aString
    self window setLabel: aString.
    self sourceTextModel setText: aLesson lesson.
    self isOpenInWindow ifFalse: [ self open ]


but I do not know :(

Stef


Maybe both,
beForSmalltalkCode and beForSmalltalkScripting in
RubScrolledTextMorph should use
self textArea font: StandardFonts codeFont

At the moment, only beForSmalltalkCode sets this font.

Yes I did the same as you, I tried to add

beForSmalltalkScripting
    self textArea beForSmalltalkScripting.
    self textArea font: StandardFonts codeFont

But without success. I'm puzzled.
Stef

Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

Nicolai Hess-3-2


Am 24.02.2016 5:26 nachm. schrieb "stepharo" <[hidden email]>:
>
>
>>>
>>> may be
>>>
>>> showLesson: aLesson withTitle: aString
>>>     self window setLabel: aString.
>>>     self sourceTextModel setText: aLesson lesson.
>>>     self isOpenInWindow ifFalse: [ self open ]
>>>
>>>
>>> but I do not know :(
>>>
>>> Stef
>>>
>>
>> Maybe both,
>> beForSmalltalkCode and beForSmalltalkScripting in
>> RubScrolledTextMorph should use
>> self textArea font: StandardFonts codeFont
>>
>> At the moment, only beForSmalltalkCode sets this font.
>
>
> Yes I did the same as you, I tried to add
>
> beForSmalltalkScripting
>     self textArea beForSmalltalkScripting.
>
>     self textArea font: StandardFonts codeFont
>
> But without success. I'm puzzled.
> Stef
>

And you need to reset the tutorial, it reuses the existing lesson view.

Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

Nicolai Hess-3-2


Am 24.02.2016 5:29 nachm. schrieb "Nicolai Hess" <[hidden email]>:
>
>
> Am 24.02.2016 5:26 nachm. schrieb "stepharo" <[hidden email]>:
> >
> >
> >>>
> >>> may be
> >>>
> >>> showLesson: aLesson withTitle: aString
> >>>     self window setLabel: aString.
> >>>     self sourceTextModel setText: aLesson lesson.
> >>>     self isOpenInWindow ifFalse: [ self open ]
> >>>
> >>>
> >>> but I do not know :(
> >>>
> >>> Stef
> >>>
> >>
> >> Maybe both,
> >> beForSmalltalkCode and beForSmalltalkScripting in
> >> RubScrolledTextMorph should use
> >> self textArea font: StandardFonts codeFont
> >>
> >> At the moment, only beForSmalltalkCode sets this font.
> >
> >
> > Yes I did the same as you, I tried to add
> >
> > beForSmalltalkScripting
> >     self textArea beForSmalltalkScripting.
> >
> >     self textArea font: StandardFonts codeFont
> >
> > But without success. I'm puzzled.
> > Stef
> >
>
> And you need to reset the tutorial, it reuses the existing lesson view.

And maybe we should use beForSmalltalkScripting in the helpbrowser as well, because right now, you can not use "printIt"

Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

stepharo
can you add a bug entry I will fix the other and publish it.

Le 24/2/16 17:31, Nicolai Hess a écrit :


Am 24.02.2016 5:29 nachm. schrieb "Nicolai Hess" <[hidden email]>:
>
>
> Am 24.02.2016 5:26 nachm. schrieb "stepharo" <[hidden email]>:
> >
> >
> >>>
> >>> may be
> >>>
> >>> showLesson: aLesson withTitle: aString
> >>>     self window setLabel: aString.
> >>>     self sourceTextModel setText: aLesson lesson.
> >>>     self isOpenInWindow ifFalse: [ self open ]
> >>>
> >>>
> >>> but I do not know :(
> >>>
> >>> Stef
> >>>
> >>
> >> Maybe both,
> >> beForSmalltalkCode and beForSmalltalkScripting in
> >> RubScrolledTextMorph should use
> >> self textArea font: StandardFonts codeFont
> >>
> >> At the moment, only beForSmalltalkCode sets this font.
> >
> >
> > Yes I did the same as you, I tried to add
> >
> > beForSmalltalkScripting
> >     self textArea beForSmalltalkScripting.
> >
> >     self textArea font: StandardFonts codeFont
> >
> > But without success. I'm puzzled.
> > Stef
> >
>
> And you need to reset the tutorial, it reuses the existing lesson view.

And maybe we should use beForSmalltalkScripting in the helpbrowser as well, because right now, you can not use "printIt"


Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

stepharo
In reply to this post by Nicolai Hess-3-2
this is what I started to suspect!!!
Ok I saw that you already commit the code you were faster than me :)

Stef

Le 24/2/16 17:29, Nicolai Hess a écrit :


Am 24.02.2016 5:26 nachm. schrieb "stepharo" <[hidden email]>:
>
>
>>>
>>> may be
>>>
>>> showLesson: aLesson withTitle: aString
>>>     self window setLabel: aString.
>>>     self sourceTextModel setText: aLesson lesson.
>>>     self isOpenInWindow ifFalse: [ self open ]
>>>
>>>
>>> but I do not know :(
>>>
>>> Stef
>>>
>>
>> Maybe both,
>> beForSmalltalkCode and beForSmalltalkScripting in
>> RubScrolledTextMorph should use
>> self textArea font: StandardFonts codeFont
>>
>> At the moment, only beForSmalltalkCode sets this font.
>
>
> Yes I did the same as you, I tried to add
>
> beForSmalltalkScripting
>     self textArea beForSmalltalkScripting.
>
>     self textArea font: StandardFonts codeFont
>
> But without success. I'm puzzled.
> Stef
>

And you need to reset the tutorial, it reuses the existing lesson view.


Reply | Threaded
Open this post in threaded view
|

Re: Help with PrStef with Fonts

Nicolai Hess-3-2


2016-02-24 17:45 GMT+01:00 stepharo <[hidden email]>:
this is what I started to suspect!!!
Ok I saw that you already commit the code you were faster than me :)

No, thats not from me. I'll check.
 

Stef

Le 24/2/16 17:29, Nicolai Hess a écrit :


Am 24.02.2016 5:26 nachm. schrieb "stepharo" <[hidden email][hidden email]>:
>
>
>>>
>>> may be
>>>
>>> showLesson: aLesson withTitle: aString
>>>     self window setLabel: aString.
>>>     self sourceTextModel setText: aLesson lesson.
>>>     self isOpenInWindow ifFalse: [ self open ]
>>>
>>>
>>> but I do not know :(
>>>
>>> Stef
>>>
>>
>> Maybe both,
>> beForSmalltalkCode and beForSmalltalkScripting in
>> RubScrolledTextMorph should use
>> self textArea font: StandardFonts codeFont
>>
>> At the moment, only beForSmalltalkCode sets this font.
>
>
> Yes I did the same as you, I tried to add
>
> beForSmalltalkScripting
>     self textArea beForSmalltalkScripting.
>
>     self textArea font: StandardFonts codeFont
>
> But without success. I'm puzzled.
> Stef
>

And you need to reset the tutorial, it reuses the existing lesson view.