Table of Contents

Property ActualWidth

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

ActualWidth

Gets the width the MTEXT's words take, as AutoCAD's ActualWidth: where the drawing's FontSearchPath finds the SHX or TrueType font of its style, the width of its widest line, laid out as AutoCAD 2021 lays them out (checks F1a, F2 and F4): a line from its first ink, or its start where it starts with a space, to the ink of its last letter that is no space, the spaces after it left out, a line of spaces alone as wide as they move the pen: "ABC" of txt.shx 4 high is 10.667 wide, and " ABC" 22.667; of a TrueType font, ink left of the line's start not counted, "A" of arial.ttf 4 high 3.735 wide, from 0. The lines are its paragraphs (\P), wrapped at its Width where it has one: "The quick brown fox jumps over the lazy dog and keeps on running" of txt.shx 4 high, 41 wide, is seven lines, the widest 38. Elsewhere, group 42 as the file writes it; nought where it gives none.

public double ActualWidth { get; }

Property Value

double

Remarks

A line breaks after the spaces between words and before or after a letter of Chinese, Japanese or Korean writing, but not before a sign a line does not begin with, as a comma or a closing bracket, nor after an opening one; a word moves down where the line would reach the width, measured from the start of the line to where the pen stands at that word and the word's own ink (romans.shx "H H t" 4 high fits a width of 17.91, not of 17.9, though inked 17.524 wide); a word longer than the width stays whole on a line of its own, wider than the width.

The words measured are of plain letters, %%c, %%d and %%p, \~, and the codes of the width, height and spread of the letters, \W0.7;, \H8;, \H2x; and \T1.5;, which take the letters after them to that width, height and spread, in braces or not, of a TrueType font before its first letter alone and spread not at all, as AutoCAD 2021 sets the letters after such a change on from the ink of those before it (checks F2 and F4); the codes that hold letters in a line (\A), line them under, over or through (\L, \O, \K) and colour them (\C, \c); a style as wide as high and upright; letters its font has; no columns, or dynamic ones of a count of one, which AutoCAD 2021 writes for an MTEXT it has wrapped; a line feed (^J) among the words is a new paragraph. Slanted letters (\Q), other fonts (\f), stacks (\S), indents and tabs (\p) are not measured.