Re: How to know real text width, reading from a dxf file ?




JoseMaria wrote:
I am developing software that reads from dxf files and processes the
results. I need to know the real height and width of text elements.

With height there is no problem since I can retrieve it. It appears
with code 40 in the dxf file.

The problem is width. I find no means to know the real text width. I
can read from the dxf file the "width / height ratio" ( code 41 ) ,
multiply this ratio by the the height and the number of characters, but
I have been disappointed to see that this is not exact. I have seen for
instance text elements with a "width / height ratio" of 1 with digits
which have a height much greater than width. I usually handle text
elements which display numbers, and their digits are usually drawn
taller than wider, even if they show a width/height ratio of 1 or
similar.

Any help would be appreciated, since I need to know what area these
elements cover.

Thanks

.



Relevant Pages

  • How to know real text width, reading from a dxf file ?
    ... I am developing software that reads from dxf files and processes the ... instance text elements with a "width / height ratio" of 1 with digits ... and their digits are usually drawn ...
    (comp.cad.autocad)
  • Re: A Formula for Pi
    ... Did you take advantage of the fact that the ratio of one term to the ... I wasn't trying to get the quickest converging series, ... term to term ratio of about 2, which yields about .3 digits per term ... (about 1335 terms for 402 digits). ...
    (sci.math)
  • Re: A Formula for Pi
    ... Did you take advantage of the fact that the ratio of one term to the ... I wasn't trying to get the quickest converging series, ... term to term ratio of about 2, which yields about .3 digits per term ...
    (sci.math)
  • Re: A Formula for Pi
    ... Did you take advantage of the fact that the ratio of one term to the ... I wasn't trying to get the quickest converging series, ... term to term ratio of about 2, which yields about .3 digits per term ...
    (sci.math)
  • Re: Q: About number of primes with n digits?
    ... The next 21 primes are 2 digits in length. ... Sequence is in OEIS as A006879. ... Will the ratio between terms converge? ...
    (sci.math)