dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: how to get y coordinate of text baseline position?

Hybrid View

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    6

    how to get y coordinate of text baseline position?

    Hi,

    I'm trying to measure the y position of a single line text field, specifically at the baseline position, i.e where the bottom of the letters without tails like 'y' has sit. I guess I either need to know the y position at baseline or the height of the font not including the stuff under the baseline.

    The reason I'm needing to do this is that I'm using alive pdf and i'm trying to add text in the same relative position on the pdf as the window that the user designs something, and alive pdf's addText function sets y a the baseline position it seems.

    Thanks in advance!
    Joe

  2. #2
    Senior Member
    Join Date
    Jul 2008
    Posts
    391
    Maybe this will help you TextLineMetrics. I think it's the line height subtract the descent and leading that gives you the baseline. Way too many intersecting lines.

  3. #3
    Junior Member
    Join Date
    Sep 2015
    Posts
    23
    Something went wrong with my pdf reader. I wanna convert pdf to text first. Any suggestion will be appreciated. Thanks in advance.

  4. #4
    Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    1,029

    HTML5 is dead

    R.i.p

  5. #5
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    how answer relate to question, where is thuis comment fact. not mean flash alive again although not dead either, many many flash thing on net.
    some say flash for people who unable to code html

  6. #6
    Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    1,029
    Because html5 was made because of flash so its related

  7. #7
    Senior Member
    Join Date
    Aug 2012
    Posts
    124
    html5 not made because of flash, html5 was always going to be made, maybe html6 one day too.
    just html5 was not mention in question

  8. #8
    Member Alloy Bacon's Avatar
    Join Date
    Apr 2011
    Posts
    1,029
    Youre not mention in the question

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center