TextModel and TextInputFieldModel font-size bug?

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

TextModel and TextInputFieldModel font-size bug?

kmo
When I create an interface in Spec with TextModel or TextInputFieldModel, the font-size is tiny. Same behaviour in both Windows and Linux. Is this a bug or have I missed something important?



Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

Benjamin Van Ryseghem (Pharo)
Did you tried with morph?

Because for me I would say it happens more at a Morphic level

Ben

On 16 Feb 2014, at 14:55, kmo <[hidden email]> wrote:

When I create an interface in Spec with TextModel or TextInputFieldModel, the
font-size is tiny. Same behaviour in both Windows and Linux. Is this a bug
or have I missed something important?

<http://forum.world.st/file/n4744094/SmallFont.png>





--
View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744094.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


kmo
Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

kmo
Yes - thanks.

Seems the model is based on PluggableTextFieldMorph - and PluggableTextFieldMorph new openInWindow gives the same tiny font. Must be due to a default font size somewhere. But isn't atha bug in itself? Shouldn't it default to the standard text size of the interface theme?
Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

Benjamin Van Ryseghem (Pharo)
On 16 Feb 2014, at 15:13, kmo <[hidden email]> wrote:

> Yes - thanks.
>
> Seems the model is based on PluggableTextFieldMorph - and
> /PluggableTextFieldMorph new openInWindow/ gives the same tiny font.

:)

> Must be due to a default font size somewhere. But isn't atha bug in itself?

Do you change the fonts in your preference scripts?

> Shouldn't it default to the standard text size of the interface theme?

For sure, the default font size should be big enough.
Now we have to know if it comes from you or not :P

Ben

kmo
Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

kmo
I think I'm using a completely vanilla Pharo 3. Haven't changed a thing:
kmo
Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

kmo
I am using Free Type (2.4.12) though
Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

hernanmd
In reply to this post by kmo
I confirm this issue using a vanilla Pharo 3.

PluggableTextFieldMorph new openInWindow

If you comment last line here it works

PluggableTextFieldMorph>>initialize

    textMorphClass := TextMorphForFieldView.
    super initialize.
"    self beDecrypted"

which makes me think. Why #beDecrypted? Are text morphs encrypted by default?
If not we are wasting cycles there. To me it sounds like you should decrypt when something was encrypted, not just in case.

However that does not resolve the issue with TextInputFieldModel.




2014-02-16 10:55 GMT-03:00 kmo <[hidden email]>:
When I create an interface in Spec with TextModel or TextInputFieldModel, the
font-size is tiny. Same behaviour in both Windows and Linux. Is this a bug
or have I missed something important?

<http://forum.world.st/file/n4744094/SmallFont.png>





--
View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744094.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.


Reply | Threaded
Open this post in threaded view
|

Re: TextModel and TextInputFieldModel font-size bug?

Benjamin Van Ryseghem (Pharo)
I think it’s time to open a bug entry :)

Ben

On 18 Feb 2014, at 03:18, Hernán Morales Durand <[hidden email]> wrote:

I confirm this issue using a vanilla Pharo 3.

PluggableTextFieldMorph new openInWindow

If you comment last line here it works

PluggableTextFieldMorph>>initialize

    textMorphClass := TextMorphForFieldView.
    super initialize.
"    self beDecrypted"

which makes me think. Why #beDecrypted? Are text morphs encrypted by default?
If not we are wasting cycles there. To me it sounds like you should decrypt when something was encrypted, not just in case.

However that does not resolve the issue with TextInputFieldModel.




2014-02-16 10:55 GMT-03:00 kmo <[hidden email]>:
When I create an interface in Spec with TextModel or TextInputFieldModel, the
font-size is tiny. Same behaviour in both Windows and Linux. Is this a bug
or have I missed something important?

<http://forum.world.st/file/n4744094/SmallFont.png>





--
View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744094.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.