"Line Spacing" vs. leading

How does "Line Spacing" in static or dynamic text fields
(explicitliy set in the "Formatting Options" window) compare w/
"leading" when creating a text field w/ AS?
Is a "Line Spacing" setting of 10 the same as my_fmt.leading
= 10;?
In a Flash 7 file I'm trying to get the spacing between lines
in an AS-created text field to be closer than default, but it seems
that leading can be a positive value. But if a similar static field
looks good w/ Line Spacing set at 0, why is there no equivalent w/
leading?

To clarify... If the query row is omitted from the
indexed/array notation, then isValid() and <cfparam />
produce different results.
In the attached code example below, the query row was omitted
intentionally to illustrate.
Two possible solutions are:
1) Make isValid() throw an error (so that they both throw an
error)
2) Make <cfparam /> not throw an error (so that they
both do not throw an error)
I feel the behavior should be consistent. Does anyone feel
otherwise? If the behavior should be consistent, then which
solution, or other solution, is preferred?
Let's discuss!
Thanks,
-Aaron
---------

Similar Messages

  • Line Spacing/Leading

    Does anyone know how to adjust line spacing or leading for text in DVD Studio Pro?????

    yeah i've been to the font settings and there's all kinds of stuff for size, color, shadow....but nothing for leading..
    That seems like a pretty big element to add..I wonder why its not there.

  • Why won't my line spacing change even after I change the # in the leading panel

    why won't my line spacing change even after I change the # in the leading pane

    Is this for text you've already typed? Did you select it first? If that's not it, for PSE 11 and 12 go to the far right of the tool options, click the four-lined square and choose Reset Tool. For PSE 10 and earlier go to the far left options bar, click the tiny triangle (or the tool icon for really old versions) and choose Reset Tool.

  • Can you change the line spacing in the legend?

    Is there a way to change the line spacing in the legend? I have a pie chart with text and I can't change the line spacing for its legend like you would in a regular text. Is there a way to change it?

    For space between each line, use the leading value in the Character pallet. For space between paragraphs, use the Space Before or Space After values in the Paragraph pallet.

  • AutoSize not working properly in TextField when using non-zero line spacing

    When using non-zero line spacing, the autoSize property is not functioning as expected, causing text fields to scroll that shouldn't.  Also, when using device fonts, the sizes of the TextFields are wrong in the Flash IDE.
    I have a TextField whose height is supposed to be dynamic, depending the width of the TextField.  wordWrap is true, the text is left aligned, and the autoSize value is flash.text.TextFieldAutoSize.LEFT.
    When the TextField's width is adjusted, the height increases or decreases as expected, but when I scroll the mouse wheel over the TextField, it allows a single line to scroll out of view.  This should not be happening.  The autoSize property should ensure the TextField is large enough to neither require nor allow scrolling.
    Has anyone else encountered this issue or know how to fix it?
    Update: Been a problem since at least 2006! > http://blog.nthsense.net/?p=46
    http://www.kirupa.com/forum/showthread.php?288955-Disabling-textfield-scrolling   Bug is caused by using a line height ("line spacing" in Flash) larger than zero, for example 1.0pt.  It looks like when I reduce the line spacing of the text field to zero, the issue goes away.  There doesn't seem to be anything wrong with how autoSize is calculating the required height of the text (i.e. it is exactly textHeight + 4 pixel gutter, and drawing the rectangle (2,2,textWidth,textHeight) aligns visually with the text), so it must have to do with how the TextField is deciding whether it needs to scroll or not, and that separate calculation is being thrown off by the non-zero line spacing.  The additional non-zero spacing at the end of the last line could be making the TextField think it needs to scroll, even though it's hight is sufficient at "textHeight + 4".  Apparently the problem manifests when using a non-zero leading value as well.
    In fact, it has to be related to the leading value exactly, since the following code stops the textfield from scrolling.
    //body is TextField
    var tlm:TextLineMetrics = body.getLineMetrics(body.numLines - 1);
    trace(tlm.leading); //traces "1" here.  traces zero when line spacing is zero, and traces larger values with larger line spacing values
    body.autoSize = flash.text.TextFieldAutoSize.NONE; //turn off autosize so the height can be set manually
    body.height += tlm.leading; //increase height of textfield by leading value of last line to cause scrolling to be turned off.
    Honestly, this is pretty unacceptable bug.  First of all, scrolling should not be sensitive to trailing line spacing, because autoSize and textHeight do not include it. It need to be consistent, and I think textHeight and autoSize setting height = textHeight + 4 is correct.  Vertical scrolling should use textHeight as it's guage for whether scrolling is necessary, but instead, it's obviously involving the leading values of the last line.  At the very least, vertical scrolling should simply be disabled when autoSize is turned on and wordWrap is true, because the TextField should be big enough to fit all the text.  The workaround of manually adjusting the height is also no good, since turning autoSize back on will immediately change the size back and trigger scrolling again.  I also shouldn't have to set line spacing to zero just to use the autoSize feature, since the scrolling calculations are wrong in this way.

    No, lol.  Luckly, I replace most of my TextFields on the display list with my subclass TextFieldEx.  I just call a clone method that accepts a TextField and returns a TextFieldEx with identical properties.
    I corrected the problem via modifying the subclass to behave differently when autoSize is not NONE and wordWrap is true.  Under those conditions, the maxScrollV and scrollV property values are fixed at 1, and the class listens for its own SCROLL event and sets scrollV to 1 when it occurs.  That allows me to leave everything else alone, including text selection, and use whatever line spacing I want.
    The modification seems to work fine so far.
    For anyone interested in doing something similar, here is a clone method that will copy a TextField.
    public static function clone( t:TextField ):TextFieldEx
                                  var te:TextFieldEx = create( "", t.width, t.type, t.multiline, t.wordWrap, t.selectable, t.embedFonts, t.defaultTextFormat );
                                  te.alpha = t.alpha;
                                  te.alwaysShowSelection = t.alwaysShowSelection;
                                  te.antiAliasType = t.antiAliasType;
                                  te.autoSize = t.autoSize;
                                  te.background = t.background;
                                  te.backgroundColor = t.backgroundColor;
                                  te.blendMode = t.blendMode;
                                  //te.blendShader = t.blendShader;
                                  te.border = t.border;
                                  te.borderColor = t.borderColor;
                                  te.cacheAsBitmap = t.cacheAsBitmap;
                                  te.condenseWhite = t.condenseWhite;
                                  te.displayAsPassword = t.displayAsPassword;
                                  //te.embedFonts = t.embedFonts;
                                  te.filters = t.filters;
                                  te.gridFitType = t.gridFitType;
                                  te.height = t.height;
                                  te.opaqueBackground = t.opaqueBackground;
                                  te.restrict = t.restrict;
                                  //te.selectable = t.selectable;
                                  te.sharpness = t.sharpness;
                                  te.thickness = t.thickness;
                                  te.transform = t.transform;
                                  //te.type = t.type;
                                  te.useRichTextClipboard = t.useRichTextClipboard;
                                  //te.wordWrap = t.wordWrap;
                                  //Assign text last
                                  te.htmlText = t.htmlText;
                                  return te;
    //And the create method it uses
    public static function create( text:String = "", width:Number = NaN, type:String = null, multiline:Boolean = false, wordWrap:Boolean = false, selectable:Boolean = true, embedFonts:Boolean = false, font_or_textformat:*=null, size:Object=null, color:Object=null, bold:Object=null, italic:Object=null, underline:Object=null, url:String=null, target:String=null, align:String=null, leftMargin:Object=null, rightMargin:Object=null, indent:Object=null, leading:Object=null ):TextFieldEx
                                  var tf:TextFieldEx = new TextFieldEx();
                                  tf.width = isNaN(width) ? 100 : width;
                                  tf.defaultTextFormat = (font_or_textformat is TextFormat) ? (font_or_textformat as TextFormat) : new TextFormat( font_or_textformat as String, size, color, bold, italic, underline, url, target, align, leftMargin, rightMargin, indent, leading );
                                  tf.embedFonts = embedFonts;
                                  tf.multiline = multiline;
                                  tf.wordWrap = wordWrap;
                                  tf.selectable = selectable;
                                  tf.type = type;
                                  tf.text = text; //setting text last ensures the text line metrics returns correct values
                                  //Initialize the TextField's size to fit the text.
                                  if (!multiline)
                                            //When in single-line mode and no specific width is given,
                                            //expand width to entire line.
                                            if (isNaN(width))
                                                      tf.width = tf.textWidth + 4; //match width of text
                                  //Height is always automatically adjusted to fit the text by default.
                                  //It's better than the arbitrary 100px default height.
                                  var minimum_height = tf.getLineMetrics( 0 ).height;
                                  var h:Number = tf.textHeight;
                                  tf.height = (h < minimum_height) ? (minimum_height + 4) : (h + 4); //match height of text, ensuring height is at least enough to display one line, even if there is no text
                                  return tf;

  • How can I control the line spacing in TLF

    Hello,
    Is it possible to control the line spacing in TLF?
    For example I might have text lines with font size of 12 (i.e. constant text height) but I would like to be able to change the space between the lines programatically.
    Playing with the lineHeight property is not the best approach because in case there are images embedded in the text once lineHeight is set then the image is cut if it is higher than the line height. I really need to control the space between lines but not the lines' height.
    Thanks

    I would like to achieve the following behavior: the gap between all text lines to be always X pixels.
    My understanding how TLF handles this (please correct me if I am wrong) is that there is no gap between TextLines but one could achieve similar behavior by playing with lineHeigh. You could set it to a percentage and then this would introduce visual gap between text lines however in cases when a text line contains elements with different height (like the case with images or spans with different fontSize) then the gap will differ because it is calculated as a percentage of the overall fontSize. I don't want to have different gaps in these cases. I would like to have always (let's say) 10 pixels between each text line.
    What I need is very similar to the "verticalGap" style available in the VBox container. I would like to specify the exact gap between each text line in exactly the same way.
    Using "lineHeight" is not good because it depends on the height of the text/images and this leads to different gaps when I have mixture of elements with different heights. The way I set the gap should not be dependent on the height of the elements.

  • Line spacing varies with every other line in a paragraph

    I have a couple of pages documents in which the line height (leading) varies from line to line in a paragraph. Actually, it looks like after every even numbered line there is more space between that and the following line than the odd numbered lines and the line after that. What's up with this?

    Hello
    As I received a sample page, I applied your tip.
    It changes the line spacing but the aspect remains the same.
    At this time, my guess is that it is an optical effect due to the fact that in some lines there are large chunks of lowercases like aeiou but fee "high" letter like fhkl
    while other lines contain more of these "high" letters.
    If it is really that, there is no automatic soluce in Pages. As far as I know, only programs like xPress or inDesign are able to treat correctly this problem (gris typographique in French).
    Yvan KOENIG (from FRANCE mardi 24 juin 2008 21:52:22)

  • Line Spacing

    I have always had a very hard time with line spacing in InDesign. I always end up with inconsistent line spacing/leading throughout my paragraph. The text blocks act as if I have set hard and soft returns when I haven't. It always seem to be the last word in a paragraph. It's always done this and I've heard other people complain about the same thing. The copy has been cut and pasted into InDesign from a pdf.
    I welcome any suggestions.

    In that little pearl of wisdom from Bob, you are overseeing something that might help a Quark reformee:  .. by default ..
    Check out this screen snap from my Preferences. Note that I have it left disabled, as I am totally confident in my ID formatting / styling skills
    There is a reason Adobe leaves it unchecked by default; enable at your own risk.
    (The reason, obviously, is that any larger-than-usual font size anywhere in your paragraph (including its return at the end) will influence the entire paragraph. I can't help thinking that would be a feature that drives Quark users nuts all around the world.)

  • CSS unordered list {line spacing question}

    Hi everyone.
    I am trying to make a bulleted list, and I have 5 elements.
    Some require one line, while others require two lines. But the
    thing is, I want the leading to be lets say 20pt between items. But
    since some of the items require two lines, i want those items to
    have their line spacing closer so they can seem that they are part
    of the same bullet point. Is there any way I can do this? Is it
    even possible?
    Any help would be appreciated.
    Thanks
    -Ce

    Use <ol> or <dl> or <ul> list container and
    wrap your bullets in individual <li> tags.
    use css to style the line-height of the lis. Use a class on
    each group of lis to set the line-height.
    <ul>
    <li class = "double_height">Item 1</li>
    <li class = "single_height">Item 2</li>
    <li class = "double_height">Item 3</li>
    </ul>
    ul {
    margin: 0;
    padding: 0;
    list-style: none;
    .double_height {
    line-height: 2.5em;
    .single-height {
    line-height: 1.2em;
    You can play with the settings to get the best results but
    this code will give you an idea of what is possible.
    regards
    Nick Barling
    www.barkingweb.com

  • Inexact Line Spacing for different fonts

    The line spacing performs correctly with, for example, an Arial font. But when choosing a PostScript font like The Sans I have to adjust the Line Spacing to ".01" or ".02" instead of "1" to have a "normal" spacing.
    This presents a problem when changing fonts or for selecting text, because I have to point the cursor one line down of the line I really need to select.
    Does anybody know a workaround? Thanks.
    Message was edited by: Daniel Markus

    Lists is a separate level of formatting from the paragraph style that you are trying to apply. Lists is applied over the paragraph style and controls the numbering systems and indents, it does not seem to extend to space before.
    You will need to create a paragraph style for the leading top level and another for the following indented points.
    You can however use:
    Inspector > Text > More > Following Paragraph Style:
    To set the indented points style to follow after you hit return on the top level style
    Peter

  • PSE11 Can't adjust the line spacing correctly - can anyone help ?

    When I write text in a free style I'm unable to adjust the line spacing anymore - it turns out much to big and whatever value I choose it's every time the same !?!
    When trying text in a box it's all OK, but I seldom use text in a box...
    I'm using PSE since 11/2012 and the problem occured just now
    Has anyone an idea ?

    Click the leading dropdown below and choose "Auto". If this doesn't work click at the flyout button at the top-right corner of tool option bar and choose "Reset Tool".

  • Line Spacing In Mail and iChat

    I recently downloaded and installed the 10.6.3 Combo upgrade. As a result, the line spacing in both Mail and iChat have gone crazy! The font size is correct, but the spacing is huge. So, it both reading and writing emails nearly impossible.
    I am not sure if it is something in the Upgrade, or something in my system. I have tried everything I know: Emptying All Caches, Deleting plist files, Repairing Permissions.Nothing seems to help. Which leads me to believe that something was altered in the 10.6.3 Upgrade to cause this problem.
    Anyone have the same problem? Anyone have a solution?

    Have you added, removed, or otherwise altered any fonts?
    Ernie

  • Indesign line spacing control

    I can't find the line spacing control to change from single spacing to double. Can someone tell me where it is?

    I just found it!
    This was on Adobe's InDesign Help site:
    Change the default leading percentage
    Select the paragraphs that you want to change.
    Choose Justification from the Paragraph panel menu or from the Control panel menu.
    For Auto Leading, specify a new default percentage. The minimum value is 0%, and the maximum value is 500%.
    But thank you very much Peter, you were right on!

  • Permanently save line spacing in a multi-line text field

    Me: Adobe Acrobat 8 Pro, Windows Vista
    (I think the people who will be using the form have Reader 7 on Windows)
    I work in a doctors' clinic, and we use phone message sheets to document conversations between the patients/us/nurses/doctors, and I scanned the form and made it into a fillable PDF for our secretaries to fill out more quickly. The "message" area has pre-printed lines on it, and the multi-line text field I placed there needs to match up to the lines. I used the Rich Text Formatting options to set it to "Exactly 24 Points," but I can't get it to KEEP the formatting permanently. The only way I could get it to save the formatting in that field was to put a space in it and then save it, and then give that to the 2 phone secretaries. It works perfectly the first time, but instead of just closing/re-opening the file to start a new message, one of the secretaries highlights everything in the "message" field and deletes it... which deletes the line spacing formatting. I've told her
    b numerous
    times to leave that starting space in the field, but she "forgets" so all of her messages look messed up. So is there a way to force that line spacing
    b PERMANENTLY
    ???? Here's a shrunken screenshot of the field -- I wish I could just erase the lines altogether so the spacing wouldn't matter, but the secretaries type/print the message out, then the nurses/docs write on the page with pen so the lines have to stay. http://img187.imageshack.us/my.php?image=notepreviewph8.jpg
    Thanks!

    You can set the font size of the text. Then play with the underlines in the original document to match the needs of the font that is used. Print to a new PDF and then use replace pages to put the new page into the form without changing the form fields. I was able to do this with a word processing document by adding underlining in the document with 12 pt and setting the font to 12 pt in the text field. You can play with the font, the border of the field, and the underlining in the original document to get the desired result. Is this optimal, probably not. However it does the job.

  • I have "upgraded" from Pages 2.0.2 to Pages 5.5.3 and can no longer customize my line spacing. Does anyone know if there are more than 4 options for line spacing?

    Is it possible to customize line spacing in Pages 5.5.3? My previous Pages 2.0.2 allowed me to choose spacing in 0.1 increments, but as far as I can tell Pages 5.5.3 only offers four options. Very limiting for creative documents.

    Hi Margaret,
    Does this work for you?
    And 0.6
    Or 1.6
    Please call back if this does not help.
    Regards,
    Ian.

Maybe you are looking for

  • Performance Problems - Index and Statistics

    Dear Gurus, I am having problems lossing indexes and statistics on cubes ,it seems my indexes are too old which in fact are not too old just created a month back and we check indexes daily and it returns us RED on the manage TAB. please help

  • After using Apple Compressor It wont free up my ram

    I noticed that after I use Compressor my Ram wont free up. I have 8 Gig of Ram and after using Compressor it just stays between 486 mb or 300 mb. I can only get my ram back after a reboot. What's up with that?

  • Error Occures while Passing Data

    Hi All, I am making an ADD-On Form by using VB.Net 2005 on its DI API portion. And its UI API portion is designed in XML. This Add-On has an Matrix on it, which store item details. Now while I am going to choose Items from ItemList , after selecting

  • Sparc Solaris 10 luactivate & sync  -- very slow !!!

    System: Sun Fire T2000 4-Core UltraSPARC T1 OS: Solaris 10 (upgrading from 6/06 to 8/07 with current Cluster Patch applied) HDD: two internal SATA drives Subsystems: iSCSI SANs attached virtual HDDs * followed instructions as outlined in Solaris 10 H

  • How I know if company db is updated

    Hi all, a simple but I believe very important question. How I know if a user has accessed the company db? (I mean by execute insert and/or update in MSSQL). Are any logs to be checked? Thanks in advance, Vangelis