TextModel and TextInputFieldModel font-size bug?
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-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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 <voxkmp@gmail.com> 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-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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? -- View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
On 16 Feb 2014, at 15:13, kmo <voxkmp@gmail.com> 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
I think I'm using a completely vanilla Pharo 3. Haven't changed a thing: <http://forum.world.st/file/n4744130/FontSettings.png> -- View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I am using Free Type (2.4.12) though -- View this message in context: http://forum.world.st/TextModel-and-TextInputFieldModel-font-size-bug-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
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 <voxkmp@gmail.com>:
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-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
I think itâs time to open a bug entry :) Ben On 18 Feb 2014, at 03:18, Hernán Morales Durand <hernan.morales@gmail.com> 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 <voxkmp@gmail.com>: 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-tp4744... Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
participants (3)
-
Benjamin -
Hernán Morales Durand -
kmo