Text height/overlapping bug

We are having a problem where part of a previous textline is
overlapping the next line. The tails of letters like "j" and "g"
and "y" are overlapping the next line when we have different font
sizes. From our text metrics debugging, the line height seems to be
off by the descent amount. I am using build 5011. Here is sample
code to recreate the problem.

I think this is not a bug, but a byproduct of the fact that
TLF is doing baseline leading. TLF is placing the first line based
on the largest ascent on the line. You can alter the placement of
this line down by changing the value of the firstBaselineOffset
property. The second line is placed according to its lineHeight
propery (also sometimes called the leading). In this case, the
lineHeight is the default value, 120% of the largest fontSize,
which with the fontSize=12 will be 14.4 pixels. So the second line
is placed so that its baseline is 14.4 pixels below the baseline of
the first line. In this case, that's too tight.
There are a couple of things you could do to space the
paragraphs out further. You could assign a larger lineHeight to the
second line, either a larger percentage or absolute pixel value. Or
you could add space between the two paragraphs by assigning a
positive value to the first paragraph's marginBottom. Or you could
set the marginTop of the second paragraph.
Baseline leading is a different model from that used by most
word processors, including Microsoft Word. It is used in
applications such as Adobe InDesign and Illustrator. The advantage
is that it gives the user more control over how the lines are
placed. The disadvantage is cases like these where it doesn't do
the right thing by default.
I hope that one of these proposals is a viable solution to
your problem.
Thanks!

Similar Messages

  • How can a text box overlap an object?

    I have a 1TB late 2012 iMac. Yosemite version 10.10.2 is installed.
    Processor: 2.7 GHz Intel Core i5
    Memory: 8 GB 1600 MHz DDR3
    Graphics NVDIA GeForce GT 640M 512MB
    How can I place a text box overlapping an object?
    I have pasted a photo from an email into a Pages document and I'd like to put on top of it.
    I have tried as many Help topics as seemed relevant, but 'Move Backwards' and 'Move to front' are greyed out.
    I have been confident using this technique with Mountain Lion, but now I'm stuck.
    I am old and self-taught.

    Assuming you have Pages 5.x
    Click on the object > Toolbar > Format > Arrange > Stay on Page > Text Wrap > None
    Now you can move it. It probably was inline and part of the text.
    You can not move it under the general body text however, unless you move it to the Section Masters in which case it will appear on every single page of that Section.
    You will need to create a Textbox to put your text into and move that on top of the object.
    Peter

  • Text is overlapping and unreadable

    Hi.
    Some webpages I attempt to view have text that overlaps and is unreadable. I have tried fooling around with the preferences (fonts and whatnot) but the problem still exists.
    This is not on all webpages, just some.
    Any solutions?

    I edited my post-- I meant Advanced tab not security tab.
    Your resolution is large enough that even a large font, like Times 16, should not present that much of a problem, normally. And although it seems like your fixed width font should be Monoco, or Courier, I don't think that should affect that page either.
    I went to your first link, first page only (mcsweeneys), set my font to Times 16 and went further and set my minimum font size under the Advanced tab to 18, and still got no overlap. Same at the craigs list link.
    I'm still curious as to what your minimum font is set to in Advanced tab.
    Do you have a personal style sheet set up, maybe, where the fonts are larger, or perhaps something else is set that throws these off-kilter?
    Are you using a third party accessibility or browser enhancement software that may be deploying a style sheet of its own?
    I'm probing just to get some more clues....

  • Text characters Overlapping themselves

    Hi Community,
    After exporting my indesign file to fixed-layout epub, the text characters overlap themselves. But they appear OK with the original file. Please how can I solve this problem. I sincerely need your help

    I can image the laborious job it was. There's a quick tutorial here: How to design fixed layout EPUB | Adobe InDesign CC tutorials, but I think you need to get familiar with the basic use of paragraph styles on Indesign. There are several books available. One that is recommended here is Indesign CC: Visual QuickStart Guide by Sandee Cohen: http://www.amazon.com/gp/product/0321929578/ There is also lynda.com that has very good tutorials.

  • Mx:text height bug?

    I've used the mx:text tag to put in some text, and it seems
    that the amount of
    text forces the height of the application in a way that I get
    an vertical
    scroll bar. If I reduce the amount of text in the tag, the
    scrollbar
    dissapears. There is plenty of room below the text, so there
    should not be any
    need for this to happen.
    Have any of you experienced the same problem?

    I think this is not a bug, but a byproduct of the fact that
    TLF is doing baseline leading. TLF is placing the first line based
    on the largest ascent on the line. You can alter the placement of
    this line down by changing the value of the firstBaselineOffset
    property. The second line is placed according to its lineHeight
    propery (also sometimes called the leading). In this case, the
    lineHeight is the default value, 120% of the largest fontSize,
    which with the fontSize=12 will be 14.4 pixels. So the second line
    is placed so that its baseline is 14.4 pixels below the baseline of
    the first line. In this case, that's too tight.
    There are a couple of things you could do to space the
    paragraphs out further. You could assign a larger lineHeight to the
    second line, either a larger percentage or absolute pixel value. Or
    you could add space between the two paragraphs by assigning a
    positive value to the first paragraph's marginBottom. Or you could
    set the marginTop of the second paragraph.
    Baseline leading is a different model from that used by most
    word processors, including Microsoft Word. It is used in
    applications such as Adobe InDesign and Illustrator. The advantage
    is that it gives the user more control over how the lines are
    placed. The disadvantage is cases like these where it doesn't do
    the right thing by default.
    I hope that one of these proposals is a viable solution to
    your problem.
    Thanks!

  • Text validation widget bug?

    I have used text validation in a table body like this:
    <table style="width:20%">
    <tbody id="login_val">
    <tr><td>E-Mail</td><td><input
    name="login" id="login" type="text"></td></tr>
    <tr class="textfieldRequiredMsg"><td
    colspan="2">Enter your login E-Mail.</td></tr>
    <tr class="textfieldInvalidFormatMsg"><td
    colspan="2">Enter a valid E-Mail address.</td></tr>
    </tbody>
    <tbody>
    <tr><td></td><td><input
    name="submint" id="submit" type="submit" value="Log
    In"></td></tr>
    </tbody>
    </table>
    Initialised with: var login_val = new
    Spry.Widget.ValidationTextField("login_val", "email",
    {validateOn:["blur"]});
    If there is an input error - the error table-row shows up as
    expected but the first td of the first row (the one showing the
    word 'E-Mail') suddenly has a colspan"2" on it too. (tested only in
    Firefox)
    Do I miss something here? Or is this a bug? Feature???
    Cheers from down under.

    Hello,
    I think the problem in this situation appears because of the
    CSS definition. The default definition right now to display an
    error message is:
    .textfieldRequiredState .textfieldRequiredMsg,
    display: inline;
    color: #CC3333;
    border: 1px solid #CC3333;
    When this class is used with table rows the results are
    unexpected because the table rows have a special status and cannot
    normally be displayed as an inline element. Unfortunately your
    scenario hit a browser limitation in the CSS implementation. The IE
    because it doesn't have yet support for display:table as the CSS2
    specify will render "correctly (?!)" the display:inline or
    display:block on table row elements. FF because it has correct
    support for display:table-row will work incorrectly with the inline
    as the specification mention.
    The only solution I see is to manipulate the CSS height
    property, margin and padding instead of manipulating the display if
    you want to continue to use the table structure above.
    Regards,
    Cristian

  • How to determine the text height in ADG?

    Hi All,
    I am using AdvancedDataGrid to display which has
    variablerowHeight is set to True. Now all I wanted to know is that
    to detect the height of the text displayed in each row or height of
    each row.
    Because I am having horizontal grid lines after each row of
    text. Here the issue is, the space between the text an line drawn
    is not same at top and bottom. If I adjust that using "paddingTop"
    and "paddingBottom" set to 0 or some value, then if I change the
    fontname for the text, based on the fontname I use the space is
    either increased or decreased.
    The space between the text and line is same when single row
    records like below
    1) Using Font Comic Sans MS
    val1 val2 val3
    2) Using Font Arial
    val1 val2 val3
    But when I have the row values something like this, the issue
    is coming
    1) Using Font Comic Sans MS
    val1 val2 val3
    val4
    2) Using Font Arial
    val1 val2 val3
    val4
    Here in the second example, the space between the text and
    the line at the bottom is not same as the top.
    I hope I made my problem clear.
    Any help or suggestion would be helpful
    Thanks

    Hi,
    I think you can use the viewToModel() method... it should do the trick.
    Regards.

  • Reducing the Text height in Adobe Forms

    I have a text field which I have included for the long text of me22n transaction in the context node of Adobe forms. In the form I want to adjust the maximum height of the text field using java script or any other way, as in I do not want to print the text if it exists for more than 3 lines?

    You need to implement a "flowed" design. the concept of flowed means that your field/subform/form expands as your data grows.
    To do this, inserrt a subform and mark it as flowed (Top to Bottom), then drop in a text box and bind it to your input field.
    In your text box's properties, make sure you allow Multiple Lines, and in your Layout pallette make sure Expand to Fit checkboxes are checked.
    your field will grow or shrink depending on your input data.
    EDIT: if you want to hide your field, you need to use formcalc or javascript. you need to check some value (whatever that is, is up to you) then hide your field.
    if (BUSINESS_UNIT eq "G/A" ) then
      COMM_DLY_COSTS.presence  = "hidden"
    endif
    Edited by: Robert Phelan on Aug 25, 2011 5:25 PM
    Edited by: Robert Phelan on Aug 25, 2011 5:27 PM

  • "copy and paste text within symbol" bug

    I am sure this has been discussed, but have not found it using search.
    Follow these steps to demonstrate a "Symbol Text" bug (CS5 through CC 2014):
    Create Symbol containing editable text.
    Edit symbol by selecting and copying a portion of text at "Character" level in the Symbol
    Paste as point or paragraph text.
    The result is: ALL the text from the Symbol is pasted into the Point or Paragraph text object, NOT just the portion that was copied.
    This bug has been present in AI at LEAST since CS5 and probably before. I'd sure like to see it fixed.

    Ray,
    I'm using C5 also.
    What I get is the copied text plus all the text in the symbol.
    Peter

  • Text message edit bug and price

    Anyone else going nuts trying to text with this phone? For one thing with the stock keyboard it only types in portrait mode even when it should be in landscape. Then it locks up and you can't backspace! No fix yet! Its been a problem since I paid 330 bucks for this phone in like November! (I metion the price I paid because it immediately went down to 80 bucks after I paid 4 times that! I want a refund of the difference.  )

    Hey man,
    Thanks for the tip. Ya its already on auto-rotate. Its a bug in the text editor app for sms. Judging from the antenna disconnect problem with the BIONIC still not being fixed even though verizon and Moto knew about it since the day of its release.. I am not holding my breath for a fix for that OR the restart clearing all my apps settings, saved words, wifi auto on locations, etc..
    Verizon seems to be the worst when it comes to fixing bugs. Imagine the BIONIC still is a broken phone... Wow! Glad I exchanged it for a phone with less serious forever bugs x(

  • Text Member Director bug?

    Hi there,
    Whilst trying to track down what I though was my own bug, I
    discovered that
    with Director 8.5's text member charPosToLoc() function I
    seem to have found
    a strange anomaly....
    1. Create a text member. Set framing to Adjust To Fit and
    wordWrap to on.
    2. Starting with an empty member type text into it until the
    first line, is
    almost filled.
    3. Type a row of empty space chars (not they do not force the
    text member to
    return to the second line).
    4. Put the member.charPosToLoc(member.char.count).
    5. You will observe that the resulting loc.locH is way beyond
    the right hand
    edge of the text member's width!
    Can anyone replicate, or suggest a work around? It's a real
    problem for one
    aspect of my Chatroom project.
    Thanks experts!
    Richard Smith

    "Chunick" <[email protected]> wrote in
    message
    news:evqp6l$nq4$[email protected]..
    > I'm also working on a chat, but using mx2004... and it
    still occurs in
    > mx2004
    > as well. Seems to be a bug that has carried over to the
    newest version.
    > Can I
    > ask the context to which you're needing to set the text
    member to adjust
    > to fit
    > with wordwrap?... it seems like you are trying to set up
    chat bubbles or
    > something.
    Yes, you are quite right, very observant! :)
    I had a bug with my smiley placement within the bubbles, but
    that work
    around fixed it. Ain't smiley placement a pain ? ;)
    Cheers, and good luck with your chatroom!
    Richard

  • Workaround for the Firefox height="100%" bug

    Hi,
    Does anyone have a workaround / solution to the bug which affects Firefox which means you can't specify height=100% in the wrapper? The one which means you have to specify an absolute height.
    Maybe even better - does anyone know when it's getting fiex?
    Tks
    Alex

    The problem is that firefox browsers don't support percentage based heights. See...
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    If you set everything to 100% in your wrapper and set your app to 100% in the code it works fine (ie resizes) in every browser except firefox. It's not working correctly in firefox 3.5 either.

  • How to measure text height/width?

    Hi all, i need to load a text file and split the content into groups. Each group must fit into a rectangle of given height and width.
    I tried using "wrappingWidth", but there's nothing similar for the height.
    Any suggestions?
    Edited by: s.marchionni on Oct 12, 2009 1:26 AM

    Use boundsInLocal? Or layoutBounds.

  • Smartform: How to make text height 1.5 times  than width?

    Let say, I want to output "Sales Order", how to make its height 1.5 times then width?
    Thanks a lot

    Hi,
    Create paragraph with the font size you want then apply this font to the Text that you want to  print.
    Thanks,
    Aditya

  • After Effects CS6: Adjacent text layers overlap by one frame, can't fix it

    Adjacent text layers, which we are using to subtitle bits of video, butt up against each other and in some instances it's fine (the text changes at the correct frame), but in others the text from the first one bleeds by one frame into the second and overlaps. If I shorten the time on the first one by one frame, there is a gap with no text. How can I fix this? The comp is built from the video so the frame rate of the comp is the same for the video file.
    Thanks for any help!
    Glen

    Thanks very much Mylenium for your help - I've scoured the file looking for everything you mention, and there anything fancy at all. I'm using no time-stretching or remapping, simply putting a text layer on top of a video, and moving its in and out points. No blurs or odd keyframes as far as I can tell. Video and comp are both 29.97 framerate (comp created using "New comp from selection").
    Glen

Maybe you are looking for

  • Web Filtering

    Hi, We have third-party endpoint protection with the possibility to whitelist and blacklist URL's. Trend Micro Worry-Free Business Security. Does Microsoft Intune Endpoint Protection also provides the same functionality? Regards, Dirk

  • What are the DB tables for 0FI_GL_4

    Hi experts, Can any one tel me what are DB tables for the data source like 0FI_GL_4. regrds manoj

  • WAAS Speed from local cache

    I have a WAAS demo setup in a test lab and have a simulated T1 span connecting two networks. When I transfer a file using CIFS or web initially, I see the traffic flow through the WAN. When I do the transfer a second time, I know it is getting the da

  • Help. computer froze while installing iwork08

    Hi I'm really new to mac computers and I don't know how to fix a frozen imac. I bought it a few weeks ago and today i installed iwork08. I went to view the iwork tour and my computer froze and went to this dark screen with a gray box in the middle wi

  • Imaq vision function reference

    Hello All, I am new to Lab Windows/CVI and am using the imaq vision library. Could anyone tell me where I can find the IMAQ Vision function reference? I have found a function reference manual at Start--> National Instruments --> Vision--> Documentati