Jump to content

Relationship between fonts and distances


ewan_m

Recommended Posts

Hi Everyone,

 

I am trying to determine a relationship between a piece of text, its width, its height and the space it takes up. The intention is ultimately to draw a box around the text, see if there are similar boxes within its extents (crossing selection) and then flag it as an overlap between two pieces of text.

 

The problem I seem to have is that most of my fonts are not evenly spaced from letter to letter. e.g. LINE

 

Does anyone have ideas about how to ascertain individual character width for each style without going through them manually, or better yet does someone have an easier alternative to achieve the same end result?

Link to comment
Share on other sites

the subr Textbox will return the LL and UR coordinates of a piece of text (if it's rotated, it'll return the coordinates as if it weren't rotated). You can determine the width and height from the coords.

Little known command "Tspaceinvaders" will determine if there is a overlap of text.

Link to comment
Share on other sites

Ahh, cheers for the quick reply. We use Munsys on the front end and so don't directly work with Autocad objects, that said for my purposes they are just an explode away ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...