User Tag List

Results 1 to 3 of 3

Thread: [Request] Object similar to Text Rect

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] Object similar to Text Rect

    Could someone develop the following object, if they have time:

    It takes a font face, style (italic/bold/regular), and size in points; a width and height setting, and maybe a 'set first visible line' setting too.

    It renders a kind of internal, invisible string, which can then be used to get information about the characters:

    EG:

    Get X/Y of top left of character '56'
    There could be a version of this to get the top left/top right/bottom left/bottom right coordinates. This would retrieve the location - relative to the top left corner of the text area - of the character.

    Get X/Y of top left of character '12' on line '10'
    Same as above, but character references are relative to the current line. So it can be tied to the Edit Object.

    Get width/height of character at...
    Same as above two, but gets the width/height of that character.



    This would be useful for making certain things occur at a position in any text object. You could create a virtual text object using this, and give it the same font and size parameters as the real one. Then, the location of the nth character in the virtual text object will be the same as in the real text object.

    I'm working on a simple system from within MMFS to do this with fixed-width fonts, but an extension to do it with any font would be awesome.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Object similar to Text Rect

    It could be done with the object that already exists.
    I'll make an example if I have time.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [Request] Object similar to Text Rect

    Yeah, I've got it figured I think, thanks

Similar Threads

  1. Calculate Text Rect. Object
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 12
    Last Post: 4th March 2016, 03:06 PM
  2. [BUG 256.34] Calculate Text Rect gives crazy values on iOS (fine on PC)
    By AyreGuitar in forum iOS Export Module Version 2.0
    Replies: 5
    Last Post: 16th May 2013, 11:11 AM
  3. Calc text rect object
    By richardh in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st July 2012, 05:17 PM
  4. Date & Time and Calculate Text Rect
    By Fanotherpg in forum XNA Export Module Version 2.0
    Replies: 2
    Last Post: 15th May 2011, 04:25 PM
  5. [Request] Virtual Key Object or something similar?
    By Dines in forum Extension Development
    Replies: 5
    Last Post: 12th April 2007, 12:17 PM

Posting Permissions

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