Re: [JIRA] Updated: (SQ-1054) TextMorph loses font size when all characters are deleted.

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

Re: [JIRA] Updated: (SQ-1054) TextMorph loses font size when all characters are deleted.

Karl Ramberg
Can someone review this.
Long standing bug with font size / line height that is partly fixed.

Karl

On Tue, Mar 20, 2012 at 10:39 PM, Karl Ramberg (JIRA) <[hidden email]> wrote:

    [ http://tracker.squeakland.org/browse/SQ-1054?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Ramberg updated SQ-1054:
-----------------------------

   Attachment: TextStyle.1.cs.gz

'From etoys5.0 of 12 March 2012 [latest update: #2401 (repo v1615 of 18 March 2012)] on 20 March 2012 at 10:36:11 pm'!
"Change Set:            TextStyle
Date:                   20 March 2012
Author:                 Karl Ramberg

TextStyle loses lineGrid and baseline when all characters are deleted from it. Also a carriage return at the end of a text give wrong line height. This is because new TextLine settings is set from TextStyle>>default in CharacterScanner>>setFont.
The font size is still lost in the TextMorph if it is something other than TextStyle default.
But that is another bug..."!


!TextStyle methodsFor: 'accessing' stamp: 'kfr 3/20/2012 22:18'!
defaultFont
       self gridForFont: self defaultFontIndex withLead: 2.
       ^ fontArray at: self defaultFontIndex! !


> TextMorph loses font size when all characters are deleted.
> ----------------------------------------------------------
>
>                 Key: SQ-1054
>                 URL: http://tracker.squeakland.org/browse/SQ-1054
>             Project: squeakland
>          Issue Type: Bug
>            Reporter: Karl Ramberg
>         Attachments: TextStyle.1.cs.gz
>
>
> When you set a TextMorph to use a font size other than TextStyle defaultFontIndex it will be reset to TextStyle defaultFontIndex once all characters are deleted from the TextMorph.
> This will break the way things are laid out and change the look of projects.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tracker.squeakland.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




_______________________________________________
etoys-dev mailing list
[hidden email]
http://lists.squeakland.org/mailman/listinfo/etoys-dev